glob.c: Silence warning about void pointer arithmetic
[gnulib.git] / ChangeLog
blob233d71f485eb93ce723fca69cb7a68b5e7eb3c7f
1 2017-12-15  Bruno Haible  <bruno@clisp.org>
3         spawn-pipe: Silence a clang warning.
4         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
5         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
6         in this file.
8 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10         explicit_bzero: port to macOS + Clang 9.0.0
11         Problem reported by Marcus Johnson (Bug#29658).
12         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
13         Don’t use asm.
15 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
17         doc: Improve explanation of supporting relocatable libraries.
18         * doc/relocatable-maint.texi (Supporting Relocation): Explain
19         properly how to build the relocatable module for
20         libraries. (Method and example code from Bruno Haible.)
22 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
24         doc: Use better texinfo tags in a few cases.
25         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
26         instead of @samp in a few places.
28 2017-12-11  Bruno Haible  <bruno@clisp.org>
30         unistr/base: Update comment.
31         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
33 2017-12-10  Pádraig Brady  <P@draigBrady.com>
35         test-faccessat.c: unlink temp file to avoid subsequent test failure
36         * tests/test-faccessat.c: Remove the file to avoid failure
37         to open the file on subsequent runs due to being created
38         with no permissions.
40 2017-12-10  Bruno Haible  <bruno@clisp.org>
42         doc: New sect. "Modifying the build rules of a Gnulib import directory".
43         * doc/gnulib-tool.texi (Modified build rules): New node.
45 2017-12-10  Bruno Haible  <bruno@clisp.org>
47         doc: Tweak wording.
48         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
49         "binaries".
51 2017-12-05  Sam Steingold  <sds@gnu.org>
52             Bruno Haible  <bruno@clisp.org>
54         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
55         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
56         AC_EGREP_CPP pattern.
58 2017-12-03  Bruno Haible  <bruno@clisp.org>
60         all: Replace more http URLs by https URLs.
61         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
62         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
63         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
64         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
66 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
68         Port better to CentOS 5
69         Problems reported by Tom G. Christensen in:
70         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
71         * doc/glibc-functions/strverscmp.texi (strverscmp):
72         Document strverscmp bug with glibc 2.9 and earlier.
73         * doc/posix-functions/tzset.texi (tzset):
74         Document that TZ with angle brackets is POSIX-2001 and later.
75         * tests/test-nstrftime.c: Include unistd.h.
76         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
77         (TZ): Use it to skip tests with angle brackets in TZ,
78         for older systems.
80         stat: add missing module dependencies
81         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
82         Add stat-time.
84 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
86         stat: fix compilation failure on macOS Sierra
87         Reported by Marius Schamschula <mschamschula@gmail.com> in:
88         https://savannah.gnu.org/bugs/?52546
89         * lib/stat.c: Add missing include of stat-time.h.
91 2017-11-28  Jim Meyering  <meyering@fb.com>
93         test-faccessat.c: correct BASE definition to avoid parallel test failure
94         * tests/test-faccessat.c (BASE): Define using this file's name, not
95         that of test-lstat.c.  Using the latter caused this test to fail
96         sometimes when run concurrently with test-lstat.
98 2017-11-27  Daiki Ueno  <ueno@gnu.org>
100         unicase: fix VPATH build
101         * modules/unicase/special-casing (Makefile.am): Ensure that the
102         base directory is created when generating
103         unicase/special-casing.h.
105 2017-11-27  Daiki Ueno  <ueno@gnu.org>
107         libunistring: update to Unicode 9.0.0
108         * lib/gen-uni-tables.c (fill_properties): Recognize
109         Sentence_Terminal and Prepended_Concatenation_Mark.
110         (is_property_default_ignorable_code_point): Exclude U+08E2.
111         (fill_arabicshaping): Allow missing whitespace when parsing;
112         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
113         (output_blocks): Increase the element size of the level1 table to
114         accommodate more blocks.
115         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
116         Update each class according to the standard.
117         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
118         E_Base_GAZ characters.
119         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
120         Glue_After_Zwj, and E_Base_GAZ characters.
121         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
122         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
123         enum value.
124         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
125         value.
126         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
127         LBP_ZWJ, LBP_EB, and LBP_EM.
128         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
129         enum value.
130         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
131         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
132         declaration.
133         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
134         (uniwbrk_table): Implement WB14.
135         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
136         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
137         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
138         uc-is-grapheme-break.
139         * modules/unigbrk/uc-grapheme-breaks: New module.
140         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
141         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
142         enum value.
143         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
144         * lib/unigbrk/u-grapheme-breaks.h: New file.
145         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
146         u-grapheme-breaks.h instead of uc_is_grapheme_break.
147         * lib/unigbrk/uc-grapheme-breaks.c: New file.
148         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
149         29.
150         * tests/unigbrk/test-uc-gbrk-prop.c
151         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
152         GBP_GAZ, and GBP_EBG.
153         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
154         * tests/unigbrk/test-uc-is-grapheme-break.c
155         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
156         GBP_GAZ, and GBP_EBG.
157         (main): Skip unsupported rules involving 3 or more characters,
158         namely GB10, GB12, and GB13.
159         * lib/uniwidth/width.c (nonspacing_table_data): Update.
160         * all generated files under lib/uni* and tests/uni*: Regenerate.
161         * all the affected modules: Bump version.
163 2017-11-26  Bruno Haible  <bruno@clisp.org>
165         strfmon_l: Fix compilation error with glibc 2.5.
166         Reported by Tom G. Christensen <tgc@jupiterrise.com>
167         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
168         * lib/monetary.in.h: Include also <locale.h>.
170 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
172         posixtm: remove PDS_LEADING_YEAR
173         This changes the API slightly, in a hopefully-innocuous way.
174         Without this change the code had undefined behavior when a
175         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
176         Problem reported by Pádraig Brady in:
177         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
178         * NEWS: Mention this.
179         * lib/posixtm.c (posix_time_parse): Treat the absence of
180         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
181         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
182         present, but define it as zero, for compatibility with existing
183         source code).  All other PDS_* values moved up.
184         * tests/test-posixtm.c (LY): New macro.
185         (T): Use it.  Do not expect a particular numeric encoding
186         for PDS_CENTURY etc.
188 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
190         stat: work around Solaris bug with tv_nsec < 0
191         * doc/posix-functions/fstat.texi (fstat):
192         * doc/posix-functions/fstatat.texi (fstatat):
193         * doc/posix-functions/lstat.texi (lstat):
194         * doc/posix-functions/stat.texi (stat):
195         Mention Solaris 11 bug.
196         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
197         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
198         * lib/lstat.c (rpl_lstat):
199         * lib/stat.c (rpl_stat):
200         Normalize resulting timestamps.
201         * lib/fstatat.c (normal_fstatat): New function.
202         (rpl_fstatat): Use it.
203         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
204         (stat_time_normalize): New function.
205         * m4/fstat.m4 (gl_FUNC_FSTAT):
206         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
207         * m4/lstat.m4 (gl_FUNC_LSTAT):
208         * m4/stat.m4 (gl_FUNC_STAT):
209         Replace on Solaris.
210         * modules/fstat (Depends-on):
211         * modules/fstatat (Depends-on):
212         Add stat-time.
213         * modules/stat-time (Depends-on): Add errno, intprops.
215 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
217         regex: merge from glibc
218         * lib/regcomp.c (init_word_char): Add comments.
220 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
222         regex: merge from glibc
223         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
224         * lib/regex_internal.h (internal_function): Remove.
225         All uses removed.
227 2017-11-20  Bruno Haible  <bruno@clisp.org>
229         crypto/gc-sm3: Fix buffer overrun.
230         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
231         Reported by Coverity.
233 2017-11-12  Jim Meyering  <meyering@fb.com>
235         maint: shorten https://lists.gnu.org/archive/html/... links
236         Each /archive/html/ part can be replace with /r/.
237         Run this to induce the change:
238         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
239         * ChangeLog: Perform that substitution.
240         * Makefile: Likewise.
241         * STATUS-libposix: Likewise.
242         * build-aux/bootstrap: Likewise.
243         * doc/maintain.texi: Likewise.
244         * gnulib-tool: Likewise.
245         * lib/allocator.h: Likewise.
246         * lib/argp-ba.c: Likewise.
247         * lib/argp-pv.c: Likewise.
248         * lib/canon-host.c: Likewise.
249         * lib/canonicalize-lgpl.c: Likewise.
250         * lib/float.in.h: Likewise.
251         * lib/fstat.c: Likewise.
252         * lib/getdelim.c: Likewise.
253         * lib/getprogname.c: Likewise.
254         * lib/glthread/thread.h: Likewise.
255         * lib/intprops.h: Likewise.
256         * lib/mbsrtowcs-state.c: Likewise.
257         * lib/safe-read.c: Likewise.
258         * lib/signal.in.h: Likewise.
259         * lib/stat.c: Likewise.
260         * lib/stdbool.in.h: Likewise.
261         * lib/stdio-impl.h: Likewise.
262         * lib/stdio.in.h: Likewise.
263         * lib/sysexits.in.h: Likewise.
264         * lib/timespec.h: Likewise.
265         * lib/wcsrtombs-state.c: Likewise.
266         * m4/alloca.m4: Likewise.
267         * m4/extern-inline.m4: Likewise.
268         * m4/fstatat.m4: Likewise.
269         * m4/gnulib-common.m4: Likewise.
270         * m4/lib-ignore.m4: Likewise.
271         * m4/printf.m4: Likewise.
272         * m4/regex.m4: Likewise.
273         * m4/stat-size.m4: Likewise.
274         * m4/std-gnu11.m4: Likewise.
275         * m4/stdbool.m4: Likewise.
276         * m4/sys_types_h.m4: Likewise.
277         * m4/threadlib.m4: Likewise.
278         * m4/vararrays.m4: Likewise.
279         * pygnulib/GLImport.py: Likewise.
280         * tests/test-exp.h: Likewise.
281         * tests/test-exp2.h: Likewise.
282         * tests/test-expm1.h: Likewise.
283         * tests/test-fflush2.c: Likewise.
284         * tests/test-getopt_long.h: Likewise.
285         * tests/test-intprops.c: Likewise.
286         * tests/test-log.h: Likewise.
287         * tests/test-log10.h: Likewise.
288         * tests/test-log1p.h: Likewise.
289         * tests/test-log2.h: Likewise.
290         * tests/test-printf-posix.h: Likewise.
291         * tests/test-regex.c: Likewise.
292         * tests/test-snprintf-posix.h: Likewise.
293         * tests/test-sprintf-posix.h: Likewise.
294         * tests/test-stdalign.c: Likewise.
295         * tests/test-stdbool.c: Likewise.
296         * tests/test-vasnprintf-posix.c: Likewise.
297         * tests/test-vasprintf-posix.c: Likewise.
298         * top/maint.mk: Likewise.
300 2017-11-12  Bruno Haible  <bruno@clisp.org>
302         faccessat: Make the last change more robust.
303         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
304         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
306 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
308         faccessat: port to macOS (Bug#29231)
309         macOS faccessat has the same bug that lstat does: if the file
310         name ends in '/' it ignores the trailing slash.
311         Problem reported for Emacs by Vincent Zhang.
312         * doc/posix-functions/faccessat.texi (faccessat): Document this.
313         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
314         around the initial includes.  Include errno.h, string.h, sys/stat.h.
315         (orig_faccessat) [HAVE_FACCESSAT]: New function.
316         Include "unistd.h" after defining it.
317         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
318         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
319         Handle in the usual way.
320         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
321         lstat dereferences symlinks, since faccessat is likely to
322         have the same problem.
323         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
324         * modules/faccessat (Depends-on): Add fstatat.
325         Depend if REPLACE_FACCESSAT is 1, too.
326         (configure.ac): Link if REPLACE_FACCESSAT is 1.
327         * modules/faccessat-tests (Depends-on): Add symlink.
328         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
329         * tests/test-faccessat.c (main): Test for the bug.
331 2017-11-11  Bruno Haible  <bruno@clisp.org>
333         getprogname: Fix compilation error on IRIX.
334         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
335         'namesize'.
337 2017-11-11  Bruno Haible  <bruno@clisp.org>
339         year2038: Tweak last patch.
340         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
342 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
344         year2038: be more insistent about 64-bit time_t
345         Applications requiring access to arbitrary files should not be
346         built with 32-bit time_t on hosts that have 64-bit timestamps,
347         as this can lead to real trouble at runtime.
348         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
349         Check on all systems, not just MinGW.  Use a heuristic involving
350         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
351         output a failure or just a warning, to make it more likely that
352         builders will select 64-bit time_t.
354 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
356         havelib: fix typo in previous change
357         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
359         Don’t use AC_EGREP_CPP if affected by CFLAGS
360         * m4/float_h.m4 (gl_FLOAT_H):
361         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
362         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
363         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
364         * m4/year2038.m4 (gl_YEAR2038):
365         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
366         likely to be affected by the choice of CFLAGS, since CFLAGS are
367         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
368         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
370         fstatat: pacify GCC on unusual platform
371         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
372         Omit, as it’s unused in this case.
374 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
376         timespec: prefer ‘assume’ to ‘assure’
377         This avoids some runtime tests.  The rest of the module makes
378         similar assumptions and there is little point to testing here.
379         * lib/timespec.h: Include verify.h instead of assure.h.
380         (timespec_cmp): Use ‘assume’, not ‘assure’.
381         Also, remove an unnecessary cast to ‘int’, as lots of other
382         code in this module now causes -Wconversion to complain, and
383         this is a problem with -Wconversion not with the code.
385         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
387         Port recent gnulib-tool change to Dash
388         * gnulib-tool (func_create_testdir): Don't assume that the shell
389         retokenizes after expanding "$@" inside the call to
390         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
392 2017-10-27  Jim Meyering  <meyering@fb.com>
394         timespec.h: use "assure" to avoid a spurious warning
395         * lib/timespec.h: Include "assure.h" and use it to help
396         gcc7's -Wstrict-overflow avoid a false positive warning
397         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
398         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
399         * modules/timespec (Depends-on): Add assure.
401 2017-10-29  Bruno Haible  <bruno@clisp.org>
403         Avoid several test failures with traditional locales on Haiku.
404         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
405         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
406         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
407         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
408         LOCALE_ZH_CN=none.
410 2017-10-29  Bruno Haible  <bruno@clisp.org>
412         strerror_r-posix: Fix behaviour and test failure on Haiku.
413         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
414         are positive. Work around return value 0 instead of ERANGE on Haiku.
415         For unknown error numbers, use a format string consistent with perror().
416         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
417         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
418         are positive.
420 2017-10-29  Bruno Haible  <bruno@clisp.org>
422         get-rusage-data: Avoid crash on Haiku.
423         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
425 2017-10-29  Bruno Haible  <bruno@clisp.org>
427         get-rusage-as: Avoid crash on Haiku.
428         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
430 2017-10-29  Bruno Haible  <bruno@clisp.org>
432         ilogbl: Ensure replacement on Haiku.
433         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
434         REPLACE_ILOGBL if ilogbl does not work.
435         (gl_FUNC_ILOGBL_WORKS): New macro.
436         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
438         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
439         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
440         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
442 2017-10-29  Bruno Haible  <bruno@clisp.org>
444         expl: Ensure replacement on Haiku.
445         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
446         zero.
447         * doc/posix-functions/expl.texi: Mention the Haiku problem.
449 2017-10-29  Bruno Haible  <bruno@clisp.org>
451         math: Fix test failure on Haiku.
452         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
453         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
454         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
455         * doc/posix-headers/math.texi: Mention the Haiku problem.
457 2017-10-29  Bruno Haible  <bruno@clisp.org>
459         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
460         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
461         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
463 2017-10-29  Bruno Haible  <bruno@clisp.org>
465         crypto/*: Verify that the header file is self-contained.
466         * tests/test-gc-*.c: Include the module's header file immediately after
467         <config.h>.
468         * tests/test-hmac-*.c: Likewise.
469         * tests/test-arcfour.c: Likewise.
470         * tests/test-arctwo.c: Likewise.
471         * tests/test-des.c: Likewise.
472         * tests/test-md2.c: Likewise.
473         * tests/test-md4.c: Likewise.
474         * tests/test-md5.c: Likewise.
475         * tests/test-rijndael.c: Likewise.
476         * tests/test-sha1.c: Likewise.
477         * tests/test-sm3.c: Likewise.
479 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
480             Bruno Haible  <bruno@clisp.org>
482         crypto/gc: fix build failure with -Werror=suggest-attribute=const
483         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
485 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
487         New module: crypto/gc-sm3
488         * lib/gc.h: Declare SM3-related stuffs.
489         * lib/gc-gnulib.c: Support sm3 in internal functions.
490         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
491         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
492         * modules/crypto/gc-sm3: Define gc-sm3 module.
493         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
494         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
495         * MODULES.html.sh: List gc-sm3 module.
497 2017-10-29  Bruno Haible  <bruno@clisp.org>
499         random, random_r: Mention different prototypes on Haiku.
500         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
501         * doc/glibc-functions/random_r.texi: Likewise.
502         * doc/glibc-functions/initstate_r.texi: Likewise.
503         * doc/glibc-functions/setstate_r.texi: Likewise.
505 2017-10-28  Bruno Haible  <bruno@clisp.org>
507         posix_spawn: Avoid spurious message in configure output.
508         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
509         'cmp' command.
511 2017-10-28  Bruno Haible  <bruno@clisp.org>
513         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
514         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
515         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
517 2017-10-28  Bruno Haible  <bruno@clisp.org>
519         ioctl: Override non-POSIX declaration on Haiku.
520         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
521         * lib/sys_ioctl.in.h: Add comment about Haiku.
522         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
523         * doc/glibc-headers/sys_ioctl.texi: Likewise.
525 2017-10-28  Bruno Haible  <bruno@clisp.org>
527         crypto/sm3: Add overview documentation to the .h file.
528         * lib/sm3.h: Add comments.
530 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
532         New module: crypto/sm3
533         This new module can be used to compute SM3 message digest of files or
534         memory blocks according to the specification GM/T 004-2012
535         Cryptographic Hash Algorithm SM3, published by State Cryptography
536         Administration, China.
537         The official SM3 cryptographic hash algorithm specification is
538         available at
539         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
540         * lib/sm3.h: Declare the APIs of sm3 module.
541         * lib/sm3.c: Implement SM3 hash algorithm.
542         * m4/sm3.m4: m4 file for sm3 module.
543         * modules/crypto/sm3: Define sm3 module.
544         * tests/test-sm3.c: Implement SM3 test case.
545         * modules/crypto/sm3-tests: Define sm3 test module.
546         * MODULES.html.sh: List sm3 module.
548 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
550         gc-libgcrypt: fix undefined enum type in switch statement
551         Resolve the following build failure:
552         lib/gc-libgcrypt.c: In function 'gc_hash_open':
553         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
554         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
555              case 0:
556              ^~~~
557         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
558         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
560 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
562         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
563         Resolve the following build failure:
564         lib/gc-libgcrypt.c: In function 'gc_hash_read':
565         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
566         in signedness [-Werror=pointer-sign]
567             digest = gcry_md_read (ctx->gch, 0);
568                    ^
569         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
571 2017-10-26  Bruno Haible  <bruno@clisp.org>
573         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
574         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
575         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
577 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
579         glob: fix another heap buffer overflow
580         Problem reported by Tim Rühsen in:
581         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
582         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
584 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
586         quotearg: pacify compiler re unsigned
587         * lib/quotearg.c (quotearg_n_options):
588         Rewrite to avoid diagnostic from overly-picky compiler.
589         Problem reported by Sami Kerola in:
590         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
592         glob: fix heap buffer overflow
593         * lib/glob.c (glob): Fix off-by-one error introduced into
594         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
595         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
596         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
597         Fix suggested by Bruno Haible.
599 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
601         glob: pacify fuzzer for mempcpy
602         Problem reported by Tim Rühsen in:
603         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
604         * lib/glob.c (glob): Do not pass NULL to mempcpy.
606 2017-10-12  Bruno Haible  <bruno@clisp.org>
608         doc: Fix syntax error (regression from 2017-10-03).
609         * doc/posix-functions/strncpy.texi: Fix syntax error.
611 2017-10-12  Bruno Haible  <bruno@clisp.org>
613         doc: Update for Solaris 11.3.
614         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
615         mention Solaris 11.3.
616         * m4/log2.m4: Fix comments.
617         * m4/log2f.m4: Likewise.
618         * m4/printf.m4: Update comments.
619         * m4/rename.m4: Likewise.
620         * m4/strncat.m4: Likewise.
622         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
624 2017-10-10  Bruno Haible  <bruno@clisp.org>
626         doc: Improve doc about ioctl.
627         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
628         prototype.
630 2017-10-09  Bruno Haible  <bruno@clisp.org>
632         wcwidth: Don't use obsolete syntax of 'test'.
633         Reported by Eric Blake.
634         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
635         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
637 2017-10-09  Bruno Haible  <bruno@clisp.org>
639         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
640         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
641         and Daniel P. Berrange <berrange@redhat.com>.
642         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
643         on glibc systems. The getopt-pfx-core.h file declares exactly what
644         unistd.h needs, nothing more.
646 2017-10-08  Bruno Haible  <bruno@clisp.org>
648         vma-iter: Improve support for FreeBSD.
649         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
650         vma_iterate.
651         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
653 2017-10-08  Bruno Haible  <bruno@clisp.org>
655         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
656         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
658 2017-10-07  KO Myung-Hun  <komh@chollian.net>
660         test-framework-sh: Fix 'invalid path dir' error.
661         On OS/2, a path separator is ';' not ':'. And ':' is used as a
662         separator between a drive letter and directory parts.
663         As a result, an absolute path such as x:/path/to/dir on OS/2 is
664         treated as an invalid path dir.
665         * tests/init.sh (PATH_SEPARATOR): Set at startup.
666         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
667         instead of hard coded ':'.
669 2017-10-07  Bruno Haible  <bruno@clisp.org>
671         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
672         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
673         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
674         (rof_open): On Linux, do multiple read() calls and make sure
675         MIN_LEFTOVER bytes are left when read() returns.
677 2017-10-07  Bruno Haible  <bruno@clisp.org>
679         vma-iter: Improve support for GNU/Hurd.
680         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
681         API, not the /proc file system.
683 2017-10-07  Bruno Haible  <bruno@clisp.org>
685         test-framework-sh: Don't require bash on Windows and OS/2.
686         Reported by KO Myung-Hun.
687         * tests/test-init.sh: Use 'shopt' only when running in bash.
689 2017-10-06  KO Myung-Hun  <komh@chollian.net>
691         wcwidth: check a macro version of wcwidth () as well
692         * lib/wchar.in.h: Revert commit from 2016-01-14.
693         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
695 2017-10-06  Bruno Haible  <bruno@clisp.org>
697         getopt-posix: Clarify copyright header.
698         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
699         * lib/getopt-pfx-core.h: Likewise.
700         * lib/getopt-pfx-ext.h: Likewise.
701         * lib/getopt-cdefs.in.h: Likewise.
703 2017-10-03  Bruno Haible  <bruno@clisp.org>
705         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
706         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
707         gl_HOST_CPU_C_ABI.
709 2017-10-03  Bruno Haible  <bruno@clisp.org>
711         doc: warn about misuse of strncpy and wcsncpy.
712         * doc/posix-functions/strcpy.texi: Describe requirements on prior
713         memory allocation.
714         * doc/posix-functions/wcscpy.texi: Likewise.
715         * doc/posix-functions/strncpy.texi: Describe what this function is not
716         useful for.
717         * doc/posix-functions/wcsncpy.texi: Likewise.
719 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
721         fsuage: fix typo in previous change
722         * lib/fsusage.c: Remove stray include of full-read.h.
723         Problem reported by Sam Steingold for macOS (Bug#28669).
725 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
727         fsusage: remove SVR2 support
728         SVR2 was obsolete by 1986 and is no longer supported by anybody,
729         and its code was getting in the way of use of this module by
730         Emacs, which has its own ‘read’ function anyway.
731         * lib/fsusage.c: Do not include sys/filsys.h.
732         (get_fs_usage): Remove SVR2-specific code.
733         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
734         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
735         * modules/fsusage (Depends-on): Do not depend on full-read.
737         Simplify autoupdate of licenses
738         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
739         place.
741 2017-10-01  Bruno Haible  <bruno@clisp.org>
743         vma-iter: Add support for GNU/Hurd.
744         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
745         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
747 2017-09-30  Bruno Haible  <bruno@clisp.org>
749         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
750         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
751         fail when module 'largefile' is in use.
752         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
753         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
754         Don't test HAVE_SYS_PROCFS_H.
756 2017-09-30  Bruno Haible  <bruno@clisp.org>
758         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
759         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
760         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
761         * modules/havelib (Depends-on): Add host-cpu-c-abi.
763 2017-09-30  Bruno Haible  <bruno@clisp.org>
765         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
766         * lib/uniname/uniname.c (unicode_name_character): Add braces around
767         scope of local variables.
769 2017-09-28  Bruno Haible  <bruno@clisp.org>
771         string: code style
772         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
773         substitutable variables.
774         * modules/string (Makefile.am): Likewise.
776 2017-09-26  Bruno Haible  <bruno@clisp.org>
778         uniname/uniname-tests: Tighten code.
779         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
780         local variables into one.
782 2017-09-26  Bruno Haible  <bruno@clisp.org>
784         vma-iter: Improvements for Linux and BSD platforms.
785         - Add support for DragonFly BSD.
786         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
787         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
788         Read the entire file into memory in a single system call.
789         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
790         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
792 2017-09-26  Bruno Haible  <bruno@clisp.org>
794         vma-iter: Provide the protection flags on FreeBSD.
795         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
796         skip three fields between the addresses and the protection flags.
798 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
800         glob: remove bogus extern decl
801         * lib/glob.c (__glob_pattern_type): Remove now-spurious
802         extern declaration.  Problem reported by Adhemerval Zanella in:
803         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
805 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
807         uniname/uniname-tests: integer overflow fix
808         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
809         Check for integer overflow.
811         duplocale-tests: fix unlikely crash
812         * tests/test-duplocale.c (get_locale_dependent_values):
813         Don’t crash with absurdly long month names.
815         maint: fix overflow checking in nap.h
816         * modules/chown-tests:
817         * modules/fchownat-tests, modules/fdutimensat-tests:
818         * modules/futimens-tests, modules/lchown-tests:
819         * modules/stat-time-tests, modules/utime-tests:
820         * modules/utimens-tests, modules/utimensat-tests:
821         Depend on intprops.
822         * tests/nap.h: Include intprops.h.
823         (diff_timespec): Handle overflow properly.
825         sys_types: update URL
826         * m4/sys_types_h.m4: Use https: URL.
828         parse-datetime: fix dependency
829         * modules/parse-datetime (Depends-on): Depend
830         on nstrftime, not strftime.
832         parse-datetime, posixtm: avoid uninit access
833         * lib/parse-datetime.y (parse_datetime2):
834         * lib/posixtm.c (posixtime):
835         Do not access uninitialized storage, even though the resulting
836         value is never used.
838 2017-09-25  Bruno Haible  <bruno@clisp.org>
840         vma-iter: Improvements for BSD platforms.
841         - Add support for GNU/kFreeBSD.
842         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
843         - Speed up on OpenBSD.
844         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
845         (vma_iterate_bsd): New function.
846         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
847         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
848         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
849         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
851 2017-09-23  Bruno Haible  <bruno@clisp.org>
853         strfmon_l: New module.
854         * modules/strfmon_l: New file.
855         * lib/strfmon_l.c: New file.
856         * m4/strfmon_l.m4: New file.
857         * doc/posix-functions/strfmon_l.texi: Mention the new module.
858         * modules/strfmon_l-tests: New file.
859         * tests/test-strfmon_l.c: New file.
861         monetary: New module.
862         * modules/monetary: New file.
863         * lib/monetary.in.h: New file.
864         * m4/monetary_h.m4: New file.
865         * doc/posix-headers/monetary.texi: Mention the new module.
866         * modules/monetary-tests: New file.
867         * tests/test-monetary.c: New file.
868         * modules/monetary-c++-tests: New file.
869         * tests/test-monetary-c++.cc: New file.
870         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
872 2017-09-23  Bruno Haible  <bruno@clisp.org>
874         duplocale tests: Fix test crash on Linux/x86.
875         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
876         locale from the current thread before freeing it.
878 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
880         mktime: port to OpenVMS
881         Problem reported by John E. Malmberg in:
882         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
883         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
885 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
887         manywarnings: port to GCC on 64-bit MS-Windows
888         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
889         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
890         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
892 2017-09-13  Bruno Haible  <bruno@clisp.org>
894         all: Replace many more http URLs by https URLs. Update stale URLs.
895         * users.txt: Remove mention of 'newts'.
896         * lib/localename.c: Update comment about LANG_SOTHO.
898 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
900         all: Replace many http URLs by https URLs.
902 2017-09-12  Bruno Haible  <bruno@clisp.org>
904         doc: Prefer https URLs where possible.
905         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
906         * doc/ld-output-def.texi: Remove unavailable URL.
908 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
910         maintainer-makefile: FTP -> HTTPS
911         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
912         of FTP, which is planned to be decommissioned on 2017-11-01.
914 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
916         libc-config: Fix __GNUC_PREREQ macro.
917         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
918         __GNUC_MINOR.
920 2017-09-09  Bruno Haible  <bruno@clisp.org>
922         gnulib-tool: Simplify commit from 2015-08-20.
923         * gnulib-tool (func_add_or_update): Remove local variable
924         is_binary_file.
926 2017-09-08  Bruno Haible  <bruno@clisp.org>
928         stddef: Avoid conflict with system-defined max_align_t.
929         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
930         Reported by Werner Lemberg <wl@gnu.org> in
931         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
932         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
933         (max_align_t): Define as a macro.
934         (GNULIB_defined_max_align_t): New macro. Guards against multiple
935         definitions of rpl_max_align_t in different copies of gnulib-generated
936         <stddef.h>.
938 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
940         libc-config: port to MSVC
941         Problems reported by Gisle Vanem in:
942         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
943         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
944         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
945         * m4/__inline.m4: New file.
946         * modules/libc-config (Files): Add it.
947         (Depends-on): Use it.
949         glob: Use enum for __glob_pattern_type result
950         From a patch proposed by Adhemerval Zanella in:
951         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
952         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
953         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
954         * lib/glob_internal.h (__glob_pattern_type):
955         * lib/glob.c (glob):
956         * lib/glob_pattern_p.c (__glob_pattern_p):
957         Use them.
959         glob: fix for use in glibc
960         Problem reported by Adhemerval Zanella in:
961         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
962         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
963         Do not redefine if _LIBC.
965 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
967         glob: fix bugs with long login names
968         Problem reported by Adhemerval Zanella in:
969         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
970         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
971         (glob): Use the same scratch buffer for both getlogin_r and
972         getpwnam_r.  Don’t require preallocation of the login name.  This
973         simplifies storage allocation, and corrects the handling of
974         long login names.
976 2017-09-02  Bruno Haible  <bruno@clisp.org>
978         dirent: Update doc.
979         * doc/posix-headers/dirent.texi: More concrete list of platforms.
981 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
983         glob: fix getpwnam_r errno typo
984         * lib/glob.c (glob): Fix longstanding misuse of errno after
985         getpwnam_r, which returns an error number rather than setting
986         errno.
988         glob: fix typo in recent change
989         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
990         Fix recently-introduced typo.
992 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
994         glob: don't save and restore errno unnecessarily
995         * lib/glob.c (glob): Don't save and restore errno
996         merely because we have getpwnam_r.
998         glob: don't assume getpwnam_r
999         * lib/glob.c (glob): Port recent patches to platforms
1000         lacking getpwnam_r.
1002         scratch_buffer: don’t use private glibc API
1003         Suggested by Florian Weimer in:
1004         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
1005         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
1006         * lib/scratch_buffer_grow.c: Rename to
1007         lib/malloc/scratch_buffer_grow.c.
1008         * lib/scratch_buffer_grow_preserve.c: Rename to
1009         lib/malloc/scratch_buffer_grow_preserve.c.
1010         * lib/scratch_buffer_set_array_size.c: Rename to
1011         lib/malloc/scratch_buffer_set_array_size.c.
1012         * lib/scratch_buffer.h: New file.
1013         * modules/scratch_buffer (Files, Makefile.am):
1014         Adjust to source-file renaming.
1016 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
1018         glob: use scratch_buffer instead of extend_alloca
1019         Much of the lib/glob.c part of this patch comes from a glibc patch
1020         proposed by Adhemerval Zanella in:
1021         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
1022         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
1023         included via glob.h, does this for us now.
1024         (__set_errno): Remove, as libc-config does this for us now.
1025         Include <scratch_buffer.h>.
1026         (GETPW_R_SIZE_MAX): Remove.
1027         (glob): Use struct scratch_buffer instead of extend_alloca.
1028         * lib/glob.in.h: Include libc-config.h rather than
1029         including <sys/cdefs.h> conditionally.
1030         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
1031         (__glibc_unlikely, __restrict, weak_alias):
1032         Remove, as libc-config does this for us now.
1033         * m4/glob.m4 (gl_PREREQ_GLOB):
1034         Remove sys/cdefs.h tests; no longer needed.
1035         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
1036         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
1038         scratch_buffer: new module
1039         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
1040         * lib/scratch_buffer_grow_preserve.c:
1041         * lib/scratch_buffer_set_array_size.c:
1042         New files, copied from glibc with very minor changes that can be
1043         copied back.
1044         * modules/scratch_buffer: New file.
1046         libc-config: new module
1047         * MODULES.html.sh: Add libc-config.
1048         * lib/cdefs.h: New file, copied from the GNU C Library with very
1049         minor changes that can be copied back.
1050         * lib/libc-config.h, modules/libc-config: New files.
1052 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
1054         glob: match dangling symlinks
1055         This fixes a bug I inadvertently introduced to Gnulib when I
1056         merged glibc glob back into gnulib on 2007-10-16.  This fix is
1057         inspired by a patch proposed for glibc by Adhemerval Zanella in:
1058         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
1059         * doc/posix-functions/glob.texi: Update list of affected platforms.
1060         * lib/glob.c (__lstat64): New macro.
1061         (is_dir): New function.
1062         (glob, glob_in_dir): Match symlinks even if they are dangling.
1063         (link_stat, link_exists_p): Remove.  All uses removed.
1064         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
1065         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
1066         * modules/glob-tests (Depends-on): Add symlink.
1067         * tests/test-glob.c: Include errno.h, unistd.h.
1068         (BASE): New macro.
1069         (main): Test dangling symlinks, if symlinks are supported.
1071         glob, backupfile: inode 0 is a valid inode number
1072         * doc/posix-functions/readdir.texi (readdir):
1073         * doc/posix-headers/dirent.texi (dirent.h):
1074         Document more readdir portability issues.
1075         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
1076         (numbered_backup): Don’t treat inode 0 any differently from
1077         other inode values.
1078         * lib/glob.c (struct readdir_result): Remove skip_entry member.
1079         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
1080         All uses removed.
1081         * modules/glob (Depends-on): Remove d-ino.
1083         glob: simplify symlink detection
1084         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
1085         uint8_t, as C99 does not require uint8_t.
1086         (struct readdir_result): Use it.  Do not define skip_entry unless
1087         it is needed; this saves a byte on platforms lacking d_ino.
1088         (readdir_result_type, readdir_result_skip_entry):
1089         New functions, replacing ...
1090         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
1091         ... these functions, which were removed.  This makes the callers
1092         easier to read.  All callers changed.
1093         (D_INO_TO_RESULT): Now empty if there is no d_ino.
1095 2017-08-30  Pádraig Brady  <P@draigBrady.com>
1097         fts-tests: tag as a longrunning-test so not included by default
1098         * modules/fts-tests: This test takes about 20s on current systems,
1099         and uses about 285M of space on ext4.
1101 2017-08-30  Pádraig Brady  <P@draigBrady.com>
1103         renameat2: fix compilation on alpine linux
1104         * m4/renameat.m4: Check for <linux/fs.h> presence.
1105         * lib/renameat2.h: Only include <linux/fs.h> if present.
1106         Reported by Assaf Gordon on Alpine Linux.
1108 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1110         glob: try to port recent changes to MS-Windows
1111         Problem reported by Bruno Haible in:
1112         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
1113         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
1114         * lib/glob.in.h (__glob_pattern_p): ... to here.
1116 2017-08-24  Eric Blake  <eblake@redhat.com>
1118         warnings: fix compilation with old autoconf
1119         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
1120         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
1121         AC_DEFUN.
1122         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
1123         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
1125 2017-08-24  Bruno Haible  <bruno@clisp.org>
1127         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
1128         * modules/glob (Depends-on): Add c99.
1130 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1132         glob: fix typo that broke platforms lacking d_ino
1133         This typo also hurt performance on GNU/Linux and similar hosts.
1134         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
1135         in previous change.
1137 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1139         glob: merge from glibc with Zanella glob changes
1140         Merge glob from glibc, with changes for glob proposed
1141         by Adhemerval Zanella in the thread starting here:
1142         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
1143         plus some fixes for this merge.
1144         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
1145         New files, ported from glibc.
1146         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
1147         with __restrict.
1148         (__size_t): Remove.  All uses replaced by size_t.
1149         (size_t): Define by defining __need_size_t and including <stddef.h>.
1150         This should work even in non-glibc platforms, where any name
1151         pollution is OK.
1152         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
1153         (struct stat64): Don’t worry about __GLOB_GNULIB.
1154         (glob, globfree, glob_pattern_p): Remove macros for
1155         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
1156         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
1157         but set errno.
1158         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
1159         removed since the glibc behavior works on null pointers.
1160         Do not include stdio.h; old SunOS is irrelevant now.
1161         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
1162         Include glob_internal.h.
1163         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
1164         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
1165         worked only coincidentally.
1166         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
1167         Remove macros; now done in glob.in.h.
1168         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
1169         (glob): Properly initialize glob structure with
1170         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
1171         Remove old code using SHELL since Bash no longer
1172         uses this.
1173         (glob, prefix_array): Separate MS code better.
1174         (glob, glob_in_dir): Use C99 decls before statements when glibc
1175         does.
1176         (glob_in_dir): Remove old Amiga and VMS code.
1177         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
1178         separate files.
1179         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
1180         (__glibc_unlikely):
1181         Move here from glob.c.
1182         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
1183         (weak_alias): New macro.
1184         (__size_t): Remove.  All uses replaced by size_t.
1185         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
1186         * modules/glob (Files): Add +lib/glob_internal.h,
1187         lib/glob_pattern_p.c, lib/globfree.c.
1188         (Depends-on): Remove snippet/arg-nonnull.
1190 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
1192         glob: port to clang's Undefined Sanitizer
1193         Problem reported by Tim Rühsen in:
1194         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
1195         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
1196         (glob_in_dir): Do not rely on undefined behavior in accessing
1197         struct members beyond their bounds.  Use a flexible array member
1198         instead.
1200 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
1202         vc-list-files: port to Solaris 10
1203         * build-aux/vc-list-files: Don't assume test -e works.
1205 2017-08-21  Karl Berry  <karl@freefriends.org>
1207         * doc/posix-functions/srandom.texi (srandom): typo }.
1209 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
1211         git-version-gen: port to Solaris 10
1212         Problem reported by Dagobert Michelsen in:
1213         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
1214         * build-aux/git-version-gen (v_from_git):
1215         Use expr instead of shell substitution.
1217 2017-08-19  Bruno Haible  <bruno@clisp.org>
1219         host-cpu-c-abi: Improve detection of MIPS ABI.
1220         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
1221         _MIPS_SIM.
1223 2017-08-17  Bruno Haible  <bruno@clisp.org>
1225         hypot tests: Fix test failure on FreeBSD 11.0/x86.
1226         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
1228 2017-08-17  Bruno Haible  <bruno@clisp.org>
1230         float: Fix LDBL_MIN value on FreeBSD/x86.
1231         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
1233 2017-08-17  Bruno Haible  <bruno@clisp.org>
1235         random: Fix test compilation failure on Cygwin 1.5.25.
1236         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
1237         HAVE_DECL_SETSTATE.
1238         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
1239         declared.
1240         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
1241         HAVE_DECL_SETSTATE.
1242         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
1243         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
1244         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
1245         * doc/posix-functions/random.texi: Likewise.
1246         * doc/posix-functions/setstate.texi: Likewise.
1247         * doc/posix-functions/srandom.texi: Likewise.
1249 2017-08-16  Bruno Haible  <bruno@clisp.org>
1251         stdnoreturn: Fix test compilation failure on Cygwin.
1252         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
1253         <stdnoreturn.h> replacement.
1254         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
1255         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
1257 2017-08-16  Bruno Haible  <bruno@clisp.org>
1259         thread: Fix conflict with pthread_sigmask module.
1260         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
1261         it's defined as a macro.
1262         * modules/thread (Depends-on): Add pthread_sigmask.
1264 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
1266         rename: port better to NetBSD
1267         * doc/posix-functions/rename.texi (rename): NetBSD 7
1268         does not have the link-count bug.
1269         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
1270         broken merely because rename ("a", "b") removes "a" when the two
1271         names are hard links to the same file.
1273 2017-08-16  Bruno Haible  <bruno@clisp.org>
1275         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
1276         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
1277         the target file names with '$(srcdir)/'.
1278         * modules/unicase/locale-language (Makefile.am): Likewise.
1279         * modules/unicase/special-casing (Makefile.am): Likewise.
1280         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
1281         * modules/unictype/category-byname (Makefile.am): Likewise.
1282         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
1283         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
1284         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
1285         * modules/unictype/property-byname (Makefile.am): Likewise.
1286         * modules/unictype/scripts (Makefile.am): Likewise.
1287         * modules/uninorm/composition (Makefile.am): Likewise.
1289 2017-08-16  Bruno Haible  <bruno@clisp.org>
1291         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
1292         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
1293         value for OpenBSD.
1295 2017-08-16  Bruno Haible  <bruno@clisp.org>
1297         rename, renameat: Update doc regarding NetBSD.
1298         * doc/posix-functions/rename.texi: Clarify that when using
1299         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
1300         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
1301         version.
1303 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
1305         renameat2: port better to macOS
1306         * lib/renameat2.c (renameat2): Use renameatx_np if available.
1308         futimens: don’t assume struct timespec layout
1309         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
1310         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
1311         * tests/test-fdutimensat.c (main):
1312         * tests/test-futimens.h (test_futimens):
1313         * tests/test-lutimens.h (test_lutimens):
1314         * tests/test-utimens.h (test_utimens):
1315         * tests/test-utimensat.c (main):
1316         Don’t assume that struct timespec is a two-member structure in
1317         tv_sec, tv_nsec order.  Although this is true on all platforms we
1318         know about, POSIX does not guarantee it.
1320         rename: document+test NetBSD rename
1321         Test failure reported by Bruno Haible in:
1322         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
1323         This is an area where NetBSD is better-behaved than POSIX,
1324         so allow the NetBSD behavior in tests.
1325         * doc/posix-functions/rename.texi:
1326         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
1327         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
1329 2017-08-15  Bruno Haible  <bruno@clisp.org>
1331         renameat: Ensure declaration in <stdio.h> on NetBSD.
1332         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
1333         * doc/posix-functions/renameat.texi: Mention this problem.
1335 2017-08-15  Bruno Haible  <bruno@clisp.org>
1337         duplocale: Work around NetBSD 7.0 bug.
1338         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
1339         * lib/duplocale.c: Add comment about NetBSD problem.
1340         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
1342 2017-08-15  Bruno Haible  <bruno@clisp.org>
1344         duplocale tests: Verify use with *_l functions.
1345         * modules/duplocale-tests (configure.ac): Test for uselocale and
1346         some *_l functions.
1347         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
1348         from main.
1349         (get_locale_dependent_values_from, test_with_locale_parameter): New
1350         functions.
1351         (main): Test both test_with_uselocale and test_with_locale_parameter.
1353 2017-08-15  Bruno Haible  <bruno@clisp.org>
1355         extensions: Enable NetBSD specific extensions.
1356         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
1358 2017-08-14  Bruno Haible  <bruno@clisp.org>
1360         open, openat: Update doc about O_CLOEXEC.
1361         * doc/posix-functions/open.texi: More concrete list of platforms.
1362         * doc/posix-functions/openat.texi: Likewise.
1364 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
1366         open: support O_CLOEXEC
1367         * NEWS, doc/posix-functions/open.texi:
1368         * doc/posix-functions/openat.texi: Document this.
1369         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
1370         (GNULIB_defined_O_CLOEXEC): New symbol.
1371         * lib/open.c: Include cloexec.h.
1372         (open): Support O_CLOEXEC.
1373         * lib/openat.c: Include cloexec.h.
1374         (rpl_openat): Support O_CLOEXEC.
1375         * lib/popen-safer.c: Do not include cloexec.h.
1376         (open_noinherit): Remove.
1377         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
1378         * lib/save-cwd.c: Do not include cloexec.h.
1379         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
1380         * m4/open-cloexec.m4: New file.
1381         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
1382         Replace 'open' if O_CLOEXEC is not present.
1383         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
1384         Replace 'openat' if O_CLOEXEC is not present.
1385         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
1386         * modules/open (Files): Add m4/open-cloexec.m4.
1387         (Depends-on): Depend on cloexec if replacing 'open'.
1388         * modules/openat (Files): Add m4/open-cloexec.m4.
1389         (Depends-on): Depend on cloexec if replacing openat.
1390         * modules/popen-safer (Depends-on): Remove cloexec.
1391         * modules/save-cwd (Depends-on): Remove cloexec, and add
1392         fd-safer-flag and 'open'.
1394 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
1396         reallocarray: minor fixes
1397         * doc/glibc-functions/reallocarray.texi: Update version numbers.
1398         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
1399         * modules/reallocarray (License): Change from GPL to LGPL.
1400         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
1401         Indent properly and don't use tabs.
1403 2017-08-13  Darshit Shah  <darnir@gnu.org>
1405         reallocarray: New module
1406         reallocarray is a new function in glibc 2.26 to safely allocate an array
1407         of memory locations with integer overflow protection.
1408         * MODULES.html.sh: Add reallocarray.
1409         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
1410         * lib/reallocarray.c: New file to implement module reallocarray.
1411         * lib/stdlib.in.h: Add function declarations for reallocarray.
1412         * m4/reallocarray.m4: New file.
1413         * m4/stdlib_h.m4: Declare reallocarray.
1414         * modules/reallocarray: New file.
1415         * modules/reallocarray-test: New file.
1416         * modules/stdlib: Coerce stdlib.h to export reallocarray.
1417         * tests/test-reallocarray.c: New test.
1419 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1421         dirent-safer: fix cloexec race
1422         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
1423         (opendir_safer): Use F_DUPFD_CLOEXEC.
1424         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
1425         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
1426         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
1427         instead of dup_safer.
1429         fts: fix cloexec races
1430         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
1431         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
1432         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
1433         (fd_ring_check): Set cloexec flag on new file descriptors.
1434         (fts_build, fd_ring_check): While we’re at it, make sure the
1435         resulting file descriptor is not 0, 1, or 2, since that is easy.
1437 2017-08-11  Bruno Haible  <bruno@clisp.org>
1439         fts tests: Fix link error.
1440         Reported by Tom G. Christensen in
1441         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
1442         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
1444 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1446         fts: port recent changes to CentOS 6
1447         Problem reported by Tom G. Christensen in:
1448         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
1449         * lib/fts.c (fsword): New type.
1450         (struct dev_type, filesystem_type): Use it.
1451         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
1452         Also, check for f_type only if fstatfs and sys/vfs.h work.
1454 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
1456         tempname: do not depend on secure_getenv
1457         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
1458         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
1459         * modules/tempname (Depends-on): Remove secure_getenv.
1461 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
1463         extensions: add _OPENBSD_SOURCE
1464         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
1466 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
1467             Bruno Haible  <bruno@clisp.org>
1469         manywarnings: Add support for C++.
1470         * build-aux/g++-warning.spec: New file.
1471         * m4/manywarnings-c++.m4: New file.
1472         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
1473         redirects to manywarnings-c++.m4.
1474         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
1476 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
1478         git-version-gen: another fix for tags with "-"
1479         * build-aux/git-version-gen: Improve fix for tags containing "-".
1480         Suggested by Markus Armbruster in:
1481         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
1483 2017-08-06  Bruno Haible  <bruno@clisp.org>
1485         warnings, manywarnings: Add support for multiple languages, not just C.
1486         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
1487         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
1488         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
1489         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
1490         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
1491         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
1492         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
1493         of the current language. If C++ is the current language, modify
1494         WARN_CXXFLAGS instead of WARN_CFLAGS.
1495         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
1496         gl_MANYWARN_ALL_GCC.
1497         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
1499 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
1501         git-version-gen: Fix for tags containing '-'
1503         Really old versions of git-describe (before v1.5.0, Feb 2007)
1504         don't have the number of commits in their long format output,
1505         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
1506         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
1507         recognizes both patterns, and normalizes the old format to the new one.
1509         Unfortunately, this normalization code gets confused when the tag
1510         contains '-'.  Reproducer:
1512             $ git-tag -m test v0.2-rc1
1513             $ build-aux/git-version-gen .tarball-version; echo
1514             build-aux/git-version-gen: WARNING: git rev-list failed
1515             UNKNOWN
1517         We take exact tag "v0.2-rc1" for the old format, extract the presumed
1518         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
1519         commits since tha tag.  Fails, because tag "v0.2" does not exist.
1521         * git-version-gen: We could perhaps drop support for versions from
1522         more than a decade ago.  But tightening the pattern match is easy
1523         enough, so do that.  Still breaks when you use version tags ending in
1524         something matching -g????, but you arguably get what you deserve then.
1526 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
1528         valgrind-tests: use ls, and cache
1529         * m4/valgrind-tests.m4: Test ls, not bash.
1530         Problem reported by Reuben Thomas.
1531         Also, cache the result so that it can be overridden.
1533 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
1535         manywarnings: port to 64-bit GCC builds of Emacs
1536         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
1537         object size rather than hardwiring 2147483647.  This is needed to
1538         build GNU Emacs, which has one conditional (and used
1539         only-in-theory) call to malloc with a literal greater than
1540         2147483647.
1542 2017-08-04  Bruno Haible  <bruno@clisp.org>
1544         Relax the license of some modules with no runtime code.
1545         * modules/std-gnu11 (License): Set to 'unlimited'.
1546         * modules/c99 (License): Likewise.
1547         Reported by Reuben Thomas <rrt@sc3d.org>.
1548         * modules/d-ino (License): Set to 'LGPL'.
1549         * modules/host-os (License): Likewise.
1550         * modules/longlong (License): Likewise.
1552 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
1554         renameat2: port to RHEL 7 + NFS
1555         * lib/renameat2.c (renameat2) [SYS_renameat2]:
1556         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
1557         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
1559 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
1561         renameat2: port to non-renameat platforms
1562         Problem reported for MSVC-2015 by Gisle Vanem in:
1563         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
1564         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
1565         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
1567 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
1569         manywarnings: port to 32-bit GCC bug
1570         Problem reported by Pino Toscano in:
1571         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
1572         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
1573         not 2**63 - 1, to work around the following GCC bug:
1574         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
1576 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
1578         backupfile: new function to validate backup suffix
1579         * lib/backupfile.c (set_simple_backup_suffix): New function.
1580         (backupfile_internal): Use it.
1582         canonicalize: fix EOVERFLOW commentary
1583         Problem reported by Bruno Haible in:
1584         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
1585         * lib/canonicalize.c (canonicalize_filename_mode):
1586         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
1588         Don't interpret EOVERFLOW to mean nonexistence
1589         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
1590         may be EOVERFLOW; this is likely more useful than reporting the
1591         stat errno.
1592         * lib/glob.c (link_stat): Rename from link_exists2_p and
1593         return -1/0 instead of 0/1.  Caller changed.
1594         * lib/glob.c (link_exists_p):
1595         * lib/renameat2.c (rename_noreplace, renameat2):
1596         * lib/tempname.c (try_nocreate):
1597         If errno == EOVERFLOW then the directory entry exists, so do not
1598         act as if it does not exist.
1600         backup-rename: new module
1601         It is like backupfile, except it avoids some race conditions,
1602         and it does not output to stderr or exit.
1603         * MODULES.html.sh: Add backup-rename.
1604         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
1605         * modules/backup-rename: New files.
1606         * lib/backupfile.c: Turn this into an internals file, which
1607         contains code common to backupfile and backup_rename.  Include
1608         backupfile-internal.h instead of backupfile.h.  Do not include
1609         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
1610         renameat2.h and fcntl.h.
1611         (BACKUP_NOMEM): New constant.
1612         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
1613         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
1614         (backupfile_internal): Rename from find_backup_file_name.
1615         Support new arg RENAME.
1616         (backup_args, backup_types, get_version, xget_version):
1617         Move to lib/backup-find.c.
1618         * lib/backupfile.h (backup_file_rename): New decl.
1619         * modules/backupfile (Files): Add lib/backup-internal.h,
1620         lib/backup-find.c.
1621         (Depends-on): Add dirfd, fcntl, renameat2.
1622         (lib_SOURCES): Add backup-find.c.
1624         renameat2: port better to older Solaris
1625         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
1626         Add goto to use a label, to silence picky compilers.
1628         fts-tests: port to gcc -Wwrite-strings
1629         * tests/test-fts.c (base, base_d): New static vars.
1630         (argv, remove_tree, main): Use them.
1632 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
1634         relocatable-lib{,-lgpl}: improve documentation
1635         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
1636         Various other updates.
1638 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
1639             Bruno Haible  <bruno@clisp.org>
1641         relocatable-lib{,-lgpl}: add Valgrind suppressions
1642         * lib/relocatable.valgrind: New file.
1643         * modules/relocatable-lib (Files): Add relocatable.valgrind.
1644         * modules/relocatable-lib-lgpl: Likewise.
1646 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
1648         relocatable: Make the license on the sources the GPL.
1649         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
1650         LGPL, which was a special case so that the relocatable source files
1651         could be used without gnulib-tool, to GPL. They can still be used under
1652         the LGPL, using the --lgpl option to gnulib-tool.
1654 2017-07-30  Bruno Haible  <bruno@clisp.org>
1656         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
1657         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
1658         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
1659         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
1660         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
1662 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
1664         faccessat: document AT_SYMLINK_NOFOLLOW issue
1665         * doc/posix-functions/faccessat.texi: Modernize platform list.
1666         Document AT_SYMLINK_NOFOLLOW limitation.
1668         renameat2: port to Solaris 10
1669         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
1670         with AT_SYMLINK_NOFOLLOW (which is not portable).
1671         (renameat): Undef before using, to avoid endless recursion when
1672         the replacement renameat calls renameat2 which calls the
1673         replacement renameat.
1674         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
1675         * modules/renameat2 (Depends-on): Remove faccessat.
1676         * modules/renameat-tests (test_renameat_LDADD):
1677         * modules/renameat2-tests (test_renameat2_LDADD):
1678         Remove $(LIB_EACCESS).
1680         renameat2: new module
1681         Although the Linux syscall renameat2 is not in glibc (yet?), it is
1682         useful to have access to its RENAME_NOREPLACE flag.
1683         * MODULES.html.sh (func_all_modules): Add renameat2.
1684         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
1685         * modules/renameat2-tests, tests/test-renameat2.c: New files.
1686         * lib/renameat.c (renameat): Move most of the implementation
1687         to renameat2, and just call renameat2.
1688         * modules/renameat (Files): Remove lib/at-func2.c.
1689         (Depends-on): Depend only on renameat2.
1690         (Include): Remove <fcntl.h>.
1691         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
1692         since renameat (via renameat2) might use faccessat.
1694 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
1696         vc-list-files: Adjust the script to support git worktrees
1697         * build-aux/vc-list-files: Require existence, not directory.
1699 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
1701         doc: bring MODULES.html.sh up to date
1702         Somehow a few months ago we stopped updating MODULES.html.sh.
1703         I don’t recall explicitly deciding this, so I updated it now.
1704         Alternatively I suppose we could remove it.
1705         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
1706         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
1707         truncate, utime, utime-h, windows-stat-inodes,
1708         windows-stat-override, windows-stat-timespec, year2038.  Sort.
1710 2017-07-26  Jim Meyering  <meyering@fb.com>
1712         fprintftime: fix build-break caused by recent renaming
1713         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
1714         "strftime.c".
1715         * modules/fprintftime: Depend directly on nstrftime.
1717 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
1719         regex: work with GCC7's -Werror=implicit-fallthrough=
1720         * lib/regex_internal.h (FALLTHROUGH): New macro.
1721         * lib/regcomp.c (peek_token_bracket, parse_expression):
1722         * lib/regexec.c (check_node_accept): Use it.
1724 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1726         fts: simplify fts_build
1727         * lib/fts.c (fts_build): Simplify, and be lazier about
1728         calling leaf_optimization.
1730         fts: three levels of leaf optimization
1731         * lib/fts.c (enum leaf_optimization): New type with three values.
1732         (S_MAGIC_AFS): New macro.  Sort them.
1733         (leaf_optimization): Rename from leaf_optimization_applies, and
1734         return enum leaf_optimization instead of bool.  All uses changed.
1735         Add cases for unknown type and for AFS.
1736         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
1738         fts: cache dirent_inode_sort_may_be_useful too
1739         * lib/fts.c (struct dev_type): New struct.
1740         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
1741         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
1742         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
1743         Now takes FTSENT const *, not int.  All uses changed.  Use
1744         filesystem_type to cache.
1745         (link_count_optimize_ok): Remove.  Caller changed to use
1746         leaf_optimization_applies, which now uses shared cache.
1748         fts: introduce MIN_DIR_NLINK
1749         * lib/fts.c (MIN_DIR_NLINK): New constant.
1750         Use it instead of 2, whenever we are talking about link counts.
1752         fts: nlink_t signedness fixups
1753         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
1754         so that root need not be a special case later.
1755         (fts_read): Remove now-redundant test for fts_level.
1756         Do not assume that nlink_t is signed.
1757         (fts_build): Remove useless decrement of nlinks.
1758         (fts_stat): Avoid unlikely signed integer overflow later, if
1759         nlink_t is signed.
1761         fts-tests: new module
1762         * modules/fts-tests, tests/test-fts.c: New files.
1764 2017-07-23  Bruno Haible  <bruno@clisp.org>
1766         Rename module 'strftime' to 'nstrftime'.
1767         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
1768         * lib/nstrftime.c: Renamed from lib/strftime.c.
1769         * modules/nstrftime: Renamed from modules/strftime.
1770         (Files, Makefile.am): Update.
1771         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
1772         Fix comment.
1773         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
1774         (Files, Makefile.am): Update.
1775         * modules/strftime: New file, an obsolete indirection.
1776         * doc/posix-functions/strftime.texi: Update reference.
1777         * config/srclist.txt: Update info.
1778         * NEWS: Mention the change.
1780 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
1782         malloca: Silence a warning from clang's memory sanitizer.
1783         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
1784         (freea): Use it.
1786 2017-07-18  Bruno Haible  <bruno@clisp.org>
1788         host-cpu-c-abi: Fix detection of MIPS ABI.
1789         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
1790         ABI, not the CPU instruction set.
1792 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
1794         explicit_bzero: new module
1795         The explicit_bzero function has been added to glibc.
1796         This module is intended to supports its use in GNU programs.
1797         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
1798         * m4/explicit_bzero.m4, modules/explicit_bzero:
1799         New files.
1800         * doc/gnulib.texi (Glibc string.h): Link to new doc.
1801         * lib/string.in.h (explicit_bzero): Declare.
1802         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
1803         * modules/string (string.h): Substitute its vars.
1805 2017-07-16  Bruno Haible  <bruno@clisp.org>
1807         threadlib: Support static linking.
1808         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
1809         set gl_cv_have_weak to 'no'.
1811 2017-07-16  Bruno Haible  <bruno@clisp.org>
1813         unicase/locale-language: Fix link dependencies.
1814         * modules/unicase/locale-language (Link): New section.
1815         * modules/unicase/locale-language-tests (Makefile.am): Link
1816         test-locale-language program with $(LIBTHREAD).
1818 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
1820         sys_socket: Add support for OpenVMS.
1821         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
1822         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
1824 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
1826         sys_resource: Add support for OpenVMS.
1827         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
1828         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
1830 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
1831             Bruno Haible  <bruno@clisp.org>
1833         math: Add support for OpenVMS.
1834         * lib/math.in.h [__VMS]: Include <fp.h>.
1835         * doc/posix-headers/math.texi: Mention OpenVMS issues.
1837 2017-07-15  Bruno Haible  <bruno@clisp.org>
1839         getdtablesize: Add minimal support for OpenVMS.
1840         Reported by John E. Malmberg <wb8tyw@qsl.net>.
1841         * modules/getdtablesize (Description): Fix.
1842         * lib/getdtablesize.c: Fix comment.
1843         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
1844         getdtablesize() function, even though the test fails.
1845         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
1846         limitation on OpenVMS.
1848 2017-07-13  Bruno Haible  <bruno@clisp.org>
1850         Revisit cross-compilation guesses.
1851         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
1853 2017-07-13  Bruno Haible  <bruno@clisp.org>
1855         Improve cross-compilation guesses for native Windows.
1856         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
1857         Windows.
1858         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
1859         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
1860         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
1861         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
1862         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
1863         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
1864         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
1865         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
1866         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
1867         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
1868         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
1869         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
1870         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
1871         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
1872         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
1873         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
1874         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
1875         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
1876         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
1877         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
1878         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
1879         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
1880         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
1881         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
1882         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
1883         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
1884         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
1885         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1886         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
1887         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
1888         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
1889         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
1890         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
1891         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
1892         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
1893         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
1894         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
1895         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
1896         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
1897         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
1898         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
1899         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
1900         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
1901         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
1902         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
1903         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
1904         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
1905         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
1906         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
1907         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
1908         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
1909         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
1910         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
1911         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
1912         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
1913         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
1914         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
1915         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
1916         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
1917         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
1918         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
1919         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
1920         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
1921         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
1922         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1923         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
1924         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
1925         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
1926         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
1927         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
1928         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
1929         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
1930         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
1931         * m4/regex.m4 (gl_REGEX): Likewise.
1932         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
1933         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
1934         gl_FUNC_REMAINDERF_WORKS): Likewise.
1935         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
1936         gl_FUNC_REMAINDERL_WORKS): Likewise.
1937         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
1938         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
1939         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
1940         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1941         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1942         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
1943         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
1944         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
1945         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
1946         * m4/stdint.m4 (gl_STDINT_H): Likewise.
1947         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
1948         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
1949         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
1950         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
1951         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
1952         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1953         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1954         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1955         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
1956         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
1957         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
1958         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
1959         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
1960         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
1961         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
1962         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
1963         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
1964         Likewise.
1965         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1966         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
1967         Windows. Enable also on Autoconf 2.70.
1968         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
1969         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
1970         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
1971         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
1972         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
1973         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
1974         for native Windows.
1975         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
1976         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
1978 2017-07-13  Bruno Haible  <bruno@clisp.org>
1980         Improve cross-compilation guesses for native Windows.
1981         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
1982         Windows.
1983         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
1984         memchr.m4.
1985         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
1987 2017-07-13  Bruno Haible  <bruno@clisp.org>
1989         Improve cross-compilation guesses for native Windows.
1990         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
1991         native Windows.
1992         (gl_FUNC_FFLUSH): Update accordingly.
1993         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
1994         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
1996 2017-07-11  Bruno Haible  <bruno@clisp.org>
1998         More systematic m4 quoting and indentation.
1999         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
2000         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
2001         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
2002         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
2003         * m4/host-os.m4 (gl_HOST_OS): Likewise.
2004         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
2005         gl_WINSIZE_IN_PTEM): Likewise.
2006         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
2007         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
2008         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
2009         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
2010         Correct indentation.
2011         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
2012         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
2013         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
2014         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
2015         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
2016         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
2018 2017-07-10  Bruno Haible  <bruno@clisp.org>
2020         round, roundf: Avoid compiler warning in configure test.
2021         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
2022         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2024 2017-07-10  Bruno Haible  <bruno@clisp.org>
2026         getlogin tests: Avoid #ifdefs when sharing code between modules.
2027         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
2028         * modules/getlogin-tests (Files): Likewise. Remove
2029         tests/test-getlogin_r.c.
2030         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
2031         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
2032         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
2033         getlogin().
2035 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
2037         getlogin: don’t assume one name per uid
2038         Problem reported by Wolfgang F. Muthmann (Bug#27640).
2039         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
2040         (ttyname): Remove test.
2041         * modules/getlogin_r-tests (ttyname): Remove test.
2042         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
2043         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
2044         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
2045         getlogin rather than getlogin_r.  This avoids code duplication.
2046         (main): Use isatty and fstat rather than ttyname and stat.
2047         Use getpwnam instead of getpwuid, to be portable to test platforms
2048         that have multiple login names for the same uid.
2050 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
2051             Bruno Haible  <bruno@clisp.org>
2053         glob: Fix more memory leaks.
2054         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
2055         returning.
2056         Reported by Tim Rühsen.
2058 2017-07-10  Bruno Haible  <bruno@clisp.org>
2060         Make sure $host and $host_os are defined when used.
2061         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
2062         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
2063         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
2064         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
2065         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2066         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
2067         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
2068         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
2069         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
2070         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
2071         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
2072         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
2073         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
2074         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
2075         m4_ifdef block.
2077 2017-07-09  Bruno Haible  <bruno@clisp.org>
2079         *printf: Fix cross-compilation guess for Solaris.
2080         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
2081         2010-12-21.
2083 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
2084             Bruno Haible  <bruno@clisp.org>
2086         vasnprintf: port to macOS 10.13
2087         Problem reported by comex in:
2088         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
2089         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
2091 2017-07-06  Bruno Haible  <bruno@clisp.org>
2093         imaxdiv tests: Fix logic.
2094         * tests/test-imaxdiv.c (main): Use == instead of =.
2095         Reported by Coverity.
2097 2017-07-06  Bruno Haible  <bruno@clisp.org>
2099         uninorm/filter: Fix use-after-free bug.
2100         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
2101         sortbuf == filter->sortbuf invariant.
2102         Reported by Coverity.
2104 2017-07-06  Bruno Haible  <bruno@clisp.org>
2106         glob: Fix more memory leaks.
2107         * lib/glob.c (glob): Free dirname before returning.
2108         Reported by Coverity and Tim Rühsen.
2110 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2112         parse-datetime: fix uninit var bug
2113         Reported by Bruno Haible in:
2114         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
2115         * lib/parse-datetime.y (parse_datetime2): Do not use
2116         uninitialized.
2118 2017-07-05  Bruno Haible  <bruno@clisp.org>
2120         doc: Update for MSVC 14.
2121         * doc/posix-headers/*.texi: Add info about MSVC 14.
2122         * doc/posix-functions/*.texi: Likewise.
2123         * doc/pastposix-functions/*.texi: Likewise.
2124         * doc/glibc-headers/*.texi: Likewise.
2125         * doc/glibc-functions/*.texi: Likewise.
2127 2017-07-05  Bruno Haible  <bruno@clisp.org>
2129         sched: Fix build failure on native Windows (regression from 2017-06-19).
2130         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
2132 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
2134         stdioext: Port to OpenVMS.
2135         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
2136         * lib/fpending.c (fpending): Remove non-working VMS specific code.
2137         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
2138         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
2139         * lib/fpurge.c (fpurge): Likewise.
2140         * lib/freadable.c (freadable): Likewise.
2141         * lib/freadahead.c (freadahead): Likewise.
2142         * lib/freading.c (freading): Likewise.
2143         * lib/freadptr.c (freadptr): Likewise.
2144         * lib/freadseek.c (freadseek): Likewise.
2145         * lib/fseeko.c (fseeko): Likewise.
2146         * lib/fseterr.c (fseterr): Likewise.
2147         * lib/fwritable.c (fwriteable): Likewise.
2148         * lib/fwriting.c (fwriting): Likewise.
2150 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
2152         glob: Declare variables at the very start of their scope.
2153         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
2154         its separate scope, so the functions will compile on Haiku.
2156 2017-07-01  Bruno Haible  <bruno@clisp.org>
2158         logbl: Work around a glibc bug on PowerPC64LE.
2159         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
2160         numbers.
2161         * doc/posix-functions/logbl.texi: Update.
2163 2017-06-29  Bruno Haible  <bruno@clisp.org>
2165         stat, fstat: Compile stat-w32.c only on platforms that need it.
2166         Suggested by Paul Eggert.
2167         * modules/stat (configure.ac): Request stat-w32.o only on native
2168         Windows.
2169         * modules/fstat (configure.ac): Likewise.
2171 2017-06-25  Bruno Haible  <bruno@clisp.org>
2173         stat: Improve last change.
2174         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
2176 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
2178         stat: port to xlc 12.01
2179         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
2180         12.01 complains "Compilation unit is empty."
2182 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
2184         xalloc-oversized: port to icc
2185         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
2186         __builtin_mul_overflow if ICC is defined, as this results in
2187         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
2188         20170213.
2190 2017-06-19  Bruno Haible  <bruno@clisp.org>
2192         classpath: Avoid including config.h twice, as it produces warnings.
2193         Reported by John E. Malmberg <wb8tyw@gmail.com>.
2194         * lib/classpath.h: Conditionalize the include of config.h.
2196 2017-06-19  Bruno Haible  <bruno@clisp.org>
2197             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
2199         sched: Fix compilation failure on OpenVMS.
2200         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
2201         test whether <pthread.h> exists and defines struct sched_param.
2202         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
2204 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
2206         diffseq: port to GCC 7 with --enable-gcc-warnings
2207         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
2208         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
2209         not complain about big_snake being defined but not used.
2211 2017-06-15  Bruno Haible  <bruno@clisp.org>
2213         gettext-h: Update theoretical condition for use of variable size arrays.
2214         Reported by Paul Eggert.
2215         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
2216         to include the theoretical condition for availability of variable size
2217         arrays, if we could trust the value of __STDC_VERSION__.
2219 2017-06-12  Bruno Haible  <bruno@clisp.org>
2221         Relicense some modules under LGPLv2+.
2222         Daiki Ueno's approval is in
2223         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
2224         * modules/uniwidth/base (License): Change to LGPLv2+.
2225         * modules/uniwidth/width (License): Likewise.
2227 2017-06-11  Bruno Haible  <bruno@clisp.org>
2229         localename: Fix test failure on DragonFly BSD.
2230         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
2231         like FreeBSD.
2233 2017-06-11  Bruno Haible  <bruno@clisp.org>
2235         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
2236         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
2237         * lib/float.in.h: Likewise.
2238         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
2240 2017-06-11  Bruno Haible  <bruno@clisp.org>
2242         gnulib-tool: Clean up after autotools.
2243         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
2244         useless directory left over by the Autotools.
2246 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
2248         getopt-posix: port to glibc 2.25.90
2249         Problem reported by Daniel P. Berrange in:
2250         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
2251         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
2252         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
2253         #undef if __GETOPT_PREFIX is defined.
2255 2017-06-11  Bruno Haible  <bruno@clisp.org>
2257         strtod-obsolete: Fix license.
2258         * modules/strtod-obsolete (License): Change to LGPL.
2260 2017-06-10  Jim Meyering  <meyering@fb.com>
2262         maint: update to work with GCC7's -Werror=implicit-fallthrough=
2263         * lib/savewd.c (FALLTHROUGH): Define.
2264         (savewd_save, savewd_restore): Use this, rather than a comment,
2265         whenever one switch case falls through into the next.
2267 2017-06-08  Bruno Haible  <bruno@clisp.org>
2269         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
2270         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
2271         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
2272         case.
2274 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
2276         doc: remove robots, add prereqs
2277         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
2278         builds.  Simon's robot site does not seem to be up, so remove
2279         mentions of it for now.
2281 2017-06-08  Bruno Haible  <bruno@clisp.org>
2283         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
2284         * gnulib-tool (func_symlink_target): New function, extracted from
2285         func_symlink.
2286         (func_symlink, func_symlink_if_changed): Use it.
2288 2017-06-08  Bruno Haible  <bruno@clisp.org>
2290         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
2291         * gnulib-tool (func_ln_s): Determine cp_src correctly.
2293 2017-06-07  Bruno Haible  <bruno@clisp.org>
2295         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
2296         Reported by John E. Malmberg <wb8tyw@gmail.com> in
2297         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
2298         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
2299         override, pass 2 arguments to getcwd, not 3.
2301 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
2303         same-inode: port better to VMS 8.2 and later
2304         Problem reported by John E. Malmberg in:
2305         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
2306         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
2307         Use the usual POSIX definition.
2308         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
2310 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
2312         error: fix POSIX violation for va_end
2313         Problem reported by Bruno Haible in:
2314         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
2315         * lib/error.c (error_tail): Do not call va_end here.
2316         (error, error_at_line): Call it here instead.
2318 2017-05-28  Bruno Haible  <bruno@clisp.org>
2320         c-strtod: Make it usable in C++ mode.
2321         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
2323 2017-05-25  Jim Meyering  <meyering@fb.com>
2325         quotearg: fix compilation failure due to FALLTHROUGH misuse
2326         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
2327         macro back to /* fall through */ comment.  The macro can apply only
2328         to a following case statement.  Reported by Assaf Gordon.
2330 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
2332         intprops: port to recent icc
2333         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
2334         but does not support __builtin_add_overflow etc.
2335         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
2336         Define to 0.
2338 2017-05-23  Karl Berry  <karl@freefriends.org>
2340         * config/srclist.txt (iconv.m4): sync broken, comment out
2341         until (hopefully) the next gettext release.
2343 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
2345         Remove repeated words in comments.
2347 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
2349         fallthrough: reinstate a FALLTHROUGH instance in quotearg
2350         quotearg.c: Reinstate this instance which is significant
2351         when the if branch is not taken.
2353 2017-05-21  Bruno Haible  <bruno@clisp.org>
2355         gnulib-tool: Add options to create hard links.
2356         * gnulib-tool (func_usage): Document options --hardlink,
2357         --local-hardlink, --more-hardlinks.
2358         (func_symlink): Renamed from func_ln.
2359         (func_symlink_if_changed): Renamed from func_ln_if_changed.
2360         (func_hardlink): New function.
2361         (copymode, lcopymode): New variables.
2362         (symbolic, lsymbolic): Remove variables.
2363         (Options): Implement options --hardlink, --local-hardlink,
2364         --more-hardlinks.
2365         (func_should_link): Renamed from func_should_symlink. Set copyaction.
2366         (func_add_file, func_update_file): Update invocation of
2367         func_should_link. Invoke func_hardlink when appropriate.
2368         (func_import): Update comments.
2369         (func_create_testdir): Update invocation of func_should_link. Invoke
2370         func_hardlink when appropriate.
2371         Finally, invoke 'git update-index --refresh' to mitigate the effects of
2372         the hard links on git.
2374 2017-05-20  Bruno Haible  <bruno@clisp.org>
2376         argp: Simplify bit manipulation.
2377         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
2378         on a signed integer type.
2380 2017-05-20  Bruno Haible  <bruno@clisp.org>
2382         Avoid wrong configure results with gcc -fsanitize=address.
2383         This completes the work done on 2016-02-06 on this topic.
2384         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
2385         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
2386         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2387         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
2388         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
2389         returning.
2390         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
2391         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
2392         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2393         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
2394         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
2395         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
2396         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
2397         free allocated memory before returning.
2398         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
2399         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
2400         objects before returning.
2401         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
2402         returning.
2404 2017-05-20  Bruno Haible  <bruno@clisp.org>
2406         gnulib-tool: Don't create hard links between gnulib and its testdirs.
2407         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
2409 2017-05-20  Bruno Haible  <bruno@clisp.org>
2411         argp, tsearch tests: Fix file list.
2412         * modules/argp-tests (Files): Add tests/macros.h.
2413         * modules/tsearch-tests (Files): Likewise.
2415 2017-05-20  Bruno Haible  <bruno@clisp.org>
2417         getopt-posix tests: Remove redundant include.
2418         * tests/test-getopt.h: Don't include "macros.h". It's already included
2419         by tests/test-getopt-main.h.
2421 2017-05-19  Jim Meyering  <meyering@fb.com>
2423         dfa: two small simplifications
2424         * lib/dfa.c (build_state): Avoid repeating longer expressions.
2426 2017-05-18  Jim Meyering  <meyering@fb.com>
2428         fallthrough: update for GCC 7/8
2429         * lib/quotearg.c (FALLTHROUGH): New macro.
2430         Use it whenever one switch case falls through into the next,
2431         replacing "/* Fall through */" comments.  This exposed one
2432         instance of an unwarranted "fall through" comment: unwarranted
2433         because it preceded a "goto" label not a case statement.
2434         * lib/freopen-safer.c (freopen_safer): Likewise.
2435         * lib/fts.c (leaf_optimization_applies): Likewise.
2436         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
2437         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
2438         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
2439         tests/macros.h for the definition.
2440         * tests/test-argp.c (group1_parser): Likewise.
2441         * tests/test-getopt.h (getopt_loop): Likewise.
2443 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2445         argp: fix shift bug
2446         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
2447         behavior on shift overflow, caught by gcc -fsanitize=undefined.
2449         argp: fix pointer-subtraction bug
2450         * lib/argp-help.c (hol_append): Don’t subtract pointers to
2451         different arrays, as this can run afoul of -fcheck-pointer-bounds.
2452         See the thread containing Bruno Haible’s report in:
2453         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
2455 2017-05-19  Bruno Haible  <bruno@clisp.org>
2457         printf-posix tests: Avoid test failure with "gcc --coverage".
2458         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
2459         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
2460         than 5000000.
2461         * tests/test-fprintf-posix2.c (main): Likewise.
2463 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
2465         closeout: don’t close stderr when sanitizing
2466         * NEWS: Document this.
2467         * lib/closeout.c (__has_feature): New macro, if not already defined.
2468         (SANITIZE_ADDRESS): New constant.
2469         (close_stdout): Don’t close stderr if sanitizing addresses.
2471 2017-05-19  Bruno Haible  <bruno@clisp.org>
2473         get-rusage-data tests: Avoid failure on Linux/glibc.
2474         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
2475         on glibc systems.
2477 2017-05-18  Bruno Haible  <bruno@clisp.org>
2479         localename: Include necessary header files on Cygwin.
2480         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
2481         where NL_LOCALE_NAME is defined.
2483 2017-05-18  Bruno Haible  <bruno@clisp.org>
2485         gettext: Update macros from gettext git.
2486         * m4/intldir.m4: Require Autoconf >= 2.60.
2487         * m4/progtest.m4: Fix typos in copyright notice.
2489 2017-05-18  Bruno Haible  <bruno@clisp.org>
2491         copy-file tests: Fix link error (regression from 2017-05-01).
2492         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2493         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
2494         $(LIB_CLOCK_GETTIME).
2496 2017-05-18  Bruno Haible  <bruno@clisp.org>
2498         unicase/special-casing: Fix incompatibility with gperf-3.0.4
2499         (regression from 2017-02-13).
2500         * lib/unicase/special-casing.in.h: Renamed from
2501         lib/unicase/special-casing.h.
2502         * modules/unicase/special-casing (Files): Add
2503         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
2504         (Makefile.am): Add rule for generating unicase/special-casing.h.
2505         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
2506         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
2507         not "special-casing.h".
2508         * lib/unicase/u*.c: Likewise.
2510 2017-05-17  Bruno Haible  <bruno@clisp.org>
2512         README: Don't ask people to read a TeXinfo file.
2513         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
2514         * README: Tell people how to read the HTML formatted manual.
2516 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
2518         parse-datetime: Fix memleak
2519         * lib/parse-datetime.y (parse_datetime2): Cleanup on
2520         localtime_rz() failure.
2522 2017-05-16  Bruno Haible  <bruno@clisp.org>
2524         javacomp: Fix handle leak.
2525         Found by Coverity.
2526         * lib/javacomp.c (get_classfile_version): Close fd before returning.
2528 2017-05-16  Bruno Haible  <bruno@clisp.org>
2530         relocate: Make it easier to reclaim allocated memory.
2531         * lib/relocatable.h (relocate2): New declaration/macro.
2532         * lib/relocatable.c (relocate2): New function.
2533         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
2534         relocate2 function.
2535         * lib/localcharset.c (relocate2): Define fallback.
2536         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
2537         allocated memory.
2538         * lib/javaversion.c (relocate2): Define fallback.
2539         (javaexec_version): Invoke relocate2 instead of relocate. Free the
2540         allocated memory.
2542 2017-05-16  Bruno Haible  <bruno@clisp.org>
2544         relocate: Simplify EMX specific code.
2545         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
2546         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
2548 2017-05-16  Bruno Haible  <bruno@clisp.org>
2550         sigpipe tests: Fix file list.
2551         * modules/sigpipe-tests (Files): Add tests/macros.h.
2553 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
2555         manywarnings: update for GCC 7
2556         * build-aux/gcc-warning.spec:
2557         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
2558         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
2559         requires a non-comment fallthrough attribute.  This is a bit
2560         cleaner than the comment versions.
2561         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
2562         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
2563         Use it whenever one switch case falls through into the next.
2564         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
2565         Use FALLTHROUGH macro.
2567 2017-05-15  Bruno Haible  <bruno@clisp.org>
2569         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
2570         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
2571         @ALLOCA@, not @LTALLOCA@.
2573 2017-05-15  Bruno Haible  <bruno@clisp.org>
2575         sys_select: Avoid "was expanded before it was required" warning.
2576         * modules/sys_select (configure.ac): Require, not invoke,
2577         gl_HEADER_SYS_SELECT.
2579 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
2581         gnulib-tool: improve GNU Make debugging
2582         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
2583         Report autoconf diagnostics when it fails, in the output makefile.
2585 2017-05-14  Bruno Haible  <bruno@clisp.org>
2587         stat-time tests: Improve comment.
2588         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
2590 2017-05-14  Bruno Haible  <bruno@clisp.org>
2592         same-inode: Adapt for windows-stat-inodes.
2593         * lib/same-inode.h: Include <sys/types.h>.
2594         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
2595         * modules/same-inode (Depends-on): Add sys_types.
2597 2017-05-14  Bruno Haible  <bruno@clisp.org>
2599         windows-stat-inodes: New module.
2600         * m4/windows-stat-inodes.m4: New file.
2601         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
2602         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
2603         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
2604         (_GL_WINDOWS_STAT_INODES): New macro.
2605         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
2606         (GetFileInformationByHandleExFunc): New variable.
2607         (initialize): Initialize it.
2608         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
2609         st_ino appropriately.
2610         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
2611         a fallback, because it does not provide st_dev and st_ino values.
2612         * modules/fstat (Depends-on): Add 'verify'.
2613         * modules/windows-stat-inodes: New file.
2614         * doc/windows-stat-inodes.texi: New file.
2615         * doc/gnulib.texi: Include it.
2616         * doc/posix-headers/sys_stat.texi: Mention the new module.
2618 2017-05-14  Bruno Haible  <bruno@clisp.org>
2620         stat-time tests: Workaround for native Windows.
2621         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
2622         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
2623         New variables.
2624         (initialize_filenames): New function.
2625         (main): Invoke it.
2626         (cleanup, prepare_test): Update.
2628 2017-05-14  Bruno Haible  <bruno@clisp.org>
2630         stat-time: Adapt for windows-stat-timespec.
2631         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
2632         entire st_ctim field.
2634 2017-05-13  Jim Meyering  <meyering@fb.com>
2636         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
2637         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
2638         file that uses the assume macro, claiming that verify.h is unused.
2640 2017-05-13  Bruno Haible  <bruno@clisp.org>
2642         Use symbolic values for _WIN32_WINNT.
2643         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
2644         * lib/sethostname.c (_WIN32_WINNT): Likewise.
2646 2017-05-13  Bruno Haible  <bruno@clisp.org>
2648         year2038: New module.
2649         * m4/year2038.m4: New file.
2650         * modules/year2038: New file.
2651         * doc/year2038.texi: New file.
2652         * doc/gnulib.texi: Include it.
2654 2017-05-13  Bruno Haible  <bruno@clisp.org>
2656         largefile: Simplify.
2657         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
2658         of _GL_WINDOWS_64_BIT_ST_SIZE.
2660 2017-05-13  Bruno Haible  <bruno@clisp.org>
2662         largefile: Improve and document.
2663         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
2664         the mingw headers already define 'stat' appropriately.
2665         * modules/largefile (Description): Clarify.
2666         * doc/largefile.texi: New file.
2667         * doc/gnulib.texi: Include it.
2668         * doc/posix-headers/sys_types.texi: Update.
2670 2017-05-13  Bruno Haible  <bruno@clisp.org>
2672         truncate: New module.
2673         * lib/unistd.in.h (truncate): New declaration.
2674         * lib/truncate.c: New file.
2675         * m4/truncate.m4: New file.
2676         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
2677         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
2678         REPLACE_TRUNCATE.
2679         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
2680         HAVE_TRUNCATE, REPLACE_TRUNCATE.
2681         * modules/truncate: New file.
2682         * tests/test-unistd-c++.cc (truncate): Test signature.
2683         * doc/posix-functions/truncate.texi: Mention the new module.
2685         * tests/test-truncate.c: New file.
2686         * modules/truncate-tests: New file.
2688 2017-05-13  Bruno Haible  <bruno@clisp.org>
2690         windows-stat-timespec: New module.
2691         * modules/windows-stat-timespec: New file.
2692         * m4/windows-stat-timespec.m4: New file.
2693         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
2694         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
2695         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
2696         fields st_atim, st_mtim, st_ctim.
2697         (st_atime, st_mtime, st_ctime): Define as macros.
2698         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
2699         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
2700         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
2701         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
2702         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
2703         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
2704         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
2705         FILETIME to 'struct timespec', not 'time_t'.
2706         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
2707         FILETIME to 'struct timespec', not 'time_t'.
2708         * lib/stat-time.h (STAT_TIMESPEC): Define also if
2709         _GL_WINDOWS_STAT_TIMESPEC.
2710         * doc/windows-stat-timespec.texi: New file.
2711         * doc/gnulib.texi: Include it.
2713 2017-05-13  Bruno Haible  <bruno@clisp.org>
2715         windows-stat-override: New module.
2716         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
2717         definition. Define GNULIB_defined_struct_stat.
2718         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
2719         link error if this symbol is used and the corresponding module is not
2720         in use.
2721         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
2722         GNULIB_OVERRIDES_STRUCT_STAT.
2723         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
2724         GNULIB_OVERRIDES_STRUCT_STAT.
2725         * modules/sys_stat (Makefile.am): Substitute
2726         GNULIB_OVERRIDES_STRUCT_STAT.
2727         * modules/windows-stat-override: New file.
2729 2017-05-13  Bruno Haible  <bruno@clisp.org>
2731         fstat: Fix module dependency conditions.
2732         * modules/fstat (Depends-on): Fix typo.
2734 2017-05-13  Bruno Haible  <bruno@clisp.org>
2736         stat, fstat: Complete removal of old native Windows code.
2737         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
2738         * lib/fstat.c: Likewise.
2739         * lib/stat-w32.c: Likewise.
2741 2017-05-13  Bruno Haible  <bruno@clisp.org>
2743         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
2744         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
2746 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
2748         getopt-posix: port to mingw
2749         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
2750         Problem reported by Daniel P. Berrage in:
2751         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
2753 2017-05-11  Bruno Haible  <bruno@clisp.org>
2755         gettimeofday: Increase precision on mingw.
2756         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
2757         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
2758         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
2759         GetSystemTimePreciseAsFileTime based implementation always.
2760         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
2761         mingw.
2763 2017-05-11  Bruno Haible  <bruno@clisp.org>
2765         poll: Fix confusion between SOCKETs and FDs on native Windows.
2766         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
2767         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
2769 2017-05-11  Bruno Haible  <bruno@clisp.org>
2771         doc: Clarify doc about socket functions on native Windows.
2772         This reworks doc that was added on 2008-09-29.
2773         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
2774         clearer wording.
2775         * doc/posix-functions/accept.texi: Use clearer wording.
2776         * doc/posix-functions/bind.texi: Likewise.
2777         * doc/posix-functions/connect.texi: Likewise.
2778         * doc/posix-functions/getpeername.texi: Likewise.
2779         * doc/posix-functions/getsockname.texi: Likewise.
2780         * doc/posix-functions/getsockopt.texi: Likewise.
2781         * doc/posix-functions/ioctl.texi: Likewise.
2782         * doc/posix-functions/listen.texi: Likewise.
2783         * doc/posix-functions/recv.texi: Likewise.
2784         * doc/posix-functions/recvfrom.texi: Likewise.
2785         * doc/posix-functions/send.texi: Likewise.
2786         * doc/posix-functions/sendto.texi: Likewise.
2787         * doc/posix-functions/setsockopt.texi: Likewise.
2788         * doc/posix-functions/shutdown.texi: Likewise.
2789         * doc/posix-functions/socket.texi: Likewise.
2791 2017-05-10  Bruno Haible  <bruno@clisp.org>
2793         poll: Fix link error on native Windows.
2794         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
2796 2017-05-10  Bruno Haible  <bruno@clisp.org>
2798         time: Fix missing initialization of HAVE_TIMEZONE_T.
2799         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
2800         here...
2801         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
2802         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
2803         gl_HEADER_SYS_TIME_H_DEFAULTS.
2804         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
2805         (configure.ac): Remove useless quoting.
2807 2017-05-10  Bruno Haible  <bruno@clisp.org>
2809         Implement a way to opt out from MSVC support, part 2.
2810         * modules/msvc-inval (Include): Document recommended idiom.
2811         * modules/msvc-nothrow (Include): Likewise.
2813         Implement a way to opt out from MSVC support.
2814         This is useful for Emacs.
2815         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
2816         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
2817         * lib/error.c: Likewise.
2818         * lib/fcntl.c: Likewise.
2819         * lib/flock.c: Likewise.
2820         * lib/fstat.c: Likewise.
2821         * lib/fsync.c: Likewise.
2822         * lib/ioctl.c: Likewise.
2823         * lib/isapipe.c: Likewise.
2824         * lib/lseek.c: Likewise.
2825         * lib/nonblocking.c: Likewise.
2826         * lib/poll.c: Likewise.
2827         * lib/select.c: Likewise.
2828         * lib/sockets.h: Likewise.
2829         * lib/sockets.c: Likewise.
2830         * lib/stdio-read.c: Likewise.
2831         * lib/stdio-write.c: Likewise.
2832         * lib/utimens.c: Likewise.
2833         * lib/w32sock.h: Likewise.
2834         * lib/w32spawn.h: Likewise.
2835         * tests/test-cloexec.c: Likewise.
2836         * tests/test-dup-safer.c: Likewise.
2837         * tests/test-dup2.c: Likewise.
2838         * tests/test-dup3.c: Likewise.
2839         * tests/test-fcntl.c: Likewise.
2840         * tests/test-pipe.c: Likewise.
2841         * tests/test-pipe2.c: Likewise.
2842         * lib/ftruncate.c: Likewise.
2843         (chsize_nothrow): Renamed from chsize.
2844         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
2845         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
2846         * lib/close.c: Likewise.
2847         * lib/dup.c: Likewise.
2848         * lib/fclose.c: Likewise.
2849         * lib/raise.c: Likewise.
2850         * tests/test-fgetc.c: Likewise.
2851         * tests/test-fputc.c: Likewise.
2852         * tests/test-fread.c: Likewise.
2853         * tests/test-fwrite.c: Likewise.
2854         * lib/getdtablesize.c: Likewise.
2855         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
2856         * lib/isatty.c: Don't include msvc-inval.h if
2857         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
2858         Include <io.h> as an alternative to msvc-nothrow.h.
2859         * lib/read.c: Likewise.
2860         * lib/write.c: Likewise.
2861         * lib/dup2.c: Likewise.
2862         (dup2_nothrow): New function.
2863         (ms_windows_dup2): Use it.
2864         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
2865         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
2866         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
2867         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
2868         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
2869         * m4/read.m4 (gl_FUNC_READ): Likewise.
2870         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
2871         * doc/windows-without-msvc.texi: New file.
2872         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
2873         section.
2875 2017-05-10  Bruno Haible  <bruno@clisp.org>
2877         wait-process: Adjust native Windows support.
2878         * lib/wait-process.c: Use the usual condition for recognizing a native
2879         Windows platform.
2881 2017-05-10  Bruno Haible  <bruno@clisp.org>
2883         doc: New chapter "Native Windows Support".
2884         * doc/gnulib.texi (Native Windows Support): New chapter.
2885         * doc/windows-libtool.texi: Small wording changes.
2886         * doc/windows-sockets.texi: Small wording and formatting changes.
2888 2017-05-10  Bruno Haible  <bruno@clisp.org>
2890         doc: Move section "Library version handling".
2891         * doc/gnulib.texi: Move section "Library version handling"
2892         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
2894 2017-05-10  Bruno Haible  <bruno@clisp.org>
2896         doc: Move section "Running self-tests under valgrind".
2897         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
2898         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
2900 2017-05-10  Bruno Haible  <bruno@clisp.org>
2902         doc: New chapter "Build Infrastructure Modules".
2903         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
2905 2017-05-10  Bruno Haible  <bruno@clisp.org>
2907         Prepare for reordering sections in the manual.
2908         * doc/gnulib.texi: Move several sections to separate files. Include
2909         these files.
2910         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
2911         * doc/obsolete.texi: Likewise.
2912         * doc/extra-tests.texi: Likewise.
2913         * doc/transversal.texi: Likewise.
2914         * doc/namespace.texi: Likewise.
2915         * doc/check-version.texi: Likewise.
2916         * doc/windows-sockets.texi: Likewise.
2917         * doc/windows-libtool.texi: Likewise.
2918         * doc/licenses-texi.texi: Likewise.
2919         * doc/build-automation.texi: Likewise.
2920         * doc/c-locale.texi: Likewise.
2922 2017-05-10  Bruno Haible  <bruno@clisp.org>
2924         Fix instructions how to update manual on www.gnu.org.
2925         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
2927 2017-05-09  Bruno Haible  <bruno@clisp.org>
2929         tzset: Expand comment about TZ problem on native Windows.
2930         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
2931         Paul Eggert.
2932         * lib/ctime.c (rpl_ctime): Likewise.
2933         * lib/localtime.c (rpl_localtime): Likewise.
2934         * lib/mktime.c (mktime): Likewise.
2935         * lib/strftime-fixes.c (rpl_strftime): Likewise.
2936         * lib/wcsftime.c (rpl_wcsftime): Likewise.
2938 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
2940         intprops: don’t depend on ‘verify’
2941         Problem reported by Ævar Arnfjörð Bjarmason in:
2942         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
2943         * lib/intprops.h: Do not include verify.h, and move compile-time
2944         checks from here ...
2945         * tests/test-intprops.c (main): ... to here, if they’re not here
2946         already.  Check widths of other standard integer types.
2947         * modules/intprops (Depends-on): Remove ‘verify’.
2949 2017-05-07  Bruno Haible  <bruno@clisp.org>
2951         utimens: On native Windows, support 100ns resolution also if fd < 0.
2952         * lib/utime.in.h: Include <time.h>.
2953         (_gl_utimens_windows): New declaration.
2954         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
2955         (utime): Invoke it.
2956         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
2957         instead of utime.
2958         * modules/utime (Depends-on): Add 'time'.
2960 2017-05-07  Bruno Haible  <bruno@clisp.org>
2962         utimens: Improve error code on native Windows.
2963         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
2964         error code EACCES, not EINVAL.
2966 2017-05-07  Bruno Haible  <bruno@clisp.org>
2968         utime: Handle more Windows error codes.
2969         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
2970         Based on explanations by Billy O'Neal.
2972 2017-05-05  Bruno Haible  <bruno@clisp.org>
2974         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
2975         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
2976         union.
2977         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
2978         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
2979         value of cipher->IV.
2981 2017-05-05  Bruno Haible  <bruno@clisp.org>
2983         wctype-h-c++-tests: Update.
2984         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
2986 2017-05-05  Bruno Haible  <bruno@clisp.org>
2988         wchar-c++-tests: Update.
2989         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
2991 2017-05-05  Bruno Haible  <bruno@clisp.org>
2993         utime-h-c++-tests: New module.
2994         * tests/test-utime-h-c++.cc: New file.
2995         (utime): Declare, missing since 2017-04-30.
2996         * modules/utime-h-c++-tests: New file.
2998 2017-05-05  Bruno Haible  <bruno@clisp.org>
3000         unistd-c++-tests: Update.
3001         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
3002         (read): Declare, missing since 2011-04-15.
3003         (sethostname): Declare, missing since 2011-12-03.
3005 2017-05-05  Bruno Haible  <bruno@clisp.org>
3007         time-c++-tests: Update.
3008         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
3009         (localtime, gmtime): Declare, missing since 2017-04-30.
3010         (ctime): Declare, missing since 2017-04-30.
3011         (strftime): Declare, missing since 2017-04-30.
3012         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
3013         2015-07-24.
3015 2017-05-05  Bruno Haible  <bruno@clisp.org>
3017         sys_resource-c++-tests: New module.
3018         * tests/test-sys_resource-c++.cc: New file.
3019         (getrusage): Declare, missing since 2012-04-13.
3020         * modules/sys_resource-c++-tests: New file.
3022 2017-05-05  Bruno Haible  <bruno@clisp.org>
3024         strings-c++-tests: New module.
3025         * tests/test-strings-c++.cc: New file.
3026         (ffs): Declare, missing since 2011-07-12.
3027         * modules/strings-c++-tests: New file.
3029 2017-05-05  Bruno Haible  <bruno@clisp.org>
3031         string-c++-tests: Update.
3032         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
3033         (ffsll): Declare, missing since 2011-07-15.
3035 2017-05-05  Bruno Haible  <bruno@clisp.org>
3037         stdlib-c++-tests: Update.
3038         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
3039         2011-10-18.
3040         (ptsname_r): Declare, missing since 2011-11-07.
3041         (qsort_r): Declare, missing since 2014-08-29.
3042         (random, srandom, initstate, setstate): Declare, missing since
3043         2012-01-14.
3044         (secure_getenv): Declare, missing since 2013-02-05.
3046 2017-05-05  Bruno Haible  <bruno@clisp.org>
3048         stdio-c++-tests: Update.
3049         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
3051 2017-05-05  Bruno Haible  <bruno@clisp.org>
3053         signal-h-c++-tests: Update.
3054         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
3056 2017-05-05  Bruno Haible  <bruno@clisp.org>
3058         math-c++-tests: Update.
3059         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
3060         (fma): Declare, missing since 2011-10-17.
3061         (fmal): Declare, missing since 2011-10-17.
3063 2017-05-05  Bruno Haible  <bruno@clisp.org>
3065         locale-c++-tests: Update.
3066         * tests/test-locale-c++.cc (localeconv): Declare, missing since
3067         2012-03-25.
3069 2017-05-05  Bruno Haible  <bruno@clisp.org>
3071         inttypes-c++-tests: New module.
3072         * tests/test-inttypes-c++.cc: New file.
3073         (strtoimax): Declare, missing since 2012-01-05.
3074         (strtoumax): Declare, missing since 2012-01-05.
3075         * modules/inttypes-c++-tests: New file.
3077 2017-05-05  Bruno Haible  <bruno@clisp.org>
3079         dirent-c++-tests: Update.
3080         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
3081         (rewinddir): Declare, missing since 2011-09-13.
3082         (dirfd): Declare, missing since 2010-03-08.
3084 2017-05-04  Bruno Haible  <bruno@clisp.org>
3086         argp: Fix mistake in 2017-04-23 commit.
3087         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
3088         assume that strerror_r returns 'int', not 'char *'.
3090 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
3092         argp: Fix typo.
3093         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
3095 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
3097         utimens: port to Emacs + MS-Windows
3098         Skip the new MS-Windows-specific code if Emacs.
3099         * lib/utimens.c [EMACS_CONFIGUATION]:
3100         Avoid new MS-Windows-specific code.
3101         (USE_SETFILETIME): New macro.
3102         (fdutimens): Use it.
3104 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
3106         tzset: update doc for TZ problems on MS-Windows
3107         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
3108         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
3109         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
3110         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
3111         * doc/posix-functions/wcsftime.texi:
3112         Mention some issues with TZ under MS-Windows.
3114 2017-05-01  Bruno Haible  <bruno@clisp.org>
3116         copy-file: Fix build error on mingw.
3117         * modules/copy-file (Depends-on): Add 'close'.
3119 2017-05-01  Bruno Haible  <bruno@clisp.org>
3121         tzset: Work around TZ problem on native Windows.
3122         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
3123         Windows, set REPLACE_TZSET to 1.
3124         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
3125         invoke '_tzset' instead of 'tzset'.
3126         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
3128         * modules/time_rz (Depends-on): Add tzset.
3129         * lib/time_rz.c (tzset): Remove fallback definition.
3130         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
3132 2017-05-01  Bruno Haible  <bruno@clisp.org>
3134         mktime: Fix dependencies.
3135         * modules/mktime (Depends-on): Add 'time'.
3137 2017-05-01  Bruno Haible  <bruno@clisp.org>
3139         New module 'localtime-buffer', split off from module 'gettimeofday'.
3140         * lib/localtime-buffer.h: New file.
3141         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
3142         * lib/time.in.h (tzset): New declaration.
3143         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
3144         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
3145         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
3146         moved to lib/localtime-buffer.c or lib/tzset.c.
3147         * m4/localtime-buffer.m4: New file.
3148         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
3149         HAVE_TZSET, REPLACE_TZSET.
3150         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
3151         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
3152         gl_LOCALTIME_BUFFER_NEEDED.
3153         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
3154         since 2007-01-18.
3155         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
3156         tzset.
3157         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
3158         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
3159         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
3160         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
3161         * modules/localtime-buffer: New file.
3162         * modules/time (Depends-on): Remove 'gettimeofday'.
3163         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
3164         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
3165         * modules/tzset (Description): Enable hyperlink to POSIX spec.
3166         (Files): Add lib/tzset.c.
3167         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
3168         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
3169         gl_TIME_MODULE_INDICATOR.
3170         * modules/gettimeofday (Depends-on): Add localtime-buffer.
3172 2017-05-01  Bruno Haible  <bruno@clisp.org>
3174         copy-file: Preserve sub-second time stamps.
3175         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
3176         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
3177         transport the time stamps from the original file to the destination
3178         file.
3179         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
3180         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
3181         utime-h.
3183 2017-05-01  Bruno Haible  <bruno@clisp.org>
3185         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
3186         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
3187         also on MSVC.
3188         Reported by Eli Zaretskii <eliz@gnu.org>.
3190 2017-05-01  Bruno Haible  <bruno@clisp.org>
3192         wchar: Fix compilation error with the original mingw.org mingw.
3193         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
3194         <stddef.h> instead.
3195         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
3196         gl_WCTYPE_H.
3197         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
3198         gl_TYPE_WINT_T_PREREQ instead.
3199         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
3200         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
3201         Reported by Eli Zaretskii <eliz@gnu.org>.
3203 2017-04-30  Bruno Haible  <bruno@clisp.org>
3205         utimecmp: Add support for native Windows.
3206         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
3208 2017-04-30  Bruno Haible  <bruno@clisp.org>
3210         utimens: Add support for native Windows.
3211         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
3212         (fdutimens): Provide a native Windows implementation, like utime.c with
3213         added tv_nsec support.
3214         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
3215         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
3217 2017-04-30  Bruno Haible  <bruno@clisp.org>
3219         wcsftime: New module.
3220         * lib/wchar.in.h (wcsftime): New declaration.
3221         * lib/wcsftime.c: New file.
3222         * m4/wcsftime.m4: New file.
3223         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
3224         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
3225         HAVE_WCSFTIME, REPLACE_WCSFTIME.
3226         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
3227         HAVE_WCSFTIME, REPLACE_WCSFTIME.
3228         * modules/wcsftime: New file.
3229         * doc/posix-functions/wcsftime.texi: Mention the new module.
3231 2017-04-30  Bruno Haible  <bruno@clisp.org>
3233         strftime-fixes: New module.
3234         * lib/time.in.h (strftime): New declaration.
3235         * lib/strftime-fixes.c: New file.
3236         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
3237         (gl_FUNC_STRFTIME): Remove macro.
3238         * m4/strftime-fixes.m4: New file.
3239         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
3240         REPLACE_STRFTIME.
3241         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
3242         REPLACE_STRFTIME.
3243         * modules/strftime-fixes: New file.
3244         * doc/posix-functions/strftime.texi: Mention the new module.
3246 2017-04-30  Bruno Haible  <bruno@clisp.org>
3248         mktime: Work around TZ problem on native Windows.
3249         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
3250         from the native Windows workaround.
3251         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
3252         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
3253         'guessing no'.
3254         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
3255         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
3256         NEED_MKTIME_WINDOWS.
3257         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
3258         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
3259         NEED_MKTIME_INTERNAL.
3260         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
3261         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
3262         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
3263         not REPLACE_MKTIME.
3264         * doc/posix-functions/mktime.texi: Mention the native Windows
3265         workaround.
3267 2017-04-30  Bruno Haible  <bruno@clisp.org>
3269         localtime: New module.
3270         * lib/time.in.h (localtime): Declare also if requested by module
3271         'localtime'.
3272         * lib/localtime.c: New file.
3273         * m4/localtime.m4: New file.
3274         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
3275         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
3276         * modules/localtime: New file.
3277         * doc/posix-functions/localtime.texi: Mention the new module.
3279 2017-04-30  Bruno Haible  <bruno@clisp.org>
3281         ctime: New module.
3282         * lib/time.in.h (ctime): New declaration.
3283         * lib/ctime.c: New file.
3284         * m4/ctime.m4: New file.
3285         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
3286         REPLACE_CTIME.
3287         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
3288         * modules/ctime: New file.
3289         * doc/posix-functions/ctime.texi: Mention the new module.
3291 2017-04-30  Bruno Haible  <bruno@clisp.org>
3293         gettimeofday: Provide higher resolution on native Windows.
3294         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
3295         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
3296         (initialize): Initialize it.
3297         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
3298         'struct timeval'. Don't use _ftime().
3299         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
3300         <sys/timeb.h> and _ftime.
3302 2017-04-30  Bruno Haible  <bruno@clisp.org>
3304         Document the problem with the Cygwin environment variable TZ.
3305         * doc/posix-functions/tzset.texi: Add note about TZ.
3306         * doc/posix-functions/ctime.texi: Likewise.
3307         * doc/posix-functions/localtime.texi: Likewise.
3308         * doc/posix-functions/mktime.texi: Likewise.
3309         * doc/posix-functions/strftime.texi: Likewise.
3310         * doc/posix-functions/wcsftime.texi: Likewise.
3311         * doc/pastposix-functions/ftime.texi: Likewise.
3313 2017-04-30  Bruno Haible  <bruno@clisp.org>
3315         utime-tests: New module.
3316         * tests/test-utime.c: New file, based on tests/test-utimens.h.
3317         * tests/test-utimens-common.h: Include <sys/stat.h>.
3318         * modules/utime-tests: New file.
3320 2017-04-29  Bruno Haible  <bruno@clisp.org>
3322         utime: New module.
3323         * lib/utime.in.h: Add comment for snippets.
3324         (utime): New declaration.
3325         * lib/utime.c: New file.
3326         * m4/utime.m4: New file.
3327         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
3328         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
3329         REPLACE_UTIME.
3330         * modules/utime-h (Depends-on): Add snippets.
3331         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
3332         Insert snippets.
3333         * modules/utime: New file.
3334         * doc/posix-functions/utime.texi: Mention the new module.
3336 2017-04-29  Bruno Haible  <bruno@clisp.org>
3338         utime-h: Modernize handling of 'struct utimbuf'.
3339         * lib/utime.in.h: Include next <utime.h> if it exists.
3340         (utimbuf): Define to _utimbuf on native Windows.
3341         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
3342         Set UTIME_H on native Windows.
3343         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
3344         * modules/utime-h (Depends-on): Add include_next.
3345         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
3346         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
3348         * lib/utimens.c (utimbuf): Remove fallback definition.
3349         * m4/utimens.m4 (gl_UTIMENS): Don't require
3350         gl_CHECK_TYPE_STRUCT_UTIMBUF.
3351         * m4/utimbuf.m4: Remove file.
3352         * modules/utimens (Files): Remove m4/utimbuf.m4.
3354 2017-04-29  Bruno Haible  <bruno@clisp.org>
3356         Make use of module 'utime-h'.
3357         * modules/copy-file (Depends-on): Add utime-h.
3358         * lib/copy-file.c: Assume that <utime.h> exists.
3359         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
3361         * modules/utimens (Depends-on): Add utime-h.
3362         * lib/utimens.c: Assume that <utime.h> exists.
3364 2017-04-29  Bruno Haible  <bruno@clisp.org>
3366         utime-h: New module.
3367         * m4/utime_h.m4: New file.
3368         * lib/utime.in.h: New file.
3369         * modules/utime-h: New file.
3370         * doc/posix-headers/utime.texi: Mention the new module.
3372         * tests/test-utime-h.c: New file.
3373         * modules/utime-h-tests: New file.
3375 2017-04-30  Bruno Haible  <bruno@clisp.org>
3377         Fix a few typos.
3378         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
3379         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
3380         * doc/posix-functions/fstat.texi: Fix a plural typo.
3381         * doc/posix-functions/stat.texi: Likewise.
3382         * m4/include_next.m4: Update comments.
3384 2017-04-29  Bruno Haible  <bruno@clisp.org>
3386         error: Fix mistake in 2017-04-23 commit.
3387         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
3388         assume that strerror_r returns 'int', not 'char *'.
3390 2017-04-29  Bruno Haible  <bruno@clisp.org>
3392         stat: Fix time_t values and other problems on native Windows platforms.
3393         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
3394         implementations of stat().
3395         * lib/stat.c: Include filename.h instead of dosname.h. Include
3396         malloca.h, stat-w32.h.
3397         (is_unc_root): New function.
3398         (rpl_stat): New implementation for native Windows. Remove
3399         REPLACE_FUNC_STAT_DIR code.
3400         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
3401         Don't define REPLACE_FUNC_STAT_DIR.
3402         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
3403         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
3404         (Depends-on): Remove dosname. Add filename, malloca.
3405         (configure.ac): Also compile lib/stat-w32.c.
3407 2017-04-29  Bruno Haible  <bruno@clisp.org>
3409         fstat: Fix time_t values on native Windows platforms.
3410         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
3411         * lib/stat-w32.h: New file.
3412         * lib/stat-w32.c: New file.
3413         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
3414         stat-w32.h instead.
3415         (fstat_nothrow): Remove function.
3416         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
3417         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
3418         always.
3419         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
3420         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
3421         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
3422         (configure.ac): Also compile lib/stat-w32.c.
3424 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
3426         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
3427         Problem reported by Assaf Gordon and Gavin Smith in:
3428         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
3429         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
3430         #define this, too.
3432 2017-04-29  Bruno Haible  <bruno@clisp.org>
3434         strerror_r-posix: Fixes for MSVC 14.
3435         * lib/strerror_r.c: Include <stdarg.h>.
3436         (strerror_r): Provide error messages for errno values 100...140.
3437         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
3439 2017-04-28  Bruno Haible  <bruno@clisp.org>
3441         noreturn: New module.
3442         * lib/noreturn.h: New file.
3443         * modules/noreturn: New file.
3444         * tests/test-noreturn.c: New file.
3445         * modules/noreturn-tests: New file.
3446         * tests/test-noreturn-c++.cc: New file.
3447         * modules/noreturn-c++-tests: New file.
3449 2017-04-27  Bruno Haible  <bruno@clisp.org>
3451         wctype-h: Fix compilation error with the original mingw.org mingw.
3452         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
3453         HAVE_CRTDEFS_H.
3454         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
3455         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
3456         <stddef.h> instead.
3457         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
3459 2017-04-26  Pádraig Brady  <P@draigBrady.com>
3461         nap.h: Fix compilation on non windows platforms
3462         * tests/nap.h: Move misplaced endif.
3464 2017-04-26  Pádraig Brady  <P@draigBrady.com>
3465         and Paul Eggert  <eggert@cs.ucla.edu>
3467         time_rz: fix heap buffer overflow vulnerability
3468         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
3469         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
3470         whether there is enough buffer space available, thus avoiding
3471         the problematic promotion of signed to unsigned causing an invalid
3472         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
3473         the start of the buffer.
3474         * tests/test-parse-datetime.c (main): Add a test case written by
3475         Paul Eggert, which overwrites enough of the heap so that
3476         standard glibc will fail with "free(): invalid pointer"
3477         without the patch applied.
3479 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
3481         xalloc: add missing integer overflow check
3482         * lib/xalloc.h (x2nrealloc): Also check for multiplication
3483         overflow when P is null.
3485 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
3487         parse-datetime: make it standalone
3488         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
3489         (_GL_ATTRIBUTE_FORMAT): New macro.
3490         These are needed to get './gnulib-tool --test parse-datetime' to work.
3492 2017-04-23  Bruno Haible  <bruno@clisp.org>
3494         nap.h: Port to native Windows.
3495         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
3496         use nap_fd instead. On native Windows, close and reopen nap_fd.
3497         (nap_works): Don't compare the ctimes, because on native Windows, these
3498         are the creation times.
3499         (nap): Update.
3501 2017-04-23  Bruno Haible  <bruno@clisp.org>
3503         nap.h: Fix logic.
3504         * tests/nap.h (nap): Avoid signed integer overflow in loop.
3506 2017-04-23  Bruno Haible  <bruno@clisp.org>
3508         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
3509         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
3510         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
3511         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
3512         * lib/argp-help.c (__argp_failure): Likewise.
3514 2017-04-23  Bruno Haible  <bruno@clisp.org>
3516         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
3517         * m4/strerror_r.m4: Revert changes since 2016-10-16.
3518         * lib/strerror_r.c: Likewise.
3520 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
3522         Target a C99 subset, not a C89 subset
3523         For many years Gnulib has targeted C89 and has resisted using C99
3524         features, as some Gnulib-using programs still wanted to target
3525         C89.  As this no longer seems to be the case, relax the porting
3526         requirements to allow some C99 features.  This is merely a change
3527         to the documentation, to give other Gnulib developers a chance to
3528         weigh in on the topic.
3529         * doc/extern-inline.texi (extern inline):
3530         * doc/gnulib-readme.texi (Portability guidelines):
3531         * doc/gnulib-tool.texi (Initial import):
3532         * doc/gnulib.texi (Header files):
3533         Modernize to talk about C99 and C11 instead of C89 and C99.
3534         * doc/gnulib-readme.texi (Portability guidelines):
3535         Now a section, not merely a subsection, so that it
3536         can be split up.  Modernize a bit.
3537         (C language versions, C99 features assumed)
3538         (C99 features avoided):
3539         New sections.
3541 2017-04-23  Bruno Haible  <bruno@clisp.org>
3543         doc: New section "Modules that modify the way other modules work".
3544         * doc/gnulib.texi (Modules that modify the way other modules work): New
3545         section.
3547 2017-04-23  Bruno Haible  <bruno@clisp.org>
3549         stat-time: Update comments.
3550         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
3551         * tests/test-utimens-common.h: Add reference regarding st_ctime on
3552         Windows.
3554 2017-04-01  Bruno Haible  <bruno@clisp.org>
3556         glob: Fix more memory leaks.
3557         * lib/glob.c (glob): Free allocated memory before returning.
3558         Reported by Coverity via Tim Rühsen.
3560 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3562         poll: improve fast check for out-of-range NFD
3563         * lib/poll.c: Do not include intprops.h.
3564         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
3565         * modules/poll (Depends-on): Remove intprops.
3567         ftoastr: cite a newer paper
3568         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
3569         instead of Loitsch 2010.
3571 2017-04-22  Bruno Haible  <bruno@clisp.org>
3573         poll: Enable argument check also in the Windows implementation.
3574         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
3575         Reported by Paul Eggert.
3577 2017-04-22  Bruno Haible  <bruno@clisp.org>
3579         getlogin_r: Work around bug in Mac OS X 10.12.
3580         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
3581         bug.
3582         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
3583         given size minus 1, call getlogin_r a second time, on a larger buffer.
3584         * modules/getlogin_r (Depends-on): Add malloca.
3585         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
3587 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3589         parse-datetime: fix %z and prefer signed int
3590         %z problem reported by Pádraig Brady in:
3591         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
3592         While fixing it, I decided to prefer signed ints to size_t, as
3593         they are less error-prone (e.g., ubsan catches overflow).
3594         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
3595         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
3596         counts, since signed integers make for better debugging.
3597         (date): Don’t assume %z works in printf formats.
3598         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
3599         sizes of buffers known to be small, e.g., because we’re using snprintf.
3600         (parse_datetime2): Simplify call to debug_mktime_not_ok.
3602 2017-04-22  Bruno Haible  <bruno@clisp.org>
3604         *printf: Work around rounding bug on Mac OS X.
3605         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
3606         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
3607         Mac OS X and FreeBSD.
3608         * doc/glibc-functions/*printf.texi: Likewise.
3610 2017-04-22  Bruno Haible  <bruno@clisp.org>
3612         vasnprintf tests: Avoid warnings.
3613         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
3614         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
3615         test.
3617 2017-04-22  Bruno Haible  <bruno@clisp.org>
3619         sys_file tests: Avoid warning.
3620         * tests/test-sys_file.c (main): Add a default clause to the switch
3621         statement.
3623 2017-04-22  Bruno Haible  <bruno@clisp.org>
3625         sethostname: Update doc.
3626         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
3627         Mac OS X.
3629 2017-04-22  Bruno Haible  <bruno@clisp.org>
3631         quotearg tests: Avoid warnings.
3632         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
3633         false.
3635 2017-04-22  Bruno Haible  <bruno@clisp.org>
3637         poll: Enable argument check.
3638         * lib/poll.c: Include intprops.h.
3639         (poll): Check value of nfd correctly.
3640         * modules/poll (Depends-on): Add intprops.
3642 2017-04-22  Bruno Haible  <bruno@clisp.org>
3644         get-rusage-data: Avoid warnings on Mac OS X.
3645         * lib/get-rusage-data.c: On Mac OS X, don't define
3646         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
3647         (get_rusage_data) [Mac OS X]: Just return 0.
3649 2017-04-22  Bruno Haible  <bruno@clisp.org>
3651         xbinary-io: Fix build error.
3652         * modules/xbinary-io (Depends-on): Add gettext-h.
3653         * lib/xbinary-io.c: Include gettext.h and define _().
3654         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
3655         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
3657 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
3659         parse-datetime: overflow and debug cleanups
3660         This long patch was triggered by this bug report from Ruediger Meier:
3661         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
3662         I fixed the bug he noted, then found some others nearby, and then
3663         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
3664         up some of the code to follow GNU standards while I was at it.
3665         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
3666         use c_isdigit.
3667         (EPOCH_YEAR): Remove; unused.
3668         (TM_YEAR_BASE): Now an enum rather than a macro.
3669         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
3670         time zone offset, since timezones now are in terms of seconds and
3671         not minutes.
3672         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
3673         appropriate.  Verify that intmax_t is wide enough.
3674         (time_overflow, time_zone_str): New functions, used to deal
3675         more reliably with overflow.
3676         (dbg_printf): Add printf attribute, to help catch integer width errors.
3677         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
3678         (%union, to_hour, yylex, parse_datetime2):
3679         Use intmax_t instead of long int and/or long_time_t.
3680         All uses changed.
3681         (DBGBUFSIZE): Move earlier.
3682         (relative_time, set_hhmmss, parser_control):
3683         Just use int for nanoseconds and for time zones; that’s wide enough.
3684         (parser_control): Use bool for members like year_seen that can
3685         be booleans instead of counters.  All uses changed.
3686         Remove debug_default_input_timezone; no longer needed.
3687         All uses removed.
3688         (apply_relative_time): Return a bool overflow flag.
3689         All uses changed to check for overflow.
3690         (apply_relative_time, zone, date, relunit, relunit_snumber)
3691         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
3692         Check for integer overflow portably.
3693         (str_days): Use just int for N, as it’s wide enough.
3694         Prefer 2D char arrays to arrays of char * when it looks like
3695         2D is a win on typical platforms.
3696         Prefer snprintf to strncpy/strncat, for simplicity;
3697         all buffers are smaller than INT_MAX so this is safe.
3698         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
3699         (debug_print_current_time): Don’t assume tv_nsec is of type long,
3700         as this is not true on x32.  Output "." before any nanoseconds.
3701         (debug_print_current_time, parse_datetime2):
3702         Output local zones using a more-consistent format.
3703         (debug_print_current_time, date, parse_datetime2):
3704         (main) [TEST]:
3705         Don’t assume time_t is the same width as long.
3706         (print_rel_part): New function, replacing ...
3707         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
3708         (debug_print_relative_time): Use bool for boolean.
3709         (local_zone): dsts_seen now counts only tDST instances.
3710         (date): Fix printf of size_t to use %z.  Do not assume numeric
3711         tokens have negative values merely because the context suggests
3712         a syntax with "-" separating tokens.
3713         (time_zone_hhmm): Return bool success indicator, which checks for
3714         overflow.  Store result into PC->time_zone instead.  All callers
3715         changed.
3716         (tm_year_str): New function.  Return a bool success indicator and
3717         store the result into a buffer.  All callers changed.  Output the
3718         numerically correct string even if adding 1900 to the year would
3719         overflow.
3720         (to_tm_year): New function, replacing the old to_year.  All
3721         callers changed.
3722         (tm_diff): Sync with glibc.
3723         (lookup_word): Use to_uchar instead of doing it by hand.
3724         (TZBUFSIZE): Now local to the only function that needs it.
3725         (debug_strfdatetime): Simplify now that time zones are int seconds.
3726         (debug_strfdate): Work even if tm_year + 1900 would overflow.
3727         (get_effective_timezone): Remove.  All uses removed.
3728         (parse_datetime2): Use fprintf in pieces instead of snprintfing
3729         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
3730         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
3731         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
3732         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
3733         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
3734         * modules/parse-datetime (Depends-on): Add inttypes.
3736 2017-04-21  Bruno Haible  <bruno@clisp.org>
3738         gettext-h: Avoid -Wundef warning.
3739         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
3740         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
3741         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
3743 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
3745         error: Avoid "function declaration isn't a prototype" warning.
3746         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
3748 2017-04-21  Bruno Haible  <bruno@clisp.org>
3750         vasnprintf: Fix for MSVC 14.
3751         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
3752         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
3753         of !HAVE_SNPRINTF_RETVAL_C99.
3755 2017-04-21  Bruno Haible  <bruno@clisp.org>
3757         mbrtowc tests: Fix test failures on MSVC 14.
3758         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
3759         behaviour for invalid input.
3761 2017-04-21  Bruno Haible  <bruno@clisp.org>
3763         mbsinit: Fix for MSVC 14.
3764         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
3765         implementation that is in sync with mbrtowc.c. On other platforms, use
3766         an adequate ad-hoc implementation.
3768 2017-04-21  Bruno Haible  <bruno@clisp.org>
3770         Fix test-mbrtowc5.sh failure on native Windows.
3771         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
3772         "C".
3774 2017-04-21  Bruno Haible  <bruno@clisp.org>
3776         Avoid accidental use of native Windows APIs on Cygwin.
3777         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
3778         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
3779         * lib/localename.c (WINDOWS_NATIVE): Likewise.
3781 2017-04-20  Bruno Haible  <bruno@clisp.org>
3783         Remove red warnings from the generated MODULES.html.
3784         * modules/fcntl (Description): Disambiguate function references.
3785         * modules/getcwd-lgpl (Description): Likewise.
3786         * modules/hostent (Description): Likewise.
3787         * modules/servent (Description): Likewise.
3788         * modules/tempname (Description): Likewise.
3790 2017-04-20  Bruno Haible  <bruno@clisp.org>
3792         verify tests: Fix spurious failure with parallel make.
3793         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
3794         EXTRA_PROGRAMS.
3795         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
3796         * tests/test-verify-try.c: New file.
3797         * modules/verify-tests (Files): Add it.
3798         (EXTRA_PROGRAMS): Add test-verify-try.
3799         (MOSTLYCLEANFILES): Update accordingly.
3800         Reported by Adam James Stewart <ajstewart@anl.gov>.
3802 2017-04-18  Bruno Haible  <bruno@clisp.org>
3804         vma-iter: Fix compilation error on Solaris 7.
3805         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
3806         like on IRIX, OSF/1.
3807         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3809 2017-04-18  Bruno Haible  <bruno@clisp.org>
3811         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
3812         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
3813         included.
3814         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
3815         <sys/procfs.h>.
3816         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
3817         <sys/procfs.h> cannot be included.
3818         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3820 2017-04-18  Bruno Haible  <bruno@clisp.org>
3822         getopt-gnu: Add comments.
3823         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
3824         * modules/getopt-gnu (configure.ac): Likewise.
3826 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
3828         regex: port better to Solaris 10
3829         Solaris 10 <locale.h> includes <libintl.h>, which #defines
3830         gettext, and this causes a double #define.
3831         Problem reported by Gavin Smith in:
3832         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
3833         * lib/regex_internal.h (gettext): #undef before #defining.
3835 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
3837         intprops: improve comments
3838         * lib/intprops.h: Improve and shorten commentary.
3839         For the record, if we ever run into a pedantic compiler that
3840         behaves differently from GCC when converting an out-of-range value
3841         to a signed integer, we can work around the problem with something
3842         like the following code, where UCT is the signed counterpart of T
3843         (UCT is sometimes narrower than UT) and all callers are changed
3844         accordingly:
3845         #if __SUNPRO_C <= 0x5120
3846         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
3847            ((t) ((ut) (a) op (ut) (b)))
3848         #else
3849         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
3850            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
3851             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
3852                + TYPE_MINIMUM (t)) \
3853             : (t) (uct) ((ut) (a) op (ut) (b)))
3854         #endif
3856 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
3858         intprops: try to avoid tickling similar bugs
3859         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
3860         needs to be the same width as T; it can be wider.
3861         Change callers so that UT is at least as wide as unsigned int,
3862         as I suspect that this is less likely to run into compiler bugs.
3864         intprops: port to Oracle Studio 12.3 x86
3865         Problem reported by Gavin Smith in:
3866         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
3867         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
3868         Convert unsigned to signed via the usual rather than the standard way,
3869         to avoid a compiler bug in Oracle Studio 12.3 x86.
3871 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
3873         getopt: prefer - to _ in new file names
3874         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
3875         * lib/getopt-core.h: Rename from lib/getopt_core.h.
3876         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
3877         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
3878         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
3879         All uses changed.
3881         getopt: port recent getopt changes to macOS
3882         Problem reported by Harald Maier (Bug#26398).
3883         The macOS C compiler uses __nonnull for its own purposes and that
3884         clashes with glibc's __nonnull.
3885         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
3886         * lib/getopt_cdefs.in.h (__nonnull): Remove.
3887         * lib/getopt_core.h (getopt):
3888         * lib/getopt_ext.h (getopt_long, getopt_long_only):
3889         Use _GL_ARG_NONNULL, not __nonnull.
3890         * lib/unistd.in.h: Move snippet hooks to before where the getopt
3891         .h files are included, so that _GL_ARG_NONNULL is defined in time.
3892         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
3893         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
3895 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
3897         getopt-gnu: omit some duplicate code
3898         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
3899         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
3900         gnulib-tool already does this.
3901         * modules/getopt-gnu (configure.ac): Omit code duplicated from
3902         getopt-posix, which we depend on.
3904         getopt-posix: use angle-bracket include
3905         * lib/getopt1.c: Include <config.h>, not "config.h".
3907 2017-04-06  Zack Weinberg  <zackw@panix.com>
3909         getopt: annotate files with relationship to glibc
3911         As the final act in this patchset, adjust the message at the top of
3912         each file to indicate which files are synced with glibc.  (This has
3913         already been done for most of the headers.)
3915         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
3916         Mention in top-of-file boilerplate that these files are shared
3917         between glibc and gnulib.
3920         getopt: split up getopt.in.h and eliminate __need_getopt
3922         Over in glibc, all of the __need macros are being phased out in favor
3923         of small headers that declare only the necessary components, as this
3924         is much simpler and less prone to bugs.  As getopt is shared with
3925         glibc, gnulib needs to do the same for __need_getopt.
3927         __need_getopt is misnamed; what it really means is "we want only the
3928         getopt features specified in POSIX, not the GNU extensions".  glibc
3929         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
3930         these files can be shared verbatim with gnulib.  The portability
3931         wrapper, on the other hand, they have renounced altogether; glibc's
3932         getopt.h will no longer be shared with gnulib at all.  In exchange,
3933         certain glibc-specific quirks (having to do with __posix_getopt) no
3934         longer need appear in gnulib's headers at all.
3936         This patch merges getopt_core.h and getopt_ext.h from glibc, and
3937         splits up the current gnulib-side portability wrapper into three
3938         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
3939         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
3940         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
3941         unistd.in.h just use them.  All new files are clearly marked with
3942         whether they are shared with glibc.
3944         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
3945         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
3946         with glibc, and ...
3947         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
3948         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
3949         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
3950         instead of defining __need_getopt and including the full getopt.h.
3952         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
3953         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
3954         * modules/getopt-posix (Files): Add new headers and sort list.
3955         (Depends-on): No longer need snippet/arg-nonnull.
3956         (Makefile.am): Generate getopt_cdefs.h.
3959         getopt: better handling of ambiguous options
3961         glibc's getopt uses alloca to construct a linked list of possibilities
3962         for an "ambiguous" long option.  In gnulib, malloc should be used
3963         instead.  Providing for both cases complicates things a fair bit.
3965         This patch rewrites ambiguous-option handling to use a boolean vector
3966         instead of a linked list.  There is then only one allocation that
3967         might need freeing; in glibc it can honor __libc_use_alloca as usual,
3968         and in gnulib we define __libc_use_alloca to always be false, so we
3969         don't need ifdefs in the middle of the function.  This should also be
3970         slightly more efficient in the normal case of long options being fully
3971         spelled out -- I think most people aren't even aware they _can_
3972         sometimes abbreviate long options.
3974         One interesting consequence is that the list of possibilities is now
3975         printed in exactly the order they appear in the list of long options,
3976         instead of the first possibility being shuffled to the end.
3978         (The patch looks bigger than it really is because there's a fair bit
3979         of reindentation and code rearrangement.)
3981         * lib/getopt.c: When used standalone, define __libc_use_alloca
3982         as always false and alloca to abort if called.
3983         (process_long_option): Rewrite handling of ambiguous long options
3984         to use a single boolean vector, not a linked list; use
3985         __libc_use_alloca to decide whether to allocate this using alloca.
3988         getopt: refactor long-option handling
3990         There were two copies of the bulk of the code to handle long options.
3991         Now there is only one.
3993         This change temporarily removes the logic to avoid using alloca when
3994         standalone; the next patch in the series will restore it.
3996         * lib/getopt.c (process_long_option): New function split out
3997         from _getopt_internal_r.
3998         (_getopt_internal_r): Replace both copies of the long-option
3999         processing code with calls to process_long_option.
4002         getopt: tidy up _getopt_initialize a bit
4004         _getopt_data.__posixly_correct is completely redundant to
4005         _getopt_data.__ordering, and some work that logically belongs in
4006         _getopt_initialize was being done by _getopt_internal_r, making the
4007         code harder to understand.
4009         As a side effect, getenv will no longer be called if the first
4010         character of the options string is '+' or '-', which is probably a
4011         Good Thing.  (Perhaps we should have a flag character that
4012         specifically asks for the permutation behavior?)
4014         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
4015         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
4016         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
4019         getopt: merge from glibc: repetition reduction
4021         The definitions of the entry point functions 'getopt' and
4022         '__posix_getopt' can be made substantially less repetitive with a
4023         helper macro.
4025         While I was merging the const-correctness changes from gnulib into
4026         glibc I noticed there are still some unnecessary casts in
4027         _getopt_internal_r.
4029         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
4030         a macro.  Consistently cast 'argv' to 'char **' when calling
4031         _getopt_internal.
4032         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
4035         getopt: clean up error reporting
4037         getopt can print a whole bunch of error messages, and when used
4038         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
4039         cancellation point and getopt isn't, and also applying fprintf to a
4040         stream in wide-character mode is not allowed.  So every single error
4041         reporting case has an #ifdef _LIBC block in which it calls internal
4042         libc functions instead.  The counterpart patch series in glibc makes
4043         it possible to simplify all of that down to a set of #defines at the
4044         top of the file; core code is written as if it is safe to just call
4045         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
4046         call any *other* stdio functions.)
4048         * lib/getopt.c: When _LIBC is defined, define fprintf to
4049         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
4050         to _IO_funlockfile.  When neither _LIBC nor
4051         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
4052         funlockfile as no-ops.
4053         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
4054         standalone error-printing code can now be used for libc as well.
4055         Add an flockfile/funlockfile pair around one case where the error
4056         message is printed in several chunks.  Don't use fputc.
4059         getopt: fix fencepost error in ambiguous-W-option handling
4061         getopt_long contains an undocumented (AFAICT) feature in which, if you
4062         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
4063         treated as equivalent to '--foo'.  This is implemented with a partial
4064         second copy of the code for handling long options, and that code
4065         increments optind one too many times when recovering from an ambiguous
4066         abbreviated option, which can cause the main loop to walk past the end
4067         of argv and crash.
4069         I discovered this while writing a test case that tries to exercise all
4070         of getopt's error reporting paths; I wouldn't be surprised to learn
4071         that this feature is never used by real applications.
4073         * lib/getopt.c (_getopt_internal_r): Don't increment
4074         d->optind a second time when reporting ambiguous -W options.
4077         getopt: clean up getopt.c and getopt1.c file headers
4079         In getopt.c, there is no need to include wchar.h at all, and it is
4080         safe nowadays to assume that stdlib.h does declare getenv (several
4081         other gnulib modules make this assumption).
4083         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
4084         by using "" inclusions consistently, and there is no actual need to
4085         include stdlib.h (except in the #ifdef TEST block, where it should be
4086         unconditional), nor to provide a backup definition of NULL at all.
4088         * lib/getopt1.c: Simplify #ifdeffage at top of file.
4089         Move inclusion of stdlib.h to #ifdef TEST block and make
4090         unconditional.  Do not define NULL.
4091         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
4092         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
4093         * modules/getopt-gnu, modules/getopt-posix: Don't call
4094         gl_PREREQ_GETENV.
4097         getopt: harmonize comments with glibc
4099         The comments explaining how the behavior of 'getopt' varies depending
4100         on whether it's the standalone version and whether there are special
4101         characters at the beginning of the options string were inconsistent
4102         between gnulib and glibc, and also out of sync with the code.
4104         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
4107         getopt: remove USE_NONOPTION_FLAGS
4109         getopt includes code to parse an environment variable named
4110         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
4111         in decimal); but all of it has been #ifdefed out since 2001, with no
4112         official way to turn it back on.
4114         According to commentary in glibc's config.h.in, bash version 2.0
4115         set this environment variable to indicate argv elements that were
4116         the result of glob expansion and therefore should not be treated
4117         as options, but the feature was "disabled later" because "it
4118         caused problems".  According to bash's CHANGES file, "later" was
4119         release 2.01; it gives no more detail about what the problems
4120         were.
4122         Version 2.0 of bash was released on the last day of 1996, and version
4123         2.01 in June of 1997.  Twenty years later, I think it is safe to
4124         assume that this environment variable isn't coming back.
4126         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
4127         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
4128         __libc_argc and __libc_argv externs, which were only used by
4129         #ifdef USE_NONOPTION_FLAGS blocks.
4132         getopt: tabify, in preparation for merge with glibc
4134         glibc sticks to the GNU default of indenting with a mix of
4135         8-column tabs and spaces; make the gnulib copy match.
4137         getopt.h is not included because it is *not* going to be merged in its
4138         present form.
4140         * getopt.c, getopt1.c, getopt_int.h: Tabify.
4142 2017-04-02  Bruno Haible  <bruno@clisp.org>
4144         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
4145         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
4146         like it was done in modules/relocatable-lib on 2011-05-21 and in
4147         modules/relocatable-prog on 2011-08-15.
4148         Reported by Reuben Thomas <rrt@sc3d.org>.
4150 2017-03-31  Bruno Haible  <bruno@clisp.org>
4152         glob: Fix invalid free() call.
4153         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
4154         static storage to home_dir.
4155         Reported by Coverity via Tim Rühsen.
4157 2017-03-31  Bruno Haible  <bruno@clisp.org>
4159         glob: Fix memory leaks.
4160         * lib/glob.c (glob): Free allocated memory before returning.
4161         Reported by Coverity via Tim Rühsen.
4163 2017-03-31  Bruno Haible  <bruno@clisp.org>
4165         md5, sha1, sha256, sha512: Add comments regarding correctness.
4166         * lib/md5.h (buflen): Add comments regarding range.
4167         * lib/sha1.h (buflen): Likewise.
4168         * lib/sha256.h (buflen): Likewise.
4169         * lib/sha512.h (buflen): Likewise.
4170         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
4171         * lib/sha1.c (sha1_process_bytes): Likewise.
4172         * lib/sha256.c (sha256_process_bytes): Likewise.
4173         * lib/sha512.c (sha512_process_bytes): Likewise.
4174         Reported by Coverity via Tim Rühsen.
4176 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
4178         getopt: merge from glibc
4179         This does not change anything substantial; it merely simplifies
4180         hypothetical merges back to glibc.
4181         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
4182         Change copyright notice to match what is in glibc.
4183         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
4184         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
4185         __open_memstream rather than open_memstream and __glibc_likely
4186         instead of __builtin_expect.
4187         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
4189 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
4191         dfa: make [0-9] faster in non-C locales
4192         Problem reported by John P. Linderman (Bug#26193).
4193         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
4194         If both ends of the range are ASCII digits, do not worry about
4195         multi-character collating sequences and the like.  Be consistent
4196         about using isalpha as a precondition for setbit_case_fold_c.
4198 2017-03-19  Bruno Haible  <bruno@clisp.org>
4200         lock: Fix compilation error with HP-UX IA64 cc.
4201         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
4202         weak on non-glibc platforms.
4204 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4206         stdalign: tweak version# and test for HP-UX IA64
4207         Problems reported by Bruno Haible in:
4208         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
4209         * lib/stdalign.in.h (_Alignas):
4210         * m4/stdalign.m4 (gl_STDALIGN_H):
4211         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
4212         used octal (as that is how they document it), but it is decimal in
4213         practice now and the ancient implementations no longer matter.
4214         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
4216 2017-03-19  Bruno Haible  <bruno@clisp.org>
4218         vma-iter: Add support for Solaris.
4219         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
4220         approach.
4221         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
4222         * lib/get-rusage-as.c: Update comment about Solaris.
4223         * lib/get-rusage-data.c: Likewise.
4225 2017-03-19  Bruno Haible  <bruno@clisp.org>
4227         vma-iter: Prefer HP-UX specific API on HP-UX.
4228         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
4229         * lib/vma-iter.h: Update.
4230         Just in case HP-UX ever implements mquery().
4232 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
4234         stdalign: restore previous behavior for HP-UX IA64
4235         See Bruno Haible's email in:
4236         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
4237         which cites p 150 of a manual saying that 'aligned' works on Itanium.
4238         * lib/stdalign.in.h (_Alignas):
4239         Assume the '061200' applies to Itanium, not to PA-RISC.
4240         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
4242 2017-03-17  Bruno Haible  <bruno@clisp.org>
4244         stat-time, timespec: Support use of the header files in C++ mode.
4245         * lib/stat-time.h: Add "C" linkage declaration.
4246         * lib/timespec.h: Likewise.
4248 2017-03-17  Bruno Haible  <bruno@clisp.org>
4250         stdalign: Make it work with HP-UX cc.
4251         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
4252         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
4253         for HP-UX cc.
4255 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
4257         flexmember: try to detect HP-UX 11.31 cc bug
4258         Problem reported by Bruno Haible in:
4259         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
4260         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4261         Attempt to detect bug in HP-UX 11.31 cc.
4263 2017-03-16  Bruno Haible  <bruno@clisp.org>
4265         stdint: Fix test compilation failure with HP-UX 11 cc.
4266         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
4267         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
4268         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
4269         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
4271 2017-03-14  Bruno Haible  <bruno@clisp.org>
4273         gnulib-tool: Don't produce a tests directory with only snippet .h files.
4274         * gnulib-tool (func_modules_transitive_closure_separately): If
4275         testsrelated_modules ends up with no "real" modules, aside from
4276         modules with applicability 'all', set it to empty.
4278 2017-03-14  Bruno Haible  <bruno@clisp.org>
4280         vma-iter: Add support for HP-UX.
4281         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
4282         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
4283         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
4284         * lib/get-rusage-as.c: Update comment about HP-UX.
4285         * lib/get-rusage-data.c: Likewise.
4286         (get_rusage_data): Use get_rusage_data_via_setrlimit.
4288 2017-03-14  Bruno Haible  <bruno@clisp.org>
4290         limits-h: Make it work with HP-UX cc.
4291         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
4292         defined.
4294 2017-03-14  Bruno Haible  <bruno@clisp.org>
4296         Fix test failures on DragonFlyBSD.
4297         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
4298         * tests/test-select.h (test_bad_fd): Likewise.
4299         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
4301 2017-03-14  Bruno Haible  <bruno@clisp.org>
4303         freadahead: Silence warning on DragonFlyBSD.
4304         * lib/freadahead.c (__sreadahead): Declare ourselves.
4306 2017-03-14  Bruno Haible  <bruno@clisp.org>
4308         vma-iter: Add comment about AIX.
4309         * lib/vma-iter.c: Add comment about why this module is not implemented
4310         on AIX.
4312 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
4314         snippets: move unadjusted snippet sources to lib
4315         Problem reported by Michal Privoznik in:
4316         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
4317         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
4318         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
4319         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
4320         * lib/unused-parameter.h: Rename from
4321         build-aux/snippet/unused-parameter.h.
4322         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
4323         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
4324         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
4325         * modules/snippet/c++defs (Files:, CXXDEFS_H):
4326         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
4327         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
4328         Adjust to file renamings.
4330 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
4332         gnulib-tool: don't automatically distribute files from top/
4333         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
4334         not distribute top/README-release by default, don't distribute files
4335         from top/ unconditionally.
4336         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
4337         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
4339 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
4341         gnulib-tool: fix typo in comment output
4342         * gnulib-tool (func_import): Fix typo with previous change.
4344         snippets: work around GNU Make 3.82 VPATH
4345         When using 'gnulib-tool --gnu-make' on Emacs, and building
4346         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
4347         an out-of-source (VPATH) build failed because the sans-copyright
4348         snippet file was not built before the file that used it.
4349         Presumably this is some sort of VPATH thing.  Work around the
4350         problem by using the original snippet, i.e., don’t bother to
4351         remove its copyright notice.
4352         * modules/snippet/_Noreturn, modules/snippet/link-warning:
4353         Don’t assume Automake in comments.  Omit long-incorrect comment.
4354         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
4355         (MOSTLYCLEANFILES):
4356         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
4357         (MOSTLYCLEANFILES):
4358         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
4359         (MOSTLYCLEANFILES):
4360         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
4361         (MOSTLYCLEANFILES):
4362         Remove.
4363         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
4364         * modules/snippet/c++defs (CXXDEFS_H):
4365         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
4366         * modules/snippet/warn-on-use (WARN_ON_USE_H):
4367         Don’t bother to remove the copyright notice; just use the
4368         original snippet as-is.
4370 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
4372         gnulib-tool: minor --gnu-make fixups
4373         * gnulib-tool (func_emit_lib_Makefile_am):
4374         Remove useless code that was a blind alley during implementation.
4375         Problem reported by Thien-Thi Nguyen in:
4376         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
4377         (func_import): Note the "--gnu-make" option in the output comment.
4379 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
4381         gnulib-tool: new option --gnu-make
4382         This is for applications like GNU Emacs that use GNU Make
4383         features instead of Automake.
4384         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
4385         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
4386         Do not assume Automake.
4387         * gnulib-tool (func_determine_path_separator)
4388         (func_modules_transitive_closure, func_update_file)
4389         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
4390         (func_import): Add support for --gnu-make.
4392 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
4394         gnulib-common.m4: avoid aclocal.m4 bloat
4395         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
4396         Hide AM_PROG_AR from aclocal, so that aclocal does not
4397         install irrelevant macro definitions into aclocal.m4.
4399 2017-03-10  Bruno Haible  <bruno@clisp.org>
4401         vma-iter: Let callers know about error.
4402         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
4403         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
4405 2017-03-05  Bruno Haible  <bruno@clisp.org>
4407         Fix value of LD for 64-bit compilers on AIX.
4408         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
4409         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
4411 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
4413         dtotimespec: simplify
4414         * lib/dtotimespec.c (dtotimespec): Simplify.
4416 2017-03-04  Bruno Haible  <bruno@clisp.org>
4418         test-calloc-gnu: Reenable test also for GCC 7.
4419         * tests/test-calloc-gnu.c (eight): New function.
4420         (main): Don't skip test; use eight() instead.
4422 2017-03-04  Jim Meyering  <meyering@fb.com>
4424         test-calloc-gnu: port to GCC7
4425         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
4426         that attempts to calloc more than SIZE_MAX bytes, because GCC7
4427         and newer would detect that at compilation time.
4429 2017-03-04  Bruno Haible  <bruno@clisp.org>
4431         tests: Avoid compiler warning about uses of null_ptr.
4432         * tests/null-ptr.h: New file.
4433         * tests/test-canonicalize.c: Include null-ptr.h.
4434         (null_ptr): Remove function.
4435         * tests/test-canonicalize-lgpl.c: Likewise.
4436         * tests/test-memmem.c: Likewise.
4437         * tests/test-ptsname_r.c: Likewise.
4438         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
4439         * modules/canonicalize-lgpl-tests: Likewise.
4440         * modules/memmem-tests: Likewise.
4441         * modules/ptsname_r-tests: Likewise.
4442         Reported by Jim Meyering.
4444 2017-03-03  Bruno Haible  <bruno@clisp.org>
4446         doc: Mention Mac OS X deficiencies regarding semaphores.
4447         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
4448         * doc/posix-functions/sem_destroy.texi: Likewise.
4449         * doc/posix-functions/sem_getvalue.texi: Likewise.
4451 2017-03-03  Bruno Haible  <bruno@clisp.org>
4453         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
4454         Reported by Assaf Gordon <assafgordon@gmail.com> via
4455         Pádraig Brady <P@draigBrady.com>.
4456         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
4457         semaphores.
4458         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
4459         (atomic_int_semaphore): New macro.
4461 2017-02-28  Bruno Haible  <bruno@clisp.org>
4463         perror tests: Tweak for z/OS.
4464         Reported by Daniel Richard G. <skunk@iskunk.org>.
4465         * tests/test-perror.sh: Don't fail z/OS style perror output.
4467 2017-02-26  Bruno Haible  <bruno@clisp.org>
4469         nproc: Refactor large function.
4470         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
4471         from num_processors.
4472         (num_processors): In this function, only deal with OMP.
4474 2017-02-26  Pádraig Brady  <P@draigBrady.com>
4476         nproc: adjust handling of OpenMP environment variables
4477         to match the return value from omp_get_num_threads(), i.e.:
4478          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
4479          - Treat 0 as an invalid value and ignore
4480         Also remove the call to omp_get_num_threads() because
4481         it's ineffective without the omp pragmas in place.
4482         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
4483         so that it can be ignored.
4484         (num_processors): Honor OMP_THREAD_LIMIT even without
4485         OMP_NUM_THREADS being set.  Also fix a typo in the environment
4486         variable being checked, from the previous recent commit.
4488 2017-02-26  Pádraig Brady  <P@draigBrady.com>
4490         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
4491         * lib/nproc.c (parse_omp_threads): A new function refactored
4492         from num_processors() to support parsing both of the
4493         above environment variables.
4494         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
4495         to accurately reflect the current OpenMP nesting level.
4496         Also support the OMP_THREAD_LIMIT environment variable
4497         to limit the max value determined from OMP_NUM_THREADS.
4498         * modules/nproc: Depend on minmax header.
4499         Suggested by Oliver Heimlich.
4501 2017-02-25  Bruno Haible  <bruno@clisp.org>
4503         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
4504         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
4506 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4508         ftoastr: port to -Wdouble-promotion
4509         Work around -Wdouble-promotion false alarm in recent GCCs.
4510         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
4511         (ftoastr_snprintf, FTOASTR): Use it.
4513 2017-02-21  Bruno Haible  <bruno@clisp.org>
4515         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
4516         Reported by Rene Saavedra <rennes@openmailbox.org> in
4517         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
4518         * lib/glthread/lock.h: On glibc systems without
4519         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
4520         implementation of rwlocks.
4521         * lib/glthread/lock.c: Likewise.
4523 2017-02-20  Bruno Haible  <bruno@clisp.org>
4525         lock tests: Fix build failure on z/OS.
4526         Reported by Daniel Richard G. <skunk@iskunk.org>.
4527         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
4528         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
4529         exist.
4531 2017-02-19  Bruno Haible  <bruno@clisp.org>
4533         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
4534         This helps when CC=clang.
4535         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
4536         of /usr/bin/gcc.
4538         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
4539         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
4541 2017-02-19  Bruno Haible  <bruno@clisp.org>
4543         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
4544         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
4545         --with-tests --single-configure is specified.
4547 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
4549         users.txt: Update links, use HTTPS where possible
4550         * users.txt: Updated to HTTPS where possible,
4551         fixed some links to new locations.
4553 2017-02-16  Bruno Haible  <bruno@clisp.org>
4555         xbinary-io: Fix inlining.
4556         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
4558 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
4560         xbinary-io: rename from xsetmode
4561         This patch is taken from suggestions by Bruno Haible in:
4562         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
4563         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
4564         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
4565         not ENOTTY, when it is an inappropriate device.
4566         * lib/binary-io.h (SET_BINARY): Resurrect.
4567         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
4568         (xset_binary_mode_error): Rename from xsetmode_error.
4569         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
4570         (xset_binary_mode): Rename from xsetmode.
4571         All uses changed.
4572         * modules/xbinary-io: Rename from modules/xsetmode.
4573         Update file names.
4574         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
4575         * NEWS: Update to match revised behavior.
4577 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
4579         tests: Adjust to recent SET_BINARY change
4580         * tests/test-binary-io.c (main):
4581         * tests/test-binary-io.sh: Remove test for SET_BINARY.
4582         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
4583         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
4584         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
4586         xsetmode: new module
4587         This is to fix a problem noted by Eric Blake.
4588         Code was using xfreopen to change files to binary mode, but this
4589         fails for stdout when in append mode.  Such code should use
4590         xsetmode instead.
4591         * NEWS: Document incompatible changes to binary-io module.
4592         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
4593         New function.
4594         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
4595         (set_binary_mode): New function, which also checks for tty.
4596         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
4598 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
4600         headers: fix begin-end typos
4601         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
4602         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
4604         selinux-h: port to PGI 16.10
4605         * lib/se-selinux.in.h: Don't assume that include_next skips over
4606         duplicate -I DIR options.
4608         argp: port to PGI 16.10
4609         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
4611 2017-02-13  Darshit Shah  <darnir@gnu.org>
4613         unicase: Update function protoype to match definition.
4614         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
4615         uses 'size_t' as the datatype for the 'len' parameter in the functions
4616         it generates. Update the prototype specified here to match the newly
4617         generated function.
4619 2017-02-12  Bruno Haible  <bruno@clisp.org>
4621         times test: Avoid gcc warnings on Linux/x32.
4622         * tests/test-times.c (main): Really cast printf arguments from clock_t
4623         to 'long int'.
4625 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
4627         glob: port better to emscripten
4628         Problem reported by Bruno Haible in:
4629         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
4630         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
4632 2017-02-11  Bruno Haible  <bruno@clisp.org>
4634         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
4635         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
4636         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
4637         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
4638         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
4639         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
4640         Distinguish hppa64 from hppa.
4642 2017-02-10  Bruno Haible  <bruno@clisp.org>
4644         search: Don't assume that tsearch() exists if 'VISIT' is defined.
4645         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
4646         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
4647         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
4649 2017-02-09  Bruno Haible  <bruno@clisp.org>
4651         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
4652         * doc/gnulib.texi (Libtool and Windows): Recommend
4653         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
4654         Reported by Reuben Thomas <rrt@sc3d.org>.
4656 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
4658         stddef-tests: port to SIZE_MAX <= INT_MAX
4659         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
4660         Do not assume that INT_MAX < SIZE_MAX.
4662 2017-02-01  Bruno Haible  <bruno@clisp.org>
4664         lock tests: Fix link error.
4665         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
4666         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4668 2017-01-31  Bruno Haible  <bruno@clisp.org>
4670         lock: Fix link error (regression from 2017-01-05).
4671         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
4672         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
4673         pthread_rwlockattr_destroy weak.
4674         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4676 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
4678         Port to PGI 16.10 x86-64
4679         This patch fixes one real bug in gl_anylinked_list2.h, along with
4680         some minor glitches that are not bugs.  It does not silence PGI’s
4681         thousands of bogus warnings when compiling test-intprops.c.
4682         Fortunately, the warnings do not cause a failure.
4683         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
4684         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
4685         My goodness, PGI goes back a long ways - this predates C89!
4686         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
4687         For example, ASYNCSAFE (const void *) should expand to
4688         ‘const void *volatile’, not to ‘volatile const void *’.
4689         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
4690         * lib/verify.h (verify) [!__GNUC__]:
4691         Use shorter albeit meaningless string to bypass silly compiler limits.
4692         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
4693         * tests/nan.h (NaNf, NaNd, NaNl):
4694         Use static functions to avoid misguided compiler diagnostics.
4695         Is there some reason we don’t use static functions on all platforms?
4697 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
4699         parse-datetime: handle timezones reentrantly
4700         This API change was prompted by a report by Pádraig Brady in:
4701         https://bug.debian.org/851934#10
4702         To help fix the bug, make parse_datetime2 more reentrant.
4703         * NEWS: Document this incompatible change.
4704         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
4705         Add two arguments, the timezone and the timezone name.
4706         All callers changed.  If TZ="..." is specified, use it for
4707         calculating defaults.
4708         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
4709         this code should be usable in a library.
4710         (mktime_ok, get_effective_timezone):
4711         Accept timezone arg too.  All callers changed.
4712         (get_tz): Remove.
4713         (get_effective_timezone): Check for failures.
4715 2017-01-20  Eric Blake  <eblake@redhat.com>
4717         localename: port to cygwin 2.6
4718         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
4719         Cygwin.
4720         * modules/localename (Depends-on): Add extensions, since
4721         NL_LOCALE_NAME() is not visible without it.
4723 2017-01-17  Pádraig Brady  <P@draigBrady.com>
4725         parse-datetime: fix dependence on AC_PROG_SED
4726         * modules/parse-datetime: Use `sed` directly like all other modules.
4727         Reported by J William Piggott
4729 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
4731         intprops: update doc URLs
4732         * doc/intprops.texi (Integer Range Overflow): Update URLs.
4734 2017-01-16  Bruno Haible  <bruno@clisp.org>
4736         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
4737         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
4738         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
4739         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
4740         distinguish s390 and s390x.
4741         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
4742         * NEWS: Mention the change regarding 'armel'.
4744 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
4746         localeinfo: case_folded_counterparts and WEOF
4747         * NEWS: Document this.
4748         * lib/localeinfo.c (case_folded_counterparts):
4749         First arg is now wint_t, not wchar_t.  This generalizes the
4750         function to also work on WEOF, where it returns 0.
4752         dfa: port to gcc -fsanitize=undefined
4753         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
4754         as this runs afoul of gcc -fsanitize=undefined.
4756 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
4758         strftime: %z is -00 if unknown
4759         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
4760         the caller's responsibility to set 'negative_number'.  All uses changed.
4761         (__strftime_internal): Put '-' before a zero UTC offset if the time
4762         zone abbreviation starts with "-", which is the recently-introduced
4763         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
4764         * tests/test-strftime.c: Test for this.
4766 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
4768         dfa: port to older GCC
4769         Problem reported by Assaf Gordon in:
4770         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
4771         * modules/c99: New module.  This merely attempts to use the latest
4772         C version, which should be enough to solve this particular problem.
4773         The idea is to document which Gnulib modules assume C99 or later.
4774         * modules/dfa (Depends-on): Add it.
4776 2017-01-10  Bruno Haible  <bruno@clisp.org>
4778         Update DEPENDENCIES.
4779         * DEPENDENCIES: List only https URLs. Update recommended version for
4780         autoconf, automake, gperf.
4782 2017-01-10  Jim Meyering  <meyering@fb.com>
4784         maint.mk: enforce spelling of "timestamp" (i.e., no space)
4785         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
4786         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
4788 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
4790         dfa: minor simplification with emptyset
4791         * lib/dfa.c (build_state): Simplify by using emptyset.
4793 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
4795         dfa: shrink constraints from 4 bits to 3
4796         * lib/dfa.c (newline_constraint, letter_constraint)
4797         (other_constraint, prev_newline_dependent)
4798         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
4799         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
4800         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
4801         Constraints need only 3 bits, not 4.  Using smaller integers
4802         shrinks the code a bit and makes grep a tad faster on x86-64.
4804         dfa: omit unnecessary ptrdiff_t check
4805         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
4806         overflow, since xnmalloc does that now.
4808         dfa: omit unnecessary allocation
4809         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
4810         an all-zero follow set works just fine.
4812         dfa: omit unused local
4813         * lib/dfa.c (build_state): Fix up recent change.
4815         maint: remove stray .texi files
4816         Although these were superseded by other files like
4817         doc/posix-functions/ctime.texi, the old files were not removed.
4818         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
4820 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
4822         getprogname: fix port to IRIX
4823         * lib/getprogname.c (getprogname) [__sgi]:
4824         Don't dump core if malloc returns NULL.
4826         dfa: fix reallocation bug when matching newlines
4827         Problem reported for sed by S. Gilles (Bug#25390).
4828         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
4829         (dfastate): Reallocate before moving any newline transition ...
4830         (build_state): ... instead of reallocating here, where it is too late.
4832 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
4834         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
4835         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
4837 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
4839         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
4840         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
4842 2017-01-07  Bruno Haible  <bruno@clisp.org>
4844         stdioext: Port to Minix 3.2 and newer.
4845         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
4846         * lib/fseeko.c (fseeko): Likewise.
4847         Reported by Nelson Beebe via Paul Eggert.
4849 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4851         getprogname: port to IRIX
4852         * lib/getprogname.c (getprogname): Port to IRIX.
4853         Based on an idea by Bastien Roucariès at:
4854         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
4855         via code from Bruno Haible at:
4856         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
4858         localename-tests: port to NetBSD 7
4859         Problem reported by Nelson H. F. Beebe.
4860         * tests/test-localename.c:
4861         Test newlocale and uselocale only if both exist.
4863         glob, intprops, xalloc: work around Clang bug
4864         Work around LLVM bug 16404, which is still not fixed.
4865         https://llvm.org/bugs/show_bug.cgi?id=16404
4866         Problem reported by Nelson H. F. Beebe.
4867         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
4868         Remove.
4869         * lib/glob.c (size_add_wrapv):
4870         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
4871         * lib/xalloc-oversized.h (xalloc_oversized):
4872         Do not use overflow builtins if Clang.
4874         dfa: fix 'return' typo
4875         Problem reported by Nelson H. F. Beebe.
4876         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
4878 2017-01-05  Pádraig Brady  <P@draigBrady.com>
4880         parse-datetime: fix generated paths for coverage files
4881         * modules/parse-datetime: Adjust the paths for parse-datetime.y
4882         within parse-datetime.c, so that gcc generates appropriate .gcno
4883         files, allowing lcov to proceed without error.  Previously it
4884         would error trying to find "lib/lib/parse-datetime.y".
4886 2017-01-05  Pádraig Brady  <P@draigBrady.com>
4888         maint.mk: support parallel execution of coverage
4889         * top/maint.mk (coverage): Run dependencies serially,
4890         thus supporting parallel processing of each one,
4891         particularly build-coverage, which builds and runs tests.
4893 2017-01-05  Bruno Haible  <bruno@clisp.org>
4895         lock tests: Prefer semaphore over mutex.
4896         * tests/test-lock.c (USE_SEMAPHORE): New constant.
4897         (struct atomic_int, init_atomic_int, get_atomic_int_value,
4898         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
4899         Suggested by Torvald Riegel <triegel@redhat.com>.
4901 2017-01-05  Bruno Haible  <bruno@clisp.org>
4903         lock: Provide guarantee to avoid writer starvation for rwlocks.
4904         The rationale is: 1) Read-preferring read-write locks are prone to
4905         writer starvation if the number of reader threads multiplied by the
4906         percentage of time they have the lock held is too high. 2) Write-
4907         preferring read-write locks are the only reliable way to avoid this.
4908         3) There have been reports of 'test-lock' hanging on glibc systems
4909         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
4910         and glibc indeed implements read-preferring rwlocks by default, see
4911         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
4912         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
4913         * m4/pthread_rwlock_rdlock.m4: New file.
4914         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
4915         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
4916         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
4917         of rwlock initialization on glibc systems without
4918         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
4919         of rwlocks altogether on non-glibc systems without
4920         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
4921         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
4922         * lib/glthread/lock.c [USE_POSIX_THREADS]
4923         (glthread_rwlock_init_for_glibc): New function.
4924         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
4925         comment.
4926         [USE_PTH_THREADS]: New implementation of rwlocks.
4927         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
4928         readers.
4929         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
4930         (Depends-on): Add 'extensions'.
4931         * tests/test-rwlock1.c: New file.
4932         * lock-tests (Files): Add it.
4933         (Depends-on): Add usleep.
4934         (Makefile.am): Add test-rwlock1 to the tests.
4936 2017-01-05  Bruno Haible  <bruno@clisp.org>
4938         thread: Fix pth port.
4939         * lib/glthread/thread.h (pth_init): Declare weak.
4940         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
4941         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
4942         function.
4944 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
4946         parse-datetime: fix debug message on lone year number
4947         Input dates such as
4948           date -d "Apr 11 22:59:00 2011"
4949         are parsed as date (Apr 11, with default year 2016), then time, then a
4950         number (2011). Based on the combination of previously seen tokens,
4951         'digits_to_date_time' determines 2011 to be a year value.
4952         This fixes the debug messages to correctly show the updated year.
4953         Before:
4954             $ date --debug -d 'Apr 11 22:59:00 2011'
4955             date: parsed date part: (Y-M-D) 2016-04-11
4956             date: parsed time part: 22:59:00
4957             date: parsed number part: today/this/now
4958         After:
4959             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
4960             date: parsed date part: (Y-M-D) 2016-04-11
4961             date: parsed time part: 22:59:00
4962             date: parsed number part: year: 2011
4963         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
4964         'debug_year_seen' member fields.
4965         (digits_to_date_time): Update 'year_seen' as needed.
4966         (debug_print_current_time): Inform about year updates.
4967         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
4969         parse-datetime: fix local timezone debug messages
4970         "Local timezones" are strings that affect only DST relative to the
4971         default timezone. The debug messages in parse-datetime.y printed
4972         wrong information when encountering local timezones.
4973         Examples:
4974         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
4975              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
4976              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
4977         When the default timezone relates to the zone strings, EET/EEST are
4978         parsed as local timezones (tLOCAL_ZONE), and only change the DST
4979         value (0/1, respectively):
4980              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
4981              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
4982         * lib/parse-datetime.y (debug_print_current_time): If local timezone
4983         was seen, inform about DST change, don't print actual timezone.
4984         (debug_strfdatetime): If local timezone was seen, use default timezone
4985         (and adjust as needed) instead of using incorrect timezone.
4986         (parse_datetime2): Use correct time-zone source string, and adjust
4987         default timezone as needed.
4989         parse-datetime: add debug warning about DST changes
4990         Incorrect date arithmetic due to daylight saving time (DST) are a
4991         common (false) bug report in coreutils.
4992         Detect two such cases and print a warning:
4993         1. year/month/day adjustments (performed on 'struct tm'),
4994            where 'mktime' returns a different isdst value.
4995         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
4996            where the result of 'localtime(3)' on the value will return a
4997            different isdst value.
4998         Note: DST changes could be harmless or unnoticeable.
4999         Examples (with 'TZ=America/New_York'):
5000         Unnoticeable: result is 2016-Dec-14
5001            $ date -d '2016-06-15 EDT + 6 months' +%b
5002            Dec
5003         Unnoticeable: result is 2016-Dec-15 11:00:00
5004            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
5005            2016-12-15
5006         This is unexpected:
5007            $ date -d '2016-06-01 EDT + 6 months' +%F
5008            2016-11-30
5009         The new debug warnings will show:
5010            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
5011            ...
5012            date: warning: daylight saving time changed after date adjustment
5013            ...
5014         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
5015         print an appropriate warning message.
5017         parse-datetime: add debug warning about date arithmetic
5018         Date arithmetic are done directly on the fields of 'struct tm',
5019         which can result in invalid dates. Normalization with 'mktime(3)'
5020         will then produce a different date - which might cause unexpected
5021         results.
5022         Examples:
5023           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
5024           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
5025         Note that date normalization is not inherently wrong and not rejected,
5026         as it has legitimate uses:
5027           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
5028         If the user asked to adjust months but 'mday' changed,
5029         or user asked to adjust years but 'month' changed - warn about it.
5030             $ ./src/date --debug -d '2016-10-31 - 1 month'
5031             ...
5032             date: warning: when adding relative months/years, \
5033                            it is recommended to specify the 15th of the month
5034             ...
5035             date: warning: month/year adjustment resulted in shifted dates:
5036             date:      adjusted Y M D: 2016 09 31
5037             date:    normalized Y M D: 2010 10 01
5038             ...
5039         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
5040         a warning message. Improve recommendation of when to use 15 of the
5041         month or noon for date arithmetic.
5043         parse-datetime: fix debug message of relative part after timezone
5044         Relative part (e.g '+8 days') after a timezone string was not
5045         reported (was only reported after a timezone number). Due to the
5046         parser's structure, timezone strings with numbers were handled
5047         separately.
5048         before:
5049              # Timezone number + relative part: OK
5050              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
5051              ...
5052              date: parsed relative part: -8 day(s)
5053              # Timezone string + relative part: missing
5054              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
5055              [ missing message ]
5056         After: messages are printed in both cases.
5057         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
5059         parse-datetime: fix incorrect debug message on lone number
5060         A lone number is an absolute value, not a relative time part.
5061         before:
5062            $ date --debug -d '20130101'
5063            date: parsed number part: today/this/now
5064         After:
5065            $ ./src/date --debug -d '20130101'
5066            date: parsed number part: (Y-M-D) 2013-01-01
5067         * lib/parse-datetime.y ('item'/'number' tokens): Call
5068         'debug_print_current_time' instead of 'debug_print_relative_time'.
5070 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
5072         doc: modernize for C11 etc.
5073         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
5074         for C11, MinGW, etc.  This responds to Paul Smith's question in:
5075         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
5077         dfa: prefer functions to FETCH_WC macro
5078         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
5079         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
5080         wint_t result into DFA->lex.wctok instead of to a separate arg.
5081         All callers changed.  Move more local decls closer to where
5082         they're used.
5084         dfa: narrow more local var scopes
5085         * lib/dfa.c: Move more local decls to be more local.
5087         dfa: remove duplicate assignment
5088         Problem reported by Bruno Haible in:
5089         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
5090         * lib/dfa.c (parse_bracket_exp): Simplify.
5092 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
5094         dfa: simplify constraint-dependency checking
5095         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
5096         (prev_other_constraint): Remove.
5097         (prev_newline_dependent, prev_letter_dependent):
5098         Simplify, to avoid an unnecessary bitwise AND operation.
5100         dfa: prefer functions and constants to macros
5101         * lib/dfa.c: Prefer constants to macros where either will do.
5102         (streq, isasciidigit, newline_constraint)
5103         (letter_constraint, other_constraint, succeeds_in_context)
5104         (prev_newline_constraint, prev_letter_constraint)
5105         (prev_other_constraint, prev_newline_dependent)
5106         (prev_letter_dependent, accepting, accepts_in_context):
5107         Now static functions instead of function-like macros.
5108         Use lower-case names accordingly.  All uses changed.
5110         dfa: narrow more local var scopes
5111         * lib/dfa.c: Move some more local decls down to nearer where
5112         they're needed.
5114 2016-12-31  Jim Meyering  <meyering@fb.com>
5116         dfa: narrow the scope of many local variables
5117         * lib/dfa.c: Now that we are no longer constrained to c89, move
5118         declarations of many variables (often indices) "down" into the
5119         scope(s) where used or to the point of definition.  This is a
5120         no-semantic-change diff.
5122 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
5124         version-etc: new year
5125         * build-aux/gendocs.sh (version):
5126         * doc/gendocs_template:
5127         * doc/gendocs_template_min:
5128         * doc/gnulib.texi:
5129         * lib/version-etc.c (COPYRIGHT_YEAR):
5130         Update copyright dates by hand in templates and the like.
5131         * all files: Run 'make update-copyright'.
5133 2016-12-31  Eric Blake  <eblake@redhat.com>
5135         do-release-commit-and-tag: avoid shell syntax error
5136         * build-aux/do-release-commit-and-tag (curr_br): $branch can
5137         contain spaces when rebasing.
5139         maint.mk: hoist gnulib_dir definition earlier
5140         * top/maint.mk (gnulib_dir): Move near top of file.
5142 2016-12-31  Jim Meyering  <meyering@fb.com>
5144         maint.mk: do not always evaluate intprops-related shell
5145         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
5146         using gnulib_dir undefined (gnulib_dir is defined later in the
5147         file, which will be fixed separately), and besides, there is no
5148         need to incur the cost of this shell invocation for every single
5149         use of this .mk file.  Reported by Eric Blake in
5150         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
5152 2016-12-30  Jim Meyering  <meyering@fb.com>
5154         maint.mk: improve sc_prohibit_intprops_without_use
5155         * top/maint.mk (_intprops_names): Don't hard-code the list of
5156         symbol names.  Instead, derive it on the fly.
5158 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
5160         dfa: shorten sbit, success
5161         * lib/dfa.c (struct regex_syntax.sbit):
5162         (struct dfa.success): Use char, not int, for array elements, since
5163         they are all in the range 0..7.
5165         dfa: simplify multibyte_prop etc.
5166         This follows up on a change made when dfa.c was in grep, namely grep
5167         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
5168         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
5169         That earlier simplification allows for some more simplification
5170         and trimming down here.
5171         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
5172         (struct lexer_state): New mamber brack.
5173         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
5174         since they must be in the range 0..3 now.
5175         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
5176         the brack member now supersedes them.
5177         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
5178         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
5179         (dfaparse): Remove unnecessary initializations of already-0 storage.
5180         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
5181         (dfassbuild): No need to clear sup->mbcsets.
5183         dfa: minor performance tweak
5184         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
5186         dfa: wrap charclass inside a struct
5187         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
5188         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
5189         about 5% faster, where list.txt is generated by 'aspell dump
5190         master | head -n 100000 >list.txt'.  See Bug#22239.
5191         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
5192         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
5193         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
5194         Adjust to this, e.g., by using charclass * rather than charclass.
5195         All callers changed as needed.
5196         (copyset): Remove.  All uses changed to simple assignment.
5197         (parse_bracket_exp): Use zeroset instead of memset.
5199 2016-12-30  Jim Meyering  <meyering@fb.com>
5201         maint.mk: update list of intprops.h symbol names
5202         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
5203         This avoids a false failure of the sc_prohibit_intprops_without_use
5204         rule in grep.
5206 2016-12-29  Eric Blake  <eblake@redhat.com>
5208         getopt: fix parallel test failure
5209         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
5210         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
5211         * tests/test-getopt-main.h (main): Use different file names
5212         in case test-getopt-gnu and test-getopt-posix run in parallel.
5214 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5216         xalloc: x2nrealloc check for ptrdiff_t overflow
5217         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
5218         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
5220 2016-12-24  Bruno Haible  <bruno@clisp.org>
5222         lock test: Fix performance problem on multi-core machines.
5223         * tests/test-lock.c (USE_VOLATILE): New macro.
5224         (struct atomic_int): New type.
5225         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
5226         functions.
5227         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
5228         as 'struct atomic_int'.
5229         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
5230         reclock_checker_thread, test_recursive_lock): Use the new functions.
5231         Reported by Eric Blake in
5232         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
5233         and by Pádraig Brady in
5234         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
5236 2016-12-19  Bruno Haible  <bruno@clisp.org>
5238         vma-iter: Fix endless loop on 64-bit Windows.
5239         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
5240         'unsigned long'.
5242 2016-12-19  Bruno Haible  <bruno@clisp.org>
5244         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
5245         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
5246         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
5247         Invoke gt_TYPE_WINT_T instead.
5248         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
5249         * modules/stdint (Files): Add m4/wint_t.m4.
5250         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
5251         * modules/wctype-h (Makefile.am): Likewise.
5252         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
5253         not only on MSVC.
5254         * lib/wctype.in.h (wint_t): Likewise.
5256 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
5258         getopt-posix-tests: fix Makefile typo
5259         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
5260         Fix typo: the last ‘_’ was missing in the name.
5261         I suspect that the typo explains this build failure:
5262         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
5263         although I can’t reproduce the problem on Solaris 10 sparc.
5265 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5267         dfa: improve worst-case 'replace' performance
5268         See my note in Bug#22357#71.
5269         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
5270         (merge_constrained): New function, which is like
5271         the old 'merge' function, except with a new argument C2.
5272         Simplify the body by avoiding the need for different sections
5273         of code depending on whether one input is exhausted.
5274         (merge): Use the new function.
5275         (delete): Return the constraint of the deleted position,
5276         not the entire position.  Caller changed.
5277         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
5279 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
5281         dfa: performance improvement for removal of epsilon closure
5282         See Bug#22357#32.
5283         * lib/dfa.c (delete): Use binary search to find deleted index.
5284         (replace): New function.  It replaces a position with the followed set.
5285         (epsclosure): Replace it with a new algorithm.  Update caller.
5287 2016-12-18  Bruno Haible  <bruno@clisp.org>
5289         Split tests for getopt-posix and getopt-gnu.
5290         * tests/test-getopt-posix.c: New file.
5291         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
5292         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
5293         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
5294         GNULIB_TEST_GETOPT_GNU.
5295         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
5296         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
5297         (Makefile.am): Test test-getopt-posix instead of test-getopt.
5298         * modules/getopt-gnu-tests: New file.
5299         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
5301 2016-12-18  Bruno Haible  <bruno@clisp.org>
5303         posix-modules: Add options for specific platforms.
5304         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
5305         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
5306         Invoke func_tmpdir. Filter out the excludes.
5308 2016-12-18  Bruno Haible  <bruno@clisp.org>
5310         getopt: Fix link error for users of getopt() in <unistd.h>.
5311         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
5312         __need_getopt is defined. Undefine all macros before defining them.
5313         * modules/getopt (Include): Clarify that including <unistd.h> is also
5314         OK.
5315         * tests/test-getopt.c: Add comment.
5317 2016-12-17  Bruno Haible  <bruno@clisp.org>
5319         getaddrinfo tests: Avoid compilation error on MSVC.
5320         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
5321         getaddrinfo on native Windows.
5323 2016-12-17  Bruno Haible  <bruno@clisp.org>
5325         getlogin, getlogin_r: Fix link errors on MSVC.
5326         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
5327         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
5328         (Link): New section.
5329         * modules/getlogin_r (Files): Add m4/getlogin.m4.
5330         (configure.ac): Require gl_LIB_GETLOGIN.
5331         (Link): New section.
5332         * NEWS: Mention the new link requirements.
5333         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
5334         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
5336 2016-12-17  Bruno Haible  <bruno@clisp.org>
5338         Un-deprecate the 'progname' module.
5339         * NEWS: Describe the appropriate use-cases of 'progname' versus
5340         'getprogname'. Based on discussion summary at
5341         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
5343 2016-12-17  Bruno Haible  <bruno@clisp.org>
5345         Reorganize NEWS a bit.
5346         * NEWS: Move some not so important changes away from section
5347         "Important Notes".
5349 2016-12-17  Bruno Haible  <bruno@clisp.org>
5351         tanhf: Avoid redefinition error on MSVC.
5352         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
5353         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
5354         may be defined as an inline function.
5355         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
5356         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
5358 2016-12-17  Bruno Haible  <bruno@clisp.org>
5360         tanf: Avoid redefinition error on MSVC.
5361         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
5362         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
5363         may be defined as an inline function.
5364         * modules/math (Makefile.am): Substitute REPLACE_TANF.
5365         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
5367 2016-12-17  Bruno Haible  <bruno@clisp.org>
5369         sqrtf: Avoid redefinition error on MSVC.
5370         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
5371         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
5372         may be defined as an inline function.
5373         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
5374         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
5376 2016-12-17  Bruno Haible  <bruno@clisp.org>
5378         sinhf: Avoid redefinition error on MSVC.
5379         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
5380         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
5381         may be defined as an inline function.
5382         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
5383         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
5385 2016-12-17  Bruno Haible  <bruno@clisp.org>
5387         sinf: Avoid redefinition error on MSVC.
5388         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
5389         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
5390         may be defined as an inline function.
5391         * modules/math (Makefile.am): Substitute REPLACE_SINF.
5392         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
5394 2016-12-17  Bruno Haible  <bruno@clisp.org>
5396         logf: Avoid redefinition error on MSVC.
5397         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
5398         may be defined as an inline function.
5400 2016-12-17  Bruno Haible  <bruno@clisp.org>
5402         log10l: Avoid redefinition error on MSVC.
5403         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
5404         may be defined as an inline function.
5406 2016-12-17  Bruno Haible  <bruno@clisp.org>
5408         log10f: Avoid redefinition error on MSVC.
5409         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
5410         may be defined as an inline function.
5412 2016-12-17  Bruno Haible  <bruno@clisp.org>
5414         hypotl: Avoid redefinition error on MSVC.
5415         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
5416         may be defined as an inline function.
5418 2016-12-17  Bruno Haible  <bruno@clisp.org>
5420         hypotf: Avoid redefinition error on MSVC.
5421         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
5422         may be defined as an inline function.
5424 2016-12-17  Bruno Haible  <bruno@clisp.org>
5426         fmodl: Avoid redefinition error on MSVC.
5427         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
5428         may be defined as an inline function.
5430 2016-12-17  Bruno Haible  <bruno@clisp.org>
5432         fmodf: Avoid redefinition error on MSVC.
5433         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
5434         may be defined as an inline function.
5436 2016-12-17  Bruno Haible  <bruno@clisp.org>
5438         expf: Avoid redefinition error on MSVC.
5439         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
5440         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
5441         may be defined as an inline function.
5442         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
5443         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
5445 2016-12-17  Bruno Haible  <bruno@clisp.org>
5447         coshf: Avoid redefinition error on MSVC.
5448         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
5449         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
5450         may be defined as an inline function.
5451         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
5452         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
5454 2016-12-17  Bruno Haible  <bruno@clisp.org>
5456         cosf: Avoid redefinition error on MSVC.
5457         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
5458         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
5459         may be defined as an inline function.
5460         * modules/math (Makefile.am): Substitute REPLACE_COSF.
5461         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
5463 2016-12-17  Bruno Haible  <bruno@clisp.org>
5465         atan2f: Avoid redefinition error on MSVC.
5466         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
5467         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
5468         may be defined as an inline function.
5469         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
5470         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
5472 2016-12-17  Bruno Haible  <bruno@clisp.org>
5474         atanf: Avoid redefinition error on MSVC.
5475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
5476         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
5477         may be defined as an inline function.
5478         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
5479         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
5481 2016-12-17  Bruno Haible  <bruno@clisp.org>
5483         asinf: Avoid redefinition error on MSVC.
5484         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
5485         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
5486         may be defined as an inline function.
5487         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
5488         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
5490 2016-12-17  Bruno Haible  <bruno@clisp.org>
5492         acosf: Avoid redefinition error on MSVC.
5493         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
5494         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
5495         may be defined as an inline function.
5496         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
5497         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
5499 2016-12-17  Bruno Haible  <bruno@clisp.org>
5501         Avoid redefinition errors on MSVC.
5502         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
5503         the function may be defined as an inline function.
5504         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
5505         the function may be defined as an inline function.
5507 2016-12-17  Bruno Haible  <bruno@clisp.org>
5509         Avoid redefinition errors on MSVC.
5510         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
5511         * lib/unistd.in.h: Include <stdio.h> when necessary.
5513 2016-12-17  Bruno Haible  <bruno@clisp.org>
5515         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
5516         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
5517         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
5518         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
5519         WINT_MAX.
5521 2016-12-17  Bruno Haible  <bruno@clisp.org>
5523         Avoid autoconf warning.
5524         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
5525         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
5527 2016-12-17  Bruno Haible  <bruno@clisp.org>
5529         fpending: Revert workaround against Emacs bug.
5530         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
5531         The Emacs bug is fixed by Eli Zaretskii in
5532         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
5534 2016-12-17  Bruno Haible  <bruno@clisp.org>
5536         getlogin_r tests: Port to mingw.
5537         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
5538         regression introduced on 2014-05-19.
5540 2016-12-17  Bruno Haible  <bruno@clisp.org>
5542         getlogin: Port to newer mingw.
5543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
5544         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
5545         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
5546         HAVE_GETLOGIN.
5547         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
5548         HAVE_GETLOGIN.
5549         * doc/posix-functions/getlogin.texi: Mention the issue.
5550         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
5551         regression introduced on 2014-05-14.
5553 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
5555         builtin-expect: improve port to IBM XL C
5556         Problem reported for z/OS by Daniel Richard G. in:
5557         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
5558         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
5559         Test for <builtins.h> directly.
5561         builtin-expect: port to IBM XL C
5562         Problem reported for z/OS by Daniel Richard G. in:
5563         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
5564         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
5565         Also allow __builtin_expect defined via a standard include file.
5567         regex: fix dependency
5568         Problem reported by Bruno Haible in:
5569         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
5570         * modules/regex: Depend on builtin-expect.
5572         builtin-expect: new module
5573         Fix fnmatch to use it.
5574         Problem reported for z/OS by Daniel Richard G.
5575         * lib/fnmatch.c (__builtin_expect):
5576         * lib/glob.c (__builtin_expect):
5577         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
5578         * lib/memmem.c (__builtin_expect) [!_LIBC]:
5579         * lib/scandir.c (__builtin_expect):
5580         * lib/strstr.c (__builtin_expect) [!_LIBC]:
5581         Remove macro; config.h now does this.
5582         * lib/gl_anytreehash_list1.h (add_to_bucket):
5583         * lib/regex_internal.h (BE):
5584         Assume __builtin_expect.
5585         * m4/builtin-expect.m4, modules/builtin-expect: New files.
5586         * modules/avltreehash-list, modules/fnmatch, modules/glob:
5587         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
5588         * modules/scandir, modules/strstr-simple:
5589         Depend on builtin-expect.
5591 2016-12-15  Bruno Haible  <bruno@clisp.org>
5593         init.sh: Add possibility to not delete temporary files.
5594         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
5595         to yes, don't erase the temporary directory.
5597 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
5599         regex: fix integer-overflow bug in never-used code
5600         Problem reported by Clément Pit–Claudel in:
5601         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
5602         * lib/regex_internal.h: Include intprops.h.
5603         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
5604         behavior on integer overflow.
5605         * modules/regex (Depends-on): Add intprops.
5607         fpending: fix port to MinGW on Emacs
5608         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
5609         Problem reported by Eli Zaretskii in:
5610         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
5611         Is Plan 9 still a valid porting target, anyway?
5613 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5615         safe-alloc: use xalloc-oversized
5616         * lib/safe-alloc.c: Include xalloc-oversized.h.
5617         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
5618         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
5620         xalloc: do not exceed PTRDIFF_MAX
5621         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
5622         xalloc_oversized check, since objects larger than PTRDIFF_MAX
5623         bytes have pointer-subtraction problems.
5625         malloca: do not exceed PTRDIFF_MAX
5626         * lib/malloca.h: Include xalloc-oversized.
5627         (nmalloca): Use xalloc_oversized instead of rolling our own.
5628         * modules/malloca (Depends-on):
5629         * modules/relocatable-prog-wrapper (Depends-on):
5630         Add xalloc-oversized.
5632         quotearg: pacify GCC better
5633         * modules/quotearg (Depends-on): Add minmax, stdint.
5634         * lib/quotearg.c: Include minmax.h, stdint.h.
5635         (nslots): Now int, as there seems little point to going to extra
5636         work merely to support the INT_MAX slot, which nobody ever uses.
5637         (quotearg_n_options): Redo size-overflow checks to pacify GCC
5638         and to catch (mostly-theoretical) ptrdiff_t problems too.
5639         This can be done via one comparison.
5641 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
5643         xalloc-oversized: check for PTRDIFF_MAX too
5644         This avoids undefined behavior when subtracting pointers to
5645         objects containing more than PTRDIFF_MAX bytes.
5646         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
5647         Also return 1 if the result would exceed PTRDIFF_MAX>
5648         * modules/xalloc-oversized (Depends-on):
5649         Add stdint.
5651         dfa: fix glitches in previous commit
5652         Sorry, I don't know how I managed to commit the wrong version.
5653         * lib/dfa.c (MIN): Move up.
5654         (xpalloc): Now static.
5656         dfa: fix some unlikely integer overflows
5657         I found these while reviewing the recent Coverity-related fix.
5658         This patch changes part of dfa.c to prefer ptrdiff_t instead of
5659         size_t for object counts.  Using ptrdiff_t is the style typically
5660         used in Emacs; although it wastes a sign bit as sizes can never be
5661         negative, it makes -fsanitize=undefined more likely to catch
5662         integer overflows in index calculation, and nowadays the upside is
5663         typically more important than the downside.  Although perhaps the
5664         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
5665         of dfa.c already does, since it uses state_num which is signed),
5666         that is a bigger change and is not needed to fix the bugs I found.
5667         * lib/dfa.c: Include stdint.h and intprops.h.
5668         (TOKEN_MAX): New macro.
5669         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
5670         (charclass_index, parse_bracket_exp, addtok, insert, merge)
5671         (realloc_trans_if_necessary, free_mbdata):
5672         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
5673         This is safe because xpalloc checks that the sizes do not exceed
5674         either SIZE_MAX or PTRDIFF_MAX.
5675         (xpalloc): New function, mostly taken from Emacs.
5676         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
5677         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
5678         (charclass_index): Check for integer overflow in computing
5679         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
5680         added to it later.
5681         (alloc_position_set): Check for integer overflow.  On typical
5682         platforms this check has zero overhead, since the constant
5683         expression is false.
5684         (realloc_trans_if_necessary):
5685         Remove assertion, which I hope Coverity no longer needs.
5687         * modules/dfa (Depends-on): Add intprops, stdint.
5689 2016-12-12  Jim Meyering  <meyering@fb.com>
5691         dfa: add an assertion to avoid coverity false positive
5692         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
5693         warned that "newalloc1 - 2" could overflow.
5695 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
5697         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
5698         * dfa.h (DFA_CASE_FOLD): Remove.
5699         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
5701 2016-12-13  John W. Eaton  <gnu@jweaton.org>
5703         link: fix test to declare use of rename()
5704         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
5705         -Werror=implicit-function-declaration
5707 2016-12-12  Bruno Haible  <bruno@clisp.org>
5709         fpending: Port to native Windows with MSVC.
5710         * lib/fpending.c: Include stdio-impl.h.
5711         (__fpending): Include all known implementations. Err out if it's not
5712         ported.
5713         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
5714         * modules/fpending (Files): Add lib/stdio-impl.h.
5715         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
5717 2016-12-12  Bruno Haible  <bruno@clisp.org>
5719         stdioext: Port to native Windows with MSVC.
5720         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
5721         (struct _gl_real_FILE): New type.
5722         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
5723         Windows.
5724         * lib/fbufmode.c (fbufmode): Add code for native Windows.
5725         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
5726         other SystemV derived implementations.
5727         * lib/fpurge.c (fpurge): Likewise.
5728         * lib/freadable.c (freadable): Likewise.
5729         * lib/freadahead.c (freadahead): Likewise.
5730         * lib/freading.c (freading): Likewise.
5731         * lib/freadptr.c (freadptr): Likewise.
5732         * lib/freadseek.c (freadptrinc): Likewise.
5733         * lib/fseeko.c (fseeko): Likewise.
5734         * lib/fseterr.c (fseterr): Likewise.
5735         * lib/fwritable.c (fwritable): Likewise.
5736         * lib/fwriting.c (fwriting): Likewise.
5737         Reported by Gisle Vanem <gvanem@yahoo.no>.
5739 2016-12-11  Jim Meyering  <meyering@fb.com>
5741         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
5742         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
5743         to work with most shells, but not with the one provided by many
5744         Solaris 10 systems, so running configure with such a /bin/sh evokes
5745         e.g., "./configure: syntax error at line 33602: `(' unexpected".
5746         Reported by Assaf Gordon in
5747         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
5749 2016-12-10  Bruno Haible  <bruno@clisp.org>
5751         threadlib: Optimize out runtime test on Solaris >= 10.
5752         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
5753         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
5754         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
5756 2016-12-10  Bruno Haible  <bruno@clisp.org>
5758         stdint: Update doc about Solaris 9.
5759         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
5761 2016-12-09  Bruno Haible  <bruno@clisp.org>
5763         c-ctype tests: Fix link error on Solaris 9.
5764         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
5765         Reported at <https://savannah.gnu.org/bugs/?46827>.
5767 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
5769         dfa: fix performance bug that recomputes trans
5770         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
5771         25 on-demand changes.  The bug caused build_state to reset all
5772         d->trans elements to -2 even when d->trans was already non-null.
5773         Use C99 style decls after statements in this function.
5775         same-inode: port to MinGW
5776         Here st_ino is always 0, so change the definition of SAME_INODE so
5777         that 1 means the two files are the same, 0 with st_ino != 0 means
5778         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
5779         reported by Bruno Haible (Bug#25146).
5780         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
5781         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
5783 2016-12-04  Bruno Haible  <bruno@clisp.org>
5785         javacomp: Support Java 7 and 8.
5786         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
5787         target-version 1.7, 1.8.
5789 2016-12-02  Daiki Ueno  <ueno@gnu.org>
5791         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
5792         GPLv2" rewriting.
5794 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
5796         * gnulib-tool (func_import): Adhere to the license guideline when
5797         rewriting the license text to "LGPLv3+ or GPLv2":
5798         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
5800 2016-12-02  Bruno Haible  <bruno@clisp.org>
5802         localcharset: Avoid theoretical buffer overrun.
5803         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
5804         return value from setlocale if it would lead to a buffer overrun.
5806 2016-12-01  Bruno Haible  <bruno@clisp.org>
5808         Relicense some modules under LGPLv2+.
5809         Kevin Cernekee's approval is in
5810         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
5811         * modules/fseterr (License): Change to LGPLv2+.
5812         * modules/mbchar (License): Likewise.
5813         * modules/mbiter (License): Likewise.
5814         * modules/mbsnlen (License): Likewise.
5815         * modules/wcwidth (License): Likewise.
5817 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
5819         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
5820         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
5821         OS/2 kLIBC.
5823 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
5825         alphasort, scandir: Port to OS/2 kLIBC
5826         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
5827         declaration.
5828         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
5830 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
5832         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
5833         * lib/relocatable.c (relocate): Do not touch pathname if it is started
5834         with '/@unixroot'.
5836 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
5838         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
5839         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
5840         OS/2 kLIBC unless TCPV40HDRS is defined.
5842 2016-11-29  Jim Meyering  <meyering@fb.com>
5844         dfa: avoid new infinite loop
5845         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
5846         * lib/dfa.c (dfastate): When constructing a new state table, we could
5847         initially declare that we had found a match, and later find that
5848         constraints eliminate that possibility, yet continue to use the
5849         now stale "matched" indicator.  That would lead to an infinite loop.
5850         The solution is to update "matched" when necessary.
5851         Introduced by commit v0.1-983-g403adf1.
5853 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
5855         dfa: avoid match middle in multibyte character
5856         * lib/dfa.c (transit_state): If fails in matching single byte characters
5857         on a state including period expression in non-UTF8 multibyte locales,
5858         skip trailing bytes.
5859         (dfa_supported): Revert previous change.
5861 2016-11-27  Jim Meyering  <meyering@fb.com>
5863         dfa: avoid false match in non-UTF8 multibyte locales
5864         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
5865         as "not supported" so that callers will resort to using regex-based
5866         matcher.  This will surely hurt performance, but correctness trumps
5867         performance here, and the affected locales are less and less relevant,
5868         these days.  See grep's bug report https://bugs.gnu.org/24975.
5870 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
5872         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
5873         * lib/ptsname_r.c: Include the appropriate headers.
5874         [__sun]: Delete sys/sysmacros.h include.
5875         [_AIX || __osf__]: Likewise.
5876         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
5878 2016-11-27  Pádraig Brady  <P@draigBrady.com>
5880         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
5881         * lib/md4.c (md4_process_bytes): The existing define is made internal
5882         in recent versions of glibc, so also use this new public define.
5883         * lib/md5.c (md5_process_bytes): Likewise.
5884         * lib/sha1.c (sha1_process_bytes): Likewise.
5885         * lib/sha256.c (sha256_process_bytes): Likewise.
5886         * lib/sha512.c (sha512_process_bytes): Likewise.
5888 2016-11-27  Pádraig Brady  <P@draigBrady.com>
5890         maint: use a more standard return from mbrtowc test
5891         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
5892         from the test program as this often indicates an
5893         unhandled case in the test program.
5894         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
5895         (gl_MBRTOWC_SANITYCHECK): Likewise.
5896         (gl_MBRTOWC_NULL_ARG2): Likewise.
5897         (gl_MBRTOWC_NUL_RETVAL): Likewise.
5899 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
5901         freopen: work around glibc bug with closed fd
5902         Work around glibc bug#15589, where freopen mishandles the case
5903         where stdin etc. are already closed.
5904         * doc/posix-functions/freopen.texi (freopen): Document the bug.
5905         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
5906         instead of __need_FILE, as the latter does not work with glibc.
5907         Include <fcntl.h>, for open flags.
5908         (rpl_freopen): Work around glibc bug.
5909         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
5910         * modules/freopen (Depends-on): Add fcntl-h.
5911         * tests/test-freopen.c (main): Test for bug.
5913 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
5915         fnmatch: fix typo introduced on 2016-08-17
5916         This fixes the port to non-GCC compilers that lack __builtin_expect.
5917         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
5919         dfa: simplify with new function fillset
5920         * lib/dfa.c (fillset): New function.
5921         Use it for clarity when applicable.
5923         dfa: fix glitches with on-demand states
5924         Also, adjust commentary to better match new code.
5925         Some of these glitches predate the recent change.
5926         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
5927         only non-initial states.
5928         (dfastate): Rename locals to better match new roles.
5929         Move them into nested scopes if this is easy.
5930         Omit unnecessary calls to zeroset.
5931         Simplify test for whether to throw in the positions of state 0.
5932         Omit C99-ism (decl after statement) since Gawk still wants C89.
5933         (build_state): Omit unnecessary test and assignment.
5934         Fix some confusion that counted transition tables inaccurately
5935         and could cause a memory leak.
5936         (dfaexec_main): Redo to make it clearer to the compiler that
5937         -1 and -2 are the only negative state numbers here.
5939 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
5941         dfa: addition of new state on demand
5942         * src/dfa.c (dfastate): Add argument UC, the current input character.
5943         Fill only a group including the character in transition table.
5944         (realloc_trans_if_necessary): Add the dummy state which means that a
5945         transition table is assigned but the next state is not assigned.
5946         (build_state): Return the next state.  All callers updated.
5947         (transit_state_singlebyte): If we get the dummy state,
5948         fill the transition table.
5949         (dfaexec_main): Handle the dummy state.
5950         (free_mbdata, dfafree): Consider the dummy state.
5952 2016-11-24  Daiki Ueno  <ueno@gnu.org>
5954         srclist: sync with released gettext
5955         * config/srclist.txt: Set "release" option to the files under
5956         $GETTEXT.
5958 2016-11-24  Daiki Ueno  <ueno@gnu.org>
5960         srclist: add "release" option
5961         * config/srclist.txt: Change the format so that the first column
5962         of each line points to the top-level directory of the source
5963         archive.
5964         * config/srclist-update: Accept "release" option that checks files
5965         from the most recently tagged revision in the source archive.
5967 2016-11-21  Bruno Haible  <bruno@clisp.org>
5969         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
5970         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
5971         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
5972         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
5973         Inline and remove member function 'rpl ()' of the wrapper struct.
5975 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
5977         dfa: fix logic typo
5978         Problem reported by Stephane Chazelas (Bug#24973).
5979         * lib/dfa.c (using_simple_locale): Fix typo that caused some
5980         non-simple locales like fr_FR to be treated as simple.
5982 2016-11-20  Jim Meyering  <meyering@fb.com>
5984         fix test driver leaks: exclude, malloc, realloc
5985         * tests/test-exclude.c (main): Fix trivial leak.
5986         * tests/test-malloc-gnu.c (main): Likewise.
5987         * tests/test-realloc-gnu.c (main): Likewise.
5988         With these changes, grep's tests are now leak free.
5989         I.e., running them with ASAN elicits no failure:
5990           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
5991             AM_LDFLAGS='-fsanitize=address -static-libasan' check
5993 2016-11-11  Bruno Haible  <bruno@clisp.org>
5995         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
5996         * modules/libunistring: (License): Change from LGPL to
5997         "LGPLv3+ or GPLv2".
5998         * modules/libunistring-optional: Likewise.
5999         * modules/unicase/*: Likewise.
6000         * modules/uniconv/*: Likewise.
6001         * modules/unictype/*: Likewise.
6002         * modules/unigbrk/*: Likewise.
6003         * modules/unilbrk/*: Likewise.
6004         * modules/uniname/*: Likewise.
6005         * modules/uninorm/*: Likewise.
6006         * modules/unistdio/*: Likewise.
6007         * modules/unistr/*: Likewise.
6008         * modules/uniwbrk/*: Likewise.
6009         * modules/uniwidth/*: Likewise.
6011 2016-11-12  Bruno Haible  <bruno@clisp.org>
6013         Relicense some modules under LGPLv2+.
6014         Paul Eggert's approval is in
6015         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
6016         Eric Blake's approval is in
6017         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
6018         Ludovic Courtès's approval is in
6019         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
6020         * modules/isnand-nolibm (License): Change to LGPLv2+.
6021         * modules/isnanf-nolibm (License): Likewise.
6022         * modules/isnanl-nolibm (License): Likewise.
6024 2016-11-19  Bruno Haible  <bruno@clisp.org>
6026         Relicense some modules under LGPLv2+.
6027         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
6028         modules/vasnprintf.
6029         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
6030         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
6031         All other significant changes to the files in lib/ of these modules
6032         are from me.
6033         * modules/memcmp2 (License): Change to LGPLv2+.
6034         * modules/amemxfrm (License): Likewise.
6035         * modules/fpieee (License): Likewise.
6036         * modules/fpucw (License): Likewise.
6037         * modules/frexp-nolibm (License): Likewise.
6038         * modules/frexpl-nolibm (License): Likewise.
6039         * modules/printf-frexp (License): Likewise.
6040         * modules/printf-frexpl (License): Likewise.
6041         * modules/printf-safe (License): Likewise.
6042         * modules/signbit (License): Likewise.
6044 2016-11-17  Bruno Haible  <bruno@clisp.org>
6046         Enable Unicode decoder safety unconditionally.
6047         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
6048         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
6049         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
6050         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
6051         * lib/unistr/u8-prev.c (u8_prev): Likewise.
6052         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
6053         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
6054         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
6055         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
6056         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
6057         * lib/unistr/u16-prev.c (u16_prev): Likewise.
6058         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
6059         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
6060         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
6061         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
6062         * lib/unistr/u32-prev.c (u32_prev): Likewise.
6063         * lib/unistr/u32-next.c (u32_next): Likewise.
6064         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
6065         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
6066         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
6067         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
6068         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
6069         CONFIG_UNICODE_SAFETY tests unconditionally.
6070         * tests/unistr/test-u32-mblen.c (main): Likewise.
6071         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
6072         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
6073         * tests/unistr/test-u32-next.c (main): Likewise.
6074         * tests/unistr/test-u32-strmblen.c (main): Likewise.
6075         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
6076         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
6077         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
6078         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
6079         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
6080         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
6081         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
6082         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
6083         * lib/unistr/u16-check.c (u16_check): Update comment.
6084         * NEWS: Mention the changes that callers should be aware of.
6086 2016-11-19  Bruno Haible  <bruno@clisp.org>
6088         relocatable-prog-wrapper: Fix breakage on Cygwin.
6089         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
6090         (Depends-on): Remove intprops.
6091         * lib/relocwrapper.c: Update dependency tree.
6092         (strerror): Undefine.
6093         * build-aux/install-reloc (func_create_wrapper): Do not compile
6094         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
6096 2016-11-19  Bruno Haible  <bruno@clisp.org>
6098         strerror: Make it compile in C++ mode.
6099         * lib/strerror.c (strerror): Ignore the return value of memcpy().
6101 2016-11-15  Pedro Alves  <palves@redhat.com>
6103         sys_time: add gnulib::timeval for C++
6104         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
6105         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
6106         timeval macro.
6108 2016-11-14  Pedro Alves  <palves@redhat.com>
6110         snippet/c++defs: fix real-floating arg functions in C++ mode
6111         Also, define isfinite, isinf, isnan, signbit in the gnulib
6112         namespace instead of in the global namespace.
6113         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
6114         (_GL_END_NAMESPACE): New.
6115         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
6116         (isfinite, isinf, isnan, signbit) [__cplusplus &&
6117         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
6118         instead of in the global namespace.
6119         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
6120         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
6121         of in the global namespace.
6123 2016-11-13  Jim Meyering  <meyering@fb.com>
6125         strftime: don't use __THROW
6126         Each use of __THROW would provoke this from gcc-7-to-be:
6128           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
6129             on unit local functions [-Wattributes]
6130           static int iso_week_days (int, int) __THROW;
6131           ^~~~~~
6132         * lib/strftime.c (__THROW): Don't define.
6133         Remove each use of __THROW.
6134         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
6135         (tm_diff, iso_week_days, __strftime_internal): Likewise.
6137 2016-11-14  Paul Eggert  <eggert@union>
6139         obstack: port to gcc -fcheck-pointer-bounds
6140         Problem found by 'make check' failure on bleeding-edge coreutils
6141         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
6142         6.2.0-5ubuntu12), configured via "./configure
6143         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
6144         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
6145         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
6146         New macro, copied from fts_.h.
6147         (struct _obstack_chunk.contents): Use it.
6149 2016-11-14  Eric Blake  <eblake@redhat.com>
6151         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
6152         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
6153         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
6155 2016-11-14  Pádraig Brady  <P@draigBrady.com>
6157         strptime: fix compile error in recent change
6158         * lib/strptime.c (__strptime_internal): Fix ported code.
6160 2016-11-11  Bruno Haible  <bruno@clisp.org>
6162         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
6163         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
6164         (func_import): Extend determination of license_incompatibilities.
6165         (func_create_testdir): Extend table of license compatibility. Handle
6166         also the licenses GPLv3+, GPL, LGPLv3+.
6168 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
6170         strftime: tune %q
6171         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
6173         Merge strftime.c changes from glibc
6174         This incorporates:
6175         2007-10-16 [BZ #5184] Add tzset_called argument
6176         2008-06-13 [BZ #6612] pass reference to tzset_called around
6177         2009-10-30 Implement Burmese language locale for Myanmar
6178         2010-01-09 Add support for XPG7 testing
6179         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
6180         2015-10-20 Convert miscellaneous function definitions to prototype style
6181         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
6182         it anyway and this lessens the difference between gnulib and glibc.
6183         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
6184         (__THROW): Define if standard headers do not.
6185         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
6186         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
6187         Declare with __THROW.
6188         (__strftime_internal): Rename from strftime_case_. Add arg for
6189         whether tzset is called.  All uses changed.  Call tzset at most
6190         once.  Allow %OC, for Burmese.
6191         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
6192         Don't assume values are in range.
6194 2016-11-12  Eric Blake  <eblake@redhat.com>
6196         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
6197         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
6198         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
6199         different value.
6201 2006-11-12  Pedro Alves  <palves@redhat.com>
6203         Fix gnulib C++ namespace support and std::frexp
6204         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
6205         _GL_CXXALIASWARN.
6207 2006-11-12  Pedro Alves  <palves@redhat.com>
6209         GNULIB_NAMESPACE::func need not pull in rpl_func
6210         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
6211         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
6212         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
6213         struct instead of a function pointer.
6215 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
6217         manywarnings: fix -Wno-missing-field-initializers detection
6218         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
6219         to be independent of -Wunused-variable.  I.E. ensure the latter
6220         warning doesn't occur so that detection of the former is accurate.
6222 2016-11-05  Pádraig Brady  <pbrady@fb.com>
6224         strftime,strptime: support %q to represent the quarter
6225         * lib/strftime.c (strftime_case_): Add %q case.
6226         * lib/strptime.c (__strptime_internal): Likewise.
6227         * tests/test-strftime.c (quarter_test): A new test case.
6229 2016-11-03  Eric Blake  <eblake@redhat.com>
6231         bootstrap: Fix get_version() for AIX 5.3
6232         * build-aux/bootstrap (get_version): Factor out sed script, since
6233         indented comments choke AIX 5.3 sed.
6234         Reported-by: Michael Felt <aixtools@gmail.com>
6236 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
6238         intprops: port to older XL C
6239         Problem reported by Alexander Samoilov in:
6240         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
6241         http://savannah.nongnu.org/bugs/?49448
6242         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
6243         Define to 1 only for XL C 12.1 or later, since this bug
6244         occurs in XL C for AIX 6.0 but not in 12.1.
6246 2016-11-02  Pádraig Brady  <P@draigBrady.com>
6248         backupfile: initialize default suffix within the implementation
6249         * lib/backupfile.c (find_backup_file_name): Initialize the
6250         global variable here, to simplify usage, and to only call
6251         getenv() when needed.
6253 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6255         futimens: remove FIXME for old Linux kernels
6256         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
6257         this in 2012" FIXME, like that for utimensat.
6259         utimensat: remove FIXME for old Linux kernels
6260         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
6261         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
6262         this in 2012" FIXME, by assuming the file system bug is absent
6263         unless demonstrated to be present.  We no longer need to worry
6264         about Linux kernel 2.6.32 when building with newer kernels.
6266 2016-10-16  Bruno Haible  <bruno@clisp.org>
6268         qsort_r: Fix macrology for platforms that lack the function.
6269         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
6270         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
6271         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
6272         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
6273         not exist.
6274         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
6275         the function exists.
6276         * modules/qsort_r: Add comments.
6278 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
6280         sys_types: fix Texinfo typos
6281         * doc/glibc-functions/gnu_dev_major.texi:
6282         * doc/glibc-functions/gnu_dev_makedev.texi:
6283         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
6285 2016-10-26  John David Anglin  <dave.anglin@bell.net>
6287         getprogname: port to HP-UX
6288         See Bug#24805.
6289         * lib/getprogname.c (getprogname) [__hpux]: Port.
6290         * tests/test-getprogname.c (STREQ) [__hpux]:
6291         Special-case for HP-UX limitations on program name length.
6293 2016-10-20  Bruno Haible  <bruno@clisp.org>
6295         Update doc about target platforms.
6296         * doc/gnulib-intro.texi (Target Platforms): Update list.
6298 2016-10-15  Bruno Haible  <bruno@clisp.org>
6300         opendir, readdir, closedir: Relicense under LGPLv2+.
6301         * modules/opendir (License): Change to LGPLv2+.
6302         * modules/readdir (License): Likewise.
6303         * modules/closedir (License): Likewise.
6305 2016-10-16  Bruno Haible  <bruno@clisp.org>
6307         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
6308         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
6309         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
6310         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
6311         HAVE_DECL_STRERROR_R.
6313 2016-10-16  Bruno Haible  <bruno@clisp.org>
6315         Make the 'argp' module work without the 'error' module.
6316         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
6318 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
6320         diffseq: restore TOO_EXPENSIVE heuristic
6321         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
6322         (Bug#24715).  The simplest solution is to restore the
6323         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
6324         using a higher threshold to avoid Bug#16848 on smaller files.
6325         * lib/diffseq.h (struct context): Restore member too_expensive.
6326         (struct partition): Restore members lo_minimal, hi_minimal.
6327         (diag, compareseq): Restore arg find_minimal.  All uses changed.
6328         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
6329         1993 to make 'diff' run faster (but not as well) on large inputs,
6330         but use a threshold of 4096 instead of the old 256.
6331         * lib/fstrcmp.c (strcmp_bounded):
6332         * lib/git-merge-changelog.c (compute_differences):
6333         Adjust to diffseq.h changes.
6335 2016-10-22  Bruno Haible  <bruno@clisp.org>
6337         iconv: Avoid compilation error when bootstrapping GNU libiconv.
6338         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
6339         declaration yet, define ICONV_CONST to empty.
6341 2016-10-15  Bruno Haible  <bruno@clisp.org>
6343         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
6344         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
6345         module.
6347 2016-10-16  Bruno Haible  <bruno@clisp.org>
6349         system-quote tests: Avoid compiler warning on AIX.
6350         * tests/test-system-quote-child.c (fopen): Redefine like the system's
6351         <stdio.h> does.
6353 2016-10-16  Bruno Haible  <bruno@clisp.org>
6355         Fix some "gcc -Wall" warnings.
6356         * tests/test-ffsl.c (main): Use variable x, not i.
6357         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
6358         freopen.
6359         * tests/test-sethostname1.c (main): Explicitly ignore the return value
6360         of sethostname.
6362 2016-10-16  Bruno Haible  <bruno@clisp.org>
6364         gnulib-tool: Make --create-testdir on all modules work again.
6365         * gnulib-tool (func_create_testdir): Don't include the
6366         non-recursive-gnulib-prefix-hack module.
6368 2016-10-21  Daiki Ueno  <ueno@gnu.org>
6370         libunistring: change the maintainer to 'all'
6371         * modules/gen-uni-tables, modules/libunistring:
6372         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
6373         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
6374         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
6375         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
6376         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
6377         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
6378         * modules/uniwidth/*: Change the maintainer to 'all'.
6380 2016-10-16  Bruno Haible  <bruno@clisp.org>
6382         Simplify "configure: checking ..." messages.
6383         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
6384         AC_MSG_NOTICE.
6385         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
6387 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
6389         quotearg-tests: pacify gcc -Wall
6390         Problem reported by Bruno Haible in:
6391         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
6392         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
6393         * tests/test-quotearg.h: ... from here.
6395 2016-10-20  Pádraig Brady  <P@draigBrady.com>
6397         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
6398         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
6399         Needed on Centos <= 4.
6401 2016-10-20  Jim Meyering  <meyering@fb.com>
6403         printf.m4: fix a bug in detecting printf %j support
6404         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
6405         uintmax_t is defined in neither stdint.h nor inttypes.h.
6406         Before, this macro might have mistakenly set
6407         gl_cv_func_printf_sizes_c99=yes on such a system.
6408         Spotted by Zev Weiss.
6410 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
6412         sched: substitute HAVE_SYS_CDEFS_H too
6413         Problem reported by Tom G. Christensen in:
6414         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
6415         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
6416         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
6418 2016-10-19  Pádraig Brady  <P@draigBrady.com>
6420         quotearg: never write beyond the returned length
6421         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
6422         scan of the string when we initially encounter a single quote when
6423         shell quoting, so that if we then switch to a more concise quoting method
6424         we will not have written beyond that returned length.
6425         This is significant for sh-quote, which has separate routines
6426         to determine the length and do the actual quoting.
6427         * tests/test-quotearg.h: Reinstate the buffer bounds checking
6428         now that we never write more than the returned length.
6430 2016-10-18  Bruno Haible  <bruno@clisp.org>
6432         getprogname tests: Avoid failure in packages that use libtool.
6433         * tests/test-getprogname.c (main): Strip "lt-" prefix.
6434         Based on a patch by Jim Meyering.
6436 2016-10-16  Bruno Haible  <bruno@clisp.org>
6438         getprogname: Fix test failure on Cygwin. Comments.
6439         * lib/getprogname.h: Add comments.
6440         * lib/getprogname.c: Add comments. Fix #elif indentation.
6441         * tests/test-getprogname.c (main): On Cygwin, expect a result without
6442         ".exe" suffix.
6444 2016-10-16  Bruno Haible  <bruno@clisp.org>
6446         Make sure the libunistring detection rejects older versions with a
6447         known bug.
6448         * modules/unistr/u8-strtok (configure.ac): Bump required version.
6449         * modules/unistr/u16-strtok (configure.ac): Likewise.
6450         * modules/unistr/u32-strtok (configure.ac): Likewise.
6452 2016-10-18  Bruno Haible  <bruno@clisp.org>
6454         sh-quote, system-quote: revert regression of unit test.
6455         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
6456         * tests/test-system-quote-main.c (check_one): Likewise.
6458 2016-10-16  Pádraig Brady  <P@draigBrady.com>
6460         quotearg: fix stale tests
6461         * tests/test-quotearg.c [locale_results]: Add the missing str7
6462         entries to the expected results.
6463         * tests/test-system-quote-main.c (check_one): Don't enforce that we
6464         don't write beyond the returned length, since that's no longer the
6465         case if we switch to a more concise quoting style.
6466         * tests/test-sh-quote.c (check_one): Likewise.
6467         (main): Adjust for the new more concise quoting style.
6468         Reported by Bruno Haible.
6470 2016-10-16  Jim Meyering  <meyering@fb.com>
6472         non-recursive-gnulib-prefix-hack: fix inconsequential typo
6473         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
6474         to "$1".  This macro is always invoked with $1 == lib.
6475         Spotted by Bruno Haible
6477 2016-10-16  Bruno Haible  <bruno@clisp.org>
6479         Fix a test crash.
6480         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
6481         fails.
6483 2016-10-16  Pádraig Brady  <P@draigBrady.com>
6485         test-limits-h: suppress -Woverlength-strings
6486         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
6488 2016-10-15  Bruno Haible  <bruno@clisp.org>
6490         gettime, timespec, utimens: Relicense under LGPL.
6491         * modules/gettime (License): Change to LGPL.
6492         * modules/timespec (License): Likewise.
6493         * modules/utimens (License): Likewise.
6495 2016-10-14  Bruno Haible  <bruno@clisp.org>
6496             Pádraig Brady  <P@draigBrady.com>
6498         canonicalize-lgpl: Support the case path_max > INT_MAX.
6499         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
6500         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
6502 2016-10-13  Jim Meyering  <meyering@fb.com>
6504         getprogname: IBM z/OS: avoid NULL-dereference
6505         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
6506         upon strdup failure.
6508 2016-10-12  Jim Meyering  <meyering@fb.com>
6510         test-stdint: use _GL_VERIFY rather than "verify" for some tests
6511         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
6512         and an abbreviated diagnostic rather than verify with the full one,
6513         because the full-length strings would evoke warnings from gcc with
6514         -Woverlength-strings.
6516 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
6518         stdint: port SIZE_MAX to glibc s390
6519         Problem reported by Eric Blake in:
6520         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
6521         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
6522         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
6523         correct type, if possible.
6525 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
6527         getprogname: port to IBM z/OS
6528         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
6530 2016-10-11  Jim Meyering  <meyering@fb.com>
6532         maint: remove stray space after "." in AC_DEFINE comment.
6533         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
6534         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
6536 2016-10-05  Jim Meyering  <meyering@fb.com>
6538         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
6539         * lib/long-options.c (parse_long_options): Add a break statement
6540         to avoid this new warning/failure:
6541         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
6542           --create-testdir --dir=/t/x --with-tests --test long-options
6543         ../../gllib/long-options.c: In function 'parse_long_options':
6544         ../../gllib/long-options.c:66:12: error: this statement may \
6545           fall through [-Werror=implicit-fallthrough]
6546                    (*usage_func) (EXIT_SUCCESS);
6547                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
6549 2016-10-05  Jim Meyering  <meyering@fb.com>
6551         utimecmp: avoid new GCC 7 warning from -Wbool-operation
6552         Testing this module would fail when using GCC 7 like this:
6553         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
6554           --dir=/tmp/x --with-tests --test utimecmp
6555         ../../gllib/utimecmp.c: In function ‘utimecmp’:
6556         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
6557           [-Werror=bool-operation]
6558                          time_t s = src_s & ~ (res == 2 * BILLION);
6559                                             ^
6560         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
6561           [-Werror=bool-operation]
6562                src_s &= ~ (res == 2 * BILLION);
6563                         ^
6564         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
6565         Instead, make it explicit that we intend to apply it to 0 or 1.
6567 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
6569         dfa: save memory for states
6570         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
6571         states if dfa has a lot of caches.
6573 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
6575         wchar, wctype-h: fix for MinGW 3.22.2
6576         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
6577         special invocation, to fix issues with MinGW 3.22.2 wchar.h
6578         when included from <string.h>.
6579         * lib/wctype.in.h [__MINGW32__]: Add special invocation
6580         convention for MinGW 3.22.2, to solve issues with their
6581         wctype.h when included from <ctype.h>.
6583 2016-10-05  Jim Meyering  <meyering@fb.com>
6585         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
6586         * lib/long-options.c (parse_long_options): Add a break statement
6587         to avoid this new warning/failure:
6588         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
6589           --create-testdir --dir=/t/x --with-tests --test long-options
6590         ../../gllib/long-options.c: In function ‘parse_long_options’:
6591         ../../gllib/long-options.c:66:12: error: this statement may \
6592           fall through [-Werror=implicit-fallthrough]
6593                    (*usage_func) (EXIT_SUCCESS);
6594                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
6596         utimecmp: avoid new GCC 7 warning from -Wbool-operation
6597         Testing this module would fail when using GCC 7 like this:
6598         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
6599           --dir=/tmp/x --with-tests --test utimecmp
6600         ../../gllib/utimecmp.c: In function ‘utimecmp’:
6601         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
6602           [-Werror=bool-operation]
6603                          time_t s = src_s & ~ (res == 2 * BILLION);
6604                                             ^
6605         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
6606           [-Werror=bool-operation]
6607                src_s &= ~ (res == 2 * BILLION);
6608                         ^
6609         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
6610         Instead, make it explicit that we intend to apply it to 0 or 1.
6612 2016-10-03  Pádraig Brady  <P@draigBrady.com>
6614         quotearg: minimize shell quoting using double quotes
6615         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
6616         quote in encountered then use double quotes (c style quoting)
6617         when possible, as it simplifies the quoting.
6618         * tests/test-quotearg-simple.c: Add test cases.
6619         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
6620         for the fact we now may write beyond the returned length.
6622 2016-10-02  Jim Meyering  <meyering@fb.com>
6624         vasnprintf.c: avoid spurious warning from GCC 7
6625         The presence of cpp directives renders this "FALLTHROUGH" comment
6626         ineffective, so does not suppress the -Wimplicit-fallthrough warning
6627         from GCC 7 built from git on 2016-10-02.
6628         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
6629         directives, so that it takes effect once again.  This is clearly
6630         not a proper change, and I will revert it once this bug is fixed:
6631         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
6633 2016-10-01  Jim Meyering  <meyering@fb.com>
6635         getprogname: correct the test for a __progname variable
6636         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
6637         and AC_LINK_IFELSE to check for a global __progname.  If found,
6638         define HAVE_VAR___PROGNAME.
6639         * lib/getprogname.c (getprogname): Reflect the new name of the
6640         feature- checked preprocessor symbol:
6641         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
6643 2016-09-28  Jim Meyering  <meyering@fb.com>
6645         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
6646         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
6647         fall-through case with a /* fallthrough */ comment.
6649         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
6650         * lib/dfa.c (dfassbuild): Mark the end of this case with a
6651         /* fallthrough */ comment.
6653         getprogname: avoid __progname vs program_invocation_short_name pitfall
6654         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
6655         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
6656         not with Fedora 24's glibc-2.23.1-10.
6657         * lib/getprogname.c (__progname): Move this declaration down...
6658         (getprogname): ... into the #elif block where used, and make it
6659         explicitly "extern".
6661         getprogname: port to OpenBSD 5.1
6662         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
6663         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
6664         * modules/getprogname (configure.ac): Move most of this code...
6665         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
6666         increment serial number, and add a test for __progname.
6667         https://bugs.gnu.org/24562
6668         Reported by Nelson H. F. Beebe.
6670 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
6672         sched: port to GCC 6.2.1 on macOS Sierra
6673         Problem reported by Denis Davydov in:
6674         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
6675         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
6676         Include <sys/cdefs.h> before <sched.h>.
6677         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
6678         so that we needn’t worry about the sched.h include bug here.
6679         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
6680         and include it before <sched.h> if it exists, when
6681         checking for <sched.h>.
6683         tests/init.sh: port Alpine fix to AIX 7.1
6684         * tests/init.sh (compare_): When attempting to use diff -U3,
6685         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
6686         diff -u not outputting a space after leading '+', as the users
6687         of 'compare' should not be that picky about its output format.
6688         In the AIX 7.1 case, return with diff exit status (or with 2 if
6689         trouble), instead of some random nonzero exit status.
6690         * tests/test-init.sh (test_compare): Remove space after leading
6691         '+', so that AIX 7.1 'diff' passes the test.
6693 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
6695         nl_langinfo: pacify GCC
6696         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
6697         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
6699         stdint: also set GL_GENERATE_LIMITS_H
6700         Problem reported by Jim Meyering in:
6701         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
6702         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
6704         limits-h, stdint: Don't assume extensions, fix typo
6705         * m4/limits-h.m4 (gl_LIMITS_H):
6706         * m4/stdint.m4 (gl_STDINT_H):
6707         Don't assume AC_USE_SYSTEM_EXTENSIONS.
6708         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
6709         reported by Jim Meyering in:
6710         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
6712 2016-09-21  Jim Meyering  <meyering@fb.com>
6714         getprogname: port to AIX
6715         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
6716         and strdup to obtain a short program name string.  Using code from
6717         Bruno Haible and an idea from Bastien ROUCARIÈS, in
6718         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
6719         Assaf Gordon reported that this new file would fail to compile on
6720         AIX-7.1 32bit.
6722 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
6724         extensions: fix typo in comment
6725         * m4/extensions.m4: Sync from Autoconf master.
6727         stdint: support new _WIDTH macros
6728         * doc/posix-headers/stdint.texi: Document this.
6729         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
6730         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
6731         support for INTMAX_WIDTH, etc. as well as for support for just C99.
6732         * modules/stdint (Depends-on): Add limits-h.
6733         (Makefile.am): Substitute HAVE_C99_STDINT_H.
6734         * modules/stdint-tests (Depends-on): Add extensions, so that
6735         INTMAX_MAX etc. are defined.
6736         * tests/test-stdint.c: Verify the new macros.
6738         limits-h: new module
6739         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
6740         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
6741         * doc/posix-headers/limits.texi: Document new module.
6742         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
6743         * modules/limit-h-tests, tests/test-limits-h.c: New files.
6745         stdio: don't redefine __USE_MINGW_ANSI_STDIO
6746         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
6747         if it is already defined.  Apparently GNU Emacs relies on this.  See:
6748         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
6750 2016-09-15  Eric Blake  <eblake@redhat.com>
6752         sys_types: avoid glibc 2.25 warnings about major()
6753         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
6754         older autoconf.
6755         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
6756         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
6757         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
6758         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
6760         mountlist: include sysmacros.h for glibc
6761         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
6762         AC_HEADER_MAJOR.
6763         * lib/mountlist.c (includes): Use correct headers.
6765 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
6767         extensions: port to more ISO C TSes
6768         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
6769         master, to add support for more recent ISO C TRs and TSes.
6771 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
6773         intprops: new macro TYPE_WIDTH
6774         * lib/intprops.h (TYPE_WIDTH): New macro.
6775         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
6776         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
6777         * lib/parse-datetime.y (parse_datetime2):
6778         Use it.
6780         extensions: port to recent ISO C TRs
6781         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
6782         Sync from Autoconf master, to add support for recent ISO C TRs.
6783         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
6784         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
6785         the MinGW option is not an extension.
6787 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
6789         dfa: port to Solaris 9
6790         Problems reported by Tom G. Christensen in:
6791         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
6792         * modules/dfa (Depends-on): Add isblank.
6793         * modules/dfa-tests (dfa_match_aux_LDADD):
6794         Rename from test_stat_LDADD, to fix typo.
6795         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
6797 2016-09-10  Jim Meyering  <meyering@fb.com>
6799         strverscmp: avoid link failure on OS X
6800         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
6801         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
6803 2016-08-16  Jim Meyering  <meyering@fb.com>
6805         dfa: new module, importing grep's DFA matcher
6806         Since grep's DFA matcher is now being used by two gnulib-enabled
6807         projects, grep and sed, it makes sense to version-control its
6808         sources and unit tests in one place: here.
6809         * modules/dfa: New module.
6810         * modules/dfa-tests: New file.
6811         * lib/dfa.c: New file, from grep.
6812         * lib/dfa.h: Likewise.
6813         * lib/localeinfo.c: Likewise.
6814         * lib/localeinfo.h: Likewise.
6815         * tests/dfa-match-aux.c: Likewise.
6816         * tests/dfa-invalid-char-class.sh: Likewise.
6817         * tests/dfa-match.sh: Likewise, with minor changes.
6818         * MODULES.html.sh (Misc): Add "dfa" to this list.
6820 2016-09-09  Jim Meyering  <meyering@fb.com>
6822         getprogname-tests: don't depend on assert-h
6823         * modules/getprogname-tests (Depends-on): Remove assert-h.
6824         It was not needed, and in fact would cause build failure for
6825         coreutils on some systems.  Reported by Assaf Gordon in https:
6826         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
6828 2016-09-07  Jim Meyering  <meyering@fb.com>
6830         getprogname-tests: work also when EXEEXT is nonempty
6831         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
6832         * tests/test-getprogname.c (main): Use it.
6833         Suggested by Gisle Vanem.
6835 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
6837         getprogname: fix errors in previous change
6838         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
6839         s/program_invocation_name/base/
6840         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
6842 2016-09-08  Pádraig Brady  <P@draigBrady.com>
6844         parse-datetime: restrict debug output to input string
6845         * lib/parse-datetime.y (parse_datetime2): If we parse
6846         all of the input but determine it's invalid, ensure
6847         we don't output the now invalid input pointer.
6848         This issue was seen with `date -d 'now +1'`.
6850 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
6852         flexmember: new macro FLEXALIGNOF
6853         * lib/flexmember.h: Include <stddef.h>, for offsetof.
6854         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
6855         this macro.  Update comments.
6857 2016-09-07  Jim Meyering  <meyering@fb.com>
6859         getprogname: port to systems with __argv (mingw, msvc)
6860         * lib/getprogname.c (getprogname): Include "dirname.h" and use
6861         last_component: more general than open coding it with hard-coded "/".
6862         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
6863         * modules/getprogname (Depends-on): Add dirname-lgpl.
6864         (configure.ac): Check for __argv in <stdlib.h>.
6865         * modules/getprogname-tests: New file.
6866         * tests/test-getprogname.c: New file.
6867         Suggested by Gisle Vanem in
6868         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
6870 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
6872         flexmember: port better to GCC + valgrind
6873         With a char[] flexible array member in a struct with nontrivial
6874         alignment, GCC-generated code can access past the end of the
6875         array, because GCC assumes there are padding bytes to get the
6876         struct aligned.  So the common idiom of malloc (offsetof (struct
6877         s, m), n) does not properly allocate an n-byte trailing member, as
6878         malloc’s argument should be the next multiple of alignof (struct s).
6879         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
6880         Although C11 apparently permits this GCC optimization (i.e., there
6881         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
6882         See the thread containing:
6883         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
6884         * lib/flexmember.h: New file.
6885         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
6886         * lib/localename.c, lib/time_rz.c:
6887         Include flexmember.h.
6888         * lib/fnmatch_loop.c (struct patternlist):
6889         * lib/localename.c (struct hash_node):
6890         Use FLEXIBLE_ARRAY_MEMBER.
6891         * lib/fnmatch_loop.c (EXT):
6892         * lib/fts.c (fts_alloc):
6893         * lib/glob.c (glob_in_dir):
6894         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
6895         * lib/localename.c (gl_lock_define_initialized):
6896         * lib/time_rz.c (tzalloc):
6897         Use FLEXSIZEOF instead of offsetof.
6898         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
6899         Check that the size of the struct can be taken.
6900         * modules/flexmember (Files): Add lib/flexmember.h.
6901         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
6902         Add flexmember.
6904 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
6906         getprogname: port to Solaris 10
6907         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
6908         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
6909         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
6911         stdalign: correct mistake in alignof doc
6912         Problem reported by Joseph Myers in:
6913         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
6914         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
6915         alignof(S) where S is a structure containing a flexible array
6916         member.  The Gnulib substitute does not support this, but C11 does.
6918 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
6920         main.mk: remove sc_program_name, since there is no more need to
6921         use set_program_name in tools (getprogname is enough for most
6922         of the cases).
6923         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
6924         * top/maint.mk (sc_program_name): Remove.
6926 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
6928         Port tests away from progname, since modules that need the
6929         program name already depend on getprogname.
6930         * modules/acl-tests (Depends-on): Remove progname.
6931         * modules/argmatch (Depends-on): Likewise.
6932         * modules/argmatch-tests (Depends-on): Likewise.
6933         * modules/argp-tests (Depends-on): Likewise.
6934         * modules/argp-version-etc-tests (Depends-on): Likewise.
6935         * modules/array-list-tests (Depends-on): Likewise.
6936         * modules/array-oset-tests (Depends-on): Likewise.
6937         * modules/avltree-list-tests (Depends-on): Likewise.
6938         * modules/avltree-oset-tests (Depends-on): Likewise.
6939         * modules/avltreehash-list-tests (Depends-on): Likewise.
6940         * modules/carray-list-tests (Depends-on): Likewise.
6941         * modules/copy-file-tests (Depends-on): Likewise.
6942         * modules/exclude-tests (Depends-on): Likewise.
6943         * modules/fchownat-tests (Depends-on): Likewise.
6944         * modules/fdopendir-tests (Depends-on): Likewise.
6945         * modules/filenamecat-tests (Depends-on): Likewise.
6946         * modules/fstatat-tests (Depends-on): Likewise.
6947         * modules/fstrcmp-tests (Depends-on): Likewise.
6948         * modules/linked-list-tests (Depends-on): Likewise.
6949         * modules/linkedhash-list-tests (Depends-on): Likewise.
6950         * modules/mkdirat-tests (Depends-on): Likewise.
6951         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
6952         * modules/nonblocking-socket-tests (Depends-on): Likewise.
6953         * modules/obstack-printf-tests (Depends-on): Likewise.
6954         * modules/openat-tests (Depends-on): Likewise.
6955         * modules/parse-datetime-tests (Depends-on): Likewise.
6956         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
6957         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
6958         * modules/quotearg-simple-tests (Depends-on): Likewise.
6959         * modules/quotearg-tests (Depends-on): Likewise.
6960         * modules/rbtree-list-tests (Depends-on): Likewise.
6961         * modules/rbtree-oset-tests (Depends-on): Likewise.
6962         * modules/rbtreehash-list-tests (Depends-on): Likewise.
6963         * modules/spawn-pipe-tests (Depends-on): Likewise.
6964         * modules/system-quote-tests (Depends-on): Likewise.
6965         * modules/uniname/uniname-tests (Depends-on): Likewise.
6966         * modules/uninorm/nfc-tests (Depends-on): Likewise.
6967         * modules/uninorm/nfd-tests (Depends-on): Likewise.
6968         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
6969         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
6970         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
6971         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
6972         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
6973         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
6974         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
6975         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
6976         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
6977         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
6978         * modules/unlinkat-tests (Depends-on): Likewise.
6979         * modules/version-etc-tests (Depends-on): Likewise.
6980         * modules/xalloc-die-tests (Depends-on): Likewise.
6981         * modules/xmemdup0-tests (Depends-on): Likewise.
6982         * modules/xprintf-posix-tests (Depends-on): Likewise.
6983         * modules/xvasprintf-tests (Depends-on): Likewise.
6984         * tests/test-argmatch.c: Do not include progname.h.
6985         (main) Stop calling set_program_name.
6986         * tests/test-argp-version-etc.c: Likewise.
6987         * tests/test-argp.c: Likewise.
6988         * tests/test-argv-iter.c: Likewise.
6989         * tests/test-array_list.c: Likewise.
6990         * tests/test-array_oset.c: Likewise.
6991         * tests/test-avltree_list.c: Likewise.
6992         * tests/test-avltree_oset.c: Likewise.
6993         * tests/test-avltreehash_list.c: Likewise.
6994         * tests/test-carray_list.c: Likewise.
6995         * tests/test-copy-acl.c: Likewise.
6996         * tests/test-copy-file.c: Likewise.
6997         * tests/test-exclude.c: Likewise.
6998         * tests/test-fchownat.c: Likewise.
6999         * tests/test-fdopendir.c: Likewise.
7000         * tests/test-filenamecat.c: Likewise.
7001         * tests/test-fstatat.c: Likewise.
7002         * tests/test-fstrcmp.c: Likewise.
7003         * tests/test-linked_list.c: Likewise.
7004         * tests/test-linkedhash_list.c: Likewise.
7005         * tests/test-mkdirat.c: Likewise.
7006         * tests/test-nonblocking-pipe-main.c: Likewise.
7007         * tests/test-nonblocking-socket-main.c: Likewise.
7008         * tests/test-obstack-printf.c: Likewise.
7009         * tests/test-openat.c: Likewise.
7010         * tests/test-parse-datetime.c: Likewise.
7011         * tests/test-pipe-filter-gi1.c: Likewise.
7012         * tests/test-pipe-filter-gi2-main.c: Likewise.
7013         * tests/test-pipe-filter-ii1.c: Likewise.
7014         * tests/test-pipe-filter-ii2-main.c: Likewise.
7015         * tests/test-quotearg-simple.c: Likewise.
7016         * tests/test-quotearg.c: Likewise.
7017         * tests/test-rbtree_list.c: Likewise.
7018         * tests/test-rbtree_oset.c: Likewise.
7019         * tests/test-rbtreehash_list.c: Likewise.
7020         * tests/test-sameacls.c: Likewise.
7021         * tests/test-set-mode-acl.c: Likewise.
7022         * tests/test-spawn-pipe-main.c: Likewise.
7023         * tests/test-system-quote-main.c: Likewise.
7024         * tests/test-unlinkat.c: Likewise.
7025         * tests/test-version-etc.c: Likewise.
7026         * tests/test-xalloc-die.c: Likewise.
7027         * tests/test-xfprintf-posix.c: Likewise.
7028         * tests/test-xmemdup0.c: Likewise.
7029         * tests/test-xprintf-posix.c: Likewise.
7030         * tests/test-xvasprintf.c: Likewise.
7031         * tests/uniname/test-uninames.c: Likewise.
7032         * tests/uninorm/test-u32-nfc-big.c: Likewise.
7033         * tests/uninorm/test-u32-nfd-big.c: Likewise.
7034         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
7035         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
7036         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
7037         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
7038         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
7039         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
7040         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
7041         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
7042         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
7043         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
7044         * tests/test-c-stack.c: (program_name): Do not define.
7045         (main): Do not set program_name.
7046         * tests/test-closein.c: Likewise.
7047         * tests/test-xstrtol.c: Likewise.
7048         * tests/test-yesno.c: Likewise.
7050 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
7052         Port modules to use getprogname explicitly, instead of requiring
7053         progname to be used (or program_name to be provided).
7054         * lib/argmatch.c: Do not include progname.h.
7055         [TEST] (program_name): Do not define.
7056         [TEST] (main): Call getprogname instead of using program_name.
7057         * lib/c-stack.c: Do not include progname.h.
7058         (program_name): Do not define.
7059         (die): Call getprogname instead of using program_name.
7060         * lib/chdir-long.c: Do not include progname.h.
7061         [TEST_CHDIR] (main): Do not set program_name.
7062         * lib/error.c [!_LIBC]: Include progname.h.
7063         [!_LIBC] (program_name): Define using getprogname.
7064         * lib/euidaccess.c: Do not include progname.h.
7065         [TEST] (main): Do not set program_name.
7066         * lib/git-merge-changelog.c: Include getprogname.h instead of
7067         progname.h.
7068         (usage): Call getprogname instead of using program_name.
7069         (main): Likewise.  Stop calling set_program_name.
7070         * lib/group-member.c: Do not include progname.h.
7071         [TEST] (main): Do not set program_name.
7072         * modules/argmatch (Depends-on): Add getprogname.
7073         * modules/c-stack (Depends-on): Likewise.
7074         * modules/error (Depends-on): Likewise.
7075         * modules/git-merge-changelog (Depends-on): Likewise.
7076         Also remove progname.
7078 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
7080         * NEWS: Document the deprecation of the 'progname' module.
7082 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
7084         getprogname: new module
7085         This provides a LGPL module for getting the name of the current
7086         program, using the same API found on *BSD systems.
7087         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
7088         * modules/getprogname: New files.
7089         * MODULES.html.sh (Misc): Add getprogname.
7091 2016-09-02  Jim Meyering  <meyering@fb.com>
7093         manywarnings: add -fno-common
7094         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
7095         to the list.  Quoting the manual, "Compiling with -fno-common is
7096         useful on targets for which it provides better performance, or if
7097         you wish to verify that the program will work on other systems that
7098         always treat uninitialized variable declarations this way [putting
7099         it in the data section]."  If diffutils had been using this sooner,
7100         it would have prevented this duplicate declaration issue:
7101         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
7103 2016-08-31  Simon Josefsson  <simon@josefsson.org>
7105         parse-datetime: Fix typo.
7106         * lib/parse-datetime.y (parse_datetime2): Fix typo.
7108 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
7110         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
7111         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
7112         GCC 5 and 6 that have __builtin_sub_overflow but not
7113         __builtin_sub_overflow_p.  With the recent changes, these
7114         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
7115         implementation than with INT_SUBTRACT_OVERFLOW implementation,
7116         since the former needs just one runtime comparison whereas the
7117         latter needs two.
7119         strverscmp: sync with glibc
7120         Although this doesn't exactly synchronize with glibc
7121         byte-for-byte, it makes the code behave the same as glibc.
7122         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
7123         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
7124         difference shouldn't matter in practical use.  All uses changed
7125         back to isdigit.
7126         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
7127         (next_state): Now unsigned char array; redo elements.
7128         (result_type): Now signed char array; redo elements.
7129         (__strverscmp): Fix glibc bug 9913 by using new states.
7130         * tests/test-strverscmp.c (main): Test glibc bug 9913.
7132 2016-08-29  Jim Meyering  <meyering@fb.com>
7134         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
7135         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
7136         similarly to how it was done to intprops.h.
7138 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
7140         intprops.h: port recent changes to GCC 6.2.0
7141         * lib/intprops.h (__has_builtin): Move earlier.
7142         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
7143         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
7144         the last argument can be null.  All uses changed.
7145         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
7146         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
7147         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
7148         and it's not clear which GCC versions it works for.
7149         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
7150         its definiens.
7152         intprops.h: use __typeof__ with GCC 7
7153         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
7154         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
7155         This avoids computing the expression's value (which might overflow!).
7157 2016-08-29  Jim Meyering  <meyering@fb.com>
7159         intprops.h, xalloc-oversized.h: work with gcc 7
7160         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
7161         __builtin_mul_overflow each accept a NULL pointer as the third
7162         argument.  However in gcc 7, that is no longer accepted.
7163         Instead, one must use the "_p"-suffixed names, with which, the
7164         third parameter is no longer a pointer.
7165         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
7166         the definition: not true for gcc 7 and subsequent.
7167         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
7168         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
7169         Provide new definitions for gcc 7 and subsequent.
7170         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
7171         that works with gcc-7.
7173         intprops.h: fix missing-backslash problems
7174         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
7175         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
7177 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
7179         intprops: fix paren typo on old platforms
7180         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
7181         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
7182         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
7183         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
7184         && !defined LLONG_MAX]:
7185         Remove stray paren.
7187         intprops: port to OpenVMS
7188         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
7189         * doc/posix-headers/limits.texi: Document the problem.
7190         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
7191         Define if not already defined.
7193 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
7195         parse-datetime: improve debug implementation
7196         Follow-up to commit 12ad79069 ("add optional debug printing").
7197         Improve parse-datetime's debug implementation: remove macros,
7198         replace global debug flag variable with a function parameter,
7199         use nstrftime for formatting.
7200         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
7201         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
7202         (parse_datetime2): New function, accepts 'flags' parameter, supporting
7203         debug flag. Existing interface 'parse_datetime' left unmodified.
7204         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
7205         (struct parser_control): add 'parse_datetime_debug' member variable.
7206         (parse_datetime): Call new function 'parse_datetime2' without debug.
7207         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
7208         pc.parse_datetime_debug variable as needed.
7209         (to_year): Accept new flags parameter, instead of using global variable.
7210         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
7211         use struct 'debug' variable instead of global variable.
7212         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
7213         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
7214         correspnding functions directly instead of using macros.
7215         * modules/parse-datetime: Add gnulib's strftime module.
7217 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
7219         c-strcase-tests: port to EBCDIC
7220         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
7221         which assume ASCII encoding semantics to run only in ASCII
7222         mode, as they fail in EBCDIC.
7224         sigpipe-tests: fix typo
7225         * tests/test-sigpipe.sh: C, not B.
7227 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
7229         canonicalize-lgpl: fix errno after malloca fails
7230         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
7231         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
7232         * lib/canonicalize-lgpl.c (__realpath):
7233         Don't assume malloca sets errno on failure.
7235 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
7237         strtod: port errno handling to z/OS
7238         * lib/strtod.c (strtod): Save and restore errno more reliably.
7240 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
7242         strtod: port to z/OS
7243         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
7244         implementation.
7246 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
7248         strtod: port to z/OS
7249         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
7250         implementation.
7252         regex, string: rename to avoid '__string'
7253         * lib/regex.h, lib/string.in.h: Do not use the identifier
7254         '__string', as it is effectively reserved by string.h on z/OS.
7256         c-strcase-tests, wcwidth-tests: depend on c-ctype
7257         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
7258         Add c-ctype.
7260 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
7262         thread: port to z/OS
7263         * lib/glthread/thread.c, lib/glthread/thread.h:
7264         Rudimentary gl_thread support for z/OS.
7266         maint: port tests to z/OS errno behavior
7267         * tests/test-nonblocking-reader.h:
7268         * tests/test-nonblocking-writer.h:
7269         Accommodate z/OS errno code preferences. (I believe this should
7270         still be within spec; IBM is good at following the letter if not
7271         the spirit of such things.)
7273         maint: preprocessor changes to support z/OS
7274         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
7275         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
7276         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
7277         * tests/test-nonblocking-pipe.h:
7279         fclose, strstr-simple, wchar: port to z/OS
7280         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
7281         Changes to the Autoconf M4 code to support z/OS.  Note that
7282         fclose() is broken in a different way on z/OS than it is on other
7283         systems, thus the special-case in fclose.m4.
7285         iconv_open-utf-tests, iconv-tests: port to EBCDIC
7286         * tests/test-iconv-utf.c, tests/test-iconv.c:
7287         Added appropriately conditional #pragmas so that the test strings
7288         in test-iconv-utf.c are correctly interpreted in ASCII instead of
7289         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
7290         addressed in a more portable way by simply rewriting all the ASCII
7291         literal characters as octal escapes, but then you would lose the
7292         partial readability that the strings have now. Also, iconv_open()
7293         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
7295         c-strcase-tests, wcwidth-tests: port to EBCDIC
7296         * tests/test-c-strcasecmp.c: Include c-ctype.h.
7297         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
7298         * tests/test-wcwidth.c: Likewise.
7300 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
7302         stdbool: don't require _Bool for C++
7303         Problem reported by David Seifert in:
7304         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
7305         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
7306         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
7307         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
7308         stricter about checking that bool and _Bool are compatible in C.
7310 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
7312         getdelim: remove dependency on realloc-posix
7313         * lib/canonicalize-lgpl.c (alloc_failed)
7314         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
7315         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
7316         Use __set_errno where needed, for consistency.
7317         * lib/getdelim.c (alloc_failed): New function.
7318         (getdelim): Use it.
7320 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
7322         parse-datetime: add optional debug printing
7323         Print parsing information, warnings, and errors to stderr.
7324         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
7325         * lib/parse-datetime.y:
7326         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
7327         (PROGRESS*): Same as DEBUG, for progress reporting.
7328         (dbg_printf): Print message to stderr, with 'date' prefix.
7329         (struct parser_control): Add 'debug_*_seen' variables.
7330         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
7331         (debug_print_current_time, debug_print_relateive_time): Prints the
7332         current/relative date/time value of parser_control.
7333         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
7334         (to_year): Warn about 2-digit year parsing.
7335         (yylex):   Warn about unrecognized words.
7336         (get_effective_timezone): Returns current timezone in minutes.
7337         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
7338         clearly and unambigiously as possible.
7339         (debug_mktime_not_ok): Print detailed information about failed
7340         date/time values.
7341         (parse_datetime): Add DEBUG messages for failures, warnings. Add
7342         PROGRESS messages for status messages.
7343         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
7345 2016-08-06  Jim Meyering  <meyering@fb.com>
7347         tests/init.sh: exclude dash with bad "local" semantics
7348         * tests/init.sh (gl_shell_test_script_): Add a function to
7349         eliminate a shell like "dash" (unlike bash, zsh) that has
7350         surprising/risky "local var='...'" semantics.  Inspired by
7351         the problem and discussion in https://bugs.gnu.org/24116#11.
7353 2016-08-02  Ján Tomko  <jtomko@redhat.com>
7355         maint.mk: expand the prohibit_doubled_word regex
7356         This check has a static list of words that are checked for
7357         repetitions.  Expand it before running the perl script to
7358         avoid using expensive captures.  This decreases the cost
7359         for libvirt from 1.66s to 0.66s.
7360         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
7361         (sc_prohibit_doubled_word): Use it.
7363 2016-07-26  Ján Tomko  <jtomko@redhat.com>
7365         useless-if-before-free: skip non-matching lines early
7366         * build-aux/useless-if-before-free: First match each line with the
7367         simple/quick /\bif\b/ and reject if there is no match. This often
7368         saves the cost of the much more involved regular expression.
7369         For libvirt, this decreases the cost from 1.44s to 1.02s.
7371 2016-07-26  Ján Tomko  <jtomko@redhat.com>
7373         maint.mk: speed up sc_po_check
7374         sc_po_check would skip files based on their names, or on the
7375         existence of files with derived names. Rewrite it to use perl
7376         instead of shell to make the check faster.
7377         * top/maint.mk (perl_translatable_files_list_): Define.
7378         (sc_po_check): Use it.
7380 2016-07-30  Ján Tomko  <jtomko@redhat.com>
7382         maint.mk: speed up require_config_h_first
7383         Instead of spawning three processes per file,
7384         rewrite the check in perl and run it once for all the files.
7385         * top/maint.mk (perl_config_h_first_): Define.
7386         (sc_require_config_h_first): Use it in place of shell code.
7388 2016-07-26  Ján Tomko  <jtomko@redhat.com>
7390         maint.mk: speed up sc_po_check
7391         sc_po_check would skip files based on their names, or on the
7392         existence of files with derived names. Rewrite it to use perl
7393         instead of shell to make the check faster.
7394         * top/maint.mk (perl_translatable_files_list_): Define.
7395         (sc_po_check): Use it.
7397 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
7399         obstack: pacify GCC 6 with -Wnull-dereference
7400         Problem reported by Assaf Gordon in:
7401         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
7402         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
7403         Declare with __attribute_noreturn__.
7404         * lib/obstack.h (__attribute_noreturn__): New macro.
7406 2016-07-13  Eric Blake  <eblake@redhat.com>
7408         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
7409         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
7410         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
7412 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
7414         doc: mention glibc SSIZE_MAX buglet
7415         * doc/posix-headers/limits.texi (limits.h): Document the bug.
7417 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
7419         printf-posix: Fix mingw build
7420         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
7421         expression for detecting C symbol prefixes but forgot to qoute square
7422         brackets in the command line arguments for grep.  That way when
7423         building with mingw the condition was false although it ought to be
7424         true instead.  In particular scenarios this led to the following
7425         compile error:
7427             Cannot export rpl_printf: symbol not found
7428             Cannot export rpl_scanf: symbol not found
7429             collect2: error: ld returned 1 exit status
7431         Fix this by properly quoting square brackets.
7433 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
7435         mktime: call tzset as per POSIX
7436         Problem reported by Ludovic Courtès in:
7437         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
7438         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
7439         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
7441 2016-06-26  Pádraig Brady  <P@draigBrady.com>
7443         fts: handle readdir() errors
7444         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
7445         but also upon error when it will also set errno.  Therefore
7446         flag the error case from readdir().  We treat the case where
7447         no items are read the same as if the dir can't be accessed,
7448         i.e. by setting fts_errno to FTS_DNR.
7450 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
7452         intprops: port better to GCC 7
7453         GCC 7 __builtin_add_overflow supports a new usage form, where the
7454         last argument is a null pointer, and which merely returns 1 if an
7455         overflow would occur.  This is a constant expression if all
7456         arguments are constants, and should generate faster code when code
7457         needs to be generated.
7458         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
7459         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
7460         Use builtin operations if available.
7461         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
7462         operations are available, as it's almost surely faster.
7464 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
7466         intprops-test: port to GCC 6
7467         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
7468         since the bug is not fixed in GCC 6.1.
7470 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
7472         xalloc-oversized: port to GCC 7; fewer warnings
7473         GCC 7 will have a better way to deal with integer overflow.
7474         Plus, fix a warnings problem reported by Tim Ruehsen in:
7475         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
7476         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
7477         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
7478         For GCC 5, use __xalloc_oversized if both args are constants,
7479         or if pedantic.
7481 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
7483         regex: port to Sun C
7484         Reported by Daiki Ueno.
7485         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
7486         __restrict, in prototype.  This fixes a problem I introduced in
7487         the 2016-02-19 merge from glibc.
7489 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
7491         stdbool: Restore __bool_true_false_are_defined check
7492         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
7493         __bool_true_false_are_defined is still defined, even with C++11.
7495 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
7497         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
7498         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
7500 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
7502         Use GCC_LINT, not lint
7503         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
7504         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
7505         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
7506         Document problem with lint and _Noreturn.
7507         * lib/diffseq.h (IF_LINT, IF_LINT2):
7508         * lib/fts.c (sccsid):
7509         * lib/getndelim2.c (IF_LINT):
7510         * lib/gl_anylinked_list2.h (gl_linked_iterator)
7511         (gl_linked_iterator_from_to):
7512         * lib/gl_anytree_list2.h (gl_tree_iterator)
7513         (gl_tree_iterator_from_to):
7514         * lib/gl_anytree_oset.h (gl_tree_iterator):
7515         * lib/gl_array_list.c (gl_array_iterator)
7516         (gl_array_iterator_from_to):
7517         * lib/gl_array_oset.c (gl_array_iterator):
7518         * lib/gl_carray_list.c (gl_carray_iterator)
7519         (gl_carray_iterator_from_to):
7520         * lib/idcache.c:
7521         * lib/inet_ntop.c (IF_LINT):
7522         * lib/regcomp.c (build_charclass_op, create_tree):
7523         * lib/regex_internal.c (re_acquire_state)
7524         (re_acquire_state_context):
7525         * lib/trigl.c (rcsid):
7526         * lib/trim.c (IF_LINT):
7527         * lib/vasnprintf.c (IF_LINT):
7528         * lib/verify.h (assume):
7529         Treat GCC_LINT like lint.
7531 2016-05-29  Bruno Haible  <bruno@clisp.org>
7533         secure_getenv: Port to many more platforms.
7534         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
7535         functions.
7536         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
7537         for non-BSD Unix platforms and for native Windows.
7538         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
7539         Prompted by a request from Nikos Mavrogiannopoulos.
7541 2016-05-27  Eric Blake  <eblake@redhat.com>
7543         canonicalize: Fix broken probe for realpath.
7544         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
7545         in logic introduced in 54615b95.
7547 2016-05-26  Eric Blake  <eblake@redhat.com>
7549         unsetenv: relax to LGPLv2+
7550         * modules/unsetenv (License): Match setenv license.
7552 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
7554         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
7555         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
7556         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
7557         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
7558         (commonarg, dirargs, dirs, infoarg, generate_ascii)
7559         (generate_html, generate_info, generate_tex, outdir)
7560         (source_extra, split, srcfile, texarg): Move above 'version'.
7561         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
7563 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
7565         manywarnings: update for GCC 6.1
7566         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
7567         Add GCC 6.1 options that apply to C.
7568         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
7569         do not apply to C, are obsolescent, etc.
7571 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
7573         glob: size_t overflow checks
7574         * lib/glob.c (__has_builtin): New macro.
7575         (size_add_wrapv, glob_use_alloca): New static functions.
7576         (glob, glob_in_dir): Check for size_t overflow in several places,
7577         and fix some size_t checks that were not quite right.
7579         glob: don't assume INT_MAX < SIZE_MAX
7580         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
7581         latter is not portable to (probably theoretical) hosts where
7582         SIZE_MAX <= INT_MAX.
7584 2016-05-09  Bruno Haible  <bruno@clisp.org>
7586         Fix undefined behaviour in gettext.h.
7587         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
7588         pointer's value after the storage it points to has been freed.
7589         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
7590         Spotted by Coverity.
7592 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
7594         git-version-gen: avoid undefined shift
7595         Problem reported by Mosè Giordano in:
7596         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
7597         * build-aux/git-version-gen: Avoid undefined behavior if invoked
7598         with --prefix or --fallback but without a later argument.  While
7599         we're at it, omit unnecessary quotes.
7601 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
7603         glob: merge glibc changes into lib/glob.c
7604         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
7605         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
7606         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
7607           struct dirent [BZ #19779]
7608         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
7609           callback gl_readdir
7610         2015-10-20 Convert miscellaneous function definitions to prototype style
7611         2015-10-20 Convert 113 more function definitions to prototype style
7612           (files with assertions)
7613         2015-06-12 Fix getlogin_r namespace (bug 18527).
7614         2014-02-10 Use glibc_likely instead __builtin_expect.
7615         2013-10-20 When glob pattern contains a trailing slash match only
7616           directories. Fixes bug 10278.
7617         2013-09-04 glob: silence -Wattribute warnings
7618         2013-06-07 Avoid use of "register" as optimization hint.
7619         2012-09-25 Use size_t instead of int for internal variables in glob
7620           (bug 14621)
7621         2011-07-20 Check for overflows in expressions
7622         2011-05-28 Remove unused variable
7623         2011-05-22 Add a few more alloca size checks
7624         2010-03-27 Whitespace fixes
7625         2010-03-27 Fix one more issue with the glob patch
7626         2010-03-24 Fix glob with empty pattern
7627         2008-05-27 Remove useless more "if" tests before "free"
7628         * modules/glob (Depends-on): Add stdint.
7630 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
7632         mktime: port to stricter signed overflow checking
7633         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
7634         (long_int): Require width for INT_MAX * 3 * (seconds per year),
7635         instead of merely for INT_MAX * 2.  In practice platforms that
7636         do the latter also do the former.
7637         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
7638         (shr): New static function, replacing SHR.  All uses changed.
7639         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
7640         and TIME_T_MAX.  All uses changed.
7641         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
7642         Use long_int, not time_t.
7643         (long_int_avg): New static function, replacing time_t_avg.
7644         All uses changed.  Round toward positive infinity, as that
7645         generates slightly better code.
7646         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
7647         by INT_ADD_WRAPV.
7648         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
7649         (convert_time): New static function.
7650         (ranged_convert): Use it
7651         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
7652         Use simpler test for loop exit.
7653         (__mktime_internal): Store negative of guessed offset, to simplify
7654         overflow checking.  Remove no-longer-needed test for small time_t
7655         overflows.
7657         mktime: speed up DEBUG_MKTIME benchmarks
7658         Call tzset just once, at the start, rather than for every test
7659         case.  This lets us measure the CPU cost of mktime as opposed to
7660         that of tzset.  This is relevant when TZ is not set and glibc is
7661         being used.  This speeds up tests by a factor of 40 on my Fedora
7662         23 x86-64 platform.
7663         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
7664         to call tzset and as a sanity check.  Later on, use localtime_r
7665         instead of localtime.
7667         mktime: resurrect DEBUG_MKTIME testing
7668         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
7669         Include <string.h>, for strcmp.
7671         mktime: simplify DEBUG_MKTIME
7672         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
7673         Simplify later usage accordingly.
7675         Port mktime_internal offset to unsigned time_t
7676         This avoids some assumptions about wraparound arithmetic on
7677         signed integer overflow.
7678         * lib/mktime-internal.h (mktime_offset_t): New type.
7679         (mktime_internal): Use it in decl.
7680         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
7682         * lib/mktime.c (__mktime_internal, localtime_offset):
7683         * lib/timegm.c (timegm): Use it.
7684         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
7685         (gl_FUNC_MKTIME): Require it.
7687 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
7689         xstrtol: prohibit monstrosities like "1bB"
7690         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
7691         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
7692         "B" only if the first suffix needs a base.
7693         * tests/test-xstrtol.sh: Test this.
7695 2016-04-21  Pádraig Brady  <P@draigBrady.com>
7697         xstrtod: reinstate setting of *result upon ERANGE
7698         * lib/xstrtod.c (XSTRTOD): The user may decide to use
7699         the returned limits upon ERANGE, so allow and document that.
7701 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
7703         xstrtod: modify *result only if no errors
7704         * lib/xstrtod.c (XSTRTOD).
7706 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
7708         btowc: document problems in C locale
7709         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
7710         with mbrtowc.  See: http://bugs.gnu.org/23269#32
7712 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
7714         mktime: improve integer overflow checking
7715         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
7716         (WRAPV): Remove; no longer needed.
7717         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
7718         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
7719         Remove.  Use intprops.h defns instead.
7720         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
7721         Use bool for Boolean, for clarity.
7722         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
7723         detect integer overflow.
7724         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
7726         intprops: check two's complement assumption
7727         Suggested by Eric Blake in:
7728         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
7729         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
7730         short, int, long, and (if available) long long are two's complement.
7731         * modules/intprops (Depends-on): Add 'verify'.
7733         intprops, mktime, strtol: assume two's complement
7734         These macros were not portable to every conforming C11 ones'
7735         complement platform.  It's not worth the hassle of porting to some
7736         platforms that use ones' complement or signed magnitude, as such
7737         platforms are almost purely theoretical nowadays and porting even
7738         to some of them makes the code harder to review for little
7739         practical benefit.  Problem reported by Florian Weimer in:
7740         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
7741         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
7742         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
7743         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
7744         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
7745         (TYPE_SIGNED_MAGNITUDE):
7746         Remove.  All uses rewritten to assume two's complement, which is
7747         all we can reasonably test nowadays anyway.
7748         * top/maint.mk (_intprops_names): Remove the removed macros.
7750 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
7752         stdint: port to strict C11 left shift
7753         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
7754         Pacify clang -Wshift-negative-value, which should be an issue only
7755         on clang setups where stdint.h does not conform to C11 or to C++11.
7756         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
7758 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
7760         mbrtowc: work around glibc bug#19932
7761         Fix mbrtowc so that it never returns -1 in the C locale,
7762         as this conflicts with a future version of POSIX
7763         http://austingroupbugs.net/view.php?id=663#c2738
7764         and causes problems with GNU grep: http://bugs.gnu.org/23234
7765         See glibc bug 19932:
7766         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
7767         * doc/posix-functions/mbrlen.texi (mbrlen):
7768         * doc/posix-functions/mbrtowc.texi (mbrtowc):
7769         Document the glibc bug.
7770         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
7771         Include hard-locale.h, locale.h.
7772         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
7773         if the bug is possible.
7774         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
7775         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
7776         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
7777         * modules/mbrtowc (Depends-on): Add hard-locale.
7778         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
7779         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
7780         * tests/test-mbrtowc5.sh: New file.
7782 2016-04-03  Pedro Alves  <palves@redhat.com>
7784         stdint: detect good enough pre-C++11 stdint.h in C++ mode
7785         When gnulib is configured in C++ mode for a system with a working C99
7786         implementation of stdint.h that predates C++11, gnulib ends up
7787         substituting stdint.h anyway.  This works on most targets, but on e.g.,
7788         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
7789         MinGW is LLP64.  Instead of trying to detect the right types, detect
7790         good-enough-pre-C++11 stdint.h and in such case define
7791         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
7792         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
7793         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
7794         conforms to C99.  If it does, check whether it hides symbols
7795         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
7796         does, define those macros in config.h.
7798 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
7800         argp: merge changes from glibc
7801         Among other things, this should fix problems found by a Coverity
7802         scan and reported by Andrei Borzenkov:
7803         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
7804         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
7805         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
7806         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
7807         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
7808         * lib/argp.h:
7809         Merge changes from glibc.
7810         * tests/test-argp-2.sh: Adjust to match new behavior.
7812 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
7814         stddef: support configuring with g++
7815         Problem reported by Ángel González in:
7816         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
7817         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
7818         Do not define if _GCC_MAX_ALIGN_T is defined.
7820 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
7822         test-framework-sh: minor cleanups
7823         * tests/init.sh (testdir_prefix_): Output a trailing newline,
7824         since strictly speaking POSIX requires this.
7825         (setup_): Do not use the variable 'fail', as that makes the
7826         trace output harder to read ('fail' is typically used by
7827         tests to mean the test failed).  Treat // portably.
7828         Check that new directory is not merely a sibling of the tmp dir.
7829         Avoid unnecessary invocation of tr.
7831         test-framework-sh: revert port to NetBSD 7.0
7832         It was a false alarm; I misinterpreted Assaf Gordon's report.
7833         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
7834         Restore.
7835         (test_dir_): Adjust to mktempd_ change.
7836         (mktempd_): Restore 2nd arg.  Use -t again.
7837         (base_template_, template_, nx_): Resurrect old code.
7839         Port better to Alpine Linux
7840         Its diff implementation does not support -c, but does support -U3.
7841         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
7842         * tests/init.sh (diff_opt_): New var.
7843         (compare_): Prefer diff -U3 to diff -c to plain diff.
7845 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
7847         test-framework-sh: port to NetBSD 7.0
7848         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
7849         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
7850         Remove.  All uses removed.
7851         (test_dir_): Adjust to mktempd_ change.
7852         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
7853         (base_template_, template_, nx_): Simplify by hardcoding.
7855 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
7857         gitlog-to-changelog: suppress ignored chatter
7858         * build-aux/gitlog-to-changelog: Do not warn about skipping
7859         an SHA if it would have been ignored anyway.
7861 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
7863         setlocale: add "sv" to Windows language table
7864         * lib/setlocale.c (language_table) [W32]: Add "sv".
7865         Reported in <https://savannah.gnu.org/bugs/?44588>.
7867 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
7869         sys_select: port to new Cygwin
7870         Problem reported by Ken Brown in:
7871         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
7872         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
7873         diagnostics.
7875 2016-03-17  Jim Meyering  <meyering@fb.com>
7877         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
7878         * tests/test-userspec.c (main): Remove unnecessary braces and fix
7879         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
7880           test-userspec.c:176:9: error: statement is indented as if it were \
7881             guarded by... [-Werror=misleading-indentation]
7882                    {
7883                    ^
7884           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
7885                  if (!diag && !T[i].result)
7886                  ^~
7888 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
7890         time_rz: port to clang -Wunused-const-variable
7891         * lib/time_rz.c (TZ): Remove.  All uses removed.
7893         std-gnu11: improve clang support
7894         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
7895         2016-03-15 Also try clang
7896         2016-03-15 Port C11 and C++11 testing to clang
7898         select: port more to Intel 2016.1.150 compiler
7899         Problem reported by Balázs Hajgató in:
7900         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
7901         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
7903 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
7905         select: try to port to 2016.1.150 compiler
7906         Problem reported by Balázs Hajgató in:
7907         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
7908         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
7909         POSIX specifies 'restrict'.
7911 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
7913         localename-tests: memory allocation fixes
7914         * tests/test-localename.c (test_locale_name)
7915         (test_locale_name_thread): Don't call freelocale on a locale
7916         that was the base of a successful newlocale, as that
7917         results in a double free.  Problem reported by Assaf Gordon.
7918         (test_locale_name_thread): Free saved names after use, to pacify
7919         gcc -fsanitize=address.
7921 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
7923         intprops: make .h file license match module
7924         * lib/intprops.h: Change the license wording to match glibc format.
7925         This is what is in modules/intprops anyway.  See:
7926         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
7928 2016-03-08  Eric Blake  <eblake@redhat.com>
7930         acl: fix missing return on Cygwin
7931         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
7932         fall off end of function. Fixes http://bugs.gnu.org/22949
7934 2016-03-05  Bruno Haible  <bruno@clisp.org>
7936         extern-inline: port to PGI CC
7937         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
7938         keyword 'inline'.
7939         Reported by Adam James Stewart in:
7940         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
7942 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
7944         signbit: port back to pre-C++11 GCC
7945         * lib/math.in.h (signbit): Do previous change only if
7946         __cplusplus < 201103.  See Jonathan Wakely in:
7947         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
7949 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
7951         mountlist: recognize autofs-mounted remote file systems, too
7952         Originally reported at: https://bugzilla.redhat.com/1309247
7953         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
7954         "-hosts" because it is used by autofs to mount remote file systems.
7956 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7958         signbit: port to C++ with GCC 6
7959         * lib/math.in.h (signbit) [__cplusplus]:
7960         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
7961         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
7963         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
7965         regex: make it closer to libc
7966         Make Idx a signed type, rather than possibly unsigned.
7967         The unsignedness was not really buying us anything, since the code
7968         overflows for other reasons before getting to PTRDIFF_MAX.  Making
7969         it signed allows us to use -1 and -2 with abandon, like libc does,
7970         thus lessening the number of differences between gnulib and libc.
7971         Also, it should help avoid gratuitous warnings like the one
7972         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
7973         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
7976         regex: merge patches from libc
7978         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
7979         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
7980         Convert miscellaneous function definitions to prototype style.
7981         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
7982         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
7983         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
7984         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
7985         (re_search_internal):
7986         Convert to prototype-style function definition.
7987         Use internal_function for internal functions.
7989 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
7991         stdalign: port to older HP and IBM cc
7992         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
7993         C compilers, by checking their version numbers.  These version
7994         numbers appear in MariaDB and in Qt code that dates way back and
7995         that conditiionally uses the 'aligned' attribute.
7997 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7999         stdalign: port to clang 3.7.0
8000         Problem reported by Herbert J. Skuhra in:
8001         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
8002         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
8003         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
8004         https://llvm.org/bugs/show_bug.cgi?id=26547
8006 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
8008         readdir_r: now obsolescent
8009         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
8010         * lib/mountlist.c (read_file_system_list): Add a FIXME.
8012 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
8014         misc: port better to gcc -fsanitize=address
8015         Without these patches, ./configure CFLAGS='-fsanitize=address'
8016         would compute incorrect values.  This patch fixes some (but not all)
8017         test failures with recent glibc, with this configuration.
8018         * m4/acl.m4 (gl_ACL_GET_FILE):
8019         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
8020         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
8021         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
8022         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
8023         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
8024         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
8025         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
8026         * m4/getline.m4 (gl_FUNC_GETLINE):
8027         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
8028         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
8029         * m4/regex.m4 (gl_REGEX):
8030         * m4/strndup.m4 (gl_FUNC_STRNDUP):
8031         * tests/test-calloc-gnu.c (main):
8032         * tests/test-duplocale.c (main):
8033         * tests/test-getgroups.c (main):
8034         * tests/test-getline.c (main):
8035         * tests/test-inttostr.c (main):
8036         * tests/test-localename.c (test_locale_name)
8037         (test_locale_name_thread, test_locale_name_environ)
8038         (test_locale_name_default):
8039         * tests/test-regex.c (main):
8040         * tests/test-setlocale1.c (main):
8041         * tests/test-stat.h (test_stat_func):
8042         Free heap-allocated storage before exiting.
8043         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
8044         Don't match *_foo symbols inserted by AddressSanitizer.
8045         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
8047 2016-02-02  Jim Meyering  <meyering@fb.com>
8049         verify-tests: also remove stray test-verify.Tpo
8050         * modules/verify-tests (Makefile.am): Arrange for "make clean"
8051         to remove the test-verify.Tpo file that is left behind by
8052         the automake-generated rule upon compilation failure.
8053         Otherwise, that .Tpo file would cause a failed "make distcheck"
8054         at least for grep.
8056 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
8058         std-gnu11: new module
8059         This makes it easier for applications to prefer C11 and C++11
8060         to older variants, when compiling C and C++ code.
8061         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
8062         a nontrivial chunk of GPLed Autoconf source code.
8063         * COPYING: Mention the m4/*.m4 copyright situation.
8064         * MODULES.html.sh (std-gnu11): New module.
8065         * m4/std-gnu11.m4, modules/std-gnu11: New files.
8067 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8069         get-permissions, strftime: fix grammar in comments
8070         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
8071         some grammar fixes Alan Mackenzie made to GNU Emacs.
8073 2016-01-25  Daiki Ueno  <ueno@gnu.org>
8075         gettext: mark as obsolete
8076         Suggested by Paul Eggert in:
8077         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
8078         * modules/gettext (Status): Mark as obsolete.
8079         (Notice): Suggest to use 'gettext-h' instead.
8080         * modules/gettext-h (Description): Suggest GNU gettext, instead of
8081         the 'gettext' module.
8083 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
8085         gnulib-tool: don't give up on ln -s so easily
8086         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
8087         because an earlier one failed.  The targets could be on different
8088         file systems.  Problem reported by KO Myung-Hun in:
8089         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
8091         closedir: fix OS/2-related typos
8092         Problem reported by KO Myung-Hun in:
8093         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
8094         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
8095         in the last couple of changes.
8097 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
8099         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
8100         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
8101         copying a directory.
8103 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
8105         regex: treat [x] as x if x is a unibyte encoding error
8106         Problem reported by Aharon Robbins in:
8107         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
8108         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
8109         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
8111         closedir, dirfd, opendir: port to OpenSolaris 5.10
8112         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
8113         * m4/dirfd.m4 (gl_FUNC_DIRFD):
8114         * m4/opendir.m4 (gl_FUNC_OPENDIR):
8115         Don't use ${word##pat} substitution, as it doesn't work in
8116         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
8117         http://bugs.gnu.org/22443#11
8119 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8121         bootstrap: use American spelling
8122         * build-aux/bootstrap: Honor American spelling.
8124 2016-01-22  Karl Berry  <karl@freefriends.org>
8126         * doc/posix-functions/localtime.texi,
8127         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
8129 2016-01-21  Bruno Haible  <bruno@clisp.org>
8131         hash-pjw-bare: fix comment
8132         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
8134         wcwidth: Replace also on OpenBSD 5.8
8135         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
8136         * doc/posix-functions/wcwidth.texi: Update.
8138 2016-01-20  Pádraig Brady  <P@draigBrady.com>
8140         gnu-web-doc-update: fix addition of new files
8141         If there were already added (emnpty) dirs,
8142         then cvs aborts the add with the message:
8143           cvs [add aborted]: there is a version in <./dirname> already
8144         * build-aux/gnu-web-doc-update: Add directories separately
8145         to the addition of files, to avoid the above issue
8146         impacting the addition of files.
8148 2016-01-19  Daiki Ueno  <ueno@gnu.org>
8150         utimens-tests: avoid pulling gettext .m4 files
8151         Although this is not the right fix to the original problem:
8152         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
8153         it makes it possible again for consumer projects to use arbitrary
8154         version of gettext, through the steps described at:
8155         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
8156         See here for details:
8157         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
8158         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
8159         'gettext'.
8160         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
8161         'gettext'.
8163 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
8165         regex: pacify static checkers
8166         Problem and draft fix reported by Aharon Robbins in:
8167         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
8168         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
8169         Clear memory to pacify static checkers.
8171         regex: fix [ diagnostic
8172         Problem and fix reported by Aharon Robbins in:
8173         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
8174         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
8176         regex: fix memory leaks
8177         Problem and draft fix reported by Aharon Robbins in:
8178         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
8179         * lib/regcomp.c (build_range_exp, build_charclass_op)
8180         * lib/regex_internal.c (re_dfa_add_node):
8181         Fix memory leak on failure.
8183 2016-01-18  Pádraig Brady  <P@draigBrady.com>
8185         fts: don't unconditionally use leaf optimization for NFS
8186         NFS st_nlink are not accurate on all implementations,
8187         leading to aborts() if that assumption is made.
8188         See <https://bugzilla.redhat.com/1299169>
8189         * lib/fts.c (leaf_optimization_applies): Remove NFS from
8190         the white list, and document the issue.
8192 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
8193             KO Myung-Hun  <komh@chollian.net>
8195         gnulib-tool: don't assume ln -s works
8196         * gnulib-tool (func_ln_s): New function.
8197         (func_ln): Use it.
8199 2016-01-15  KO Myung-Hun  <komh@chollian.net>
8201         utimes: detect utimes() correctly on OS/2 kLIBC
8202         utimes() of OS/2 kLIBC has some limitations.
8203         1. OS/2 itself supports a file date since 1980 year in local time.
8204         2. OS/2 itself supports only even seconds for a file time.
8205         3. utimes() of OS/2 kLIBC does not work on an opened file.
8206         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
8207         * doc/posix-functions/utimes.texi: Document the above limitations of
8208         utimes() on OS/2 kLIBC.
8210 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
8211             KO Myung-Hun  <komh@chollian.net>
8213         openat_proc_name: port to OS/2 kLIBC
8214         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
8215         instead of /proc/self/fd.
8216         * lib/openat-proc.c (openat_proc_name):
8217         Don't assume file name length is less than INT_MAX.
8218         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
8220 2016-01-14  KO Myung-Hun  <komh@chollian.net>
8222         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
8223         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
8224         definitions of intptr_t and uintptr_t (which use int and unsigned)
8225         to avoid clashes with declarations of system functions like sbrk.
8226         * lib/stdint.in.h (intptr_t, uintptr_t): Check
8227         _INTPTR_T_DECLARED before defining them.
8229         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
8230         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
8231         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
8232         Declare on kLIBC.
8233         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
8234         fd associated with dirp.
8235         (_gl_register_dirp_fd): New. Register fd associated with dirp to
8236         dirp_fd_list.
8237         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
8238         (dirfd): Implemented for kLIBC.
8239         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
8240         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
8241         succeeds.
8242         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
8243         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8244         (REPLACE_DIRFD): Define to 1 if replaced.
8245         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
8246         * modules/closedir (Depends-on): Add dirfd.
8247         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
8248         condition.
8249         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
8250         * modules/opendir (Depends-on): Add dirfd.
8252         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
8253         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
8254         * lib/dup.c (dup_nothrow): New.
8255         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
8256         (klibc_dup2): New.
8257         * lib/fcntl.c (klibc_fcntl): New.
8258         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
8259         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
8260         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
8261         fd.
8263         pipe_filter_ii_execute: port to OS/2 kLIBC
8264         Pipes on kLIBC do not support O_NONBLOCK like Win32.
8265         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
8266         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
8267         Reuse Win32 code on OS/2 kLIBC.
8268         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
8269         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
8271         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
8272         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
8273         static inline function.  The implementation of wcwidth in wcwidth.c
8274         causes a "conflicting types" error.
8275         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
8277         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
8278         spawn() on OS/2 kLIBC is not silly like one on Windows
8279         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
8280         empty string on OS/2 kLIBC.
8282         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
8283         On OS/2 kLIBC, select() works only on sockets.
8284         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
8286         binary-io: don't put fd in binary mode if it is a console on EMX
8287         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
8288         a console on EMX.
8290 2016-01-15  Pádraig Brady  <P@draigBrady.com>
8292         doc: mention unfixed issues with unsupported localtime() values
8293         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
8294         returns nonsense for localtime(2^56).
8295         * doc/posix-functions/localtime_r.texi: Likewise.
8297 2016-01-14  Pádraig Brady  <P@draigBrady.com>
8299         doc: mention setlocale() issues on OpenBSD
8300         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
8301         never fails, and the need to check categories individually.
8303 2016-01-14  Pádraig Brady  <P@draigBrady.com>
8305         sig2str: list all signals on FreeBSD >= 7
8306         FreeBSD >= 7 is contravening POSIX by not defining NSIG
8307         to the maximal statically defined signal value.
8308         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
8309         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
8310         where available, even when NSIG is defined.
8312 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
8314         acl-permissions: port to USE_ACL==0 platforms
8315         I ran into this problem when building bleeding-edge GNU Emacs
8316         with gcc -fsanitize=address on Fedora 23.  On this platform
8317         the ACL library does not pass the 'configure' test and Emacs
8318         then does not build due in part to what appear to be typos in the
8319         ACL part of Gnulib.
8320         * lib/acl-internal.c (free_permission_context):
8321         * lib/acl-internal.h (struct permission_context):
8322         Test whether USE_ACL is nonzero, not whether it is defined.
8324 2016-01-12  Martin Sebor  <msebor@redhat.com>
8326         mktime: rename macro to avoid glibc clash
8327         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
8328         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
8330 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
8332         Port "$@" to OpenIndiana ksh93
8333         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
8334         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
8335         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
8336         bug long-dead shells, so remove the workaround.
8337         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
8338         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
8339         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
8340         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
8341         Use "$@" instead of ${1+"$@"}.
8343         Port Universal Time settings to strict POSIX
8344         * build-aux/announce-gen, build-aux/bootstrap:
8345         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
8346         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
8347         * build-aux/gnupload, build-aux/mkinstalldirs:
8348         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
8349         * build-aux/update-copyright, build-aux/useless-if-before-free:
8350         * build-aux/vc-list-files, tests/test-strftime.c:
8351         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
8352         but POSIX says the behavior of TZ="UTC" is undefined.
8354 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
8356         msvc-inval: fix problem with unset shell var
8357         Problem reported by Karl Berry in:
8358         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
8359         * modules/msvc-inval (Depends-on):
8360         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
8361         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
8363 2016-01-01  Pádraig Brady  <P@draigBrady.com>
8365         tests: for compare_(), use cmp -s where available
8366         * tests/init.sh (compare_): Only fall back to cmp without
8367         the POSIX defined -s option, where this is not available.
8369 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
8371         version-etc: new year
8372         * build-aux/gendocs.sh (version):
8373         * doc/gendocs_template:
8374         * doc/gendocs_template_min:
8375         * doc/gnulib.texi:
8376         * lib/version-etc.c (COPYRIGHT_YEAR):
8377         Update copyright dates by hand in templates and the like.
8378         * all files: Run 'make update-copyright'.
8380 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
8382         human: fix output buffer overrun by 1
8383         * lib/human.c (human_readable): Fix off-by-one typo in buffer
8384         calculation that could lead to a one-byte buffer overrun.
8386 2015-12-28  Daiki Ueno  <ueno@gnu.org>
8388         maint: fix operator precedence in mbrtowc test
8389         This is a fix for test breakage introduced by commit 45228d96; the
8390         equality expression must be parenthesized when negated with '!',
8391         otherwise we always get:
8393           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
8395         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
8396         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
8398 2015-12-23  James Youngman  <jay@gnu.org>
8400         regexprops-generic: update from regex.h
8401         * doc/regexprops-generic.texi: update by running the regexprops binary
8402         from findutils (the command line is 'regexprops "Regular Expressions"
8403         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
8404         gnulib with GNU grep had made this document out-of-date.
8406 2015-12-23  Pádraig Brady  <P@draigBrady.com>
8408         strftime-tests: avoid false failure on OS X
8409         * tests/test-strftime.c (struct localtime_rz_test): Add an
8410         ahistorical member which is used to warn rather than fail
8411         when tm_isdst isn't set for such entries.  This is the case for
8412         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
8414 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
8416         fts: ensure leaf optimization is used for NFS
8417         NFS provides usable dirent.d_type but not necessarily for all entries
8418         of large directories.  See <https://bugzilla.redhat.com/1252549>
8419         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
8421 2015-12-20  Pádraig Brady  <P@draigBrady.com>
8423         fts: enable leaf optimization for XFS
8424         XFS provides usable dirent.d_type only for DT_DIR,
8425         but the noleaf optimization still applies.
8426         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
8428 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
8430         intprops: comment fix
8431         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
8432         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
8434         intprops-test: work around GCC bug 68971
8435         Problem reported by Pádraig Brady in:
8436         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
8437         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
8438         (main): Add a case that better tests 64-bit long in this area.
8440 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
8442         gnulib-tool: allow multiple --local-dir usage
8443         * gnulib-tool: Use --local-dir to construct compound
8444         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
8445         PATH_SEPARATOR early.
8446         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
8447         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
8448         func_determine_path_separator because that needs to be detected
8449         earlier now.
8450         (func_determine_path_separator): New function.
8451         (func_path_foreach, func_path_foreach_inner): New functions.
8452         (func_path_prepend, func_path_append): Likewise.
8453         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
8454         (func_lookup_file, func_all_modules): Use new functions to work
8455         with local_gnulib_path.
8456         (func_modules_in_dir, func_exists_module): New callbacks for
8457         func_path_foreach.
8458         (func_exists_module, func_get_tests_module): Likewise.
8459         (func_is_local_file, func_should_symlink): New helper methods.
8460         (func_add_file, func_update_file): Use new func_should_symlink
8461         instead, DRY.
8462         (func_reconstruct_cached_local_gnulib_path): New helper.
8463         (func_reconstruct_cached_dir): New callback.
8464         (func_import): The cached_local_gnulib_dir renamed to
8465         cached_local_gnulib_path similarly to local_gnulib_dir.
8466         Use new func_reconstruct_cached_local_gnulib_path.
8467         (func_count_relative_local_gnulib_path): New sub-method.
8468         (func_create_testdir): Use func_should_symlink, DRY.
8469         (func_create_megatestdir): Use new functions to work with
8470         local_gnulib_path correctly.
8471         (func_append_local_dir): New helper.
8473 2015-12-08  Pádraig Brady  <P@draigBrady.com>
8475         fix freadptr to work with ungetc on all uClibc configs
8476         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
8477         where GNU coreutils cut(1) generates invalid output on uClibc
8478         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
8479         * lib/freadptr.c (freadptr): Return NULL if there are
8480         ungotten chars.  In this case freadseek() will iterate
8481         again to process the ungotten character.
8483 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
8485         xalloc-oversized: improve performance with GCC 5
8486         * lib/xalloc-oversized.h (xalloc_oversized):
8487         Improve performance with GCC 5 by using __builtin_mul_overflow.
8489 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
8491         intprops: new public macro EXPR_SIGNED
8492         Emacs can use this macro, so make it public.
8493         * doc/intprops.texi (Arithmetic Type Properties): Rename from
8494         'Integer Type Determination', since some of these macros apply
8495         to non-integer types.  Clarify what kinds of constant expressions
8496         these macros return.  Say when the arguments can be non-integers.
8497         Mention newly published macro EXPR_SIGNED.
8498         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
8499         make it public.  All uses changed.
8501         intprops: fix typo in clang port
8502         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
8503         '__builtin_add_overflow' that is not caught by compiler.
8505 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
8507         test-timespec: fix typo in previous change
8508         * tests/test-timespec.c (main): Fix typo that reduced test quality.
8510         timespec-sub: fix overflow bug; add tests
8511         * lib/timespec-add.c (timespec_add):
8512         * lib/timespec-sub.c (timespec_sub):
8513         Work even if time_t is narrower than int (a theoretical
8514         possibility).  Redo code for a bit more clarity.
8515         * lib/timespec-sub.c (timespec_sub):
8516         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
8517         * modules/timespec-tests, tests/test-timespec.c: New files.
8519         intprops-test: suppress -Woverlength-strings
8520         Problem reported by Pádraig Brady in:
8521         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
8522         It is not worth the hassle to port this test to compilers that
8523         cannot handle long strings in diagnostics.
8524         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
8526 2015-11-03  Pádraig Brady  <P@draigBrady.com>
8528         quotearg: add quotearg_n_style_colon()
8529         This quotes with default options of the specified style,
8530         but with quoting enabled for instances of ':'.
8531         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
8532         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
8534 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
8536         intprops: revise _WRAPV macros, revert _OVERFLOW
8537         The incompatible changes to the _OVERFLOW macros were too much of
8538         a hassle in practice, so revert them.  Instead, change the new
8539         _WRAPV macros to make them closer in behavior to GCC 5's new
8540         builtin_add_overflow etc. functions.  No other software was using
8541         these newly-added macros yet, so this should be OK.
8542         * NEWS: Revert previous change, since the incompatible change
8543         has been reverted, and nobody used the incompatible version.
8544         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
8545         Document revised behavior.
8546         (Integer Range Overflow): Adjust example to match above revisions.
8547         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
8548         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
8549         these can be used in integer constant expressions again.
8550         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
8551         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
8552         needed.
8553         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
8554         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
8555         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
8556         Remove, as they did not seem that useful.
8557         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
8558         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
8559         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
8560         Support new semantics.
8561         (__has_builtin): New macro, if not alreay defined.
8562         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
8563         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
8564         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
8565         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
8566         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
8567         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
8568         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
8569         New macros.
8570         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
8572 2015-11-03  Jim Meyering  <meyering@fb.com>
8574         intprops: add parentheses for when OP has precedence lower than "-"
8575         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
8576         "a OP b" must be parenthesized for when OP is like "<<", which has
8577         lower precedence than the following "-". Reported by Pádraig Brady.
8579 2015-11-03  Pádraig Brady  <P@draigBrady.com>
8581         quotearg: constify get_quoting_style parameters
8582         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
8583         * lib/quotearg.c (get_quoting_style): Likewise.
8585 2015-11-02  Pádraig Brady  <P@draigBrady.com>
8587         quotearg: add support for $'' shell escaping
8588         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
8589         items and descriptions.
8590         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
8591         above types by quoting like "shell", but using $'...' syntax
8592         for non printable characters, which should provide unambiguous
8593         printable output for any input.
8594         * tests/test-quotearg-simple.c: Update accordingly.
8596 2015-11-02  Pádraig Brady  <P@draigBrady.com>
8598         maint: use a more standard return from mbrtowc test
8599         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
8600         from the test program as this is non standard and often
8601         indicates an unhandled case in the test program.
8602         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
8604 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
8606         intprops: add WRAPV and const flavors for GCC 5
8607         If available, use GCC 5's builtin functions for efficient integer
8608         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
8609         and safely compute the low-order bits of the correct answer.
8610         A downside of these efficient functions is that they cannot be
8611         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
8612         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
8613         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
8614         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
8615         Document the changes.
8616         (Wraparound Arithmetic): New section.
8617         (Integer Range Overflow):
8618         Put this subsection last, since it's least useful.
8619         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
8620         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
8621         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
8622         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
8623         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
8624         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
8625         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
8626         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
8627         New macros.
8628         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
8629         Generate calls to GCC builtins if available, for speed.
8630         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
8631         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
8632         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
8633         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
8634         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
8635         (CHECK_QUOTIENT, CHECK_REMAINDER):
8636         Test WRAPV and CONST flavors (when available) too.
8638 2015-10-30  Pádraig Brady  <P@draigBrady.com>
8640         doc: use extended timezone format in iso-8601 example
8641         * doc/parse-datetime.texi: The standard states that extended format
8642         is to be used consistently throughout.
8643         Note that lib/parse-datetime.y can handle either tz format.
8645 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
8647         stdalign: port to Sun C 5.9
8648         * doc/posix-headers/stdalign.texi: Document this.
8649         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
8650         __attribute__ ((__aligned__ (...))).
8652 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
8654         time_rz: fix comment about tzalloc
8655         * lib/time_rz.c (tzalloc): Fix comment.
8657 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
8659         stdalign: work around pre-4.9 GCC x86 bug
8660         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
8661         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
8662         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
8664 2015-10-18  Pádraig Brady  <P@draigBrady.com>
8666         maint.mk: sc_tight_scope: remove extraneous expressions
8667         * top/maint.mk (tight_scope): This is not really required since
8668         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
8669         that matches all nm entries.  But it does remove extraneous entries
8670         that may be confusing or cause issue in future maintenance.
8672 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
8674         time_rz: return NULL if localtime_r fails
8675         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
8676         while still attempting to pacify bleeding-edge GCC.
8678         fts: port to C11 alignof
8679         * doc/posix-headers/stdalign.texi (stdalign.h):
8680         Document the C11 restriction.
8681         * lib/fts.c: Include stddef.h, for max_align_t.
8682         (fts_alloc): Align using max_align_t, not FTSENT.
8683         * modules/fts (Depends-on): Add stddef.
8685 2015-10-18  Jim Meyering  <meyering@fb.com>
8687         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
8688         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
8689         would see this:
8691         lib/time_rz.c: In function 'localtime_rz':
8692         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
8693           [-Werror=nonnull]
8694                    if (tm && !save_abbr (tz, tm))
8695                        ^
8697         That was complaining about "tm" because it is a parameter that was
8698         declared with the __nonnull__ attribute.
8699         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
8700         result of localtime_r.
8702 2015-10-17  Jim Meyering  <meyering@fb.com>
8704         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
8705         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
8706         name-extraction regexp mistakenly used \S+, and would mistakenly
8707         extract "*F" from "extern int *F()" rather than the desired "F".
8708         Use \w+ instead.
8710 2015-10-17  Jim Meyering  <meyering@fb.com>
8712         maint.mk: sc_tight_scope: factor and support OS X
8713         * top/maint.mk (_gl_tight_scope): Address three issues:
8714         - factor out four instances of code that wraps a string in "^...$"
8715         - allow nm-reported symbol names to have an optional leading "_"
8716         - add "main" to the list of ignored variable names, because on os x,
8717         "main" has nm-reported type "S" in the variable-checking section.
8719 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
8721         safe-alloc-tests: fix typo in license header
8722         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
8724 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
8726         copy-file: fix mem leak in error case
8727         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
8728         upon error opening or performing I/O to the src and dest files.
8730 2015-10-15  Mike Frysinger  <vapier@chromium.org>
8732         localename: control langinfo.h inclusion
8733         This header is only used to work around buggy behavior in old
8734         versions of glibc, so do not include it all the time.  Otherwise
8735         we get build failures on systems that do not provide langinfo.h.
8736         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
8737         in the source later on.
8738         The patch was originally submitted to gettext as:
8739         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
8741 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
8743         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
8744         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
8745         * lib/u64.c, lib/unistd.c:
8746         Append 'typedef int dummy;', to pacify compilers that are picky
8747         about empty translation units.
8749 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
8751         accept4-tests: fix to avoid non portable flags
8752         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
8753         as they are the only documented ones, and passing others may trigger
8754         EINVAL (seen on FreeBSD 10.1-RELEASE).
8755         * doc/glibc-functions/accept4.texi: Mention that we don't provide
8756         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
8758 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
8760         gnulib-tool: fix tests of 'extensions' module
8761         This complements f8fe25fab60e3c687a124 commit.
8762         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
8763         emitting of initial gl_EARLY macros.
8764         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
8765         replaced with func_emit_pre_early_macros call.
8767 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
8769         unicase/locale-language: fix typo in utf-8 cookie
8770         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
8771         Problem reported by Zbigniew Jędrzejewski-Szmek.
8773 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
8775         xalloc: do not worry about GCC 5 warning on 32 bit
8776         * lib/xalloc.h: Revert previous change.
8777         I found a better way to fix this in coreutils.
8779 2015-10-02  Pádraig Brady  <P@draigBrady.com>
8781         xalloc: avoid GCC 5.1 warning on 32 bit
8782         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
8783         xalloc_oversized(), which was seen to give this warning
8784         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
8785         when simplifying conditional".
8787 2015-10-02  Daiki Ueno  <ueno@gnu.org>
8789         uniname/uniname-tests: avoid compiler warnings
8790         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
8791         unused local variables.
8792         (test_alias_lookup): Fix alias name display in failure cases.
8794 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8796         c-ctype: do not worry about EBCDIC + char signed
8797         Drop support for EBCDIC with char being signed, as this breaks too
8798         many programs.  Problem reported by Ben Pfaff in:
8799         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
8800         * lib/c-ctype.h: Verify that we are not using EBCDIC with
8801         char being signed.
8802         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
8803         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
8804         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
8805         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
8806         * tests/test-c-ctype.c (test_all):
8807         Simplify by assuming standard char values cannot be negative.
8808         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
8810 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
8812         c-ctype: port better to z/OS EBCDIC
8813         Problems reported by Daniel Richard G. in:
8814         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
8815         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
8816         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
8817         (_C_CTYPE_OTHER_CNTRL): New macro.
8818         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
8819         from SCHAR_MIN, as the functions are defined only from values
8820         promoted from char or from unsigned char, not necessarily from
8821         signed char.
8823 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
8825         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
8827         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
8828         and ARFLAGS variables.  Doing this unconditionally could break
8829         later Automake's AM_PROG_AR invocation (at least it's
8830         AC_CHECK_TOOLS call to detect correct 'ar' binary).
8832         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
8833         Amsterdam Compiler Kit, so make the previous code to have effects
8834         only on ACK, and rather automatically call the Automake's
8835         AM_PROG_AR as soon as possible to decide other cases.
8837         References:
8838         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
8840         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
8841         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
8842         is possible, keep setting AR/ARFLAGS to reasonable defaults.
8843         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
8844         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
8845         'extensions' module is used.
8846         * modules/extensions (configure.ac-early): Remove as this snippet
8847         is added to gnulib-comp.m4 earlier anyway.
8849 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
8851         sockets: MS Windows initalization fixes
8852         Problem reported by Test User in:
8853         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
8854         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
8855         Correct the endianness.
8856         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
8857         number mismatch, not just on <.  Cleanup before any such failure.
8859 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
8861         gc: fix detection of installed libgcrypt version
8862         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
8863         at least as recent as 1.4.4.  The previously used macro is not
8864         available now, since modules were removed in version 1.6.0.
8866 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
8868         c-ctype: rewrite to use inline functions
8869         This simplifies maintenance, since it makes for just one
8870         implementation of each function, letting the compiler have the fun
8871         of optimization.  In practice this works well nowadays with GCC.
8872         E.g., c_isascii might need only three instructions even though the
8873         source code lists every ASCII character individually in a large
8874         switch statement.
8875         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
8876         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
8877         * NEWS: Document the API change.
8878         * lib/c-ctype.c: Drastically simplify, since this now just expands
8879         inline functions.
8880         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
8881         (C_CTYPE_INLINE): New macro.
8882         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
8883         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
8884         Verify that either ASCII or EBCDIC is being used.
8885         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
8886         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
8887         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
8888         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
8889         New private macros.
8890         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
8891         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
8892         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
8893         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
8894         (c_tolower, c_toupper): When converting, return the unsigned char,
8895         as that is what z/OS does.
8896         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
8897         of some c-ctype.h macros.
8898         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
8899         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
8900         c_tolower promotion to be compatible with z/OS.
8902 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
8904         gitlog-to-changelog: trim only trailing whitespaces
8905         This is fix for --format regression introduced by commit
8906         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
8907         doubled %n string) had no effect anymore.  This format
8908         specification has been used e.g. by GNU paxuitils (commit
8909         edfd8bcc3).
8911         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
8912         newlines in commmit messages.
8914 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8916         Test that c_iscntrl agrees with iscntrl, etc.
8917         Suggested by Daniel Richard G. in:
8918         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
8919         * modules/c-ctype-tests (Depends-on): Add ctype.
8920         * tests/test-c-ctype.c: Include <ctype.h>.
8921         (NCHARS): New constant.
8922         (test_agree_with_C_locale): New function.
8923         (main): Use it.
8924         (test_all): Use named constants.
8926         c-ctype: improve c_isascii testing
8927         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
8928         Add a test to count the number of ASCII characters.
8930 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
8932         savewd: remove SAVEWD_CHDIR_READABLE
8933         It was problematic in the light of file systems that ignore umask.
8934         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
8935         * NEWS: Document this.
8936         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
8937         successful, -1 (setting errno) on failure, rather than something
8938         more complicated than that.
8939         * lib/mkdir-p.c (make_dir_parents):
8940         Do not use SAVEWD_CHDIR_READABLE.
8941         * lib/savewd.c (savewd_chdir):
8942         Remove support for SAVEWD_CHDIR_READABLE.
8943         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
8945         c-ctype: port better to EBCDIC
8946         Problems reported by Daniel Richard G. in
8947         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
8948         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
8949         Include "verify.h".
8950         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
8951         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
8952         Define as enum constants with value false, if not defined, so that
8953         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
8954         code more portable, as both branches of the 'if' are compiled on
8955         all platforms.
8956         (C_CTYPE_EBCDIC): New constant.
8957         Verify that the character set is either ASCII or EBCDIC.
8958         (to_char): New static function.
8959         (c_isascii, c_iscntrl):
8960         Assume standard control-character assignments for EBCDIC.
8961         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
8962         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
8963         Rewrite to use 'if' instead of 'ifdef'.
8964         Use to_char if non-ASCII.  Prefer <= to >=.
8965         Prefer true and false to 1 and 0, for booleans.
8966         (c_iscntrl): Use 'if', not 'ifdef'.
8967         * modules/c-ctype (Depends-on): Add verify.
8968         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
8969         (to_char): New function.
8970         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
8972 2015-09-21  Pádraig Brady  <P@draigBrady.com>
8974         nanosleep: fix return code for interrupted replacement
8975         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
8976         that we return -1 in the case the call is interrupted by a signal,
8977         rather than the current value of 1.
8978         Diagnosed and tested by Daniel Richard G.
8980 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
8982         Diagnose ERE '()|\1'
8983         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
8984         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
8985         track of the set of previously-completed subexpressions available
8986         before the first alternative, and restore this set just before
8987         parsing each subsequent alternative.  This lets us diagnose the
8988         invalid back-reference in the ERE '()|\1'.
8990         regex: merge patches from libc
8992         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
8993         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
8994         * lib/regex_internal.h:
8995         Include <libc-lock.h> instead of <bits/libc-lock.h>.
8997         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
8998         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
8999         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
9000         wcscoll.
9001         * lib/regexec.c (check_node_accept_bytes): Likewise.
9003         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
9004         Fix regex wcrtomb namespace (bug 18496).
9005         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
9006         instead of wcrtomb.
9008         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
9009         Fix regex wctype namespace (bug 18495).
9010         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
9011         instead of towlower.
9012         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
9013         instead of iswlower.  Call __towupper instead of towupper.
9014         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
9015         instead of iswalnum.
9017         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
9018         * lib/regcomp.c (parse_bracket_exp): Initialize type to
9019         COLL_SYM in a couple of places to avoid uninitialized variable
9020         wanings on tilegx gcc 4.8.2.
9022         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
9023         * lib/regex_internal.h: Remove NOT_IN_libc.
9025         2014-11-17  Andreas Schwab  <schwab@suse.de>
9026         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
9028         2014-09-11  Roland McGrath  <roland@hack.frob.com>
9029         Move findidx nested functions to top-level.
9030         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
9031         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
9032         Pass new arguments to findidx.
9033         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
9034         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
9035         Don't #include it inside the function.  Pass new arguments to findidx.
9036         * lib/regex_internal.h:
9037         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
9038         (re_string_elem_size_at): Don't #include it inside the function.
9039         Pass new arguments to findidx.
9041         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
9042         Check if DEBUG is defined in regex_internal.c
9043         * lib/regex_internal.c: Check if DEBUG is defined and is set.
9045 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
9047         ceill: detect buggy OpenBSD implementation
9048         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
9049         which returns zero for small values.  Discussed here:
9050         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
9052 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
9054         mountlist: add me_mntroot field on Linux machines
9055         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
9056         mount_entry so Linux machines based on /proc/self/mountinfo can
9057         distinguish between bind mounts and original mounts.  In reality bind
9058         mounts aren't treated differently than mountroot=/ mounts by the
9059         kernel, but the user often wants these bind mounts distinguished.
9060         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
9061         More details at https://pad.lv/1432871
9063 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
9065         doc: Describe to use multiple instances of gnulib
9066         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
9067         instances of gnulib with different modules can be used, for example one
9068         for a lib and another one for associated tools.
9070 2015-09-01  Pádraig Brady  <P@draigBrady.com>
9072         base32: mark function as __attribute__ const
9073         * lib/base32.h (isbase32): Mark __attribute__ const as
9074         suggested by GCC, and consistent with the base64 module.
9076 2015-08-20  Daiki Ueno  <ueno@gnu.org>
9078         gnulib-tool: don't transform binary files with sed
9079         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
9080         .mo and .class files.
9081         Reported by Denis Denisov.
9083 2015-08-10  Daiki Ueno  <ueno@gnu.org>
9085         gperf: respect silent rules
9086         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
9087         V_GPERF_0 for silent rules.
9088         * modules/iconv_open (Makefile.am): Use V_GPERF.
9089         * modules/unicase/locale-language (Makefile.am): Likewise.
9090         * modules/unicase/special-casing (Makefile.am): Likewise.
9091         * modules/unictype/category-byname (Makefile.am): Likewise.
9092         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
9093         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
9094         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
9095         * modules/unictype/property-byname (Makefile.am): Likewise.
9096         * modules/unictype/scripts (Makefile.am): Likewise.
9097         * modules/uninorm/composition (Makefile.am): Likewise.
9099 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
9101         Improve port of stdalign to C++11
9102         Problem reported by Sundaram in:
9103         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
9104         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
9105         (__alignas_is_defined): Define if C++11 or newer.
9107 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
9109         pmccabe2html: fix gawk regex escaping
9110         * build-aux/pmccabe2html: Add one more backslash to properly
9111         escape the gsub replacement value.  Fixes this error:
9112         gawk: ./build-aux/pmccabe2html:425: \
9113         warning: escape sequence `\&' treated as plain `&'
9115 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
9117         time_rz: port to pedantic memcpy
9118         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
9119         that reject memcpy (..., NULL, 0).
9121 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
9123         time_rz: port better to MinGW
9124         Don't change tzname, as this makes MinGW dump core (Bug#21020).
9125         Instead, store the tzname copy in the struct tm_zone object.
9126         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
9127         * lib/strftime.c [!_LIBC]:
9128         * lib/time_rz.c: Include time-internal.h.
9129         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
9130         name from *TZ rather than from TZNAME, doable because *TZ now has
9131         a tzname_copy member.
9132         * lib/time-internal.h: New file, with contents taken from
9133         lib/time_rz.c.  It's separate because strftime.c now accesses
9134         struct tm_zone members.
9135         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
9136         New member tzname_copy.
9137         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
9138         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
9139         Initialize tzname_copy member.
9140         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
9141         in tzname_copy member.
9142         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
9143         (restore_tzname): Remove; no longer needed.  All calls removed.
9144         * modules/time_rz (Files): Add lib/time-internal.h.
9146         time: port __need_time_t to MinGW
9147         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
9148         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
9150 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
9152         strftime: fix newly-introduced bug on Solaris
9153         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
9154         consistently at the start, rather than doing some of the setup at
9155         the start and some in the %Z format spec.  This is cleaner, and
9156         works better with time_rz on platforms like Solaris where struct
9157         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
9158         mktime_z and localtime_rz can mess up the tzname cache.
9160         test-strftime: test for Solaris bug
9161         * modules/strftime-tests (Depends-on): Add strerror.
9162         * tests/test-strftime.c: Include <errno.h>.
9163         (posixtm_test): New function, containing the old 'main'.
9164         (struct tzalloc_test, struct localtime_rz_test): New types.
9165         (TZ, LT): New static vars.
9166         (tzalloc_test): New function.
9167         (main): Rewrite in terms of posixtm_test and tzalloc_test.
9169         time_rz: port to Solaris etc.
9170         Works around a tzname problem on platforms like Solaris that have
9171         tzname but not tm_zone, by setting tzname at the appropriate time
9172         and restoring it later.
9173         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
9174         New static vars.
9175         (save_abbr) [HAVE_TZNAME]: Set them.
9176         (revert_tz) [HAVE_TZNAME]: Clear or use them.
9177         (restore_tzname): New function.
9178         (localtime_rz, mktime_z): Use it.
9180         time_rz: now LGPL
9181         * modules/time_rz (License): Now LGPL, because strftime depends on it.
9183         time_rz: make a constant 'const'
9184         * lib/time_rz.c (local_tz): Now const.
9186         time_rz: fix off-by-one typo
9187         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
9189 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
9191         fprintftime, strftime: use timezone_t args
9192         * NEWS: Document the change.
9193         * lib/fprintftime.h (fprintftime):
9194         * lib/strftime.c (extra_args) [my_strftime]:
9195         * lib/strftime.h (nstrftime):
9196         Time zone arg is now of type timezone_t, not int.
9197         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
9198         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
9199         (my_strftime) [emacs && !my_strftime]:
9200         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
9201         Remove; Emacs doesn't need this any more.
9202         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
9203         fprintftime and nstrftime to call tzset.
9204         (ut) [!my_strftime]: Remove, replacing with ...
9205         (tz) [!my_stftime]: ... this new macro.  All uses changed.
9206         (strftime_case_): Use localtime_rz and mktime_z instead
9207         of localtime_r and mktime.
9208         * modules/fprintftime (Depends-on): Add time_rz.
9209         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
9210         * tests/test-strftime.c (main): Adjust to new nstrftime API.
9212         time_rz: new module
9213         * MODULES.html.sh: Add time_rz.
9214         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
9215         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
9216         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
9217         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
9218         New var HAVE_TIMEZONE_T (default 0).
9219         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
9220         New var GNULIB_TIME_RZ (default 0).
9221         * modules/time (time.h): Substitute the new vars.
9223         flexmember: license is now unlimited
9224         * modules/flexmember (License): Change to unlimited,
9225         since its only source file gives an unlimited license.
9227 2015-07-15  Eric Blake  <eblake@redhat.com>
9229         maint: update copyright paper procedures
9230         * config/srclist.txt: Drop outdated files.
9231         * doc/Copyright/conditions.txt: Update to latest.
9232         * doc/Copyright/assign.changes.manual: Delete.
9233         * doc/Copyright/assign.future.manual: Likewise.
9234         * doc/Copyright/assign.manual: Likewise.
9235         * doc/Copyright/assign.translation.manual: Likewise.
9236         * doc/Copyright/disclaim.changes.manual: Likewise.
9237         * doc/Copyright/disclaim.manual: Likewise.
9238         * doc/Copyright/disclaim.program: Likewise.
9240 2015-07-07  Daiki Ueno  <ueno@gnu.org>
9242         localename: fix link error on Illumos
9243         Illumos defines __sun, but does not have getlocalename_l nor the
9244         equivalent.  This partially reverts commit 387c214.
9245         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
9246         available, as well as uselocale.
9247         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
9248         use getlocalename_l if it is not available.
9250 2015-07-07  Daiki Ueno  <ueno@gnu.org>
9252         unistr/uN-strtok-tests: avoid a trivial leak
9253         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
9254         input and delim after the multibyte delimiter tests.
9256 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
9258         file-has-acl, acl-permissions: fix HP-UX typos
9259         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
9260         * lib/file-has-acl.c (file_has_acl):
9261         * lib/set-permissions.c (context_acl_from_mode)
9262         (context_aclv_from_mode, set_acls):
9263         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
9264         They were introduced by the recent ACL changes.
9266         regex: match current GNU grep behavior
9267         These symbols have not matched GNU grep behavior for quite some time.
9268         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
9269         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
9270         Change to match current GNU behavior.
9271         Simplify by expressing it as differences from POSIX BREs and EREs.
9272         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
9274 2015-07-03  Jim Meyering  <meyering@fb.com>
9276         set-permissions.c: adjust acl_from_mode's cpp guard
9277         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
9278         directives identical to those guarding the sole use.
9279         Otherwise, on some systems, we'd get a warning about
9280         the function being defined but not used.
9281         Also, filter through cppi to correct misleading indentation
9282         of cpp directives.
9284 2015-07-03  Pádraig Brady  <P@draigBrady.com>
9286         tests: restrict shells to those that support 'local'
9287         The local keyword is very widely supported and used
9288         in tests in coreutils and grep at least.  Therefore
9289         restrict to testing with shells that support it.
9290         This mainly excludes /bin/sh on Solaris.
9291         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
9293 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
9294         and Daiki Ueno  <ueno@gnu.org>
9296         unistr/uN-strtok: handle multibyte delimiters
9297         Previously, uN_strtok moved PTR to the next unit to the token end.
9298         When DELIM contained a multibyte character, the new position could
9299         be a middle of a multibyte character.
9300         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
9301         after the token.
9302         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
9303         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
9304         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
9305         * modules/unistr/u8-strtok (Depends-on): Depend on
9306         unistr/u8-strmblen.
9307         * modules/unistr/u16-strtok (Depends-on): Depend on
9308         unistr/u16-strmblen.
9309         * modules/unistr/u32-strtok (Depends-on): Depend on
9310         unistr/u32-strmblen.
9311         * tests/unistr/test-u-strtok.h: New file.
9312         * tests/unistr/test-u8-strtok.c: New file.
9313         * tests/unistr/test-u16-strtok.c: New file.
9314         * tests/unistr/test-u32-strtok.c: New file.
9315         * modules/unistr/u8-strtok-tests: New file.
9316         * modules/unistr/u32-strtok-tests: New file.
9317         * modules/unistr/u16-strtok-tests: New file.
9319 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
9321         update-copyright: fix test failure with perl >= 5.22 (trivial)
9322         * build-aux/update-copyright: Escape a literal left curly bracket,
9323         required with perl >= 5.22
9325 2015-07-02  Daiki Ueno  <ueno@gnu.org>
9327         u{16,32}-strstr-tests: relax timeout condition
9328         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
9329         tests can take longer than 5 seconds to complete.
9330         Reported by Dagobert Michelsen in:
9331         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
9332         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
9333         seconds to 10 seconds.
9334         * tests/unistr/test-u32-strstr.c (main): Likewise.
9336 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
9338         gnulib-common.m4: change the ARFLAGS default to 'cr'
9339         In some GNU/Linux distributions people started to compile 'ar'
9340         binary with --enable-deterministic-archives (binutils project).
9341         That, however, in combination with previous autotools long time
9342         working default AR{_,}FLAGS=cru causes warnings on such
9343         installations:
9344         ar: `u' modifier ignored since `D' is the default (see `U')
9345         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
9346         set already.
9348 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
9350         selinux-h: avoid double free after *getfilecon()
9351         Originally reported by Ben Shelton on bug-tar:
9352         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
9353         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
9354         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
9355         param should be freed by freecon(3) (regardless the return value).
9357 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
9359         fix pty related tests issues on Windows (trivial)
9360         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
9361         however it's still present in tests/ subdirectory of the final project.
9362         Therefore avoid it to pass `make check`.
9363         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
9364         will just return -ENOSYS, so avoid this non applicable test allowing
9365         the build to proceed.
9367 2015-07-01  Pádraig Brady  <P@draigBrady.com>
9369         acl: fix definition of acl_from_mode on FreeBSD
9370         This was causing basic coreutils copy operations to fail
9371         with ENOTSUP or ENOENT error messages.
9372         * lib/acl-internal.h (acl_from_mode): Only define when
9373         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
9374         of acl_from_mode() defined in lib/set-permissions.c to
9375         be used on FreeBSD at least.
9376         * lib/set-permissions.c: Fix up comment spelling,
9377         and a redundant variable assignment; noticed in passing.
9379 2015-06-30  Pádraig Brady  <P@draigBrady.com>
9381         readutmp: port to FreeBSD >= 9
9382         * lib/readutmp.h: Map utmpxname() to setutxdb().
9383         With that coreutils who(1) and pinky(1) tests pass.
9385 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
9387         mgetgroups: port to strict OS X
9388         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
9389         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
9390         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
9391         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
9393 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
9395         mgetgroups: port to strict OS X
9396         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
9397         Document the getgrouplist problem.
9398         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
9399         New macro.
9400         (mgetgroups): Use it.
9401         * m4/mgetgroups.m4 (gl_MGETGROUPS):
9402         Check for OS X signature for getgrouplist.
9404 2015-06-29  Jim Meyering  <meyering@fb.com>
9406         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
9407         It started like this when building coreutils' latest on OS X,
9408         invoking ./configure with a nonempty --cache=.cache:
9410           lib/linkat.c:46:42: error: operator '||' has no right operand
9411           lib/linkat.c: In function 'rpl_linkat':
9412           lib/linkat.c:330:27: error: #if with no expression
9414         Here's linkat.c's line 46:
9416           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
9418         Here's some context:
9420           $ grep linkat_nofoll .cache
9421           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
9422           $ grep LINKAT_SYM lib/config.h
9423           #define LINKAT_SYMLINK_NOTSUP
9425         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
9426         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
9427         but that violates a tenet of AC_CACHE_CHECK: it must
9428         have no side effect other than setting its cache variable.
9430         What happens is that when the cache is set, we'd skip the
9431         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
9432         defined to whatever value it happened to have in configure's
9433         environment.  In my case, it was not defined, so this later code:
9435           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
9436             [Define to 1 if linkat can create hardlinks to symlinks])
9438         would emit code with an empty RHS.
9440         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
9441         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
9443 2015-06-28  Jim Meyering  <meyering@fb.com>
9445         mountlist: avoid an unused-label warning on OS X
9446         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
9447         Building on OS X, I saw a warning about the "free_then_fail" label
9448         being unused.  Give it the _GL_UNUSED_LABEL attribute.
9450         error.c: correct printf-style format: %d -> %u
9451         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
9452         rather than %d, to match the type of "line_number", unsigned int.
9454 2015-06-25  Pádraig Brady  <P@draigBrady.com>
9456         fts: avoid reading beyond the heap allocation
9457         GCC 5.1.1 with -O2 and -fsanitize=address reports
9458         a read of size 4 from a heap object of size 3 is indeed invalid,
9459         though this may be due to incorrect padding assumptions by GCC, see:
9460         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
9461         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
9462         * modules/fts: Depend on stdalign.
9464 2015-06-24  Pádraig Brady  <P@draigBrady.com>
9466         savedir: avoid undefined behavior in qsort call
9467         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
9468         "runtime error: null pointer passed as argument 1,
9469          which is declared to never be null"
9470         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
9472 2015-06-24  Pádraig Brady  <P@draigBrady.com>
9474         userspec: avoid undefined behavior in gettext call
9475         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
9476         "runtime error: null pointer passed as argument 2,
9477          which is declared to never be null"
9478         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
9480 2015-06-20  Glenn Morris  <rgm@gnu.org>
9482         gitlog-to-changelog: improve gitmerge.el commits
9483         Let the Emacs ChangeLog generation process exclude "skipped"
9484         messages from merge commits (Bug#20717).
9485         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
9487 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
9489         wchar: fix MinGW compilation warnings
9490         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
9491         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
9492         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
9494 2015-06-20  Daiki Ueno  <ueno@gnu.org>
9496         uniname/uniname-tests: use pristine data files
9497         For copyright and maintenance reasons, use the data files from UCD
9498         without modification.
9499         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
9500         (getfield): Remove.
9501         (aliases_count): New global variable.
9502         (fill_names): Skip comments and empty lines in the input.  Don't
9503         use getfield.
9504         (fill_aliases): Likewise.
9505         (main): Change the expected command line arguments to:
9506         NAMES... ["--" ALIASES...].
9507         * tests/uniname/test-uninames.sh: Adjust to the change in
9508         test-uninames.c.
9509         * tests/uniname/UnicodeDataNames.txt: Remove.
9510         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
9511         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
9512         file from Unicode 8.0.0.
9514 2015-06-19  Pádraig Brady  <P@draigBrady.com>
9516         linked-list, linkedhash-list: avoid compiler warnings
9517         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
9518         -Werror=suggest-attribute=pure (from GCC 5.1.1).
9520 2015-06-19  Daiki Ueno  <ueno@gnu.org>
9522         libunistring: bump minimum version to 0.9.6
9523         * all modules depending on updated Unicode data: Regenerate.
9524         The modules are listed by a script that does:
9525         - for each file listed by: git show --oneline --name-only 705f4efc
9526           - deduce the containing modules, based on "Files:"
9527         - deduce the modules which depend on the containing modules, based
9528           on "Depends-on:"
9530 2015-06-18  Daiki Ueno  <ueno@gnu.org>
9532         uniname/uniname: update to Unicode 8.0.0
9533         * lib/uniname/uninames.h: Regenerate.
9534         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
9535         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
9537 2015-06-18  Daiki Ueno  <ueno@gnu.org>
9539         libunistring: update to Unicode 8.0.0
9540         * lib/gen-uni-tables.c (SIZEOF): New macro.
9541         (output_numeric): Increase the maximum number of fractions from
9542         128 to 160.  Increase the level3 value width from 7 bits to 8
9543         bits.  Use SIZEOF instead of a hard-coded integer.
9544         (output_blocks): Decrease the cut-off threshold from 0x30000 to
9545         0x28000.
9546         (fill_blocks): Increase the maximum number of blocks from 256 to
9547         384.  Use SIZEOF instead of a hard-coded integer.
9548         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
9549         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
9550         value width.
9551         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
9552         a new case added to LBP22.
9553         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
9554         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
9555         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
9556         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
9557         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
9558         * tests/uniwidth/test-uc_width2.sh: Same updates as in
9559         lib/uniwidth/width.c.
9560         * all generated files under lib/uni* and tests/uni*: Regenerate.
9562 2015-06-16  Pádraig Brady  <P@draigBrady.com>
9564         gnu-web-doc-update: add --mirror to remove stale files
9565         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
9566         out of date files from the CVS server.  Since this is usually
9567         appropriate, a prompt is given when the option is not specified,
9568         along with the `cvs remove` command that would be run.
9570 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
9572         acl-permissions: pacify -Wsuggest-attribute=const
9573         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
9574         * lib/acl-internal.h (free_permission_context):
9575         Declare with attribute const if ! (defined USE_ACL &&
9576         (HAVE_ACL_GET_FILE || defined GETACL)).
9578         fsync: document AIX misbehavior
9579         * doc/posix-functions/fsync.texi (fsync):
9580         Document failure on AIX with read-only file descriptor.
9582 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
9584         stdio: Don't redefine gets when using C++
9585         * lib/stdio.in.h (gets): Disable warning on C++.
9587 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
9589         acl-permissions: port to AIX, C89 HP-UX
9590         Problems reported by Michael Felt.
9591         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
9592         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
9593         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
9594         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
9595         Add cast for AIX, whose system calls are declared to accept
9596         char * even though the arguments are really char const *.
9597         * lib/get-permissions.c (get_permissions):
9598         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
9599         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
9600         that broke a build.
9601         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
9602         Rework types to pacify xlc.
9604 2015-06-03  Pádraig Brady  <P@draigBrady.com>
9606         vasprintf-posix: avoid compiling vasnprintf where possible
9607         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
9608         module where not required.  For example on a GNU/Linux system
9609         when gnulib-tool is run with the --conditional-dependencies option.
9611 2015-06-02  Pádraig Brady  <P@draigBrady.com>
9613         file-has-acl: fix build on Mac OS X 10
9614         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
9615         which has an incompatible 6 parameter getxattr() call.
9616         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
9617         call on Mac OS X >= 10.4.
9618         * doc/glibc-functions/fgetxattr.texi: Likewise.
9619         * lib/file-has-acl.c: Revert to more complete combined check.
9620         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
9621         Reported by Jack Howarth.
9623 2015-06-02  Pádraig Brady  <P@draigBrady.com>
9625         prefix-gnulib-mk: remove no longer needed special case
9626         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
9627         continued lib_SOURCES lines are no longer present,
9628         so special case handling of such entries is not required.
9630 2015-06-01  Pádraig Brady  <P@draigBrady.com>
9632         acl: don't depend on the deprecated qacl module
9633         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
9635 2015-06-01  Pádraig Brady  <P@draigBrady.com>
9637         gnulib-tool: concatenate lib_SOURCES to a single line
9638         * gnulib-tool: Refactor the line merging sed logic,
9639         and use that to output a single lib_SOURCES line for each module.
9640         gnulib using projects often postprocess this output to prepend
9641         subdir paths to each item, and having a single line simplifies this
9642         processing allowing better decoupling from the gnulib-tool output.
9644 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
9646         pthread_sigmask: discount system version if a simple macro (trivial)
9647         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
9648         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
9649         function to ensure it's available.
9651 2015-05-31  Pádraig Brady  <P@draigBrady.com>
9653         readlinkat: avoid OS X 10.10 trailing slash bug
9654         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
9655         has this bug.
9656         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
9657         that OS X 10.10 has this function.
9658         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
9659         as done for readlink().
9660         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
9661         trailing slash bug, and assume readlinkat() has the same issue.
9662         Also fix a typo where $gl_cv_decl_readlink_works was tested,
9663         rather than the correct $gl_cv_decl_readlinkat_works.
9665 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
9667         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
9668         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
9669         module rewrite.
9671         acl-permissions: Fix build on Solaris and Cygwin
9672         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
9673         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
9674         ace_entries variables have moved into struct permission_context but
9675         they were still accessed as local variables here.
9677 2015-05-29  Pádraig Brady  <P@draigBrady.com>
9679         linkat: avoid OS X 10.10 trailing slash with symlink bug
9680         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
9681         causes the symlink to be dereferenced, and if it points
9682         to a non existent file, that file will be created as
9683         a hard link to "path1".
9684         This fixes a test failure in test-linkat.c.
9685         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
9686         this case.  The existing workaround in linkat.c for
9687         trailing slash issues, suffices for this case.
9688         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
9689         the list of platforms with trailing slash issues.
9691 2015-05-28  Pádraig Brady  <P@draigBrady.com>
9693         unlinkat: handle ignoring of ".." on Darwin 14
9694         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
9695         on Mac OS X 10.10, where it ignores paths with a trailing "..",
9696         so handle in the same manner.
9697         * m4/unlinkat.m4: Comment on this Darwin issue.
9698         * doc/posix-functions/unlink.texi: Update the latest version
9699         where the issue was seen.
9700         * doc/posix-functions/unlinkat.texi: Mention this issue.
9701         Fixes a test failure in test-unlinkat.c.
9703 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
9705         qacl: split into qcopy-acl and qset-acl
9706         Emacs needs the former, but not the latter.
9707         * modules/acl-permissions: New file, containing most of the old qacl.
9708         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
9709         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
9710         * modules/qcopy-acl, modules/qset-acl: New files.
9711         * MODULES.html.sh (File system functions):
9712         Mention the new modules, and mention qacl while we're at it.
9714 2015-05-27  Glenn Morris  <rgm@gnu.org>
9716         gitlog-to-changelog: new option --ignore-line
9717         (This patch is imported from the GNU Emacs master.)
9718         This option ignores individual commit lines matching a pattern.
9719         * build-aux/gitlog-to-changelog: Add --ignore-line option.
9721 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
9723         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
9724         Implement get_permissions and set_permissions primitives for getting all
9725         the permissions of a file, storing them, and later setting them. (In the
9726         minimal case, the permissions consist only of a file mode.) Reimplement
9727         qset_acl and qcopy_acl based on these new primitives: this avoids code
9728         duplication and makes error handling more consistent.
9729         The Solaris and Cygwin code still uses duplicate code paths for setting
9730         a file mode while making sure that no acls exist and setting an explicit
9731         acl; this is no worse than before, but could be cleaned up.  The AIX
9732         code still doesn't read ACLs, it only makes sure that acls don't get in
9733         the way when setting a file mode.
9734         * lib/acl-internal.h (struct permission_context): New data structure.
9735         (get_permissions, set_permissions, free_permission_context): Declare.
9736         * lib/acl-internal.c (free_permission_context): New helper function.
9737         * lib/get-permissions.c (get_permissions): New helper function split off
9738         from qcopy_acl.
9739         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
9740         AIX, set a file's permissions based only on a file mode.
9741         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
9742         other platforms construct a temporary acl from the file mode and set
9743         that acl in the same way as setting an acl read from the source file.
9744         This should help avoid code duplication and inconsistent / buggy
9745         behavior.
9746         (set_acls): New helper function Split off from qcopy_acl.
9747         (chmod_or_fchmod): Moved here from qset-acl.c.
9748         (set_permissions): New helper function.
9749         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
9750         set_permissions.
9751         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
9752         * modules/qacl: Add get-permissions.c and set-permissions.c.
9754         file-has-acl: Split feature tests again (Bug#20667)
9755         * lib/file-has-acl.c: Instead of testing for
9756         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
9757         define them when needed.
9758         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
9759         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
9761 2015-05-27  Pádraig Brady  <P@draigBrady.com>
9763         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
9764         This avoids a conflict with "FORTIFY_SOURCE" variants
9765         of the string functions when they're replaced on NetBSD-6.0.1
9766         and Darwin-14.3.0 at least.
9767         * lib/string.in.h: Avoid including our "lib/string.h" while
9768         including the system <string.h>.
9770 2015-05-26  Eric Blake  <eblake@redhat.com>
9772         stdio: limit __gnu_printf__ witness to gcc 4.4+
9773         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
9774         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
9776         error: use correct printf attributes on mingw
9777         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
9779         inttypes: force correct mingw PRIdMAX even without <stdio.h>
9780         * modules/inttypes (Depends-on): Require extensions, so that mingw
9781         always uses GNU style inttypes.
9782         * lib/inttypes.in.h: On mingw, include <stdio.h>.
9784         stdio: fix probe on mingw under gcc 5.1
9785         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
9786         around new gcc preprocessor rules.
9788 2015-05-07  Glenn Morris  <rgm@gnu.org>
9790         gitlog-to-changelog: parse "Tiny-change"
9791         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
9792         "Copyright-paperwork-exempt".  (Bug#20324)
9794 2015-05-06  Pádraig Brady  <P@draigBrady.com>
9796         doc: document glibc posix_fallocate() issues
9797         * doc/posix-functions/posix_fallocate.texi: Mention the
9798         glibc efficiency problems and issues with NFS.
9800 2015-05-05  Karl Berry  <karl@freefriends.org>
9802         * build-aux/gendocs.sh (usage): document new css default
9803         for HTML (--htmlarg).
9805 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
9807         extern-inline: no need for workaround in GCC 5.1
9808         * doc/extern-inline.texi (extern inline):
9809         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
9810         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
9811         around these bugs in GCC 5.1 and later.  Maybe in a decade or
9812         two we can remove these workarounds.
9814 2015-04-28  Pádraig Brady  <P@draigBrady.com>
9816         eealloc, pagealign_alloc, xalloc: avoid clang warnings
9817         Avoid [-Wunknown-attributes] warnings like:
9818         warning: unknown attribute '__alloc_size__' ignored
9819         * lib/xalloc.h: Don't use the __alloc_size__  attribute
9820         with clang, as support has been fully removed as of clang 3.5:
9821         https://github.com/llvm-mirror/clang/commit/c047507a
9822         * lib/eealloc.h: Likewise.
9823         * lib/pagealign_alloc.h: Likewise.
9825 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
9827         tests: pacify GCC 5.1's stricter printf checking
9828         * tests/test-dirname.c (main):
9829         * tests/test-getaddrinfo.c (simple):
9830         * tests/test-getlogin.c (main):
9831         * tests/test-getndelim2.c (main):
9832         * tests/test-inttostr.c (CK):
9833         * tests/test-md5.c (main):
9834         * tests/test-read-file.c (main):
9835         * tests/test-sha1.c (main):
9836         Fix mismatches between printf format and value signedness.
9837         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
9838         Remove, as CAST_VAL always returned a value of type uintmax_t.
9840         fts: port to GCC 5.1 with --enable-gcc-warnings
9841         Without this fix, GCC 5.1 (correctly) warns about a subscript
9842         error on the fts_name component of FTSENT.  It's actually a
9843         flexible member, so define it that way on C99 or later hosts.
9844         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
9845         structure that now has a flexible array member.
9846         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
9847         (FTSENT): fts_name is now flexible on C99-or-later platforms.
9848         * modules/fts (Depends-on): Add flexmember.
9850 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
9852         file-has-acl: port to CentOS 6
9853         Problem reported by Tom G. Christensen in:
9854         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
9855         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
9856         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
9857         HAVE_GETXATTR.
9858         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
9859         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
9860         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
9861         file-has-acl.c actually needs.
9863 2015-04-26  Pádraig Brady  <P@draigBrady.com>
9865         file-has-acl: always return false when ACLs aren't supported
9866         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
9867         change the GNU/Linux getxattr path, to transform "not supported"
9868         errors to a false return rather than an error.  This is handled
9869         within file_has_acl() due to the platform specific tests to
9870         determine if ACLs are not supported.
9872 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
9874         gettext: propagate po/Makefile.in.in too
9875         * build-aux/po/Makefile.in.in: Copy from latest gettext.
9876         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
9877         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
9878         between Makefile.in.in and the gettext-runtime m4 files.
9880 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
9882         file-has-acl: new module, split from acl
9883         And add a new module file-has-acl-tests to match.
9884         I ran into a problem with the recent changes to the acl module,
9885         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
9886         When using the fixed version with Emacs, I discovered that
9887         file-has-acl wasn't separated out well enough for Emacs (e.g., it
9888         had multiple libraries, but needed only one), so I fixed that too.
9889         * NEWS: Document this incompatible change.
9890         * modules/file-has-acl, modules/file-has-acl-tests: New files.
9891         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
9892         Initialize gl_need_lib_has_acl.
9893         (gl_FUNC_ACL): Require it.
9894         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
9895         Move the file-has-acl.c-relevant stuff to ...
9896         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
9897         use_xattrs = 0' typo, and omit some needless work.  Set
9898         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
9899         when gl_FUNC_ACL is called.
9900         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
9901         (Link): Remove $(LIB_HAS_ACL).
9902         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
9903         (check_PROGRAMS): Move stuff relevant to file-has-acl to
9904         modules/file-has-acl-tests.
9905         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
9907         manywarnings: add GCC 5.1 warnings
9908         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
9909         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
9910         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
9911         -Wsuggest-override, -Wuse-without-only.  Change
9912         -Wnormalized=... operands to match 5.1.
9913         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
9914         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
9915         -Wdiscarded-qualifiers, -Wformat-signedness,
9916         -Wincompatible-pointer-types, -Wint-conversion,
9917         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
9918         -Wshift-count-negative, -Wshift-count-overflow,
9919         -Wsizeof-array-argument, -Wsuggest-final-methods,
9920         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
9921         and add -Warray-bounds=2 as a special case.
9923 2015-04-21  Simon Josefsson  <simon@josefsson.org>
9925         doc: update FDL template to match FDL examples.
9926         * doc/alloca-opt.texi:
9927         * doc/alloca.texi:
9928         * doc/c-ctype.texi:
9929         * doc/c-strcase.texi:
9930         * doc/c-strcaseeq.texi:
9931         * doc/c-strcasestr.texi:
9932         * doc/c-strstr.texi:
9933         * doc/c-strtod.texi:
9934         * doc/c-strtold.texi:
9935         * doc/ctime.texi:
9936         * doc/error.texi:
9937         * doc/gcd.texi:
9938         * doc/gnulib-tool.texi:
9939         * doc/inet_ntoa.texi:
9940         * doc/intprops.texi:
9941         * doc/lib-symbol-visibility.texi:
9942         * doc/maintain.texi:
9943         * doc/parse-datetime.texi:
9944         * doc/quote.texi:
9945         * doc/regexprops-generic.texi:
9946         * doc/standards.texi: Remove spurious 'with' in FDL license
9947         template.
9949 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
9951         lstat: fix cross-compilation 'ln -s' problem
9952         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
9953         Have the test program call 'symlink' rather than a separate
9954         script run 'ln -s'; this is more likely to work in
9955         cross-compilation environments.  Reported by Pavel Fedin in:
9956         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
9958 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
9960         gendocs.sh: default to a common CSS style sheet for HTML output
9961         * build-aux/gendocs.sh (htmlarg): Change default value.
9963 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
9965         gnulib-tool: output bold attribute more portably
9966         * gnulib-tool (func_show_module_list): Change hexadecimal
9967         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
9968         encoded numbers as arguments to `printf' is not portable,
9969         and is not claimed by POSIX.  This is the case with FreeBSD.
9971 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
9973         qacl: Simplify HP-UX acl_nontrivial check
9974         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
9975         acl_nontrivial. Check if the acl has at most three entries instead (it must
9976         have exactly three entries according to the HP-UX documentation). Ignore
9977         uids and gids as long as an entry is either for a user (i.e., the owner),
9978         a group (i.e., the owning group), or others.
9979         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
9980         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
9982 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
9984         acl: On Linux, check for acls without libacl
9985         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
9986         library function to check for the presence of acls, avoiding a library.
9987         * lib/file-has-acl.c: Include xattr headers if we have them.
9988         (file_has_acl): On Linux, use getxattr().
9989         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
9990         file_has_acl(). Check for xattr headers and getxattr().
9992 2015-04-14  Ángel González  <keisial@gmail.com>
9994         tempname: avoid unused parameter warnings (trivial)
9995         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
9996         (try_nocreate): Likewise.
9998 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
10000         fseeko: fix build failure on NetBSD >= 6 (trivial)
10001         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
10002         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
10004 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
10006         gitlog-to-changelog: port to MS-Windows
10007         * build-aux/gitlog-to-changelog (git_dir_option):
10008         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
10009         MS-Windows Perl.  Reported by Eli Zaretskii in:
10010         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
10012 2015-04-07  Karl Berry  <karl@gnu.org>
10014         gendocs: new option --tex for passing args to texi2dvi.
10015         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
10016         (TEXI2DVI): cut to just command name.
10017         (usage): mention new option, and update copyright.
10018         <generate_tex>: use it.
10020 2015-04-07  Karl Berry  <karl@gnu.org>
10022         * config/srclistvars.sh (GETTEXT): new definition.
10023         * config/srclist.txt: use it for gettext .m4 files.
10024         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
10025         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
10026         and continuing into April.
10028 2015-04-07  Daiki Ueno  <ueno@gnu.org>
10030         uniname/uniname-tests: fix failure due to alias
10031         Reported by Jack Howarth in:
10032         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
10033         * tests/uniname/test-uninames.c (name_has_alias): New function.
10034         (test_inverse_lookup): Exclude character name with valid alias,
10035         from randomly generated character names.
10036         (main): Fill unicode_aliases before calling test functions.
10038 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
10040         hash: remove deprecated hash_insert0 function
10041         * lib/hash.h (hash_insert0): Remove deprecated function.
10042         * lib/hash.c (hash_insert0): Likewise.
10044 2015-04-02  Pádraig Brady  <P@draigBrady.com>
10046         mountlist: remove dependency on libmount
10047         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
10048         directly, rather than depending on libmount, which has many
10049         dependencies due to its dependence on libselinux, as detailed at:
10050         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
10051         Note we restrict this to __linux__ as that's probably where this
10052         interface will remain.  If ever porting, it would be best
10053         to first pull the makedev() wrapper from coreutils to a gnulib module.
10054         Note also we don't add a getline dependency to the mountlist module,
10055         as all Linux versions are sufficient.
10057 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
10059         stddef: port to pre-C11 GCC on x86
10060         On this platform, max_align_t should have an alignment of 8 even
10061         though the storage alignments of double, long, etc. max out at 4.
10062         Inspired by a comment of Andreas Schwab's here:
10063         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
10064         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
10065         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
10066         * tests/test-stddef.c: Test __alignof__ too, if available.
10068 2015-03-24  Pádraig Brady  <P@draigBrady.com>
10070         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
10071         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
10073 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
10075         yesno: make EOL optional in ENABLE_NLS case also (trival)
10076         * lib/yesno.c (yesno): Check for EOL before replacing.
10077         * tests/test-yesno.sh: Add a test case (test along with gettext).
10079 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
10081         fdopendir-tests: test it does not close its arg
10082         * tests/test-fdopendir.c (main): Test that fdopendir does not
10083         close its argument.  From a suggestion by David Grayson in:
10084         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
10086 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
10088         gitlog-to-changelog: trim trailing white space
10089         * build-aux/gitlog-to-changelog (main):
10090         Trim trailing white space from commit message lines.
10091         This is helpful for processing the GNU Emacs repository,
10092         which dates back to 1985 and contains a lot of such lines.
10094         gitlog-to-changelog: new option --ignore-matching
10095         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
10096         Support new option --ignore-matching=PAT, which ignores all
10097         commit messages whose first line matches PAT.
10099 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
10101         fdopendir: port better to MinGW
10102         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
10103         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
10104         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
10105         * modules/fdopendir (Depends-on): Add dirfd.
10107 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
10109         fdopendir: fix typo in comment
10110         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
10112 2015-03-09  Eric Blake  <eblake@redhat.com>
10114         error: document all entry points provided
10115         * doc/glibc-functions/error_print_progname.texi
10116         (error_print_progname): Mention the error module.
10117         * doc/glibc-functions/error_at_line.texi (error_at_line):
10118         Likewise.
10119         * doc/glibc-functions/error_message_count.texi
10120         (error_message_count): Likewise.
10121         * doc/glibc-functions/error_one_per_line.texi
10122         (error_one_per_line): Likewise.
10124 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
10126         vasnprintf: pacify clang 3.5.0
10127         Problem reported by Werner Lemberg in:
10128         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
10129         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
10130         The casts aren't needed, since the characters in question are ASCII.
10132 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
10134         glob, etc.: port to MSVC v18 on MS-Windows 8.1
10135         * lib/dirent--.h (GNULIB_defined_opendir):
10136         * lib/dirent.in.h (GNULIB_defined_opendir)
10137         (GNULIB_defined_closedir):
10138         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
10139         #undef only if Gnulib defined it.
10141         poll: port to MSVC v18 on MS-Windows 8.1
10142         Problem reported by Gisle Vanem in:
10143         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
10144         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
10145         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
10146         Add sys_socket.
10148 2015-02-24  Pádraig Brady  <P@draigBrady.com>
10150         tests: support stderr verification with returns_()
10151         * tests/init.sh (returns_): Disable tracing for this wrapper
10152         function, so that stderr of the wrapped command is unchanged,
10153         allowing for verification of the contents.
10155 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
10157         passfd: avoid valgrind uninitalised data warning
10158         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
10159         to include just the fd we've initialized, rather than including
10160         the extra space used for alignment.
10162 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
10164         uniwbrk/u32-wordbreaks-tests: fix copyright
10165         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
10167         dup2: doc and test for Android bug
10168         Reported by Kevin Cernekee in:
10169         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
10170         * doc/posix-functions/dup2.texi (dup2): Document the bug.
10171         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
10173 2015-02-23  Kevin Cernekee  <cernekee@google.com>
10175         Replace dup2() on Android
10176         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
10177         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
10178         fails.  Using rpl_dup2() fixes this because it has an explicit test
10179         for this condition.
10181 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
10183         Android doesn't define RLIM_SAVED_*
10184         Portability problem reported by Kevin Cernekee in:
10185         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
10186         * doc/posix-headers/sys_resource.texi (sys/resource.h):
10187         Mention the portability problem.
10188         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
10189         Define if not defined.
10190         * m4/dup2.m4 (gl_FUNC_DUP2):
10191         * m4/fcntl.m4 (gl_FUNC_FCNTL):
10192         Likewise.
10194 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
10196         vasnprintf-posix-tests: use consistent test
10197         * tests/test-vasnprintf-posix.c (test_function):
10198         Use "<" in assert instead of "<=", for consistency with other tests.
10200 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
10202         printf, isinf, etc.: noncanonical != NaN
10203         Do not require that isinf, printf, etc. treat noncanonical
10204         values as NaNs.  Instead, require only that they do not crash.
10205         Problem reported by Joseph Myers in:
10206         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
10207         * doc/posix-functions/dprintf.texi (dprintf):
10208         * doc/posix-functions/fprintf.texi (fprintf):
10209         * doc/posix-functions/isfinite.texi (isfinite):
10210         * doc/posix-functions/isinf.texi (isinf):
10211         * doc/posix-functions/isnan.texi (isnan):
10212         * doc/posix-functions/printf.texi (printf):
10213         * doc/posix-functions/snprintf.texi (snprintf):
10214         * doc/posix-functions/sprintf.texi (sprintf):
10215         * doc/posix-functions/vdprintf.texi (vdprintf):
10216         * doc/posix-functions/vfprintf.texi (vfprintf):
10217         * doc/posix-functions/vprintf.texi (vprintf):
10218         * doc/posix-functions/vsnprintf.texi (vsnprintf):
10219         * doc/posix-functions/vsprintf.texi (vsprintf):
10220         Document this.
10221         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
10222         * m4/isinf.m4 (gl_ISINFL_WORKS):
10223         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
10224         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
10225         * tests/test-isfinite.c (test_isfinitel):
10226         * tests/test-isinf.c (test_isinfl):
10227         * tests/test-isnan.c (test_long_double):
10228         * tests/test-isnanl.h (main):
10229         * tests/test-snprintf-posix.h (test_function):
10230         * tests/test-sprintf-posix.h (test_function):
10231         * tests/test-vasnprintf-posix.c (test_function):
10232         * tests/test-vasprintf-posix.c (test_function):
10233 o       Test only that noncanonical values do not cause crashes, not that
10234         they are treated as NaNs.  In some cases this means a larger
10235         output buffer is needed.
10237 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
10239         fts: remove redundant close() (trivial)
10240         * lib/fts.c (fts_read): Remove redundant call to close().
10241         Spotted by coverity.
10243 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
10245         getdtablesize: port better for Android
10246         Problem reported by Kevin Cernekee in:
10247         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
10248         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
10249         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
10250         Instead, just use getrlimit, taking care to avoid Cygwin bug.
10252         poll: fixes for large fds
10253         * lib/poll.c (poll): Don't check directly for NFD too large.
10254         Don't rely on undefined behavior in FD_SET when an arg exceeds
10255         FD_SETSIZE.  Always set revents afterwards, even if to zero.
10256         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
10257         as that makes the test a bit stricter.
10259 2015-02-19  Kevin Cernekee  <cernekee@google.com>
10261         fcntl: Fix cross compiling
10262         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
10263         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
10265 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
10267         dup2, fcntl: cross-compile better for Android
10268         Problem reported by Kevin Cernekee in:
10269         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
10270         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
10271         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
10272         there's little need to cross-compile for older kernels nowadays.
10273         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
10274         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
10276 2015-02-18  Pádraig Brady  <P@draigBrady.com>
10278         getopt: don't crash on memory exhaustion
10279         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
10280         memory exhaustion.  In the _LIBC case we use alloca() as is
10281         already done in glibc, so we don't need to consider the separate
10282         error path in that awkward case.  Also fix a memory leak when
10283         ambiguous options are present.
10284         Reported by Tobias Stoeckmann
10286 2015-02-17  Mike Miller  <mtmiller@ieee.org>
10288         tempname: allow compilation with C++ (trivial)
10289         * lib/tempname.h [C++]: Specify extern "C" linkage.
10290         * lib/tempname.h (try_tempname):
10291         * lib/tempname.c (__try_tempname, __gen_tempname):
10292         Rename 'try' to 'tryfunc'.
10294 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10296         dup2, fcntl: port to AIX
10297         * m4/dup2.m4 (gl_FUNC_DUP2):
10298         * m4/fcntl.m4 (gl_FUNC_FCNTL):
10299         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
10300         The former works on AIX 7.1 but the latter does not.
10301         Also, this may work better with Android; see:
10302         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
10304 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
10306         getdtablesize, dup2, fcntl: port to Android
10307         Problem reported by Kevin Cernekee in:
10308         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
10309         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
10310         Mention that getdtablesize doesn't work on Android.
10311         * lib/getdtablesize.c: Use getrlimit substitute only if
10312         getdtablesize is declared.  This should suffice for Cygwin
10313         while not breaking Android.
10314         * m4/dup2.m4 (gl_FUNC_DUP2):
10315         * m4/fcntl.m4 (gl_FUNC_FCNTL):
10316         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
10317         standardized but the latter is not, and sysconf works on Android.
10318         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
10319         Also check that getdtablesize is declared.
10320         This removes the need for a special case for Android.
10322 2015-02-16  Kevin Cernekee  <cernekee@google.com>
10324         localename: Implement gl_locale_name_thread_unsafe for Android
10325         * lib/localename.c: Android API level >= 21 supports two hardcoded
10326         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
10327         the internal __locale_t struct.
10329 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
10331         fts: avoid crash when a cycle is added while traversing
10332         This could be triggered by auto-mounting a recursive bind mount.
10333         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
10334         * lib/fts.c (fts_read): Avoid removing the original hash table item
10335         when leaving a directory that caused a cycle, and preserve the FTS_DC
10336         flag.
10338 2015-02-16  Daiki Ueno  <ueno@gnu.org>
10340         uniname/uniname: support character alias
10341         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
10342         Generate one-way mapping from aliases to codepoints in the
10343         generated tables.  Special case variation selectors to reduce
10344         table size.
10345         * lib/uniname/uniname.c (unicode_character_name): Special case
10346         variation selectors.
10347         (unicode_name_character): Special case variation selectors and
10348         their aliases.
10349         * lib/uniname/uninames.h: Regenerate.
10350         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
10351         * modules/uniname/uniname-tests (Files): Add
10352         tests/uniname/NameAliases.txt.
10353         * tests/uniname/test-uninames.c: Mark as static.
10354         (ALIASLEN): Define.
10355         (struct unicode_alias): New struct.
10356         (unicode_aliases): New variable.
10357         (fill_aliases): New function.
10358         (test_alias_lookup): New test function.
10359         (main): Run the 'test_alias_lookup' test if the second argument is
10360         given.
10361         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
10362         second argument.
10364 2015-02-11  Kevin Cernekee  <cernekee@google.com>
10366         Fix FILE struct compatibility with Android API level >= 21
10367         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
10368         __sferror.  Recent versions of Bionic's stdio.h no longer define
10369         __sferror.
10370         * lib/fbufmode.c: Likewise.
10371         * lib/fflush.c: Likewise.
10372         * lib/fpurge.c: Likewise.
10373         * lib/freadable.c: Likewise.
10374         * lib/freadahead.c: Likewise.
10375         * lib/freading.c: Likewise.
10376         * lib/freadptr.c: Likewise.
10377         * lib/freadseek.c: Likewise.
10378         * lib/fseeko.c: Likewise.
10379         * lib/fseterr.c: Likewise.
10380         * lib/fwritable.c: Likewise.
10382         Assume unbroken ungetc() on Android
10383         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
10384         test case passed when running on an Android host, and the code
10385         hasn't really changed since 2009.
10387         getdtablesize: Fix Android build
10388         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
10389         versions have this symbol in the .so library (at least 32-bit
10390         platforms) but are missing the declaration in the header file,
10391         causing the m4 logic to guess incorrectly.
10393         localename: Fix Android build
10394         * modules/localename (Depends-on): Add langinfo.
10396         getugroups: Fix Android build
10397         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
10398         functions.
10400         euidaccess: Fix Android build
10401         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
10402         AT_EACCESS gets declared.
10404         linkat_nofollow: Add fallback case for cross compiling
10405         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
10407         net_if: Handle content-free <net/if.h> system headers
10408         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
10409         struct if_nameindex.  If not, enable the replacement header.
10411         signal_h: Fix Android build
10412         * lib/signal.in.h: Add Android to the list of platforms that declare
10413         pthread_sigmask() in <pthread.h> instead of <signal.h>.
10415         duplocale: Fix Android build of duplocale-tests
10416         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
10417         is included by test-duplocale.c (but not by duplocale.c).
10418         * modules/duplocale-tests (configure.ac): Check for monetary.h.
10419         * tests/test-duplocale.c: Skip test if monetary.h is absent.
10420         * doc/posix-headers/monetary.texi: Add Android to the list of
10421         platforms missing monetary.h.
10423 2015-02-11  Pádraig Brady  <P@draigBrady.com>
10425         tests: avoid recent -Werror=unused-variable regression in test-locale
10426         * tests/test-locale.c (main): Reference the variable to avoid the
10427         "unused variable" warning.
10429 2015-02-11  Pádraig Brady  <P@draigBrady.com>
10431         maint: various whitespace cleanups in tempname
10432         * lib/tempname.c: Normalize spacing and line length.
10433         * lib/tempname.h: Likewise.
10434         * modules/tempname: Likewise.
10436 2015-02-11  Pádraig Brady  <P@draigBrady.com>
10438         tests: provide returns_() to simplify exit status checking
10439         * tests/init.sh (returns_): A new function for use in tests,
10440         to allow for easier checking of return values, where you expect
10441         a command to exit with failure status.  By checking for a particular
10442         exit code, you don't hide any crashes for example.
10444 2015-02-11  Pádraig Brady  <P@draigBrady.com>
10446         mountlist: only use libmount when specified
10447         There are currently many shared libs dependencies introduced by
10448         libmount with associated runtime and virt mem overhead.
10449         Therefore don't enable by default.
10450         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
10452 2015-02-08  Daiki Ueno  <ueno@gnu.org>
10454         uniname/unimame-tests: don't link with -lunistring
10455         * modules/uniname/uniname-tests (Makefile.am): Don't link against
10456         $(LIBUNISTRING).  Document the rationale why we need to
10457         conditionalize the test.
10459 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
10461         fstrcmp: don't assume strlen < INT_MAX
10462         * lib/fstrcmp.c: Include stddef.h and stdint.h.
10463         (uintptr_t): Remove, as we're now assuming stdint.
10464         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
10465         Prefer ptrdiff_t to int when the value could exceed INT_MAX
10466         if the input string is long.
10467         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
10468         uintptr_t to size_t when the underlying value is a pointer casted
10469         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
10470         * modules/fstrcmp (Depends-on): Add stdint.
10472         diffseq: prefer ptrdiff_t to ssize_t
10473         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
10474         ptrdiff_t is the natural type for signed indexes.
10475         On a few older platforms, ssize_t is narrower than size_t.
10477         xalloc: fix typo that suppressed warnings
10478         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
10479         This typo, introduced a couple of years ago, mistakenly suppressed
10480         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
10481         -Wmissing-declarations warnings.
10483         full-read: fix license notice typo
10484         * lib/full-read.h: Remove a stray line in the license notice.
10485         Reported by Sam Ellis in: http://bugs.gnu.org/19808
10487         crypto/gc: fix a -Wswitch warning
10488         Reported by Bruce Korb in:
10489         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
10490         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
10492 2015-02-03  Pádraig Brady  <P@draigBrady.com>
10494         gnulib-tool: fix handling of patch(1) diagnostics
10495         * gnulib-tool: Send diagnostics from patch(1) to stderr,
10496         as otherwise gnulib-tool will reparse that output and attempt
10497         to lookup modules.
10499 2015-02-03  Pádraig Brady  <P@draigBrady.com>
10501         bootstrap: exit immediately upon gnulib-tool failure
10502         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
10503         This was noticed when gnulib-tool exited early due to failure
10504         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
10505         but various confusing errors were then given as the build proceeded.
10507 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
10509         symlinkat: include all required header files
10510         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
10511         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
10512         Reported at https://savannah.gnu.org/bugs/index.php?44151
10513         and by Jack Howarth.
10515 2015-01-29  Pádraig Brady  <P@draigBrady.com>
10517         localename: support Solaris 12 and illumos
10518         * lib/localename.c (gl_locale_name_thread_unsafe): call
10519         getlocalename_l() on newer __sun platforms.
10520         Reported by Alexander Pyhalov.
10521         Fix suggested by Rich Burridge.
10523 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
10525         locale: fix tests on illumos (trivial)
10526         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
10527         so move from global scope to main().
10529 2015-01-24  Daiki Ueno  <ueno@gnu.org>
10531         unictype: avoid undefined left-shift behavior
10532         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
10533         gcc's -fsanitize=shift and running its tests triggered:
10534           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
10535             places cannot be represented in type 'int'
10536         Cast LHS to 'unsigned int' after integer promotion.
10537         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
10538         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
10540 2015-01-20  Daiki Ueno  <ueno@gnu.org>
10542         libunistring: bump version of unitypes dependants
10543         Due to the header file search order, all the headers which depend
10544         on unitypes.h need to be generated, when the preinstalled
10545         libunistring is older.
10546         * modules/unicase/base (configure.ac): Bump minimum version to
10547         0.9.4.
10548         * modules/uniconv/base (configure.ac): Likewise.
10549         * modules/unilbrk/base (configure.ac): Likewise.
10550         * modules/uninorm/base (configure.ac): Likewise.
10551         * modules/unistdio/base (configure.ac): Likewise.
10552         * modules/unistr/base (configure.ac): Likewise.
10553         * modules/uniwbrk/base (configure.ac): Likewise.
10554         * modules/uniwidth/base (configure.ac): Likewise.
10556 2015-01-20  Daiki Ueno  <ueno@gnu.org>
10558         unictype/category-none: fix link with libunistring
10559         Since _UC_CATEGORY_NONE is not a public symbol, it will be
10560         prefixed with "libstring_" when compiled as part of libunistring.
10561         To avoid undefined symbol at link time, increase the minimum
10562         version when the dependant modules are updated.
10563         * modules/unictype/category-none (configure.ac): Bump minimum
10564         version to 0.9.5.
10566 2015-01-20  Daiki Ueno  <ueno@gnu.org>
10568         unitypes: fix build with installed libunistring
10569         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
10570         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
10571         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
10573 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
10575         time: port to MinGW32 3.21
10576         Problem reported by Eli Zaretskii in:
10577         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
10578         * lib/time.in.h:
10579         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
10580         * modules/time (Depends-on):
10581         Fall back on unistd.h if the other include files don't define
10582         struct timespec.
10584         update-copyright: apply to self
10585         * build-aux/update-copyright: Fix copyright date.  How ironic!
10587 2015-01-15  Daiki Ueno  <ueno@gnu.org>
10589         libunistring: update to Unicode 7.0.0
10590         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
10591         Manichaean names.
10592         * lib/unictype/joininggroup_name.h: Likewise.
10593         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
10594         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
10595         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
10596         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
10597         (fill_arabicshaping, joining_group_as_c_identifier): Support those
10598         enum values.
10599         (is_property_alphabetic): Accept newly added characters to
10600         cuneiform numeric signs.
10601         (is_property_default_ignorable_code_point): Reject U+0605.
10602         (FIELDLEN): Increase from 120 to 160.
10603         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
10604         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
10605         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
10606         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
10607         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
10608         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
10609         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
10610         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
10611         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
10612         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
10613         U+1E8D0..U+1E8D6.
10614         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
10615         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10616         lib/uniwidth/width.c.
10617         * all generated files under lib/uni* and tests/uni*: Regenerate.
10619 2015-01-14  Daiki Ueno  <ueno@gnu.org>
10621         libunistring: update to Unicode 6.3.0
10622         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
10623         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
10624         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
10625         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
10626         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
10627         Update WB5, WB9, WB10, WB13a, and WB13b.
10628         * tests/uniwbrk/test-uc-wordbreaks.c
10629         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
10630         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
10631         (UC_BIDI_PDI): New enumeration values.
10632         (bidi_category_byname): Support those enum values.
10633         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
10634         dedicated property assigned.
10635         (is_property_case_ignorable): Check 0x0027.
10636         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
10637         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
10638         (output_wbp): Support those enum values.
10639         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
10640         (UC_BIDI_PDI): New enumeration values.
10641         * lib/unictype/bidi_byname.gperf: Add those property names.
10642         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
10643         U+180E, U+1A1B, and U+2066..U+2069.
10644         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10645         lib/uniwidth/width.c.
10646         * all generated files under lib/uni* and tests/uni*: Regenerate.
10648 2015-01-14  Daiki Ueno  <ueno@gnu.org>
10650         libunistring: update to Unicode 6.2.0
10651         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
10652         (unilbrk_table): Adjust table size.
10653         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
10654         for LBP_RI.
10655         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
10656         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
10657         Normalize table index skipping ignored properties.
10658         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
10659         WBP_EXTEND and WBP_FORMAT, which are now computed without using
10660         the table.
10661         * lib/uniwbrk/wbrktable.h: Adjust table size.
10662         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
10663         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
10664         Support rule GB8a.
10665         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
10666         * tests/unigbrk/test-uc-is-grapheme-break.c
10667         (graphemebreakproperty_to_string): Support GBP_RI.
10668         * tests/uniwbrk/test-uc-wordbreaks.c
10669         (wordbreakproperty_to_string): Support WBP_RI.
10670         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
10671         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
10672         (output_lbp): Support LBP_RI.  Adjust some characters changed from
10673         LBP_AL to LBP_ID.
10674         (output_lbp): Support LBP_RI.
10675         (WBP_RI): New enumeration value.
10676         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
10677         (output_wbp): Support WBP_RI.
10678         (GBP_RI): New enumeration value.
10679         (output_gbp_test, fill_org_gbp): Support GBP_RI.
10680         * all generated files under lib/uni* and tests/uni*: Regenerate.
10682 2015-01-14  Daiki Ueno  <ueno@gnu.org>
10684         libunistring: update to Unicode 6.1.0
10685         * lib/gen-uni-tables.c (output_joining_group): Switch to
10686         3-level table to accommodate joining groups defined with higher
10687         codepoint value.  Since there are only 88 groups defined in
10688         Unicode 7.0.0, use 7-bit packed format for level3 entries.
10689         (get_lbp): Update for Unicode 6.1.0.
10690         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
10691         3-level table.
10692         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
10693         joining group name.
10694         * lib/unictype/joininggroup_name.h: Likewise.
10695         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
10696         (unilbrk_table): Adjust table size.
10697         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
10698         for LBP_HL.
10699         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
10700         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
10701         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
10702         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
10703         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
10704         U+302E..U+302F.
10705         * tests/uniwidth/test-uc_width2.sh: Same updates as in
10706         lib/uniwidth/width.c.
10707         * all generated files under lib/uni* and tests/uni*: Regenerate.
10708         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
10710 2015-01-15  Daiki Ueno  <ueno@gnu.org>
10712         uniwbrk/u32-wordbreaks-tests: add conformance test
10713         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
10714         tests/uniwbrk/test-uc-wordbreaks.c,
10715         tests/uniwbrk/test-uc-wordbreaks.sh, and
10716         tests/uniwbrk/WordBreakTest.txt.
10717         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
10718         test-uc-wordbreaks to $(check_PROGRAMS), and define
10719         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
10720         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
10721         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
10723 2015-01-15  Daiki Ueno  <ueno@gnu.org>
10725         uniwbrk: ignore Extended/Format characters at BOL not BOS
10726         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
10727         characters if the previous character property is one of
10728         WBP_NEWLINE, WBP_CR, and WBP_LF.
10730 2015-01-11  Jim Meyering  <meyering@fb.com>
10732         test-strstr.c: avoid a trivial leak
10733         * tests/test-strstr.c (main): Free haystack.
10735         update-copyright: recognize groff's \(co marker
10736         * build-aux/update-copyright (circle_c_re): Also accept
10737         uses of \(co, as found in gzip.1.
10739 2015-01-08  Pádraig Brady  <P@draigBrady.com>
10741         maint.mk: fix compatibility with OS X nm
10742         * top/maint.mk (_gl_tight_scope): Use the -g option to
10743         show exported items rather than the -e option which is
10744         ignored on all platforms except OS X where it gives an error.
10745         Reported by Assaf Gordon.
10747 2015-01-07  KO Myung-Hun  <komh@chollian.net>
10749         localcharset: improve charset detection on OS/2
10750         Use system codepage when appropriate.  Map OS/2 codepages to
10751         GNU canonical charset names if possible.
10752         * lib/config.charset: Don't output aliases if "$os" is os2*.
10753         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
10754         result for OS/2.
10755         (locale_charset) [OS2]: Use system codepage if codeset is omitted
10756         from the locale name which is neither "C" nor "POSIX".
10758 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
10760         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
10761         This reverts the last patch but one, as it shouldn't be needed now
10762         that the typo is fixed.
10763         * lib/count-leading-zeros.h (count_leading_zeros_ll):
10764         * lib/count-trailing-zeros.h:
10765         * lib/count-one-bits.h:
10766         Go back to using 64-bit intrinsics.
10768         count-leading-zeros: fix pragma typos
10769         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
10770         Fix typos in declaration of intrinsics when _MSC_VER.
10772 2015-01-06  Pádraig Brady  <P@draigBrady.com>
10774         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
10775         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
10776         intrinsics in this case.
10777         * lib/count-trailing-zeros.h: Likewise.
10778         * lib/count-one-bits.h: Likewise.
10780 2015-01-06  Daiki Ueno  <ueno@gnu.org>
10782         uniname/uniname: update to Unicode 7.0.0
10783         To accommodate new characters added since Unicode 5.1.0, this
10784         changes the internal representation of codepoint ranges.
10785         Previously, we grouped codepoint ranges by manually assigned 4-bit
10786         tag, which only allowed 16 groups.  This removes the limitation by
10787         switching to binary search on a table.  For the detail rationale
10788         and the benchmark results, see:
10789         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
10790         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
10791         to INDEX, as it no longer represents a codepoint.
10792         (range): New struct.
10793         (main): Switch to intervals list from a bit-pattern based
10794         classification.
10795         * lib/uniname/uninames.h: Regenerate.
10796         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
10797         * modules/uniname/base (configure.ac): Bump minimum version to
10798         0.9.5.
10799         * modules/uniname/uniname (configure.ac): Bump minimum version to
10800         0.9.5.
10802 2015-01-05  Eric Blake  <eblake@redhat.com>
10804         doc: update INSTALL from autoconf
10805         * doc/install.texi: Resync from autoconf.
10806         * doc/INSTALL: Reflect recent autoconf update.
10807         * doc/INSTALL.ISO: Likewise.
10808         * doc/INSTALL.UTF-8: Likewise.
10810         stdio: fix use of PRIdMAX on modern mingw
10811         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
10812         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
10813         to work with modern mingw.
10815 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
10817         pthread: detect git mingw builds with only partial pollution
10818         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
10819         pollution, as seen temporarily in Fedora 21.
10821 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
10823         lib-symbol-versions: cache script check
10824         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
10825         Cache the check for linker version scripts.
10826         From a suggestion by Christophe Curis in:
10827         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
10829 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
10831         maint: fix grammar nits in propername (trivial change)
10832         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
10833         and use an adequate verb and tense.
10835 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
10837         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
10838         * module/gendocs: Add 'doc/gendocs_template_min'.
10840         * build-aux/gendocs.sh: Change email addresses and upstream URLs
10841         from to Gnulib's.
10842         (scripturl, templateurl): Adjust accordingly.
10844 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
10846         gendocs: copyright date and version fix
10847         Reported by Karl Berry in:
10848         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
10849         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
10850         Fix copyright date.
10851         * build-aux/gendocs.sh (scriptversion): Update.
10853 2015-01-01  Karl Berry  <karl@gnu.org>
10855         * doc/install.texi,
10856         * build-aux/mdate-sh,
10857         * build-aux/depcomp,
10858         * build-aux/config.guess,
10859         * build-aux/config.sub,
10860         * build-aux/ar-lib,
10861         * build-aux/compile: revert copyright updates (some from last
10862         year) in slaved files.
10864 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
10866         version-etc: new year
10867         * doc/gnulib.texi:
10868         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
10869         * all files: Run 'make update-copyright'.
10871 2014-12-30  Pádraig Brady  <P@draigBrady.com>
10873         xstrtol: ensure errno is reset
10874         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
10875         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
10877         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
10879 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
10881         utimens: fix dependency typo
10882         * modules/utimens (Depends-on): Remove 'assure'.
10883         This bug was introduced in the recent 'assure' patch.
10885 2014-12-22  Eric Blake  <eblake@redhat.com>
10887         docs: mention why libgen.h is bad
10888         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
10890 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
10892         assure: new module
10893         This works better than 'assert' when compiling with -DNDEBUG,
10894         as it avoids some compiler diagnostics in that case.
10895         Reported by Norihiro Tanaka in:
10896         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
10897         * MODULES.html.sh (func_all_modules): Add 'assure'.
10898         * lib/assure.h, modules/assure: New files.
10899         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
10900         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
10901         Prefer 'assure' to 'assert'.
10902         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
10903         * modules/chdir-long, modules/cycle-check, modules/fchdir:
10904         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
10905         Depend on 'assure'.
10907 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10909         stdalign: port better to HP compilers
10910         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
10911         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
10913         stdalign: work around Apple GCC 4.0 bug
10914         Reported by David Fang in:
10915         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
10916         * lib/stdalign.in.h (_Alignas):
10917         * m4/stdalign.m4 (gl_STDALIGN_H):
10918         Do not use aligned attribute with GCC 4.0 on Apple.
10920 2014-12-16  Pádraig Brady  <P@draigBrady.com>
10922         getcwd: fix test failure on OS X 10.9
10923         * m4/getcwd-path-max.m4: Avoid the replacement if it
10924         won't be effective due to the PATH_MAX limitation of lstat().
10925         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
10926         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
10927         for this case for use in tests, and also exclude this
10928         case when setting REPLACE_GETCWD.
10929         * tests/test-getcwd.c (test_long_name): Restrict the
10930         tested path length so that lstat() will not be passed
10931         a path greater than PATH_MAX.
10932         Also key a test condition on HAVE_OPENAT_SUPPORT rather
10933         than AT_FDCWD, since the latter is set unconditionally
10934         since Sep 2009 in commit 52c658e9.
10936 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
10938         parse-datetime: avoid a compiler warning with byacc (trivial)
10939         * lib/parse-datetime.y (yylex): Use the same prototype in the
10940         function definition as the declaration, to avoid a -Wstrict-prototypes
10941         warning seen when using byacc.
10943 2014-12-12  Daiki Ueno  <ueno@gnu.org>
10945         unicase/locale-language-tests: fix LOCALE_FR test
10946         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
10947         a French locale with traditional encoding.
10948         Reported by umerqayam in:
10949         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
10951 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10953         stddef: support C11's max_align_t
10954         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
10955         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
10956         Do not undef, as that might cause max_align_t to be defined twice.
10957         Instead, change use to check for _GL_STDDEF_WINT_T too.
10958         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
10959         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
10960         Check for max_align_t.
10961         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
10962         * modules/stddef-tests (Depends-on): Add stdalign.
10963         * tests/test-stddef.c: Test max_align_t.
10965 2014-12-11  Daiki Ueno  <ueno@gnu.org>
10967         unistd: fix iOS check conditional
10968         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
10969         as 0 or 1 in <TargetConditionals.h>, and the previous check always
10970         yielded true on non-iOS environment.
10971         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
10972         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
10973         they are defined.
10975 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
10977         posixtm: avoid compiler warning in a better way
10978         * lib/posixtm.c (IF_LINT): Remove.
10979         (year, posix_time_parse):
10980         Return true (not 0) if successful.  All callers changed.
10981         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
10983 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
10985         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
10986         started with '/' on EMX.
10988 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
10990         freopen: workaround freopen() on OS/2 kLIBC
10991         * lib/freopen.c (rpl_freopen): Workaround.
10992         * m4/freopen.m4: Add os2* case.
10994         get_shared_library_fullname: port to EMX
10995         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
10996         on EMX, respectively.
10997         (_DLL_InitTerm): New on EMX.
10998         (get_shared_library_fullname): Implement on EMX.
11000         find_executable: port to EMX
11001         * lib/progreloc.c (find_executable): Implement on EMX.
11003         sched: check struct sched_param in spawn.h as well
11004         * lib/sched.in.h: Include spawn.h on kLIBC.
11005         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
11007 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
11009         bootstrap: Allow perl modules in $buildreq
11010         * build-aux/bootstrap: Add case for perl modules.
11012 2014-12-08  Pádraig Brady  <P@draigBrady.com>
11014         apply _GL_ATTRIBUTE_PURE to some inline functions
11015         clang 3.4.2 flagged these inline functions as pure
11016         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
11017         * lib/sig-handler.h (get_handler): Likewise.
11018         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
11019         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
11021 2014-12-06  Pádraig Brady  <P@draigBrady.com>
11023         vasnprintf: fix potential use after free
11024         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
11025         flagged by clang-analyzer 3.4.2.
11027 2014-12-05  Pádraig Brady  <P@draigBrady.com>
11029         filevercmp, posixtm: avoid compiler warnings with -O3
11030         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
11031         * lib/posixtm.c: (IF_LINT): Define.
11032         (posix_time_parse): Use it to void a "may be used uninitialized"
11033         warning, seen only with -O3.
11035 2014-12-05  Bruno Haible  <bruno@clisp.org>
11037         Fix LDBL80_WORDS macro on big endian platforms.
11038         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
11039         LDBL80_WORDS macro.
11040         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
11041         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11042         * tests/test-isfinite.c (test_isfinitel): Likewise.
11043         * tests/test-isinf.c (test_isinfl): Likewise.
11044         * tests/test-isnan.c (test_long_double): Likewise.
11045         * tests/test-isnanl.h (main): Likewise.
11046         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
11047         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
11048         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
11049         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
11050         Reported by Pádraig Brady.
11052 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
11054         git-version-gen: do not print new line characters
11055         * build-aux/git-version-gen: Use printf instead of echo and tr.
11057         gnulib-tool: recognize x:* as an absolute path
11058         * gnulib-tool (func_gnulib_dir): Add ?:* case.
11059         (func_relconcat): Likewise.
11061 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
11063         argp: avoid extraneous translation and mem leak with empty pre doc
11064         * lib/argp-help.c (argp_doc): Never translate the empty string,
11065         when "\v" is the first or last character of the string, as that
11066         has a reserved meaning to return the header info from a po file.
11067         This also fixes a small memory leak in the !post case.
11068         The issue can be seen with this command for example:
11069         LC_MESSAGES=en_US grub2-mknetdir --help
11071 2014-11-27  Daiki Ueno  <ueno@gnu.org>
11073         uniname/uniname-tests: skip if system's libunistring is used
11074         * modules/uniname/uniname-tests (Makefile.am): Skip test if
11075         uniname/uniname module is not compiled.
11077 2014-11-27  Pádraig Brady  <P@draigBrady.com>
11079         printf: fix configure check on big endian systems
11080         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
11082 2014-11-22  Daiki Ueno  <ueno@gnu.org>
11084         pipe-filter-gi, pipe-filter-ii: port to AIX
11085         On AIX 7.1, 'select' is defined as static and cannot be referred
11086         to from inline function.
11087         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
11088         the definition...
11089         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
11090         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
11092 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
11094         gitlog-to-changelog: add --until
11095         * build-aux/gitlog-to-changelog: Support new --until option.
11096         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
11098 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
11100         extern-inline: update commentary about GCC bugs
11101         * m4/extern-inline.m4: Add another GCC bug number to comments.
11103 2014-11-13  Daiki Ueno  <ueno@gnu.org>
11105         gen-uni-tables: untabify
11106         * lib/gen-uni-tables.c: Untabify.
11108 2014-11-13  Daiki Ueno  <ueno@gnu.org>
11110         gen-uni-tables: check out-of-range values added to 3-level tables
11111         * lib/gen-uni-tables.c (output_category, output_bidi_category)
11112         (output_joining_type, output_ident_category): Check out-of-range
11113         values added to 3-level tables.
11115 2014-11-13  Daiki Ueno  <ueno@gnu.org>
11117         gen-uni-tables: utilize 'assert'
11118         * lib/gen-uni-tables.c: Include <assert.h>.
11119         (output_category, output_combclass, output_decimal_digit_test)
11120         (output_decimal_digit, output_digit_test, output_digit)
11121         (output_numeric, get_mirror_value, fill_properties)
11122         (fill_property30, is_property_alphabetic)
11123         (is_property_default_ignorable_code_point)
11124         (is_property_uppercase, is_property_lowercase)
11125         (is_property_cased, is_property_case_ignorable)
11126         (is_property_changes_when_lowercased, is_property_iso_control)
11127         (is_property_math, fill_arabicshaping, output_joining_group)
11128         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
11129         (output_wbp, fill_org_gbp, get_decomposition)
11130         (output_decomposition, fill_composition_exclusions)
11131         (debug_output_composition_tables, output_composition_tables)
11132         (redistribute_casefolding_rules, output_casing_rules): Use
11133         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
11134         reporting.
11136 2014-11-13  Daiki Ueno  <ueno@gnu.org>
11138         gen-uni-tables: cosmetic improvements
11139         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
11140         variables specification.
11141         (is_outdigit): Remove unused function.
11143 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
11145         fcntl-h-tests: port to PA-RISC GNU/Linux
11146         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
11148 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
11150         fts: port to C89
11151         Problem reported for MSVC 16 by Gisle Vanem in:
11152         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
11153         * lib/fts.c (fts_build): Avoid declaration before statement.
11155 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11157         unistd: port to iOS
11158         Problem reported by André Klitzing in:
11159         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
11160         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
11162 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
11164         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
11165         Problem reported by Alan Modra in:
11166         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
11167         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
11168         Always cast the function arg, reverting this part of the previous
11169         change.
11171 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
11173         obstack: avoid potentially-nonportable function casts
11174         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
11175         Remove, replacing with ...
11176         (call_chunkfun, call_freefun): New static functions.
11177         All uses changed.  Avoid potentially-nonportable casts.
11178         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
11179         (_obstack_begin_worker): Omit last two args, since they
11180         rely on potentially-nonportable casts.  All callers changed.
11181         * lib/obstack.h (_OBSTACK_CAST): New macro.
11182         Use it everywhere the old API used a potentially-nonportable cast.
11183         The new API doesn't cast.
11184         (struct obstack): Use unions rather than requiring
11185         potentially-nonportable casts.
11186         (obstack_chunkfun, obstack_freefun): Return void.
11188 2014-11-03  Alan Modra  <amodra@gmail.com>
11190         obstack: fix macro return values
11191         * lib/obstack.h (obstack_next_free): Return void *.
11192         (obstack_1grow_fast, obstack_blank_fast): Return void.
11193         For __GNUC__ macros:
11194         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
11195         For !__GNUC__ macros:
11196         (obstack_make_room, obstack_grow, obstack_grow0)
11197         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
11199 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
11201         obstack: do not assume system-supplied obstack is size_t safe
11202         * m4/obstack.m4: New file.
11203         * modules/obstack (Files): Add it.
11205         obstack: port to platforms that #define __alignof__
11206         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
11207         not if !_LIBC.  We don't know of any platforms that #define
11208         __alignof__, but it might be useful in tests.  Conversely,
11209         glibc assumes GCC.
11211 2014-11-03  Pádraig Brady  <P@draigBrady.com>
11213         linkat: don't unconditionally replace on GNU/Linux
11214         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
11215         was redundant for a few reasons.  It was present to support compiling
11216         on new systems but running on the old narrow window of Linux 2.6.1[67].
11217         It setup and cleaned up test files which weren't actually used.
11218         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
11219         implicit in the following check.
11221 2014-11-03  Pádraig Brady  <P@draigBrady.com>
11223         linkat: wrap to handle symlinks on OS X 10.10
11224         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
11225         but not usable because it doesn't support creating hardlinks
11226         to symlinks.  Therefore add a generic test for this capability
11227         and fallback to our emulation if linkat() fails with ENOTSUP.
11229 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
11231         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
11232         * doc/posix-functions/open.texi (open):
11233         * doc/posix-functions/openat.texi (openat):
11234         Document that these functions do not set errno to ELOOP when
11235         a symlink is opened with O_NOFOLLOW.
11237 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
11239         obstack: add NEWS entry for recent incompatible changes
11240         * NEWS: Describe recent changes.
11242 2014-10-30  Pádraig Brady  <P@draigBrady.com>
11244         mountlist: don't use libmount to decide on dummy/remote
11245         * lib/mountlist.c (read_file_system_list): Don't use the libmount
11246         routines to determine whether a file system is dummy or remote,
11247         as they're not currently compatible.  For example the remoteness
11248         is determined on file system type (for which the list seems incomplete),
11249         rather than simply checking for a ':' in the device name.
11250         Also libmount currently determines that 'tmpfs' is a dummy file system
11251         even though it has associated storage.
11253 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
11255         obstack: prefer __alignof__ to alignof
11256         This is for portability to pre-4.7 GCC when compiling glibc.
11257         See Joseph S. Myers in:
11258         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
11259         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
11260         New macro, defined by including and using <alignof.h>.
11261         (MAX): New macro.
11262         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
11263         Do not use enums as they are not portable to some broken compilers.
11264         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
11266         obstack: prefer alignof to calculating alignments by hand
11267         * lib/obstack.c: Include <stdalign.h>.
11268         (struct fooalign): Remove.
11269         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
11270         * modules/obstack (Depends-on): Add stdalign.
11272 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
11274         obstack: use size_t alignments and check for overflow
11275         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
11276         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
11277         * lib/obstack.h (struct obstack.alignment_mask):
11278         Use _OBSTACK_SIZE_T, not int, for alignments.
11279         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
11280         overflows, e.g., when adding the alignment.
11282 2014-10-29  Alan Modra  <amodra@gmail.com>
11284         obstack: 64-bit obstack support, part 3
11285         This finally enables full 64-bit obstack support.  The glibc
11286         shared library specific code is removed from obstack.c too, and
11287         the error handling code conditionally compiled under control of
11288         another macro, _OBSTACK_NO_ERROR_HANDLER.
11289         * lib/obstack.h: Include string.h earlier.
11290         (_OBSTACK_INTERFACE_VERSION): Define.
11291         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
11292         * lib/obstack.c: Don't include shlib-compat.h.
11293         (OBSTACK_INTERFACE_VERSION): Delete.
11294         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
11295         glibc code is compatible with version 2.  Don't include stdio.h for
11296         __GNU_LIBRARY.
11297         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
11298         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
11299         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
11300         glibc shared library specific source.
11302         obstack: 64-bit obstack support, part 2
11303         This gets us 4G obstack support, without changing ABI
11304         compatibility, apart from possibly introducing some
11305         signed/unsigned comparison warnings in code that uses obstack.h.
11306         a) Replace "int" size parameters, return values, and macro local vars
11307            with _OBSTACK_SIZE_T, an "unsigned int" for now.
11308         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
11309         c) Make all obstack macros checking available room use obstack_room.
11310            "next_free + desired > chunk_limit" may wrap the lhs for chunks
11311            allocated near the top of memory.
11312         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
11313         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
11314         in place of "int" size parameters, return values and local vars.
11315         (_CHUNK_SIZE_T): Define.
11316         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
11317         union use an _OBSTACK_SIZE_T integer type.
11318         For __GNUC__ versions of the following macros...
11319         (obstack_room): Rename local var.
11320         (obstack_make_room): Use obstack_room.
11321         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
11322         obstack_int_grow, obstack_blank): Likewise.
11323         (obstack_finish): Use unsigned comparison when comparing aligned
11324         next_free against chunk_limit.
11325         (obstack_free): Cast OBJ to remove possible const qualifier.
11326         For !__GNUC__ versions of the following macros...
11327         (obstack_make_room): Use obstack_room.
11328         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
11329         obstack_int_grow, obstack_blank): Likewise.
11330         (obstack_finish): Use unsigned comparision when comparing aligned
11331         next_free against chunk_limit.
11332         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
11333         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
11334         _OBSTACK_SIZE_T.
11335         (_obstack_begin, _obstack_begin_1): Likewise.
11336         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
11337         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
11339         obstack: 64-bit obstack support, part 1
11340         a) Correct calls to alloc function, to use a size_t arg.  "long" is
11341            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
11342            and "size_t" 64 bits.
11343         b) Consolidate _obstack_begin and _obstack_begin1 code.
11344         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
11345         use "size_t" rather than "long".
11346         (_obstack_begin, _obstack_begin1): Likewise.
11347         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
11348         obstack_chunkfun): Update alloc function casts.
11349         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
11350         (chunkfun_type, freefun_type): New typdefs.
11351         (_obstack_begin_worker): Split out from ..
11352         (_obstack_begin, _obstack_begin_1): ..here.
11354         obstack: tidy part 2
11355         a) Don't be concerned about "not polluting the namespace with stddef.h
11356            symbols" in obstack.h, since gnulib string.h includes stddef.h
11357            anyway, and it seems unlikely that anyone would care.
11358         b) Don't roll our own slow memcpy in _obstack_newchunk.
11359         c) Rename obstack_free to _obstack_free.  This makes the naming
11360            consistent with other obstack functions and obviates the need for
11361            __obstack_free.  Ancient obstack.c defined both obstack_free and
11362            _obstack_free.  We continue to do that for _LIBC via an alias.
11363         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
11364            is clever, but nowadays gcc warns on undefined macros.  You'll get
11365            an undefined macro warning if simulating an old gcc with -U__GNUC__
11366            -U__GNUC_MINOR__ -D__GNUC__=1.
11367         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
11368         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
11369         (__obstack_free): Delete, update refs.
11370         (_obstack_free): Rename from obstack_free.
11371         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
11372         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
11373         * lib/obstack.c: Don't include stddef.h.
11374         (COPYING_UNIT): Delete.
11375         (_obstack_begin): Formatting fix.
11376         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
11377         (_obstack_free): Rename from __obstack_free, update alias.  Move
11378         undef of obstack_free to where it is needed.
11380         obstack: tidy part 1
11381         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
11382            to me, and result in overlong lines after later patches.
11383         b) Move error handling code, to avoid a forward declaration and to
11384            simplify later patches in this series.
11385         * lib/obstack.h (struct obstack <temp>): Rename fields of union
11386         and update all uses.
11387         * lib/obstack.c: Include stdlib.h earlier.
11388         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
11389         in file.
11390         (print_and_abort): Remove now redundant forward declaration.
11392 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
11394         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
11395         Without this change, in bleeding-edge fileutils Autoconf complains
11396         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
11397         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
11398         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
11399         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
11401 2014-10-24  Daiki Ueno  <ueno@gnu.org>
11403         iconv: avoid false detection of non-working iconv
11404         The INBUF arguments of iconv can be either 'const char **'
11405         or 'char **'.  If CC is g++, the difference causes a compile error
11406         and thus leads to a false detection of non-working iconv.
11407         Reported by Eli Zaretskii and Werner LEMBERG in:
11408         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
11409         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
11410         iconv.  Bump serial number.
11412 2014-10-23  Pádraig Brady  <P@draigBrady.com>
11414         bootstrap: print more diagnostics for missing programs
11415         * build-aux/bootstrap: only suppress stderr when checking for
11416         alternative program names.  This supports programs issuing non
11417         standard error messages.
11419 2014-10-23  Pádraig Brady  <P@draigBrady.com>
11421         bootstrap: only update the gnulib submodule
11422         * build-aux/bootstrap: Restrict the "submodule update" command
11423         to the gnulib path.
11425 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
11427         symlinkat: port to AIX 7.1
11428         * doc/posix-functions/symlinkat.texi (symlinkat):
11429         Mention AIX porting problem.
11430         * lib/symlinkat.c: Always include errno.h.
11431         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
11432         * lib/unistd.in.h (symlinkat): Add replacement machinery.
11433         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
11434         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
11435         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
11436         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
11437         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
11439         readlinkat: port to AIX 7.1
11440         * doc/posix-functions/readlink.texi (readlink):
11441         * doc/posix-functions/readlinkat.texi (readlinkat):
11442         Mention AIX porting problem.
11443         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
11444         New function.
11445         * lib/unistd.in.h (readlinkat): Add replacement machinery.
11446         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
11447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
11448         * modules/readlinkat (configure.ac): Also compile replacement
11449         if REPLACE_READLINKAT.
11450         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
11452 2014-10-12  Karl Berry  <karl@gnu.org>
11454         * doc/posix-functions/dirname.texi: remove spurious {.
11456 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
11458         basename, dirname: Improve documentation.
11459         * doc/posix-functions/basename.texi: Mention dirname module and
11460         base_name() function.
11461         * doc/posix-functions/dirname.texi: Mention dir_name() and
11462         mdir_name() functions.
11463         Suggested by Werner LEMBERG <wl@gnu.org>.
11465 2014-09-24  Jim Meyering  <meyering@fb.com>
11467         exclude: declare exclude_patopts static
11468         * lib/exclude.c (exclude_patopts): Declare static,
11469         to avoid triggering a -Wmissing-prototypes warning.
11470         The alternative (declaring it in the .h file) would
11471         require publicizing the private "struct patopts".
11473 2014-09-21  Werner Lemberg  <wl@gnu.org>
11475         dirname: support compilation with C++
11476         * lib/dirname.h: Add necessary C linkage declarations.
11478 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11480         qsort_r: include <config.h>
11481         Problem reported by Tom G. Christensen in:
11482         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
11483         * lib/qsort.c [!_LIBC]: Include <config.h> first.
11485 2014-09-16  Dylan Cali  <calid1984@gmail.com>
11487         avltree-list: avoid compiler warnings (trivial)
11488         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
11489         -Werror=suggest-attribute=pure.
11490         * lib/gl_array_list.c: Likewise.
11491         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
11492         declaration to avoid -Werror=missing-prototypes.  This is not added
11493         to a header as only exported for tests.  Add (void) to the
11494         check_invariants() call to indicate we're discarding the result
11495         in this context which avoids -Werror=unused-value.  Note we don't
11496         use ignore_value here to avoid a dependency as we know we'll not
11497         be adding __attribute__((warn_unused_result)) to check_invariants().
11498         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
11500 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
11502         qsort_r: new module, for GNU-style qsort_r
11503         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
11505 2014-09-15  Werner LEMBERG  <wl@gnu.org>
11507         strerror_r-posix: support compilation with C++
11508         * lib/strerror_r.c: Add necessary C linkage declarations.
11510 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
11512         fcntl-h: fix compilation with Intel C++ compiler (trivial)
11513         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
11515 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
11517         mountlist: use /proc/self/mountinfo when available
11518         Use libmount to propagate device IDs provided by Linux in
11519         /proc/self/mountinfo.  This will give more accurate output when
11520         using df in chroot'ed environments as the device IDs are not
11521         determined by stat() which may be inaccurate within the chroot.
11522         * lib/mountlist.c (read_file_system_list): Use the libmount routines
11523         from util-linux to parse "/proc/self/mountinfo" or fall back to
11524         standard getmntent() processing.
11525         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
11526         getmntent() is used, as is the case on GNU/Linux.
11528 2014-09-07  Eric Wong  <normalperson@yhbt.net>
11530         users.txt: add cmogstored
11531         cmogstored has used gnulib since the beginning in 2012 to support
11532         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
11534 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
11536         Trivial change.
11537         * gnulib-tool: Use same options as build-aux/bootstrap to download
11538         PO files.
11540 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
11542         Trivial change.
11543         * gnulib-tool: Fallback to wget when rsync of PO files fails.
11545 2014-09-04  Eric Blake  <eblake@redhat.com>
11547         maintainer-makefile: add syntax check for useless ';;'
11548         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
11550 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
11552         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
11553         Problem reported by Assaf Gordon in:
11554         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
11555         Apparently Ubuntu is doing some fancy link-time optimization
11556         that doesn't work with -lpthread but does work with -pthread.
11557         Work around the bug by preferring -pthread to -lpthread.
11558         * m4/pthread.m4 (gl_PTHREAD_CHECK):
11559         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
11560         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11561         Treat -pthread like -lpthread.
11563 2014-09-04  Eric Blake  <eblake@redhat.com>
11565         error: drop spurious semicolon
11566         * lib/error.c (__error_at_line): Fix ';;'.
11568 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11570         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
11571         * m4/gnulib-common.m4 (AC_C_RESTRICT):
11572         Override AC_C_RESTRICT unconditionally.
11573         Update from autoconf, incorporating:
11574         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
11575         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
11577 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11579         manywarnings: add GCC 4.9 warnings
11580         Also, make it easier to maintain this in the future.
11581         * build-aux/gcc-warning.spec: Add -Wabi-tag,
11582         -Wconditionally-supported, -Wdelete-incomplete,
11583         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
11584         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
11585         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
11586         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
11587         only for older GCC versions that need them.  Handle
11588         -Wnormalized=nfc specially, so that the 'comm' command used
11589         for maintenance doesn't get confused.
11591 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11593         vasnprintf: fix bugs in width computation
11594         * lib/vasnprintf.c (VASNPRINTF):
11595         Rework previous change, which introduced a bug,
11596         to avoid the warning in a different way.
11597         Avoid undefined behavior if the width arg is less than -INT_MAX.
11598         Avoid unnecessary use of HAS_WIDTH local.
11600 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
11602         vasnprintf: Avoid signed/unsigned comparison warning.
11603         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
11604         compare end addr of generated string w/ maximum end addr.
11606 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
11608         parse-datetime: Avoid pointer difference.
11609         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
11610         instead of calculating difference of pointers.  This removes an
11611         annoying warning, devoid of any use.
11613 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
11615         qsort_r: new module, for GNU-style qsort_r
11616         This works even on FreeBSD, which has an incompatible qsort_r API.
11617         * MODULES.html.sh: Add it.
11618         * doc/glibc-functions/qsort_r.texi: It's now supported.
11619         * lib/qsort.c: New file, taken from glibc with minor changes
11620         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
11621         removed.
11622         * lib/qsort_r.c: New file, compiled only on FreeBSD.
11623         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
11624         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
11625         * modules/qsort_r, modules/qsort_r-tests: New files.
11626         * modules/stdlib (Makefile): Set up its defaults.
11627         * tests/test-qsort_r.c: New file.
11629 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
11631         vla: new module
11632         GNU RCS can use this, mostly for documentation I expect.  See:
11633         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
11634         * MODULES.html.sh: Add vla.
11635         * lib/vla.h, modules/vla: New files.
11637 2014-08-07  Daiki Ueno  <ueno@gnu.org>
11639         localename: make gl_locale_name_thread really thread-safe on Windows
11640         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
11641         "glthread/lock.h".
11642         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
11643         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
11645 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
11647         getpass: don't assume struct termios
11648         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
11649         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
11650         * lib/getpass.c (getpass): Port to systems lacking struct termios.
11652         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
11653         Problem reported by Jonas 'Sortie' Termansen in:
11654         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
11655         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
11656         Implement via sysconf for platforms that lack getdtablesize.
11658         vararrays: modernize AC_C_VARARRAYS for C11
11659         This backports a change I recently made to Autoconf.
11660         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
11661         VLAs are not supported, as this is what C11 does.  The old macro
11662         HAVE_C_VARARRAYS is still defined if they are supported, but is
11663         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
11665 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
11667         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
11668         * build-aux/install-reloc (func_create_wrapper): Also wrap
11669         strerror-override, stat, stat.
11671 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
11673         sys_select: fix FD_ZERO problem on Solaris 10
11674         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
11675         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
11676         to expand to an expression that invoked memset without necessarily
11677         including <string.h>.  The problem was that the first include
11678         defined _SYS_TIME_H, causing the second include to short-circuit.
11679         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
11680         Also, fix what appears to be a cut-and-paste typo, by replacing
11681         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
11682         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
11684         accept: document Solaris 10 type glitch
11685         * doc/posix-functions/accept.texi (accept): Mention that
11686         Solaris 10 'accept' takes void * last arg, not socklen_t *.
11688 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
11690         extern-inline: port to FreeBSD, DragonFly
11691         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
11692         is present if either __DragonFly__ or __FreeBSD__ is defined.
11693         FreeBSD problem reported by Andrey Borzenkov in:
11694         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
11695         Also, worry about __APPLE__ only if __MACH__ is also defined,
11696         as this is more consistent with the rest of gnulib.
11697         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
11698         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
11700 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
11702         regex: Make #if/#ifdef usage consistent for DEBUG
11703         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
11704         of the inconsistent usage of #if and #ifdef as that works with
11705         both Glibc and Gnulib's style.
11707 2014-07-31  Eric Blake  <eblake@redhat.com>
11709         openat-die: use _Noreturn markup
11710         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
11711         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
11712         _Noreturn.
11714 2014-07-30  Eric Blake  <eblake@redhat.com>
11716         test-open: port to cygwin, which lacks Fortify
11717         * tests/test-open.h (ALWAYS_INLINE): New macro.
11718         (__always_inline): Don't abuse internal symbol on non-glibc.
11720 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
11722         localename: Enforce declarations before statements.
11723         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
11724         first statement.
11726 2014-07-18  Jim Meyering  <meyering@fb.com>
11728         test-userspec: don't look up numeric user names
11729         * tests/test-userspec.c: I found a system for which getpwnam("0")
11730         returned a pointer to a non-root user's entry, and that made the
11731         test fail.
11732         (T): Prefix each numeric input with "+", to inhibit lookup.
11734 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
11736         localcharset, localename: MS-Windows support for non-default locales
11737         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
11738         falling back on the default system codepage, try extracting
11739         the codepage from what 'setlocale' returns.  This allows to
11740         take into account changes of the codeset due to non-default
11741         locale set by a previous call to 'setlocale'.
11742         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
11743         Define if not already defined.
11744         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
11745         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
11746         current locale by calling 'setlocale', then converting the
11747         locale name into LCID by calling 'get_lcid'.  This allows to
11748         take into account changes in the current locale from the
11749         default one, in contrast to GetThreadLocale.
11751 2014-07-14  Daiki Ueno  <ueno@gnu.org>
11753         announce-gen: avoid failure when Digest::SHA is installed
11754         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
11755         Digest::SHA1->new in print_checksums fails.
11756         * build-aux/announce-gen (digest_classes): New associative array
11757         for available message digest implementations.
11758         (print_locations): Use it.
11760 2014-07-13  Pádraig Brady  <P@draigBrady.com>
11762         gettext: revert "update macros to version 0.19"
11763         This reverts commit 9b9370ca, as it currently requires that
11764         developers of any project that explicitly uses the gettext module
11765         or implicitly uses it through the utimens-tests or
11766         futimens-tests modules, use gettext >= 0.19.
11767         However there are some stability and availablity issues with
11768         that version at present.  We can reinstate this soon, when stability
11769         is addressed and packages are more readily available.
11771 2014-07-12  Jim Meyering  <meyering@fb.com>
11773         regex: don't deref NULL upon heap allocation failure
11774         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
11775         failure in one more place.
11776         To trigger the segfault, configure grep -with-included-regex,
11777         build it, and run these commands:
11778         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
11779         I discovered this while replying to a private report from
11780         Jens Schleusener about excessive memory consumption by grep
11781         when using a regular expression like the one above.
11783 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
11785         regex: fix memory leak in compiler
11786         Fix by Andreas Schwab in:
11787         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
11788         * lib/regcomp.c (parse_reg_exp): Deallocate partially
11789         constructed tree before returning error.
11791 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
11793         announce-gen: avoid perl warnings
11794         * build-aux/announce-gen: add two minor checks to avoid
11795         "use of uninitialized value" warnings when command-line parameters are
11796         missing.
11798 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
11800         localename: avoid -Wsuggest-attribute={const,pure} warnings
11801         * lib/localename.c (string_has): Tag internal function as pure.
11802         * lib/localename.h (gl_locale_name_default): Tag extern declaration
11803         as const when appropriate.
11805 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
11807         nl_langinfo: Fix last change.
11808         * lib/nl_langinfo.c (includes): Drop redundant include.
11810 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
11812         error: Fix -Wundef warnings in glibc
11813         * lib/error.c [_LIBC]: Define default macros for
11814         glibc.
11815         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
11816         Check _LIBC before STRERROR_R_CHAR_P.
11818         error: Sync from glibc master
11819         * lib/error.c [_LIBC]: Remove INTUSE usage.
11820         (error_tail): Remove unused macro ALLOCA_LIMIT.
11821         Fix potential buffer overflow.  Fix potential NULL dereference
11822         in strcmp.
11824 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
11826         nl_langinfo: fix build under mingw
11827         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
11829 2014-07-09  Andrew D Warshall  <warshall@99main.com>
11831         mountlist: do not classify a bind-mounted dir entry as "dummy"
11832         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
11833         1-argument getmntent() (instead of assuming absence).
11835 2014-07-08  Eric Blake  <eblake@redhat.com>
11837         maint.mk: less syntax-check noise when SIGPIPE is ignored
11838         * top/maint.mk (_sc_header_without_use)
11839         (sc_require_config_h_first): Parse full list.
11841 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
11842             Paul Eggert  <eggert@cs.ucla.edu>
11844         nl_langinfo: CODESET on MS-Windows and more items from localeconv
11845         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
11846         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
11847         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
11848         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
11849         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
11850         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
11851         Include <stdio.h> if Microsoft Windows.
11852         Include <time.h> if !REPLACE_NL_LANGINFO.
11853         (ctype_codeset): New function, taken from rpl_nl_langinfo,
11854         and with improvements for Microsoft Windows.
11855         (rpl_nl_langinfo): Use it.
11856         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
11857         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
11858         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
11859         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
11860         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
11861         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
11862         corresponding values returned by 'localeconv'.  Compute the values
11863         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
11864         'strftime' with a suitable struct tm value.
11866 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11868         Bruno Haible has stepped down as maintainer.
11869         See Karl Berry in:
11870         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
11871         Daiki Ueno has volunteered to maintain libunistring; see:
11872         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
11873         * modules/gen-uni-tables, modules/libunistring:
11874         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
11875         * modules/unicase/base, modules/unicase/cased:
11876         * modules/unicase/empty-prefix-context:
11877         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
11878         * modules/unicase/locale-language, modules/unicase/special-casing:
11879         * modules/unicase/tocasefold, modules/unicase/tolower:
11880         * modules/unicase/totitle, modules/unicase/toupper:
11881         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
11882         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
11883         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
11884         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
11885         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
11886         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
11887         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
11888         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
11889         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
11890         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
11891         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
11892         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
11893         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
11894         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
11895         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
11896         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
11897         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
11898         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
11899         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
11900         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
11901         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
11902         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
11903         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
11904         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
11905         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
11906         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
11907         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
11908         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
11909         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
11910         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
11911         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
11912         * modules/unicase/ulc-casexfrm, modules/unicodeio:
11913         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
11914         * modules/uniconv/u16-conv-to-enc:
11915         * modules/uniconv/u16-strconv-from-enc:
11916         * modules/uniconv/u16-strconv-from-locale:
11917         * modules/uniconv/u16-strconv-to-enc:
11918         * modules/uniconv/u16-strconv-to-locale:
11919         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
11920         * modules/uniconv/u32-strconv-from-enc:
11921         * modules/uniconv/u32-strconv-from-locale:
11922         * modules/uniconv/u32-strconv-to-enc:
11923         * modules/uniconv/u32-strconv-to-locale:
11924         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
11925         * modules/uniconv/u8-strconv-from-enc:
11926         * modules/uniconv/u8-strconv-from-locale:
11927         * modules/uniconv/u8-strconv-to-enc:
11928         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
11929         * modules/unictype/bidicategory-all:
11930         * modules/unictype/bidicategory-byname:
11931         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
11932         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
11933         * modules/unictype/bidiclass-byname:
11934         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
11935         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
11936         * modules/unictype/block-all, modules/unictype/block-list:
11937         * modules/unictype/block-of, modules/unictype/block-test:
11938         * modules/unictype/category-C, modules/unictype/category-Cc:
11939         * modules/unictype/category-Cf, modules/unictype/category-Cn:
11940         * modules/unictype/category-Co, modules/unictype/category-Cs:
11941         * modules/unictype/category-L, modules/unictype/category-LC:
11942         * modules/unictype/category-Ll, modules/unictype/category-Lm:
11943         * modules/unictype/category-Lo, modules/unictype/category-Lt:
11944         * modules/unictype/category-Lu, modules/unictype/category-M:
11945         * modules/unictype/category-Mc, modules/unictype/category-Me:
11946         * modules/unictype/category-Mn, modules/unictype/category-N:
11947         * modules/unictype/category-Nd, modules/unictype/category-Nl:
11948         * modules/unictype/category-No, modules/unictype/category-P:
11949         * modules/unictype/category-Pc, modules/unictype/category-Pd:
11950         * modules/unictype/category-Pe, modules/unictype/category-Pf:
11951         * modules/unictype/category-Pi, modules/unictype/category-Po:
11952         * modules/unictype/category-Ps, modules/unictype/category-S:
11953         * modules/unictype/category-Sc, modules/unictype/category-Sk:
11954         * modules/unictype/category-Sm, modules/unictype/category-So:
11955         * modules/unictype/category-Z, modules/unictype/category-Zl:
11956         * modules/unictype/category-Zp, modules/unictype/category-Zs:
11957         * modules/unictype/category-all, modules/unictype/category-and:
11958         * modules/unictype/category-and-not, modules/unictype/category-byname:
11959         * modules/unictype/category-longname, modules/unictype/category-name:
11960         * modules/unictype/category-none, modules/unictype/category-of:
11961         * modules/unictype/category-or, modules/unictype/category-test:
11962         * modules/unictype/category-test-withtable:
11963         * modules/unictype/combining-class:
11964         * modules/unictype/combining-class-all:
11965         * modules/unictype/combining-class-byname:
11966         * modules/unictype/combining-class-longname:
11967         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
11968         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
11969         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
11970         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
11971         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
11972         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
11973         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
11974         * modules/unictype/digit, modules/unictype/joininggroup-all:
11975         * modules/unictype/joininggroup-byname:
11976         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
11977         * modules/unictype/joiningtype-all:
11978         * modules/unictype/joiningtype-byname:
11979         * modules/unictype/joiningtype-longname:
11980         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
11981         * modules/unictype/mirror, modules/unictype/numeric:
11982         * modules/unictype/property-all, modules/unictype/property-alphabetic:
11983         * modules/unictype/property-ascii-hex-digit:
11984         * modules/unictype/property-bidi-arabic-digit:
11985         * modules/unictype/property-bidi-arabic-right-to-left:
11986         * modules/unictype/property-bidi-block-separator:
11987         * modules/unictype/property-bidi-boundary-neutral:
11988         * modules/unictype/property-bidi-common-separator:
11989         * modules/unictype/property-bidi-control:
11990         * modules/unictype/property-bidi-embedding-or-override:
11991         * modules/unictype/property-bidi-eur-num-separator:
11992         * modules/unictype/property-bidi-eur-num-terminator:
11993         * modules/unictype/property-bidi-european-digit:
11994         * modules/unictype/property-bidi-hebrew-right-to-left:
11995         * modules/unictype/property-bidi-left-to-right:
11996         * modules/unictype/property-bidi-non-spacing-mark:
11997         * modules/unictype/property-bidi-other-neutral:
11998         * modules/unictype/property-bidi-pdf:
11999         * modules/unictype/property-bidi-segment-separator:
12000         * modules/unictype/property-bidi-whitespace:
12001         * modules/unictype/property-byname:
12002         * modules/unictype/property-case-ignorable:
12003         * modules/unictype/property-cased:
12004         * modules/unictype/property-changes-when-casefolded:
12005         * modules/unictype/property-changes-when-casemapped:
12006         * modules/unictype/property-changes-when-lowercased:
12007         * modules/unictype/property-changes-when-titlecased:
12008         * modules/unictype/property-changes-when-uppercased:
12009         * modules/unictype/property-combining:
12010         * modules/unictype/property-composite:
12011         * modules/unictype/property-currency-symbol:
12012         * modules/unictype/property-dash:
12013         * modules/unictype/property-decimal-digit:
12014         * modules/unictype/property-default-ignorable-code-point:
12015         * modules/unictype/property-deprecated:
12016         * modules/unictype/property-diacritic:
12017         * modules/unictype/property-extender:
12018         * modules/unictype/property-format-control:
12019         * modules/unictype/property-grapheme-base:
12020         * modules/unictype/property-grapheme-extend:
12021         * modules/unictype/property-grapheme-link:
12022         * modules/unictype/property-hex-digit:
12023         * modules/unictype/property-hyphen:
12024         * modules/unictype/property-id-continue:
12025         * modules/unictype/property-id-start:
12026         * modules/unictype/property-ideographic:
12027         * modules/unictype/property-ids-binary-operator:
12028         * modules/unictype/property-ids-trinary-operator:
12029         * modules/unictype/property-ignorable-control:
12030         * modules/unictype/property-iso-control:
12031         * modules/unictype/property-join-control:
12032         * modules/unictype/property-left-of-pair:
12033         * modules/unictype/property-line-separator:
12034         * modules/unictype/property-logical-order-exception:
12035         * modules/unictype/property-lowercase, modules/unictype/property-math:
12036         * modules/unictype/property-non-break:
12037         * modules/unictype/property-not-a-character:
12038         * modules/unictype/property-numeric:
12039         * modules/unictype/property-other-alphabetic:
12040         * modules/unictype/property-other-default-ignorable-code-point:
12041         * modules/unictype/property-other-grapheme-extend:
12042         * modules/unictype/property-other-id-continue:
12043         * modules/unictype/property-other-id-start:
12044         * modules/unictype/property-other-lowercase:
12045         * modules/unictype/property-other-math:
12046         * modules/unictype/property-other-uppercase:
12047         * modules/unictype/property-paired-punctuation:
12048         * modules/unictype/property-paragraph-separator:
12049         * modules/unictype/property-pattern-syntax:
12050         * modules/unictype/property-pattern-white-space:
12051         * modules/unictype/property-private-use:
12052         * modules/unictype/property-punctuation:
12053         * modules/unictype/property-quotation-mark:
12054         * modules/unictype/property-radical:
12055         * modules/unictype/property-sentence-terminal:
12056         * modules/unictype/property-soft-dotted:
12057         * modules/unictype/property-space:
12058         * modules/unictype/property-terminal-punctuation:
12059         * modules/unictype/property-test, modules/unictype/property-titlecase:
12060         * modules/unictype/property-unassigned-code-value:
12061         * modules/unictype/property-unified-ideograph:
12062         * modules/unictype/property-uppercase:
12063         * modules/unictype/property-variation-selector:
12064         * modules/unictype/property-white-space:
12065         * modules/unictype/property-xid-continue:
12066         * modules/unictype/property-xid-start:
12067         * modules/unictype/property-zero-width, modules/unictype/scripts:
12068         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
12069         * modules/unictype/syntax-c-whitespace:
12070         * modules/unictype/syntax-java-ident:
12071         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
12072         * modules/unigbrk/u16-grapheme-breaks:
12073         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
12074         * modules/unigbrk/u32-grapheme-breaks:
12075         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
12076         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
12077         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
12078         * modules/unigbrk/uc-is-grapheme-break:
12079         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
12080         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
12081         * modules/unilbrk/u16-width-linebreaks:
12082         * modules/unilbrk/u32-possible-linebreaks:
12083         * modules/unilbrk/u32-width-linebreaks:
12084         * modules/unilbrk/u8-possible-linebreaks:
12085         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
12086         * modules/unilbrk/ulc-possible-linebreaks:
12087         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
12088         * modules/uniname/uniname, modules/uninorm/base:
12089         * modules/uninorm/canonical-decomposition:
12090         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
12091         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
12092         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
12093         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
12094         * modules/uninorm/nfkc, modules/uninorm/nfkd:
12095         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
12096         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
12097         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
12098         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
12099         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
12100         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
12101         * modules/unistdio/base, modules/unistdio/u-printf-args:
12102         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
12103         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
12104         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
12105         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
12106         * modules/unistdio/u16-u16-sprintf:
12107         * modules/unistdio/u16-u16-vasnprintf:
12108         * modules/unistdio/u16-u16-vasprintf:
12109         * modules/unistdio/u16-u16-vsnprintf:
12110         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
12111         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
12112         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
12113         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
12114         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
12115         * modules/unistdio/u32-u32-asnprintf:
12116         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
12117         * modules/unistdio/u32-u32-sprintf:
12118         * modules/unistdio/u32-u32-vasnprintf:
12119         * modules/unistdio/u32-u32-vasprintf:
12120         * modules/unistdio/u32-u32-vsnprintf:
12121         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
12122         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
12123         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
12124         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
12125         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
12126         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
12127         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
12128         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
12129         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
12130         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
12131         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
12132         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
12133         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
12134         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
12135         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
12136         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
12137         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
12138         * modules/unistr/u16-check, modules/unistr/u16-chr:
12139         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
12140         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
12141         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
12142         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
12143         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
12144         * modules/unistr/u16-move, modules/unistr/u16-next:
12145         * modules/unistr/u16-prev, modules/unistr/u16-set:
12146         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
12147         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
12148         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
12149         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
12150         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
12151         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
12152         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
12153         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
12154         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
12155         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
12156         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
12157         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
12158         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
12159         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
12160         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
12161         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
12162         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
12163         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
12164         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
12165         * modules/unistr/u32-next, modules/unistr/u32-prev:
12166         * modules/unistr/u32-set, modules/unistr/u32-startswith:
12167         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
12168         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
12169         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
12170         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
12171         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
12172         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
12173         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
12174         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
12175         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
12176         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
12177         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
12178         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
12179         * modules/unistr/u8-check, modules/unistr/u8-chr:
12180         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
12181         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
12182         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
12183         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
12184         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
12185         * modules/unistr/u8-next, modules/unistr/u8-prev:
12186         * modules/unistr/u8-set, modules/unistr/u8-startswith:
12187         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
12188         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
12189         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
12190         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
12191         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
12192         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
12193         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
12194         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
12195         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
12196         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
12197         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
12198         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
12199         * modules/uniwbrk/base, modules/uniwbrk/table:
12200         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
12201         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
12202         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
12203         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
12204         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
12205         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
12206         * modules/uniwidth/width, modules/utf16-ucs4:
12207         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
12208         * modules/utf8-ucs4-unsafe:
12209         Change maintainer from Bruno Haible to Daiki Ueno.
12210         This is my guess at the libunistring modules; please feel free
12211         to fix if I guessed incorrectly.
12212         * modules/accept4, modules/acl, modules/acos, modules/acosf:
12213         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
12214         * modules/areadlink, modules/array-list, modules/array-mergesort:
12215         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
12216         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
12217         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
12218         * modules/binary-io, modules/bison-i18n, modules/btowc:
12219         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
12220         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
12221         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
12222         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
12223         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
12224         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
12225         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
12226         * modules/closedir, modules/concat-filename, modules/copy-file:
12227         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
12228         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
12229         * modules/csharpcomp-script, modules/csharpexec:
12230         * modules/csharpexec-script, modules/ctype, modules/diffseq:
12231         * modules/dprintf, modules/dprintf-posix, modules/dup:
12232         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
12233         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
12234         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
12235         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
12236         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
12237         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
12238         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
12239         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
12240         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
12241         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
12242         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
12243         * modules/findprog, modules/findprog-lgpl, modules/floor:
12244         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
12245         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
12246         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
12247         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
12248         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
12249         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
12250         * modules/freadable, modules/freadahead, modules/freadptr:
12251         * modules/freadseek, modules/freopen, modules/frexp:
12252         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
12253         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
12254         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
12255         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
12256         * modules/ftello, modules/full-read, modules/full-write:
12257         * modules/fwritable, modules/fwriteerror, modules/gcd:
12258         * modules/get-rusage-as, modules/get-rusage-data:
12259         * modules/getdtablesize, modules/getrusage, modules/gettext:
12260         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
12261         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
12262         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
12263         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
12264         * modules/iconv, modules/iconv-h, modules/iconv_open:
12265         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
12266         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
12267         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
12268         * modules/integer_length_ll, modules/ioctl, modules/isatty:
12269         * modules/isblank, modules/isnand, modules/isnand-nolibm:
12270         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
12271         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
12272         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
12273         * modules/javaexec, modules/javaexec-script, modules/javaversion:
12274         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
12275         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
12276         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
12277         * modules/lib-symbol-visibility, modules/libsigsegv:
12278         * modules/linked-list, modules/linkedhash-list, modules/list:
12279         * modules/localcharset, modules/locale, modules/localeconv:
12280         * modules/localename, modules/lock, modules/log, modules/log-ieee:
12281         * modules/log10, modules/log10-ieee, modules/log10f:
12282         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
12283         * modules/log1p, modules/log1p-ieee, modules/log1pf:
12284         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
12285         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
12286         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
12287         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
12288         * modules/logf, modules/logf-ieee, modules/login_tty:
12289         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
12290         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
12291         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
12292         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
12293         * modules/mbscspn, modules/mbsinit, modules/mbslen:
12294         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
12295         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
12296         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
12297         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
12298         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
12299         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
12300         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
12301         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
12302         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
12303         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
12304         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
12305         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
12306         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
12307         * modules/posix_spawn, modules/posix_spawn-internal:
12308         * modules/posix_spawn_file_actions_addclose:
12309         * modules/posix_spawn_file_actions_adddup2:
12310         * modules/posix_spawn_file_actions_addopen:
12311         * modules/posix_spawn_file_actions_destroy:
12312         * modules/posix_spawn_file_actions_init:
12313         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
12314         * modules/posix_spawnattr_getpgroup:
12315         * modules/posix_spawnattr_getschedparam:
12316         * modules/posix_spawnattr_getschedpolicy:
12317         * modules/posix_spawnattr_getsigdefault:
12318         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
12319         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
12320         * modules/posix_spawnattr_setschedparam:
12321         * modules/posix_spawnattr_setschedpolicy:
12322         * modules/posix_spawnattr_setsigdefault:
12323         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
12324         * modules/pow, modules/powf, modules/printf-frexp:
12325         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
12326         * modules/progname, modules/propername, modules/pselect:
12327         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
12328         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
12329         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
12330         * modules/read, modules/readdir, modules/readlink:
12331         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
12332         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
12333         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
12334         * modules/relocatable-script, modules/remainder:
12335         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
12336         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
12337         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
12338         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
12339         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
12340         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
12341         * modules/setlocale, modules/sh-quote, modules/shutdown:
12342         * modules/signal, modules/signbit, modules/sigpipe:
12343         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
12344         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
12345         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
12346         * modules/snippet/link-warning, modules/snippet/unused-parameter:
12347         * modules/snprintf, modules/snprintf-posix, modules/spawn:
12348         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
12349         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
12350         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
12351         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
12352         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
12353         * modules/streq, modules/strerror_r-posix, modules/striconv:
12354         * modules/striconveh, modules/striconveha, modules/strncat:
12355         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
12356         * modules/sublist, modules/sys_resource, modules/sys_utsname:
12357         * modules/sys_wait, modules/system-posix, modules/system-quote:
12358         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
12359         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
12360         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
12361         * modules/truncf, modules/truncf-ieee, modules/truncl:
12362         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
12363         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
12364         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
12365         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
12366         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
12367         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
12368         * modules/wait-process, modules/waitpid, modules/wcpcpy:
12369         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
12370         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
12371         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
12372         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
12373         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
12374         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
12375         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
12376         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
12377         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
12378         * modules/write, modules/xconcat-filename, modules/xlist:
12379         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
12380         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
12381         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
12382         * modules/y0, modules/y1, modules/yn:
12383         Remove Bruno Haible as maintainer; if he's the sole maintainer,
12384         change the maintainer to 'all'.  Let's hope someone volunteers.
12386 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
12388         mktime: merge #if/#ifdef usage from glibc
12389         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
12390         as that works with both Glibc's and Gnulib's style.
12391         See thread starting at Siddhesh Poyarekar's bug report at:
12392         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
12394 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
12396         git-version-gen: improve option descriptions
12397         * build-aux/git-version-gen: Mention that --prefix and --fallback
12398         have a mandatory argument.
12400 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
12402         regex: fix memory leak in compiler
12403         Fix by Andreas Schwab in:
12404         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
12405         * lib/regcomp.c (parse_expression): Deallocate partially
12406         constructed tree before returning error.
12408         regex: merge patch from libc
12409         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
12410         Combine __USE_BSD and __USE_SVID into __USE_MISC.
12411         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
12413 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
12415         acl: port to gcc -Wredundant-decls
12416         From a request by Dmitry Antipov in:
12417         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
12418         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
12419         "#ifndef _GL_ACL_H".
12421 2014-06-11  Bruce Korb  <bkorb@gnu.org>
12422         Jim Meyering  <meyering@fb.com>
12424         parse-duration: eliminate 68-year duration limit
12425         * lib/parse-duration.c: Include "intprops.h".
12426         (TIME_MAX): Rename to MAX_DURATION and define to
12427         TYPE_MAXIMUM(time_t).
12428         * modules/parse-duration (Depends-on): Add intprops.
12429         Reported by Jonas 'Sortie' Termansen.
12431 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
12433         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
12434         * modules/pthread (Depends-on): Add 'extensions', as it defines
12435         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
12436         (configure.ac-early): New section.
12437         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
12438         it is no longer needed.
12440 2014-06-14  Pádraig Brady  <P@draigBrady.com>
12442         pthread: define thread-safe macros on some platforms
12443         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
12444         for thread-safe operation on some platforms.
12446 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
12448         regex: don't be multithreaded if USE_UNLOCKED_IO.
12449         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
12450         * lib/regex_internal.h: Do not use multithreaded version if
12451         USE_UNLOCKED_IO is defined.  This is a hack, but it works
12452         around a porting bug with coreutils 8.22 on AIX 7.1.
12454 2014-06-11  Daiki Ueno  <ueno@gnu.org>
12456         gettext: update macros to version 0.19
12457         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
12458         depend on gl_EXTERN_INLINE and drop support for older Bison
12459         versions.
12461 2014-06-10  Pádraig Brady  <P@draigBrady.com>
12463         select,poll: fix console handle check on windows 8
12464         lib/poll.c (IsConsoleHandle): Change from testing the lower
12465         2 bits of the handle to the more expensive but accurate syscall.
12466         lib/select.c: Likewise.
12468 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
12470         select: fix waiting on anonymous pipes on MS-Windows
12471         * lib/select.c (rpl_select): Fall back to polling when select()
12472         indicates there is nothing to check, while due to the timeout not
12473         expiring, activity is indicated on one of the handles.
12474         Also clear the TIMEOUT argument if the timer does expire.
12476 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
12478         times: fix to return non constant value on MS-Windows
12479         * lib/times.c (times): Don't use the process creation time,
12480         rather clock() which on windows returns the number of
12481         clock ticks since the process started.
12483 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
12485         isatty: fix to work on windows 8
12486         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
12487         2 bits of the handle to the more expensive but accurate syscall.
12489 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
12491         maint: fix typo in fdl.texi
12492         * doc/fdl.texi: Fix typo (missing '@').
12493         Somehow this was in fdl.texi but not fdl-1.3.texi.
12495 2014-06-06  Ben Walton  <bdwalton@gmail.com>
12497         mountlist: avoid hasmntopt const type warning on solaris
12498         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
12499         with char * instead of const char *.  Passing the constant string
12500         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
12501         to avoid the warning.
12503 2014-06-04  Eric Blake  <eblake@redhat.com>
12505         maintainer-makefile: delete obsolete code
12506         * top/maint.mk (build_aux): Drop old code, as threatened.
12508         maintainer-makefile: avoid spurious error messages
12509         * top/maint.mk (syntax-check): Guard definition and use of
12510         $(shell) by whether Makefile is present.
12512 2014-06-03  Ben Walton  <bdwalton@gmail.com>
12514         rename: avoid unused-but-set-variable compiler warning
12515         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
12516         it is possible that dst_exists may be set but not used.  Mark it with
12517         the unused attribute to avoid compiler warnings.
12519 2014-06-02  Ben Walton  <bdwalton@gmail.com>
12521         rename: mark a label as potentially unused
12522         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
12523         by marking the out label as potentially unused.
12524         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
12526 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
12528         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
12529         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
12531 2014-06-02  Ben Walton  <bdwalton@gmail.com>
12533         acl: apply pure attribute to two functions
12534         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
12535         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
12537 2014-06-01  Pádraig Brady  <P@draigBrady.com>
12539         gnulib-common.m4: add _GL_UNUSED_LABEL
12540         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
12541         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
12543 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
12545         dup2, fcntl, fcntl-h: port to AIX 7.1
12546         This fixes some porting problems discovered when testing the latest
12547         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
12548         in grep but it could be important for other applications.
12549         * doc/posix-functions/dup2.texi:
12550         * doc/posix-functions/fcntl.texi:
12551         * doc/posix-headers/fcntl.texi:
12552         Document AIX bugs.
12553         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
12554         Define to 0 if outside 'int' range.
12555         * m4/dup2.m4 (gl_FUNC_DUP2):
12556         * m4/fcntl.m4 (gl_FUNC_FCNTL):
12557         Check for getdtablesize.  If it's available, test a value just
12558         outside its range instead of testing 1000000.  When cross-compiling,
12559         guess that AIX will fail this improved test.
12561 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
12563         printf, config.rpath: Port to FreeBSD 10.
12564         Problem reported by Tijl Coosemans in:
12565         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
12566         * build-aux/config.rpath (hardcode_libdir_flag_spec)
12567         (hardcode_direct): Simplify FreeBSD configuration.
12568         (library_names_spec): Don't mishandle FreeBSD 10+.
12569         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
12570         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
12571         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
12572         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
12573         Don't mishandle FreeBSD 10+ when cross-compiling.
12575         ftoastr: work around compiler bug in IBM xlc 12.1
12576         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
12577         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
12578         around a compiler bug in IBM xlc 12.1.0.0: it complains
12579         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
12580         _GL_FLT_PREC_BOUND.'
12582 2014-05-30  Kieran Colford  <colfordk@gmail.com>
12584         valgrind-tests: fixed misleading help message
12585         * m4/valgrind-tests.m4: The help message generated by configure
12586         implied that valgrind was disabled by default, which it wasn't.
12587         Adjusted the help message using s/enable/disable/ to clarify.
12589 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
12591         isfinite, isinf, isnan tests: fix for little-endian PowerPC
12592         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
12593         first double of a PowerPC "double double" pair.
12594         * tests/test-isinf.c (test_isinfl): Likewise.
12595         * tests/test-isnan.c (test_long_double): Likewise.
12596         * tests/test-isnanl.h (main): Likewise.
12597         * tests/test-signbit.c (test_signbitl): Likewise.
12599 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
12601         exclude-tests: port to AIX 7.1
12602         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
12603         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
12604         the regex code uses locks.
12606 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
12608         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
12609         Without this fix, Emacs would sometimes call sigprocmask instead
12610         of pthread_sigmask, which is a no-no in multithreaded applications.
12611         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
12612         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12613         Suppress check for pthread_sigmask working without -lpthread if
12614         the application always links with -lpthread.  Do not link with
12615         $LIBMULTITHREAD if gl_THREADLIB is not defined.
12616         * m4/timer_time.m4 (gl_TIMER_TIME):
12617         Require gl_THREADLIB only if it is defined.  Do not append
12618         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
12620 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
12622         gnulib-tool: wget translations using --no-verbose rather than --quiet
12623         This allows the user to see error messages if any (--quiet hides them)
12624         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
12626 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
12628         gnulib-tool: adjust translation wget to avoid a https redirection
12629         Context: http://translationproject.org/latest/gnulib redirects to
12630            https://translationproject.org/latest/gnulib/
12631         Rationale: if the user falls back to wget, she doesn't have rsync and
12632         is probably in a minimal build environment, where packages such as
12633         'ca-certificates' are missing as well, resulting in a failed (and
12634         difficult to detect since ignored) translation initial fetch.
12635         Consequently let's avoid https if possible, and add the missing
12636         trailing slash.  This also avoids an unnecessary 302 redirection.
12637         * gnulib-tool: Add trailing slash to gnulib URL.
12639 2014-05-22  Pádraig Brady  <P@draigBrady.com>
12641         getlogin_r-tests: check return value rather than errno
12642         * tests/test-getlogin_r.c (main): As per POSIX we should be
12643         verifying the return value from getlogin_r() rather than errno.
12645 2014-05-22  Pádraig Brady  <P@draigBrady.com>
12647         getlogin_r-tests: fix various issues in recent change
12648         * tests/test-getlogin_r.c: Include required headers that were
12649         missed in recent commit eec20b4e.
12650         Also consistently check the errno rather than the return value from
12651         getlogin_r as POSIX only specifies that non zero is returned on error.
12652         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
12654 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
12656         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
12657         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
12658         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
12659         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
12660         * lib/spawn-pipe.c:
12661         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
12662         and then 'int open64(const char *, int, ...);', which means the
12663         declaration for 'open' gets lost if we later '#undef open'.
12664         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
12665         where the compilation reported the non-fatal error "In function
12666         'openat_proc_name' ... warning: implicit declaration of function
12667         'open'".  In this case the error is relatively harmless, but in
12668         other cases it might not be so minor.
12670 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
12672         xalloc: don't potentially generate invalid code for xmemdup calls
12673         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
12674         this function can initialize the newly-allocated storage with new
12675         pointers, which means this function is not malloc-like.  See:
12676         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
12678 2014-05-19  Pádraig Brady  <P@draigBrady.com>
12680         getlogin_r-tests: avoid false failure under sudo/ssh etc.
12681         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
12682         changes from commit 97249cf29 to not depend on environment variables.
12684 2014-05-18  Pádraig Brady  <P@draigBrady.com>
12686         getlogin-tests: avoid false failure under cron
12687         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
12688         since that's not what's under test.  Centos 6 was seen to return
12689         EINVAL for ttyname() when run from cron.
12691 2014-05-16  Jim Meyering  <meyering@fb.com>
12693         mbrtowc.m4: fix a comment typo
12694         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
12695         emitted documentation string.
12697 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12699         mbrlen, mbrtowc: fix bug with empty input
12700         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
12701         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
12702         so this is mainly for documentation.
12703         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
12704         (gl_FUNC_MBRTOWC): Use it.
12705         * tests/test-mbrtowc.c (main): Test for the bug.
12707 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
12709         doc: document mbrtowc and mbrlen problem with empty input
12710         * doc/posix-functions/mbrlen.texi (mbrlen):
12711         * doc/posix-functions/mbrtowc.texi (mbrtowc):
12712         Document portability problem when the input string is empty.  See:
12713         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
12715         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
12716         Problem reported by Eli Zaretskii in:
12717         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
12718         * doc/posix-functions/execl.texi (execl):
12719         * doc/posix-functions/execle.texi (execle):
12720         * doc/posix-functions/execlp.texi (execlp):
12721         * doc/posix-functions/execv.texi (execv):
12722         * doc/posix-functions/execve.texi (execve):
12723         * doc/posix-functions/execvp.texi (execvp):
12724         Mention spawn+exit problem on non-Cygwin Windows platforms.
12726 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
12728         getlogin-tests: avoid false failure under sudo/ssh etc.
12729         * modules/getlogin-tests (configure.ac): Check for ttyname().
12730         * tests/test-getlogin.c (main): Don't depend on environment variables
12731         to correlate with getlogin(), since sudo and ssh etc. can tamper
12732         with the LOGNAME and USER env vars.  Instead lookup the name from
12733         the uid associated with the stdin tty.
12735 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
12737         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
12738         These were found when building the latest grep snapshot on IRIX 6.5.
12739         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
12740         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
12741         never used later.
12742         * lib/quotearg.c (quoting_options_from_style):
12743         * lib/xstrtol.c (__xstrtol):
12744         Use enum instead of 0, to pacify IRIX 6.5 cc.
12746 2014-04-18  Pádraig Brady  <P@draigBrady.com>
12748         gitlog-to-changelog: revert inclusion of git-log-fix file
12749         * build-aux/git-log-fix: Delete dummy file.
12750         * modules/gitlog-to-changelog: Don't reference (overwrite)
12751         the project specific git-log-fix file.
12753 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
12755         maint.mk: Relax the copyright check to cater for non FSF projects
12756         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
12757         to not require the "Free" suffix after the copyright years.
12759 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
12761         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
12762         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
12763         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
12764         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
12765         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
12767 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
12769         exclude: port to strict C99
12770         Strict C does not allow converting a function pointer to void *
12771         and vice versa.  Pass a pointer to a function pointer instead.
12772         * lib/exclude.c (add_exclude_file):
12773         Pass the address of the function pointer.
12774         (call_addfn): And deference the address here, to match.
12776 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
12778         regex: do not depend on malloc-gnu
12779         * modules/regex (Depends-on): Remove malloc-gnu.
12780         It's no longer needed, because of the 2012-12-29 patch
12781         "regex: port to hosts where malloc (0) == NULL".
12782         Reported by Nathan Kennedy in:
12783         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
12785 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
12787         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
12788         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
12789         * doc/posix-functions/expl.texi: Mention the workaround.
12791 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
12793         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
12794         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
12795         size to be zero even when the pointer is nonnull.  This
12796         accommodates the use case where P is malloc (0) and *PN is 0 on a
12797         host where malloc (0) yields nonnull.
12799 2014-04-09  Eric Blake  <eblake@redhat.com>
12801         fts: avoid unnecessary strlen calls
12802         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
12804 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12806         fts: avoid unnecessary strlen calls
12807         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
12808         when that can be faster than strlen.
12810 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
12812         fts: avoid unnecessary strlen calls
12813         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
12814         (fts_build): Store the length of the dp->d_name entry in a local variable
12815         instead of calling strlen() several times via the above, removed macro.
12816         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
12817         run by ~4%, yet this reduces the execution time by about a third if run
12818         via "ltrace -c rm -rf some-dir".
12820 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
12822         obstack: Remove ancient NeXTSTEP gcc support conditional
12823         This change will ease merging with glibc.  The "#if ... __NEXT__"
12824         causes a warning with -Wundef which glibc now enables by default.
12825         Problem reported by Will Newton in
12826         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
12827         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
12828         so go with that.
12829         * lib/obstack.h (__extension__):
12831 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
12833         obstack: merge with glibc changes
12834         * lib/obstack.c, lib/obstack.h: Merge from glibc.
12835         This is mostly indenting and commentary changes.
12836         Instances of 'register' have been removed.
12838 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
12840         strftime: wrap macros in "do {...} while(0)"
12841         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
12842         this macro in "do {...} while(0)" to prevent false use as a
12843         single statement, e.g., in an un-braced "{}" else-block.
12844         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
12845         (strftime_case_): Remove 'else' after 'goto' - which was the
12846         only non-fatal, un-braced use of one of the above macros.
12847         Spotted by coverity (NESTING_INDENT_MISMATCH).
12849 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
12851         modechange: avoid memory leaks for invalid octal modes
12852         * lib/modechange.c (mode_compile): During the parsing of
12853         notations like +40, free the 'mc' buffer for invalid mode
12854         strings like +17777 (greater than the maximum octal mode),
12855         =18 (bad octal mode characters) or u=1 ('affected' with
12856         octal modes).
12857         Reproducer, e.g.:
12858             $ valgrind --leak-check=full chmod +17777 file
12859         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
12860         add notations +40, 00440, etc.".
12861         Spotted by coverity (RESOURCE_LEAK).
12863 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12865         gitlog-to-changelog: include a dummy git-log-fix file
12866         Problem reported by Nathan Stratton Treadway in:
12867         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
12868         * build-aux/git-log-fix: New file.
12870 2014-03-13  Jim Meyering  <meyering@fb.com>
12872         gitlog-to-changelog: also include the file, git-log-fix
12873         * modules/gitlog-to-changelog (Files): Add git-log-fix.
12874         Reported by Assaf Gordon.
12876 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
12878         regex: port to OS X 10.8.5 en_US.UTF-8 locale
12879         This fixes a bug when ignoring case and when comparing the
12880         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
12881         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
12882         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
12883         titlecase letter is neither lowercase nor uppercase, but
12884         uppercasing the titlecase letter (via towupper) yields the
12885         uppercase letter, so the two letters should match when ignoring case.
12886         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
12887         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
12888         Don't test whether a character is lowercase before uppercasing it.
12890 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
12892         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
12893         This is basically one of the options Bruno Haible proposed in:
12894         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
12895         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
12896         * lib/stdint.in.h: Use it.
12897         * modules/stdint (Depends-on): Add sys_types.
12899 2014-02-26  Pádraig Brady  <P@draigBrady.com>
12901         parse-datetime: fix crash or infloop in TZ="" parsing
12902         * lib/parse-datetime.y (parse_datetime): Break out of the
12903         TZ="" parsing loop once the second significant " is found.
12904         Also skip over any subsequent whitespace to be consistent
12905         with the non TZ= case.
12906         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
12908 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
12910         savedir: new symbol for fast-read version
12911         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
12912         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
12913         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
12914         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
12916 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
12918         unistd: port readlink to Mac OS X 10.3.9
12919         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
12920         around self-include problem in Mac OS X 10.3.9 when combined with
12921         readlink module.  Problem reported by Klaus Zietler in
12922         <http://bugs.gnu.org/16825>.
12924 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
12926         diffseq: remove TOO_EXPENSIVE heuristic
12927         Problem with diffutils reported by Vincent Lefevre in
12928         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
12929         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
12930         Although appropriate for circa-1993 hardware, these days the heuristic
12931         seems to be more trouble than it's worth.
12932         * lib/diffseq.h: Modernize citations.
12933         (struct context): Remove member too_expensive.
12934         All uses changed.
12935         (struct partition): Remove members lo_minimal, hi_minimal.
12936         All uses changed.
12937         (diag, compareseq): Remove arg find_minimal.  All uses changed.
12938         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
12939         1993 to make 'diff' run faster (but not as well) on large inputs.
12940         These days, computers are fast enough that it's typically better
12941         to run slower but more accurately.
12942         * lib/fstrcmp.c: Remove duplicate comment.
12943         * lib/fstrcmp.c (strcmp_bounded):
12944         * lib/git-merge-changelog.c (compute_differences):
12945         Adjust to diffseq.h changes.
12946         * NEWS: Document the change.
12948         savedir: simplify by using stpcpy
12949         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
12950         (streamsavedir): Use stpcpy instead.
12951         * modules/savedir (Depends-on): Add stpcpy.
12953 2014-02-21  Pádraig Brady  <P@draigBrady.com>
12955         spawn: fix link error on uclibc
12956         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
12957         to incorporate -lrt if needed (on uclibc for example).
12958         * modules/posix_spawn: Reference the substituted LIB.
12960 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
12961         timer: fix uClibc detection of threading
12962         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
12963         enabled in uClibc.
12965 2014-02-21  Eric Blake  <eblake@redhat.com>
12967         maintainer-makefiles: provide AC_PROG_SED for older autoconf
12968         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
12970 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
12972         exclude: add support for posix regexps
12974         This commit adds support for POSIX extended regular expressions
12975         and fixes a long-standing memory leak (pattern buffer was never
12976         freed).  It also implements a new interface function to read
12977         exclude patterns from a FILE, which passes an additional parameter
12978         to its callback function, thereby allowing to preserve its state
12979         between invocations.
12981         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
12982         (pattern_buffer): New struct.
12983         (exclude): New member patbuf.
12984         (exclude_add_pattern_buffer): New function.
12985         (free_exclude_segment): Free regexps.
12986         (free_exclude): Free allocated pattern buffers.
12987         (exclude_patopts): New function.
12988         (file_pattern_matches): Use exclude_patopts.
12989         (add_exclude): support regexps.
12990         (add_exclude_fp): New function.
12991         (add_exclude_file): Rewrite using add_exclude_fp.
12992         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
12993         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
12994         (add_exclude_fp)
12995         (add_exclude_file): Rewrite using add_exclude_fp.
12996         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
12997         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
12998         (add_exclude_fp)
12999         (exclude_add_pattern_buffer): New prototypes.
13000         * modules/exclude: Depends on regex and filename.
13002 2014-02-20  Eric Blake  <eblake@redhat.com>
13004         maintainer-makefiles: use $(SED) for syntax check
13005         * modules/maintainer-makefile (configure.ac): Check for sane sed.
13006         * top/maint.mk: Change sed to $(SED).
13008 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
13009             Paul Eggert  <eggert@cs.ucla.edu>
13011         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
13012         Patch based on an idea by Dick Streefland in
13013         <https://savannah.gnu.org/patch/?7892>.
13014         * NEWS: Document this.
13015         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
13016         (direntry_t, comparison_function): New types.
13017         (direntry_cmp_name): New function.
13018         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
13019         (streamsavedir, savedir): New arg OPTION.
13020         (streamsavedir): Simplify memory allocation.
13021         (fdsavedir): Remove.
13022         * lib/savedir.h (enum savedir_option): New type.
13023         (streamsavedir, savedir): New arg OPTION.
13024         (fdsavedir): Remove.
13026 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
13028         file-type: add support for doors and other less-common file types
13029         Problem with S_ISDOOR reported by Rich Burridge.
13030         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
13031         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
13032         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
13034 2014-01-23  Eric Blake  <eblake@redhat.com>
13036         pthread: work around winpthread header pollution on mingw
13037         * lib/time.in.h: Move pthread workarounds...
13038         * lib/pthread.in.h: ...here.
13039         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
13040         detect macro pollution on mingw.
13041         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
13043 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
13045         qacl: check for fchmod
13046         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
13047         and qset-acl.c both use HAVE_FCHMOD.
13049 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
13051         fdopen-tests: port to Tru64
13052         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
13053         descriptor that is not open, as POSIX doesn't specify the
13054         resulting behavior and the test does not work on Tru64.
13055         Problem reported by Steven M. Schweda in:
13056         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
13058         stdalign: port to HP-UX compilers
13059         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
13060         if __HP_cc or __HP_aCC are nonzero.
13062 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
13064         strtoimax: port to platforms lacking 'long long'
13065         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
13066         check whether strtoll is declared, which causes the C file to
13067         wrongly report an error.  Problem reported by Steven M. Schweda in:
13068         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
13069         * lib/strtoimax.c (strtoull):
13070         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
13071         (strtoll): Declare only if HAVE_LONG_LONG_INT.
13073 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
13075         relocatable-perl: fix texi syntax
13076         * doc/relocatable-maint.texi: Escape braces.
13078 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
13080         relocatable-perl: like relocatable-script, but for Perl scripts
13081         * build-aux/relocatable.pl.in: Add.
13082         * doc/relocatable-maint.texi: Add documentation.
13083         * modules/relocatable-perl: Add.
13085 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
13087         tests: fix export bug in previous patch
13088         Problem reported by Jim Meyering.
13089         * tests/init.sh (re_shell): New var, which is exported instead of
13090         re_shell_.
13092         tests: simplify porting to Solaris 10 /bin/sh
13093         Some test cases in 'grep' need a shell that groks '$(';
13094         export re_shell_ for their benefit.  Problem reported for 'grep'
13095         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
13096         * tests/init.sh (re_shell_): Export if it's used.
13098 2014-01-06  Eric Blake  <eblake@redhat.com>
13100         md5, sha1, sha256, sha512: support older autoconf
13101         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
13102         for autoconf < 2.63b.
13104         include_next: port to autoconf 2.63
13105         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
13107 2014-01-04  Jim Meyering  <meyering@fb.com>
13109         maint: add a gnulib-local rule to keep non-ascii out of .texi files
13110         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
13111         so that "make sc_maint" will ding anyone who puts non-ascii
13112         in any of gnulib's .texi files.
13114 2014-01-03  Jim Meyering  <meyering@fb.com>
13116         freadable, fwritable, fwriting: declare with the "pure" attribute
13117         * lib/freadable.h (freadable): Declare with the "pure" attribute.
13118         * lib/fwritable.h (fwritable): Likewise.
13119         * lib/fwriting.h (fwriting): Likewise.
13120         Suggested by Bruno Haible.
13122         maint.mk: adapt openat.h-include-without-use test
13123         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
13124         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
13125         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
13126         With this change, running "make sc_maint" in gnulib's top-level
13127         directory now passes for me.
13129 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
13131         doc: use ASCII in .texi files where UTF-8 isn't needed
13132         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
13133         * doc/posix-functions/setkey.texi, doc/regex.texi:
13134         Use ASCII input, not UTF-8.
13136 2014-01-02  Jim Meyering  <meyering@fb.com>
13138         freading: declare with the "pure" attribute
13139         * lib/freading.h (freading): Declare with the "pure" attribute.
13141         manywarnings: remove -Wmudflap
13142         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
13143         it is no longer supported in gcc-4.9-to-be.
13145 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
13147         relocatable-script: remove unused code
13148         Problem reported by Reuben Thomas in:
13149         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
13150         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
13152 2014-01-01  Jim Meyering  <meyering@fb.com>
13154         maint: fix public-submodule-commit to work with newer git
13155         * top/maint.mk (public-submodule-commit): Remove excess quoting.
13156         We were over-quoting the test arguments, and somewhere prior to
13157         version 1.8.5.2.229, git stopped removing those excess quotes,
13158         which made the test fail, since the unexpanded strings would
13159         always differ; using GIT_TRACE=1 confirmed that the git merge-base
13160         command wasn't even being run.
13162 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
13164         doc: update main copyright year
13165         * doc/gnulib.texi: Update copyright date.
13167 2014-01-01  Eric Blake  <eblake@redhat.com>
13169         version-etc: new year
13170         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
13171         * all files: run 'make update-copyright'
13173 2013-12-24  Eric Blake  <eblake@redhat.com>
13175         passfd: give nicer error for recvfd at eof
13176         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
13177         * tests/test-passfd.c (main): Enhance test to cover this.
13179 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
13181         gettimeofday: port recent C++ fix to Emacs
13182         Without this further patch, Emacs won't build due to
13183         the portcheck failing.  Also, this simplifies the patch a bit.
13184         * lib/time.in.h (localtime, gmtime): Don't replace unless
13185         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
13186         * lib/time.in.h (localtime, gmtime):
13187         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
13188         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
13189         * modules/time (time.h):
13190         Don't worry about the possibility of localtime and gmtime
13191         being absent; they're present in all C libraries we know about.
13192         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
13193         Don't assume sys_time is present and has been initialized.
13194         Instead, use a hack that should work even if it hasn't been.
13195         Don't use a portcheck for gmtime or localtime; this supports
13196         the hack.
13197         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
13199 2013-12-17  John W. Eaton  <jwe@gnu.org>
13201         gettimeofday: fix C++ crosscompilation
13203         Never replace gmtime and localtime by macros when compiling with
13204         C++, this prevents <ctime> from being included.
13206         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
13207         define gmtime and localtime as preprocessor macros.  Instead
13208         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
13209         REPLACE_LOCALTIME substitutions.
13210         * lib/time.in.h: Declare gmtime and localtime when needed.
13211         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
13212         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
13213         * modules/time: Depend on gettimeofday, and substitute the above
13214         variables in time.h.
13216 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
13218         qacl: port to Windows better
13219         See Eli Zaretskii in
13220         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
13221         * lib/file-has-acl.c (acl_access_nontrivial):
13222         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
13223         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
13225 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
13227         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
13228         * lib/gl_openssl.h: Cast void pointers to a specific type.
13230 2013-12-07  Pádraig Brady  <P@draigBrady.com>
13232         open-tests: fix build failure with -Werror=old-style-declaration
13233         * tests/test-open.h: Reorder the inline to avoid the issue.
13235 2013-12-07  Pádraig Brady  <P@draigBrady.com>
13237         md5, sha1, sha256, sha512: fix link error with partial libcrypto
13238         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
13239         init time, so that if early checks find crypto routines,
13240         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
13241         avoiding link failures.
13243 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
13245         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
13246         This provides a new way to specify the default for
13247         gl_CRYPTO_CHECK, one that is reflected in the --help message.
13248         Emacs uses this, as well as the old way.
13249         This attempts to implement a suggestion by Pádraig Brady in
13250         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
13251         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
13252         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
13254         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
13255         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
13256         Add support for a new option, --with-openssl=auto, which causes
13257         the library to be used if available and silently ignored if not.
13258         Add support to allow configure.ac to specify its own
13259         default, by setting with_openssl_default before invoking gl_INIT.
13261 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
13263         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
13264         Problem reported by Daiki Ueno in:
13265         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
13266         * tests/test-open.h (__always_inline):
13267         New macro, if not already defined.
13268         (test_open): Use it.
13270 2013-12-04  Eric Blake  <eblake@redhat.com>
13272         include_next: minimize code duplication
13273         * modules/include_next (Depends-on): Add absolute-header.
13274         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
13275         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
13277 2013-12-04  Pádraig Brady  <P@draigBrady.com>
13279         getcwd: fix compile error in configure check
13280         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
13282 2013-12-04  Pádraig Brady  <P@draigBrady.com>
13284         regex: suppress core dumps from detection code
13285         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
13286         to suppress core dumps that may well occur on glibc systems.
13287         These core dumps might not be cleaned up automatically, or could
13288         trigger some system core dump handling logic.
13290 2013-12-03  Pádraig Brady  <P@draigBrady.com>
13292         md5, sha1, sha256, sha512: support mandating use of openssl
13293         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
13294         description, to list the now 3 separate options.  also don't
13295         mention the default=no, since this is implicit given the option
13296         is described as --with-openssl rather than --without-openssl.
13297         If projects change the default they're free to document that.
13298         with --with-openssl[=yes] we now error out when the specified
13299         hash algorithm is not available in libcrypto.
13301 2013-12-03  Ivailo  <xakepa10@gmail.com>
13303         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
13304         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
13305         -Wformat-nonliteral checks, as these edge cases are part of the test.
13307 2013-12-03  Eric Blake  <eblake@redhat.com>
13309         regex: avoid glibc deadlock during configure
13310         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
13311         glibc bug 15078 in turn triggers bug 16159.
13312         Reported by Michal Privoznik.
13314 2013-12-02  Pádraig Brady  <P@draigBrady.com>
13316         md5, sha1, sha256, sha512: use openssl routines if available.
13317         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
13318         routines will be used if available, requiring apps to link @LIB_CRYPTO@
13319         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
13320         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
13321         in the standard system location.
13322         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
13323         * m4/sha256.m4: Likewise with SHA256.
13324         * m4/sha512.m4: Likewise with SHA512.
13325         * m4/md5.m4: Likewise with MD5.
13326         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
13327         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
13328         * lib/sha256.h: Likewise with SHA256.
13329         * lib/sha512.h: Likewise with SHA512.
13330         * lib/md5.h: Likewise with MD5.
13331         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
13332         * lib/sha256.c: Likewise with SHA256.
13333         * lib/sha512.c: Likewise with SHA512.
13334         * lib/md5.c: Likewise with MD5.
13335         * modules/crypto/sha1 (Link:): Add the new optional lib.
13336         (Depends-on:): Add dependency on extern-inline.
13337         * modules/crypto/sha256: Likewise.
13338         * modules/crypto/sha512: Likewise.
13339         * modules/crypto/md5: Likewise.
13340         * modules/crypto/sha1-tests: Reference the lib here too.
13341         * modules/crypto/md5-tests: Likewise.
13342         * modules/crypto/gc-des-tests: Likewise.
13343         * modules/crypto/gc-hmac-md5-tests: Likewise.
13344         * modules/crypto/gc-hmac-sha1-tests: Likewise.
13345         * modules/crypto/gc-hmac-sha256-tests: Likewise.
13346         * modules/crypto/gc-hmac-sha512-tests: Likewise.
13347         * modules/crypto/gc-md5-tests: Likewise.
13348         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
13349         * modules/crypto/gc-sha1-tests: Likewise.
13350         * modules/crypto/gc-tests: Likewise.
13351         * modules/crypto/hmac-md5-tests: Likewise.
13352         * modules/crypto/hmac-sha1-tests: Likewise.
13353         * modules/crypto/hmac-sha256-tests: Likewise.
13354         * modules/crypto/hmac-sha512-tests: Likewise.
13356 2013-11-29  RV1971  <rv1971@web.de>
13358         base64: (trivial) fix compilation regression on some compilers
13359         * lib/base64.c: Don't return the void function,
13360         instead split to a separate return statement.
13362 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
13364         ignore-value: revert previous code change
13365         * lib/ignore-value.h (ignore_value): Use __extension__ and
13366         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
13367         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
13368         Change the comment to try to explain this better.
13370 2013-11-27  Pádraig Brady  <P@draigBrady.com>
13372         selinux-h: improve stub types and add more stub functions
13374         * lib/se-selinux.in.h: Change security_context_t to a typedef
13375         rather than a define, as it's a pointer type and so is better
13376         as a typedef to avoid issues declaring multiple variables
13377         with the comma operator.  Also add stub for string_to_security_class().
13378         * lib/se-context.in.h: Add stub functions for
13379         context_{type,range,role,user}_get().
13381 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
13383         ignore-value: prefer GCC version back through 2.0
13384         The code didn't match the comments, so I did a bit of software
13385         archaeology.  GCC 2.0 seems to support __extension__ and
13386         __typeof__, so fix both code and comments to use 2.0.
13387         * lib/ignore-value.h (ignore_value): Use __extension__ and
13388         __typeof__ for GCC 2.0 through 3.3, too.
13390 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
13392         pty: Activate the signature wrapper of forkpty.
13393         The intended preprocessor macro HAVE_FORKPTY is
13394         never defined, yet `lib/forkpty.c' depends on it.
13396         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
13397         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
13398         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
13400 2013-11-18  Jim Meyering  <meyering@fb.com>
13401         and Paul Eggert  <eggert@cs.ucla.edu>
13403         quotearg: don't attempt to store 1 << 31 into an "int"
13404         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
13405         gcc's new -fsanitize=undefined and running its tests triggered some
13406         new test failures due to undefined behavior, all with this diagnostic:
13407           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
13408             cannot be represented in type int
13409         Rather than shifting "1" left to form a mask, shift the bits right and
13410         simply use "1" as the mask.
13412 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
13414         error: depend on stdio
13415         Problem reported by Nikos Mavrogiannopoulos in
13416         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
13417         * modules/error (Depends-on): Add stdio.
13419 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
13421         * doc/relocatable-maint.texi (Supporting Relocation): Improve
13422         wording.
13423         Reported by Reuben Thomas <rrt@sc3d.org>.
13425 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
13427         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
13428         New function and macro, to work around _DARWIN_C_SOURCE problem.
13429         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
13431 2013-11-11  Pádraig Brady  <P@draigBrady.com>
13433         base64: provide a fast path for encoding well sized buffers
13434         Avoid conditionals in the base64 encoding loop,
13435         which was seen to give 60% better throughput.
13436         * lib/base64.c (base64_encode_fast): A new function to be called
13437         when we don't want to NUL terminate, and we have enough space
13438         in the output to encode the given input.
13439         (base64_encode): Call the _fast() version when appropriate.
13440         Also remove a redundant mask with 0x3F on the first encoded byte.
13442 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
13444         extern-inline: port better to OS X 10.9
13445         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
13446         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
13447         OS X 10.9, except for g++ where the bug is still present.
13448         See <http://trac.macports.org/ticket/41033>.
13450 2013-11-08  Eric Blake  <eblake@redhat.com>
13452         fpending: fix regression on DragonFly BSD
13453         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
13454         * lib/fpending.h (__fpending): Don't declare twice.
13455         Reported by GW in
13456         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
13458 2013-11-05  Jim Meyering  <meyering@fb.com>
13460         hash: relax license to LGPLv2+, for libguestfs
13461         * modules/hash (License): Change from GPL to LGPLv2+.
13463 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
13465         intprops: port to Oracle Studio c99
13466         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
13467         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
13469 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
13471         obstack: pacify HP C
13472         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
13473         warning "conversion from pointer to smaller integer" from HP
13474         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
13475         C89 or later nowadays, so cast to void instead of int.  Privately
13476         reported by H.Merijn Brand.  Also, change header to match glibc's,
13477         to make checking against glibc easier.
13479 2013-10-29  Jim Meyering  <meyering@fb.com>
13481         maint.mk: prefer gpgv2 over gpgv
13482         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
13483         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
13484         Reported by Gary Vaughan.
13486 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
13488         isnan: port to VAX
13489         Reported by John Klos for NetBSD-5/VAX in
13490         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
13491         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
13492         (FUNC): Use it.
13494 2013-10-28  Jim Meyering  <meyering@fb.com>
13496         gnulib-tool: protect against CDPATH
13497         * gnulib-tool: Many "cd" built-in functions print a directory name
13498         to stdout when CDPATH is set, e.g.,
13499           $ bash -c 'CDPATH=/; cd tmp'
13500           /tmp
13501         Unset it, when possible.  Prompted by a comment from Bruce Korb.
13503         maint.mk: restore functionality removed by recent change...
13504         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
13505         the context of a shallow-cloned gnulib repository: "git describe"
13506         would fail in such a directory.  However, that change made it so
13507         the reported gnulib revision no longer includes the version number
13508         or a commit count, even when run from a full clone.
13509         * top/maint.mk (gnulib-version): Use the full "git describe"
13510         output when possible, e.g., the form above, rather than the
13511         abbreviated, no-tag, no-commit-count string, and fall back to
13512         using a 10-byte hash, rather than the default minimal-length
13513         hash prefix, since while the minimal-length one may be fine today,
13514         it is likely not to be unique for very long.
13516 2013-10-26  Jim Meyering  <meyering@fb.com>
13518         maint.mk: fix "release" target to build _version
13519         This fixes a bug in README-release whereby following the outlined
13520         steps, one would publish a tarball whose programs would report
13521         --version output not consistent with the package version number.
13522         This bug caused grep-2.15 to produce a grep program whose
13523         --version option made it print 2.14.56-1e3d rather than 2.15.
13524         * top/maint.mk (release): Making this target build "_version"
13525         ensures that the new version number is reflected in configure.
13527 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
13529         install-reloc: Support multi-binary installation.
13530         * build-aux/install-reloc: Support installing multiple programs in
13531         one invocation, as done by Automake starting with commit
13532         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
13533         Haible <bruno@clisp.org>, archived at
13534         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
13535         Reported by Sylvain <beuc@gnu.org>.
13537 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
13539         selinux-h: Really build without selinux when library is missing.
13540         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
13541         continue without selinux, as already told in the warning message.
13543 2013-10-21  Jim Meyering  <meyering@fb.com>
13545         regex: also remove dependency on HAVE_WCSCOLL
13546         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
13548 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
13550         xfreopen: Fix typo. s/frepoen/freopen/
13551         * lib/xfreopen.c: Fix description.
13552         * modules/xfreopen: Likewise.
13554 2013-10-21  Jim Meyering  <meyering@fb.com>
13556         regex: don't depend on wcscoll
13557         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
13558         It is no longer used.
13560 2013-10-20  Jim Meyering  <meyering@fb.com>
13562         error: add the printf attribute to a static function
13563         * lib/error.c (error_tail): Add the printf attribute, to placate
13564         gcc's -Werror=suggest-attribute=format option.
13566 2013-09-30  Jim Meyering  <meyering@fb.com>
13568         fpending, obstack, strerror-override: use pure+const function attrs
13569         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
13570         * lib/obstack.c (_obstack_allocated_p): Likewise.
13571         * lib/obstack.h (_obstack_memory_used): Likewise.
13572         (_obstack_memory_used): Likewise.
13573         * lib/strerror-override.h (strerror_override): Declare with
13574         the "const" attribute.
13576 2013-10-18  Eric Blake  <eblake@redhat.com>
13578         extern-inline: make safe for -Wundef usage
13579         Reported by Vladimir 'phcoder' Serbinenko in
13580         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
13581         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
13583 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
13585         mkfifo-tests, etc.: allow HP-UX 11.11 bug
13586         Problem reported by Daniel Richard G. in
13587         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
13588         * doc/posix-functions/mkfifo.texi (mkfifo):
13589         * doc/posix-functions/mkfifoat.texi (mkfifoat):
13590         * doc/posix-functions/mknod.texi (mknod):
13591         * doc/posix-functions/mknodat.texi (mknodat):
13592         Document the HP-UX 11.11 bug.
13593         * tests/test-mkfifo.h (test_mkfifo):
13594         Allow the HP-UX 11.11 bug.
13596 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
13598         acl: allow cross-compilation to Gentoo
13599         Problem reported by Gabriel Marcano in
13600         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
13601         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
13602         test only whether it links.
13604 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13606         mgetgroups: remove dependency on realloc-gnu
13607         The dependency violates the comment in realloc-gnu, which
13608         says that tests can't depend on realloc-gnu; some tests depend
13609         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
13610         Problem reported by Daniel Richard G. in
13611         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
13612         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
13613         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
13614         not realloc-gnu.
13616 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
13618         regex-tests: port to HP-UX 11.11
13619         Problem reported by Daniel Richard G. in
13620         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
13621         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
13623 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
13625         verify: document some 'assume' pitfalls
13626         * doc/verify.texi (Compile-time Assertions):
13627         Mention that 'assume (E)' can sometimes slow things down.
13628         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
13630 2013-10-10  Eric Blake  <eblake@redhat.com>
13632         strtoumax: fix typo in previous commit.
13633         * modules/strtoumax (Depends-on): Fix typo.
13634         * modules/strtoimax (Depends-on): Likewise.
13636 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
13638         strtoumax: port to Solaris 8
13639         This problem was introduced in the recent HP-UX patch.
13640         Reported by Tom G. Christensen in
13641         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
13642         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
13643         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
13645 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
13647         strtoimax, strtoumax: port to HP-UX 11.11
13648         Problem reported by Daniel Richard G. in
13649         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
13650         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
13651         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
13652         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
13653         REPLACE_STRTOUMAX.
13654         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
13655         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
13656         Replace the function if defined as a macro but not as a function.
13657         * modules/inttypes-incomplete (inttypes.h): Substitute
13658         REPLACE_STRTOUMAX.
13659         * modules/strtoumax (configure.ac): Replace strtoumax if
13660         REPLACE_STRTOUMAX.
13662 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
13664         strtoimax: port to HP-UX 11.11
13665         Problem reported by Daniel Richard G.
13666         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
13667         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
13668         they might clash with inttypes.h.
13670 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
13672         New module 'count-trailing-zeros'.
13673         * MODULES.html.sh: Mention it.
13674         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
13675         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
13676         * modules/count-trailing-zeros-tests:
13677         * tests/test-count-trailing-zeros.c:
13678         New files.
13680         count-leading-zeros: port to MSC; support types wider than 64 bits
13681         The ideas behind the MSC port are stolen from Emacs.
13682         * lib/count-leading-zeros.h:
13683         Don't include verify.h: it's no longer needed, as types wider than
13684         64 bits are now supported.
13685         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
13686         performance with MSC.  All uses changed.  Do not assume that TYPE
13687         has at most 64 bits.
13688         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
13689         All uses changed.  Fold the subtraction from 31 into the table.
13691         count-one-bits: port to MSC; support types wider than 64 bits
13692         The ideas behind the MSC port are stolen from Emacs.
13693         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
13694         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
13695         Don't include verify.h: it's no longer needed, as types wider than
13696         64 bits are now supported.
13697         (COUNT_ONE_BITS_GENERIC): New macro.
13698         (popcount_supported) [_MSC_VER]: New inline function.
13699         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
13700         performance with MSC.  All uses changed.  Do not assume that TYPE
13701         has at most 64 bits.
13702         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
13704 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
13706         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
13707         * lib/mountlist.c (read_file_system_list): fix leak of directory
13708         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
13710 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
13712         tests: improve diagnostic when an assertion fails
13713         * tests/macros.h (ASSERT): Report the assertion that failed.
13715 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
13717         verify: new macro 'assume'
13718         This is taken from Emacs, and should be generally useful.
13719         * doc/verify.texi (assume): Document it.
13720         * lib/verify.h (assume): New macro.
13721         (__has_builtin): Expand to 0 if not defined.
13723 2013-09-26  Eric Blake  <eblake@redhat.com>
13725         dup2, dup3: work around another cygwin crasher
13726         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
13727         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
13728         * tests/test-dup2.c (main): Likewise.
13729         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
13730         * lib/dup3.c (dup3): Likewise.
13731         * doc/posix-functions/dup2.texi (dup2): Document it.
13732         * doc/glibc-functions/dup3.texi (dup3): Likewise.
13734         getdtablesize: work around cygwin issue
13735         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
13736         * modules/getdtablesize (configure.ac): Build replacement.
13737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
13738         * modules/unistd (Makefile.am): Expose the witness.
13739         * lib/unistd.in.h (getdtablesize): Declare replacement.
13740         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
13741         * tests/test-getdtablesize.c (main): Test it.
13742         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
13744 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
13746         pmccabe2html: escaping of special characters
13747         Escape all '<', '>', and '&' in HTML output.
13748         * build-aux/pmccabe2html (html_fnc): Call gsub()
13749         instead of sub() to capture all '<', '>', and '&'.
13750         Neither of '<' and '>' is special in a regexp,
13751         so first arguments to gsub() are corrected. Also,
13752         in replacement strings, ampersand must be escaped.
13753         Finally, '&' must be handled first, then '<' and '>'.
13755 2013-09-24  Eric Blake  <eblake@redhat.com>
13757         manywarnings: enable nicer gcc warning messages
13758         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
13759         some -f options for optimal warnings.
13761 2013-09-21  Jim Meyering  <meyering@fb.com>
13763         timespec: use the new TIMESPEC_RESOLUTION in a few more places
13764         * lib/timespec-add.c (timespec_add): Also replace 999999999
13765         with TIMESPEC_RESOLUTION - 1.
13766         * lib/timespec-sub.c (timespec_sub): Likewise.
13768 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
13770         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
13771         Problem reported by Dagobert Michelsen via Eric Blake in
13772         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
13773         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
13774         not AC_COMPILE_IFELSE.
13776 2013-09-23  Eric Blake  <eblake@redhat.com>
13778         configmake: support new --runstatedir option
13779         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
13780         even if autoconf was too old to provide the command line option.
13781         * modules/configmake (Makefile.am): Propagate it to .h file.
13783 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
13785         ctype, string: depend on extern-inline
13786         This is needed to complete the recent OS X fixes.
13787         Also, fix related documentation as suggested by Eric Blake.
13788         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
13789         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
13790         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
13791         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
13792         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
13793         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
13794         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
13795         * doc/posix-functions/toupper.texi:
13796         List the 'ctype' gnulib module.
13797         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
13798         * doc/posix-functions/strncpy.texi:
13799         List the 'string' gnulib module.
13800         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
13801         Add string.
13802         * modules/ctype, modules/string (Depends-on): Add extern-inline.
13804 2013-09-19  Pádraig Brady  <P@draigBrady.com>
13806         userspec: support optional parameters to parse_user_spec()
13807         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
13808         then avoid group processing and treat the full spec as a user.
13809         (parse_with_separator): Allow the USERNAME and GROUPNAME to
13810         be optional params (NULL), in which case they're ignored.
13812 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
13814         timespec: new function make_timespec, and new constants
13815         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
13816         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
13817         (make_timespec): New function.
13818         * lib/dtotimespec.c (dtotimespec):
13819         * lib/timespec-add.c (timespec_add):
13820         * lib/timespec-sub.c (timespec_sub):
13821         * lib/utimens.c (validate_timespec):
13822         * lib/utimensat.c (rpl_utimensat):
13823         Use these new constants and functions.
13825         stdio: OS X port of putc_unlocked + extern inline
13826         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
13827         * doc/posix-functions/putc_unlocked.texi:
13828         * doc/posix-functions/putchar_unlocked.texi:
13829         Document this portability problem.
13831         signal: OS X port of sigaddset etc. + extern inline
13832         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
13833         (sigismember): #undef on problematic Apple platforms.
13834         * doc/posix-functions/sigaddset.texi:
13835         * doc/posix-functions/sigdelset.texi:
13836         * doc/posix-functions/sigemptyset.texi:
13837         * doc/posix-functions/sigfillset.texi:
13838         * doc/posix-functions/sigismember.texi:
13839         Document this portability problem.
13841         extern-inline: do not always suppress extern inline on OS X
13842         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
13843         extern inline on Apple only if the particular compile-time
13844         configuration is known to have the problem.
13845         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
13846         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
13847         other Gnulib modules.
13849         extern-inline: document fixes for ctype and wctype macros
13850         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
13851         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
13852         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
13853         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
13854         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
13855         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
13856         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
13857         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
13858         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
13859         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
13860         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
13861         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
13862         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
13863         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
13864         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
13865         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
13866         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
13867         * doc/posix-functions/strncpy.texi:
13868         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
13869         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
13870         Document that Gnulib fixes portability problems with these
13871         functions on OS X 10.8 and earlier when called from plain inline
13872         or extern inline functions.
13874 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
13876         fflush, freadahead, fseeko: Fix for Android
13877         Suggested by Bruno Haible in:
13878         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
13879         * lib/stdio-impl.h: Use local __sfileext definition.
13881 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
13883         pmccabe2html: Portability to other awk versions.
13884         The functions systime() and strftime() are available
13885         in Gawk only.  Properly close two HTML-tags 'style'
13886         and 'span'.
13887         * build-aux/pmccabe2html (BEGIN): Store timing
13888         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
13889         systime() in HTML_COMMENT.
13890         (html_header): Correctly close tag 'style'.
13891         (END): Replace strftime() by CHRONOS_TIME.  Close
13892         tag 'span' correctly, not as 'div'.
13894 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
13896         getgroups: statement without effect
13897         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
13898         Change equality conditional to expected assignment.
13900 2013-09-09  Eric Blake  <eblake@redhat.com>
13902         glob: fix compilation
13903         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
13905 2013-09-07  Eric Blake  <eblake@redhat.com>
13907         glob: fix build for platforms without __THROW
13908         * lib/glob.in.h (__THROW): Add definition again.
13910 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
13912         regex-quote: fix buffer access out of bounds
13913         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
13914         * lib/regex-quote.c (regex_quote_spec_pcre):
13915         Fix typo that resulted in an out-of-bounds read.
13917 2013-09-04  Eric Blake  <eblake@redhat.com>
13919         glob: avoid -Wattribute warnings on glibc
13920         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
13921         __THROWNL, not __THROW, on static functions.
13922         * lib/glob.in.h (__THROW): Adjust...
13923         (__THROWNL): ...accordingly.
13925 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
13927         headers: check that _GL_INLINE_HEADER_BEGIN is defined
13928         Suggested by Bruce Korb in:
13929         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
13930         * doc/extern-inline.texi (extern inline):
13931         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
13932         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
13933         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
13934         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
13935         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
13936         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
13937         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
13938         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
13939         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
13940         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
13941         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
13942         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
13943         * lib/xtime.h:
13944         Check that _GL_INLINE_HEADER_BEGIN is defined.
13946 2013-08-29  Pádraig Brady  <P@draigBrady.com>
13948         bootstrap: remove the --version requirement from ancillary tools
13949         * build-aux/bootstrap (check_exists): A new refactored function to
13950         determine if a command exists.
13951         (find_tool): Use the new function which does not require the
13952         --version option to be supported.
13953         (check_versions): Use the new function.
13955 2013-08-26  Simon Josefsson  <simon@josefsson.org>
13957         gc: support HMAC-SHA256 and HMAC-SHA512.
13958         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
13959         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
13960         functions.
13961         (gc_hmac_md5): Use symbolic constant.
13962         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
13963         (gc_hmac_sha256, gc_hmac_sha512): New functions.
13964         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
13965         * m4/sha256.m4: Protect against empty expansion.
13966         * m4/sha512.m4: Likewise.
13967         * lib/hmac-sha256.c: New file.
13968         * lib/hmac-sha512.c: Likewise.
13969         * m4/gc-hmac-sha256.m4: Likewise.
13970         * m4/gc-hmac-sha512.m4: Likewise.
13971         * m4/gc-sha256.m4: Likewise.
13972         * m4/gc-sha512.m4: Likewise.
13973         * modules/crypto/gc-hmac-sha256: Likewise.
13974         * modules/crypto/gc-hmac-sha256-tests: Likewise.
13975         * modules/crypto/gc-hmac-sha512: Likewise.
13976         * modules/crypto/gc-hmac-sha512-tests: Likewise.
13977         * modules/crypto/hmac-sha256: Likewise.
13978         * modules/crypto/hmac-sha256-tests: Likewise.
13979         * modules/crypto/hmac-sha512: Likewise.
13980         * modules/crypto/hmac-sha512-tests: Likewise.
13981         * tests/test-gc-hmac-sha256.c: Likewise.
13982         * tests/test-gc-hmac-sha512.c: Likewise
13983         * tests/test-hmac-sha256.c: Likewise.
13984         * tests/test-hmac-sha512.c: Likewise
13986 2013-08-24  Daiki Ueno  <ueno@gnu.org>
13988         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
13989         of AC_CHECK_DECLS.
13991 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
13993         selinux-at: omit unnecessary include
13994         * lib/selinux-at.c: Don't include dosname.h; not needed, since
13995         this source file doesn't use its macros, and subsidiary files that
13996         use the macros already include it.
13998 2013-08-21  Eric Blake  <eblake@redhat.com>
14000         d-ino: avoid false negative on symlink
14001         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
14002         Reported by Stephane Chazelas.
14004 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
14006         bootstrap: port to OpenBSD sed
14007         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
14008         does not interpret `-' as a file argument to mean stdin.
14010 2013-08-15  Eric Blake  <eblake@redhat.com>
14012         warnings: minor optimization
14013         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
14015         warnings: check -Wfoo rather than -Wno-foo
14016         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
14017         -Wno-, test if the compiler recognizes the positive form instead.
14019 2013-08-15  Karl Berry  <karl@gnu.org>
14021         * config/srclist-update: add option "doclicense" to placate
14022         pulling *.texi files from Emacs.  Write terse usage
14023         documentation at the top.
14025 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
14027         xvasprintf-tests: port to GCC with hardening flags
14028         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
14029         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
14030         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
14032 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14034         fpending: port to recent Cygwin change to stdio_ext.h
14035         Reported by LRN in
14036         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
14037         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
14038         just declare __fpending unless it's a macro.
14039         A duplicate decl shouldn't hurt.
14040         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
14041         call compiles and links, instead of separately checking for
14042         decl and lib function.
14043         * modules/fpending (configure-ac):
14044         Adjust to fpending.m4's renaming of shell variable.
14046 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14048         sys_time: port to OpenBSD
14049         * lib/sys_time.in.h: Simply delegate to the system's header
14050         in the BSDish cases as well.  Problem reported by Mike Miller in
14051         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
14052         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
14053         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
14054         wider than time_t.
14056 2013-08-09  Pádraig Brady  <P@draigBrady.com>
14058         bootstrap: support checksum utils having -c but not --status
14059         * build-aux/bootstrap: Only look for sha1sum if updating po files.
14060         Add sha1 to the list of supported checksum utils since it's now
14061         supported through adjustments below.
14062         (update_po_files): Remove the use of --status
14063         in a way that will suppress all error messages, but since this is
14064         only used to minimize updates, it shouldn't cause an issue.
14065         Exit early if there is a problem updating the po file checksums.
14066         (find_tool): Remove the check for --version support as this
14067         is optional as per commit 86186b17.  Don't even check for the
14068         presence of the command as if that is needed, it's supported
14069         through configuring prerequisites in bootstrap.conf.
14070         Prompt that when a tool isn't found, one can define an environment
14071         variable to add to the hardcoded search list.
14073 2013-08-05  Jim Meyering  <meyering@fb.com>
14075         regex: port to non-glibc/lock-using systems
14076         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
14077         system with GNULIB_LOCK would fail due to absence of the
14078         included "glthread/lock.h".  This would affect any package
14079         for which the "lock" module is used only by the regex module,
14080         and not explicitly used.
14081         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
14082         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
14083         Add a dependency on the "lock" module.
14085 2013-07-20  Daiki Ueno  <ueno@gnu.org>
14087         localecharset: make locale_charset thread-safe on Mac OS X
14088         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
14089         instead of MB_CUR_MAX.
14091 2013-07-20  Daiki Ueno  <ueno@gnu.org>
14093         gettext: update to version 0.18.3
14094         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
14095         require AC_PROG_SED to allow user to specify custom sed command when
14096         generating en@quot PO file.
14098 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
14100         bootstrap: use correct source when copying build-aux files
14101         * build-aux/bootstrap (gnulib_extra_files): This variable is
14102         relative to upstream gnulib layout, not downstream.
14104 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
14106         tmpdir: fix bug in VMS port
14107         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
14108         See Steven M. Schweda in
14109         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
14111 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
14113         tmpdir: port to VMS, to // != /, and to long dirs
14114         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
14115         __secure_getenv, so that we're more like the glibc version.
14116         All uses changed.
14117         (path_search): Don't put slash after directory if __VMS.
14118         Problem reported by Steven M. Schweda in
14119         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
14120         Simplify code to add slash; no need for a loop.
14121         Do not remove trailing slash from "//".
14122         Do not assume dlen <= INT_MAX.
14124 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14126         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
14127         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
14128         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
14129         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
14131         accept4, dup3, pipe2: port to Cygwin
14132         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
14133         * lib/accept4.c (accept4) [O_BINARY]:
14134         * lib/dup3.c (dup3) [O_BINARY]:
14135         * lib/pipe2.c (pipe2) [O_BINARY]:
14136         Use set_binary_mode, not setmode.
14137         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
14138         * modules/binary-io (Depends-on): Remove module indicator.
14139         These last two bits undo the previous change to pipe2 and binary-io.
14141 2013-07-09  Pádraig Brady  <P@draigBrady.com>
14143         mountlist: add support for deallocating returned list entries
14144         * lib/mountlist.c (free_mount_entry): A new exported function
14145         to deallocate a mount list entry.
14146         (read_file_system_list): Refactor to use the new deallocation function.
14147         Suggested by Anton Ovchinnikov.
14149 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
14151         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
14152         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
14153         * lib/stdalign.in.h (_Alignas, _Alignof):
14154         Port to FreeBSD 9.1, and to C11 and C++11.
14155         (_Alignas): Also support ICC.
14156         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
14157         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
14159 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14161         fnmatch: don't goto over declaration
14162         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
14163         undefined behavior for goto over a declaration.
14164         Problem reported by Charlie Brown in
14165         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
14167         pipe2: decouple from binary-io a bit
14168         This is for Emacs, which needs pipe2 but not binary-io.
14169         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
14170         * modules/binary-io (Depends-on): Add module indicator.
14172 2013-07-03  Eric Blake  <eblake@redhat.com>
14174         mgetgroups: relax license to LGPLv2+
14175         * modules/getugroups (License): Change from GPLv3+.
14176         * modules/mgetgroups (License): Likewise.
14177         * modules/getgroups (License): Change from LGPLv3+.
14179         xalloc-oversized: relax license to LGPLv2+
14180         * modules/xalloc-oversized (License): Change from GPLv3+.
14182         nproc: relax license to LGPLv2+
14183         * modules/nproc (License): Change from LGPLv3+.
14185         bootstrap: honor --no-git
14186         * build-aux/bootstrap: Don't even try to use git when user is
14187         pointing to a static checkout.
14189 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
14191         ignore-value: port to gcc -pedantic
14192         * lib/ignore-value.h (ignore_value):
14193         Port to gcc -pedantic, by using __extension__.
14194         Reindent as per usual gnulib style nowadays.
14195         Simplify GCC version check.
14197 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
14199         extern-inline: port to gcc -std=c89
14200         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
14201         Do not use __gnu_inline__ if pedantic and pre-C99.
14203 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
14205         doc: document extern-inline
14206         * doc/extern-inline.texi: New file.
14207         * doc/gnulib.texi (alloca-opt): Include it.
14208         * m4/extern-inline.m4: Move some comments to documentation,
14209         and others closer to what they describe.
14211         doc: chatter less
14212         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
14213         (updated-stamp): Use it.  This causes 'make' to output just
14214         one file name rather than zillions.
14216         fflush, fseeko: port to musl cross-compiles
14217         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
14218         on some implementation that (1) is not known to be buggy,
14219         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
14220         cross-compiled to so we can't easily check for lack of
14221         conformance.  This is for cross-compiling to musl.
14222         Reported by Rich Felker in
14223         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
14224         * m4/fclose.m4 (gl_FUNC_FCLOSE):
14225         * m4/fflush.m4 (gl_FUNC_FFLUSH):
14226         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
14227         Adjust to above change.
14228         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
14229         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
14230         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
14231         known not to work, or unknown.
14233 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14235         msvc-inval: port to mingw-w64
14236         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
14237         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
14238         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
14240 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
14242         getcwd-lgpl: port to Tru64
14243         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
14244         Problem reported by Steven M. Schweda in
14245         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
14247         tests: port large-fd POSIX spawn tests to OS X
14248         Problem reported by Daiki Ueno in
14249         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
14250         * tests/test-posix_spawn_file_actions_addclose.c:
14251         * tests/test-posix_spawn_file_actions_adddup2.c:
14252         * tests/test-posix_spawn_file_actions_addopen.c:
14253         Include <limits.h>, for OPEN_MAX, if available.
14254         (big_fd): New static function.
14255         (main): Use it.
14257 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
14259         tests/nap.h: use an adaptive delay to avoid ctime update issues
14260         The recent change in nap.h (5191133e) decreased the probability of lost
14261         races to about a third, however such problems could still be observed
14262         in virtual machines and openSUSE's OBS.
14263         Before, nap() detected the needed time once empirically and then used
14264         that delay (together with a small correction multiplier) in further
14265         calls.  This problem has been reported and discussed several times,
14266         including guesses about possible kernel issues:
14267         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
14268         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
14269         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
14270         http://bugs.gnu.org/12820
14271         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
14272         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
14273         Now, nap() avoids the race alltogether by verifying on a reference
14274         file whether a timestamp difference has happened.
14275         * tests/nap.h (nap_fd): Define file descriptor variable for the
14276         witness file.
14277         (nap_works): Change return value to bool.  Change passing
14278         the old file's status by value instead of by reference as this function
14279         does no longer update that timestamp; rename the function argument from
14280         st to old_st.  Remove the local variables cdiff and mdiff because that
14281         function now returns true/false instead of the precise delay.
14282         (guess_delay): Remove function.
14283         (clear_tmp_file): Add new function to close and unlink the witness file.
14284         (nap): Instead of re-using the delay which has been calculated during
14285         the first call, avoid the race by actually verifying that a timestamp
14286         difference can be observed on the current file system.  Use an adaptive
14287         approach for the delay to minimize execution time.  Assert that the
14288         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
14289         = 2^31 - 1 = 2.1s.
14290         Use atexit to call clear_tmp_file when the process terminates.
14292 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
14294         sig2str: port to C++
14295         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
14296         Reported by Daniel J Sebald in
14297         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
14299 2013-05-30  Eric Blake  <eblake@redhat.com>
14301         docs: mention cygwin shortcoming in <sys/un.h>
14302         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
14304         vasnprintf: silence mingw compiler warning
14305         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
14307 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
14309         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
14310         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
14311         This fixes a porting bug I recently reintroduced in regex, and
14312         some other instances that I discovered while testing the fix.
14313         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
14314         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
14315         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
14316         with an empty argument if this is a pedantic pre-C99 GCC.
14317         * lib/verify.h: Do not use _Static_assert if this is a pedantic
14318         pre-C11 GCC.
14320         regex: adapt to locking regime instead of depending on pthread
14321         Instead of depending on pthread, adapt to whatever thread
14322         modules are in use.  Problem reported by Ludovic Courtès in
14323         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
14324         and by Mats Erik Andersson in
14325         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
14326         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
14327         Support either the 'lock' module, or the 'pthread' module, or
14328         no module.
14329         (lock_lock, lock_unlock): New macros.
14330         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
14331         * modules/lock, modules/pthread (configure.ac): Add module indicator.
14332         * modules/regex (Depends-on): Remove pthread.
14334 2013-05-22  Eric Blake  <eblake@redhat.com>
14336         getgroups: document portability issues
14337         * doc/glibc-functions/initgroups.texi (initgroups): Mention
14338         multithread safety.
14339         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
14340         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
14341         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
14342         getugroups.
14343         * doc/posix-functions/getgroups.texi (getgroups): Mention
14344         multithread safety and mgetgroups.
14346 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
14348         test-lchown, test-chown: also skip test if chown fails with EPERM
14349         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
14350         skip this test, to handle FAT file systems.
14351         * tests/test-chown.h (test_chown): Likewise.
14353 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
14355         regex: fix dfa race in multithreaded uses
14356         Problem reported by Ludovic Courtès in
14357         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
14358         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
14359         New macros.  All uses of __libc_lock_define, __libc_lock_init
14360         changed to use the first two of these.
14361         (__libc_lock_lock, __libc_lock_unlock): New macros, for
14362         non-glibc platforms.
14363         (struct re_dfa_t): Define the lock unconditionally.
14364         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
14365         '#ifdef _LIBC"s.
14366         * modules/regex (Depends-on): Add pthread, if we use the
14367         included regex.
14369         * lib/regcomp.c: Do actions that are not needed for glibc,
14370         but may be needed elsewhere.
14371         (regfree, re_compile_internal): Destroy the lock.
14372         (re_compile_internal): Check for lock-initialization failure.
14374         malloca: port to compilers that reject size-zero arrays
14375         This fixes a bug introduced in my previous patch.
14376         * lib/malloca.c (struct preliminary_header): Use an int
14377         rather than a character array of size int; that's simpler.
14378         (struct header): Remove, replacing with ...
14379         (union header): New type.  This avoids the need for declaring a
14380         character array of size zero, which is not allowed on some platforms.
14381         All uses changed.
14383 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
14385         parse-datetime, tests: don't use "string" + int
14386         Recent versions of 'clang' complain about C source code that
14387         uses expressions of the form '"string literal" + integer',
14388         I guess on the theory that it's confusing for readers who are
14389         used to C++.  On those grounds I suppose it's OK to make this
14390         minor style change.
14391         * lib/parse-datetime.y (parse_datetime):
14392         * tests/test-fchdir.c (main):
14393         * tests/test-snprintf-posix.h (test_function):
14394         * tests/test-snprintf.c (main):
14395         * tests/test-vasnprintf-posix.c (test_function):
14396         * tests/test-vasnprintf.c (test_function):
14397         * tests/test-vsnprintf.c (main):
14398         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
14399         Rewrite '"str" + E' to '&"str"[E]'.
14401 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
14403         argmatch: port to C++
14404         * lib/argmatch.h [__cplusplus]: Add extern "C".
14406         argp: typo fix
14407         * lib/argp-help.c: Typo in comment.
14409 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
14411         manywarnings: update for GCC 4.8.0
14412         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
14413         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
14414         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
14415         -Wmissing-noreturn, as they are duplicates of other warnings.
14416         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
14417         was documented to be flaky in earlier versions of GCC.
14419         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
14420         * tests/test-spawn.c (main):
14421         * tests/test-sys_socket.c (main):
14422         * tests/test-sys_wait.c (main):
14423         Don't have a switch value that isn't covered by a case.
14425         getaddrinfo-tests: port --enable-gcc-warnings to clang
14426         * tests/test-getaddrinfo.c (simple):
14427         Avoid casts from looser to stricter-aligned pointers.
14429         thread: port --enable-gcc-warnings to clang
14430         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
14431         Include <signal.h>, to pacify a warning about pthread_sigmask.
14433         stdio: use __REDIRECT for fwrite, fwrite_unlocked
14434         * lib/stdio.in.h (fwrite):
14435         When working around bug 11959, use __REDIRECT rather than '#define
14436         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
14437         fix the -Wunused-value issue with clang, and it works with GCC too.
14438         Problem with targeting reported by Eric Blake in
14439         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
14440         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
14441         debugging the fwrite issue.
14443         stdio: port --enable-gcc-warnings to clang
14444         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
14445         since the GCC workaround for fwrite does not pacify clang.
14447         sig2str: port --enable-gcc-warnings to clang
14448         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
14450         obstack: port --enable-gcc-warnings to clang
14451         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
14452         Avoid casts from looser to stricter-aligned pointers.
14454         memchr2: port --enable-gcc-warnings to clang
14455         * lib/memchr2.c (memchr2):
14456         Avoid casts from looser to stricter-aligned pointers.
14458         mbsstr: port --enable-gcc-warnings to clang
14459         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
14460         Avoid casts from looser to stricter-aligned pointers.
14462         malloca: port --enable-gcc-warnings to clang
14463         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
14464         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
14466         inttostr: port --enable-gcc-warnings to clang
14467         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
14469         warnings: port to clang
14470         Problem reported by Daniel P. Berrange via Eric Blake in
14471         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
14472         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
14473         (gl_WARN_ADD): Use it.
14475 2013-05-11  Jim Meyering  <meyering@fb.com>
14477         quotearg: do not read beyond end of buffer
14478         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
14479         end of an ARG for which no length was specified.  With an N-byte
14480         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
14481         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
14482         via coreutils' misc/sort-debug-keys.sh test and detected by running
14483         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
14484         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
14485         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
14486         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
14487         characters correctly."
14489 2013-05-11  Daiki Ueno  <ueno@gnu.org>
14491         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
14492         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
14493         compilation target is Mac OS X 10.6.
14494         Problem reported by parafin and Andoni Morales in
14495         <http://savannah.gnu.org/bugs/?37844> and
14496         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
14498 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
14500         mkdir-p: remove assumptions about umask and mode
14501         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
14502         umask is 0, or that MODE is a subset of MODE_BITS.
14504 2013-05-10  Eric Blake  <eblake@redhat.com>
14506         maint.mk: catch more abuse of HAVE_DECL in syntax-check
14507         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
14509 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
14511         deps: require Automake >= 1.9.6 in generated Makefile fragments
14513         That is the same minimal version required in the DEPENDENCIES file.
14514         Moreover, the old code generated a requirement of Automake >= 1.5,
14515         and that is an insanely outdated version.
14517         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
14518         * tests/havelib/rpathlx/Makefile.am: Likewise.
14519         * tests/havelib/rpathly/Makefile.am: Likewise.
14520         * tests/havelib/rpathlyx/Makefile.am: Likewise.
14521         * tests/havelib/rpathlz/Makefile.am: Likewise.
14522         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
14523         * tests/havelib/rpathx/Makefile.am: Likewise.
14524         * tests/havelib/rpathy/Makefile.am: Likewise.
14525         * tests/havelib/rpathz/Makefile.am: Likewise.
14527 2013-05-08  Eric Blake  <eblake@redhat.com>
14529         bootstrap: AC_INIT may have more than four parameters
14530         * build-aux/bootstrap (extract_package_name): Correctly extract
14531         non-empty tarname field.  Avoid range in regex.
14532         Based on a report by Sami Kerola <kerolasa@iki.fi>.
14534 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
14536         qacl: port to MS-Windows port of GNU Emacs
14537         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
14538         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
14539         port of GNU Emacs.  Problem reported by Eli Zaretskii in
14540         <http://bugs.gnu.org/14295#14>.
14542 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
14544         acl: include quote.h
14545         * lib/copy-acl.c: Include quote.h.
14546         * lib/set-acl.c: Likewise.
14548 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
14550         fchownat, renameat, unlinkat: update statat dependencies
14551         These modules use statat and lstatat, not fstatat; so depend on
14552         the statat module, which was split out recently from fstatat.
14553         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
14554         * modules/renameat: Likewise.  Also delete fstat.
14555         URL: http://bugs.gentoo.org/468790
14557 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
14559         Assume gnulib is checked out from Git, not CVS
14561         In fact, access to the gnulib repository through CVS has been
14562         disabled, or more precisely, got broken and was never restored; see:
14563         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
14565         Note that support for CVS is not removed completely and unthinkingly
14566         by this change: only support for CVS checkouts of gnulib itself is
14567         removed.  For example, the 'bootstrap' script still cater to .cvsingore
14568         files and CVS directories, for the benefit of those poor gnulib clients
14569         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
14571         * gnulib-tool: Simplify accordingly.
14572         * posix-modules: Likewise.
14573         * MODULES.html.sh: Likewise.
14574         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
14575         repository.
14576         * doc/gnulib-intro.texi: Likewise.
14577         * doc/gnulib-readme.texi: Likewise.
14578         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
14579         sample '.gitignore' file rather than a sample '.cvsignore'.
14580         * NEWS: Update.
14581         * m4/extensions.m4: While at it, remove a comment mistakenly referring
14582         to "CVS Autoconf" rather than "git Autoconf".
14584 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
14586         utimensat-tests, etc.: try to fix some races
14587         Problem reported by Bernhard Voelker in
14588         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
14589         I don't know whether this patch fixes that race condition, but it
14590         fixes *some* race conditions, so it should be a win.
14591         * modules/chown-tests (Depends-on):
14592         * modules/fchownat-tests (Depends-on):
14593         * modules/fdutimensat-tests (Depends-on):
14594         * modules/futimens-tests (Depends-on):
14595         * modules/lchown-tests (Depends-on):
14596         * modules/stat-time-tests (Depends-on):
14597         * modules/utimens-tests (Depends-on):
14598         * modules/utimensat-tests (Depends-on):
14599         Depend on nanosleep, not usleep.
14600         * modules/chown-tests (test_chown_LDADD):
14601         * modules/lchown-tests (test_lchown_LDADD):
14602         * modules/stat-time-tests (test_stat_time_LDADD):
14603         New macro.
14604         * modules/fchownat-tests (test_fchownat_LDADD):
14605         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
14606         * modules/futimens-tests (test_futimens_LDADD):
14607         * modules/utimens-tests (test_utimens_LDADD):
14608         * modules/utimensat-tests (test_utimensat_LDADD):
14609         Add $(LIB_NANOSLEEP).
14610         * modules/stat-time-tests (Files): Add tests/nap.h.
14611         * tests/nap.h: Include <limits.h>, for INT_MAX.
14612         (lt_mtime): Remove.
14613         (diff_timespec): New function.
14614         (get_stat): Rename from get_mtime.  All callers changed.
14615         (nap_works): Determine the needed delay by inspecting the
14616         file system's timestamp jumps; this should be more reliable.
14617         Look at both mtime and ctime, and take the maximum of the two jumps.
14618         (nap_works, guess_delay):
14619         Return a nanosecond count, not a microsecond count.
14620         All callers changed.
14621         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
14622         failure.
14623         (nap): Multiply the guess by 1.125, to accommodate the case where
14624         the file system's clock is a bit slower than nanosleep's clock.
14625         * tests/test-stat-time.c (BASE): New macro.
14626         Include nap.h.
14627         (nap): Remove; nap.h now defines this.  This removes a duplicate
14628         implementation of 'nap'.
14630         utimens, utimensat: work around Solaris UTIME_OMIT bug
14631         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
14632         Linux kernel 2.6.32 does.  Work around it in the same way.
14633         * doc/posix-functions/futimens.texi (futimens):
14634         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
14635         * lib/utimens.c (fdutimens, lutimens):
14636         * lib/utimensat.c (rpl_utimensat): Work around the bug.
14638         gettext: now it's your responsibility to add -I$(top_builddir)/intl
14639         Formerly, it was your responsibility to do this for all Makefile.ams
14640         other than Gnulib's.  Now it's your responsibility to do it for
14641         Gnulib's Makefile.am, too.
14642         * NEWS: Document this.
14643         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
14645         acl: include errno.h to get errno
14646         Reported by Daiki Ueno in
14647         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
14648         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
14650 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
14652         tests: don't assume getdtablesize () <= 10000000
14653         * modules/cloexec-tests:
14654         * modules/dup2-tests:
14655         * modules/dup3-tests:
14656         * modules/nonblocking-tests:
14657         * modules/posix_spawn_file_actions_addclose-tests:
14658         * modules/posix_spawn_file_actions_adddup2-tests:
14659         * modules/posix_spawn_file_actions_addopen-tests:
14660         * modules/unistd-safer-tests:
14661         Depend on the getdtablesize module.
14662         * tests/test-cloexec.c:
14663         * tests/test-dup-safer.c:
14664         * tests/test-dup2.c:
14665         * tests/test-dup3.c:
14666         * tests/test-fcntl.c:
14667         * tests/test-nonblocking.c:
14668         * tests/test-posix_spawn_file_actions_addclose.c:
14669         * tests/test-posix_spawn_file_actions_adddup2.c:
14670         * tests/test-posix_spawn_file_actions_addopen.c:
14671         Don't assume getdtablesize () <= 10000000.
14673 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
14675         extern-inline: work around bug in Sun c99
14676         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
14677         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
14679 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
14681         qacl: new module, broken out from the acl module
14682         This is for GNU Emacs, which wants the acl functions but does
14683         not want 'error' invoked when they fail.
14684         * lib/acl-internal.h: Do not include error.h, quote.h.
14685         (ENOSYS, ENOTSUP): Remove; no longer needed.
14686         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
14687         * lib/acl.h: Include <stdbool.h>.
14688         (acl_errno_valid): New function.
14689         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
14690         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
14691         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
14692         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
14693         (ACL_INTERNAL_INLINE): Remove; no longer needed.
14694         * lib/file-has-acl.c (file_has_acl):
14695         * lib/qcopy-acl.c (qcopy_acl):
14696         * lib/qset-acl.c (qset_acl):
14697         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
14698         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
14699         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
14700         lib/file-has-acl.c, m4/acl.m4 to qacl module.
14701         Add lib/set-acl.c.
14702         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
14703         Add qacl.
14704         (configure.ac): Move gl_FUNC_ACL to qacl module.
14705         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
14706         Rename set-mode-acl.c to set-acl.c.
14707         * lib/acl-errno-valid.c: New file.
14708         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
14709         copy_acl function remains in copy-acl.c.
14710         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
14711         (_): Remove; not needed.
14712         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
14713         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
14714         * modules/qacl: New file, moved from the old modules/acl.
14715         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
14716         Remove set-mode-acl.c, copy-acl.c.
14717         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
14719         alignof, intprops, malloca: port better to IBM's C compiler
14720         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
14721         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
14722         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
14724 2013-04-25  Daiki Ueno  <ueno@gnu.org>
14726         wctype-h: fix gettext link error on mingw
14727         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
14728         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
14729         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
14730         rpl_towupper and rpl_towupper.
14732 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
14734         regex-tests, regex: allow glibc re_search behavior
14735         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
14736         re_search input data to make the multi-character collating element
14737         in it clearly visible, and treat re_search return code 0 as valid.
14738         * m4/regex.m4 (gl_REGEX): Likewise.
14740 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
14742         stdalign: doc fix
14743         * doc/posix-headers/stdalign.texi (stdalign.h):
14744         Gnulib doesn't support '_Alignof expr'.
14746 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
14748         stdalign: port to stricter ISO C11
14749         ISO C11 says that _Alignof's operand must be a parenthesized type.
14750         Problem reported by Eli Zaretskii in
14751         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
14752         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
14753         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
14755 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
14757         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
14758         Problem reported by Marco Atzeri in
14759         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
14760         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
14761         Simply delegate to the system <sys/select.h> in this case too.
14762         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
14763         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
14764         be needed on Solaris either.
14765         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
14766         Simply delegate to the system <sys/time.h> in this case.
14768 2013-03-19  Karl Berry  <karl@gnu.org>
14770         * build-aux/gnupload: check for erroneous (with gnupload) use of
14771         ftp-upload.gnu.org, tweak help.
14773 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14775         copy-file, rpmatch: fix problems found by cppcheck
14776         Reported by Arno Onken in
14777         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
14778         * lib/rpmatch.c (try): Fix memory leak.
14779         * lib/copy-file.c: Include "ignore-value.h".
14780         (qcopy_file_preserving): Ignore chown value.
14781         * modules/copy-file (Depends-on): Add ignore-value.
14783 2013-01-27  Jim Meyering  <jim@meyering.net>
14785         prefix-gnulib-mk: give better diagnostics
14786         * build-aux/prefix-gnulib-mk: Don't just "die".
14787         Give better diagnostics upon failure.
14789 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
14791         putenv: port to Solaris 10
14792         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
14793         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
14794         is not what is wanted here.
14795         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
14796         declaration, not for its existence.
14798 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
14800         mktime: fix configure typo
14801         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
14803 2013-03-12  Eric Blake  <eblake@redhat.com>
14805         regex-tests: skip UTF-8 test on mingw
14806         * modules/regex-tests (Depends-on): Add localcharset.
14807         * tests/test-regex.c (main): Use it to skip test on mingw.
14809 2013-03-11  Eric Blake  <eblake@redhat.com>
14811         tests: make it easier to bypass alarm time in debugger
14812         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
14813         * tests/test-memmem.c (main): Likewise.
14814         * tests/test-passfd.c (main): Likewise.
14815         * tests/test-ptsname.c (main): Likewise.
14816         * tests/test-ptsname_r.c (main): Likewise.
14817         * tests/test-strcasestr.c (main): Likewise.
14818         * tests/test-strstr.c (main): Likewise.
14820         regex: port to mingw's recent addition of undeclared alarm
14821         * doc/posix-functions/alarm.texi (alarm): Document that alarm
14822         exists but still doesn't work in newer mingw.
14823         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
14824         not existence.  Ensure SIGALRM is not trapped.
14825         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
14826         * m4/regex.m4 (gl_REGEX): Likewise.
14827         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
14828         * tests/test-regex.c (main): Use correct probe for alarm.
14830         putenv: avoid compilation warning on mingw
14831         * lib/putenv.c (_unsetenv): Protect variable declaration.
14832         (putenv): Fix indentation.
14834 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
14836         unistd: don't prevent Tru64 Unix from using gnulib strtod.
14837         * lib/unistd.in.h: be careful not to include un-needed system
14838         stdlib.h from here, because that prevents gnulib stdlib.h from
14839         defining rpl_strtod correctly.
14841 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
14843         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
14844         changesets, but for the 'precision 0' test.
14845         * tests/test-vasprintf-posix.c (test_function): Don't insist on
14846         round-to-even, since POSIX says rounding is implementation-defined
14847         and OS X 10.8.2 rounds 1.51 to 1 here.
14849         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
14850         changeset.
14851         * tests/test-vasprintf-posix.c (test_function): Don't insist on
14852         round-to-even, since POSIX says rounding is implementation-defined
14853         and OS X 10.8.2 rounds 1.5 to 1 here.
14855 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
14857         vasnprintf-posix-tests: allow rounding 1.5 to 1
14858         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
14859         round-to-even, since POSIX says rounding is implementation-defined
14860         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
14861         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
14863         bootstrap: port to FreeBSD
14864         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
14865         that treat '--' differently.  Reported by Mats Erik Andersson in
14866         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
14868 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
14870         regex: rename remaining __attribute calls to __attribute__.
14871         2012-02-25 changed definition of __attribute, but left some uses
14872         unchanged, preventing compilation of regex module on most non-gcc
14873         environments.
14874         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
14875         (lookup_collation_sequence_value, build_range_exp)
14876         (build_collating_symbol): Set attributes with newly renamed
14877         __attribute__ decorator.
14878         * lib/regex_internal.c (re_string_peek_byte_case)
14879         (re_node_set_compare, re_node_set_contains): Likewise.
14880         * lib/regexec.c (acquire_init_state_context): Likewise.
14882 2013-03-06  Bruno Haible  <bruno@clisp.org>
14884         execute: Revert last change, but use a different condition.
14885         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
14886         on Windows.
14888 2013-03-05  Eric Blake  <eblake@redhat.com>
14890         execute: drop dead code
14891         * lib/execute.c (nonintr_close, nonintr_open): Delete.
14893 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
14895         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
14896         * m4/non-recursive-gnulib-prefix-hack.m4
14897         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
14898         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
14899         <http://bugs.gnu.org/10305#237>.
14901 2013-03-04  Eric Blake  <eblake@redhat.com>
14903         test-getsockopt: avoid compiler warning
14904         * tests/test-getsockopt.c (includes): Ensure close is declared.
14906 2013-03-02  Bruno Haible  <bruno@clisp.org>
14908         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
14909         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
14911 2013-03-02  Bruno Haible  <bruno@clisp.org>
14913         gettext: Update to version 0.18.2.
14914         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
14915         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
14916                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
14918 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14920         regex: merge patches from libc
14922         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
14923         * lib/regex_internal.h (__attribute__): Rename from __attribute.
14924         All uses changed.
14925         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
14926         (re_string_wchar_at, re_string_elem_size_at):
14927         Mark function as possibly unused.
14929         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
14930         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
14931         elements compare against the byte sequence of it, not its name.
14933 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
14935         putenv: port better to native Windows
14936         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
14937         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
14938         (_unsetenv): Use _putenv if available.
14939         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
14940         a bit less likely to cause damage.
14941         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
14942         Fix the wrong value with SetEnvironmentVariable.
14943         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
14944         code better.
14946 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
14948         regex: ignore old-style-definition warnings
14949         * lib/regex.c: Add pragma to ignore these warnings.
14950         Problem reported for GNU tar by Pavel Raiskup.
14952 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
14954         getcwd: support coreutils better
14955         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
14956         but this might not be correct in coreutils, which disables
14957         the raw decl checks.  Problem reported by Nagendra in
14958         <http://bugs.gnu.org/10305#192>.
14959         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
14960         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
14961         Test the getcwd function, not any macro, since getcwd.c wants the
14962         function.
14963         * m4/getcwd.m4 (gl_FUNC_GETCWD):
14964         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
14965         compile, as might happen if there's a macro but no function.
14967         strtod: support coreutils better
14968         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
14969         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
14970         disables the raw decl checks.  This assumes there is an underlying
14971         strtod, but that's a safe assumption these days.
14972         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
14974         mountlist: port to HP NonStop
14975         Reported by Joachim Schmitz in
14976         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
14977         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
14978         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
14980 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
14982         extern-inline: avoid compilation error with HP-UX cc
14983         Reported by Richard Lloyd in
14984         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
14985         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
14986         Suppress extern inline with HP-UX cc.  This should be safe,
14987         though it may hurt performance.  Perhaps someone with some HP-UX
14988         experience can come up with a higher-performance fix.
14990 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
14992         putenv: fix heap corruption with mixed putenv/_putenv
14993         Problem reported by Michael Goffioul in
14994         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
14995         * lib/putenv.c (putenv) [HAVE__PUTENV]:
14996         Rely on _putenv to allocate the new environment.
14997         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
14998         * modules/putenv (configure.ac): Use it.
15000 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
15002         unsetenv etc.: port to Solaris 11 + GNU Emacs
15003         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
15004         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
15005         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
15006         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
15007         idea but is too painful to fix right now), and without this gnulib
15008         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
15009         compiling unsetenv.c on Solaris 11.  Fix the problem for
15010         unsetenv.c, and fix other similar occurrences.
15012 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
15014         secure_getenv: fix C++ declaration typo
15015         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
15016         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
15017         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
15019 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15021         careadlinkat: stop exporting careadlinkatcwd
15022         Only Emacs used it directly, and Emacs no longer needs it.
15023         * NEWS: Document this simplification.
15024         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
15025         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
15026         for readlink.
15027         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
15028         Don't include stdlib.h; no longer needed.
15029         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
15030         * lib/relocwrapper.c: Adjust comment to match new dependencies.
15031         * modules/areadlink (Depends-on): Add readlink.
15032         (Maintainer): Add self.
15033         * modules/careadlinkat (Depends-on): Remove readlink.
15035         extensions: port better to HP-UX
15036         This is merged from git Autoconf.
15037         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
15038         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
15039         so that it's compatible with the value used when compiling.
15041         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
15042         Problem reported by Mats Erik Andersson in
15043         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
15044         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
15045         openpty function exists, not merely when we intend to replace it.
15046         This corrects the 2013-01-31 patch, which mistakenly defined
15047         HAVE_OPENPTY even on hosts that lacked it.
15049 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
15051         secure_getenv: fix include typo
15052         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
15054         secure_getenv: port better to FreeBSD and Solaris
15055         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
15056         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
15057         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
15058         This works better on BSDish platforms.
15059         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
15060         Test for issetugid if __secure_getenv is missing.
15062 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
15064         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
15065         Some of these changes are merged in from git Autoconf.
15066         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
15067         When deciding whether to define _XOPEN_SOURCE, inspect the
15068         preprocessor macro __hpux instead of the more-heavyweight
15069         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
15070         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
15071         as the key for __EXTENSIONS__.
15073         unistd: avoid namespace pollution on non-glibc systems
15074         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
15075         This avoids namespace pollution on non-glibc systems, by causing
15076         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
15077         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
15078         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
15080 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15082         tmpdir: use secure_getenv
15083         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
15084         Define to secure_getenv, not getenv.
15085         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
15086         as that's now secure_getenv's job.
15087         * modules/tmpdir (Depends-on): Add secure_getenv.
15089         tempname: use secure_getenv
15090         * lib/tempname.c (__secure_getenv) [!_LIBC]:
15091         Define to secure_getenv, not getenv.
15092         * modules/tempname (Depends-on):
15093         Add secure_getenv.
15095         secure_getenv: new module
15096         * MODULES.html.sh (Extra functions based on ANSI C 89):
15097         Add secure_getenv.
15098         * doc/glibc-functions/secure_getenv.texi: New file.
15099         * doc/gnulib.texi: Include it.
15100         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
15101         New files.
15102         * lib/stdlib.in.h (secure_getenv): New decl.
15103         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
15104         * modules/stdlib (stdlib.h):
15105         Add secure_getenv checks.
15107 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
15109         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
15110         Reported for OS X 10.8.2 by Assaf Gordon in
15111         <http://bugs.gnu.org/13516>.
15112         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
15113         !HAVE_OPENAT && !HAVE_FDOPENDIR.
15114         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
15115         so that they can be kept in sync more easily.  Avoid PATH_MAX
15116         test on the Hurd.  Sync from test-getcwd.c for errno tests after
15117         mkdir or chdir failure.
15118         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
15119         lib/getcwd.c.
15120         (test_abort_bug): Do not test for the deep directory bug unless we
15121         have openat support.  Avoid PATH_MAX test on the Hurd.
15123         regex-tests, regex: fix bug: memset undeclared
15124         * tests/test-regex.c: Don't include regex.h twice.  Include
15125         string.h, to declare memset.  Christensen's report also mentioned
15126         this issue.
15127         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
15128         test-regex.c, to avoid future problems like this.  Remove
15129         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
15130         twice.
15132         regex-tests: fix link errors on older Solaris
15133         These need to link with @LIBINTL@ to get libintl_gettext.
15134         Problem reported by Tom G. Christensen in
15135         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
15136         * modules/regex-tests (test_regex_LDADD): New macro.
15138 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
15140         regex-tests: new module
15141         * modules/regex-tests, tests/test-regex.c: New files.
15143         regex: fix off-by-one error in configure test
15144         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
15146 2013-01-31  Eric Blake  <eblake@redhat.com>
15148         regex: avoid infinite configure test
15149         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
15151 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
15153         openpty: fix bug where HAVE_OPENPTY wasn't defined
15154         See the thread starting at:
15155         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
15156         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
15157         openpty function exists, not merely when we intend to replace it.
15159 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15161         sys_time: port to Solaris 2.6
15162         There is a circularity problem on Solaris 2.6, where <time.h> includes
15163         <sys/time.h> for struct timespec.  The include nesting is gnulib
15164         <time.h>, system <time.h>, gnulib <sys/time.h>, system
15165         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
15166         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
15167         <sys/siginfo.h>; the last, innermost file needs struct
15168         timestruc_t, which is defined in <sys/time.h>, which has not been
15169         fully parsed.  Problem reported by Tom G. Christensen in
15170         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
15171         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
15172         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
15173         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
15174         uses split double-inclusion guards.
15176 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15178         regex: test for buffer overrun
15179         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
15180         for the just-fixed regex bug.
15182 2013-01-29  Andreas Schwab  <schwab@suse.de>
15184         regex: fix buffer overrun in regexp matcher [BZ #15078]
15185         * lib/regexec.c (extend_buffers): Add parameter min_len.
15186         (check_matching): Pass minimum needed length.
15187         (clean_state_log_if_needed): Likewise.
15188         (get_subexp): Likewise.
15190 2013-01-28  Pádraig Brady  <P@draigBrady.com>
15192         mountlist: don't consider "devtmpfs" as dummy
15193         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
15194         as there is storage associcated with it.
15196 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
15198         futimens-tests, utimens-tests: Depend on gettext.
15199         This works around a problem introduced in my 2013-01-12 patch,
15200         which added @LIBINTL@ to these modules.
15201         * modules/futimens-tests (Depends-on):
15202         * modules/utimens-tests (Depends-on): Add gettext.
15204 2013-01-26  Eric Blake  <eblake@redhat.com>
15206         test-getpeername: fix typo
15207         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
15209 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
15211         bootstrap: remove the need for a sorted .gitignore file
15212         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
15213         rename to insert_if_absent(), so that we don't need or generate
15214         a sorted .gitignore file.  We do require a .gitignore with no
15215         existing duplicate entries and enforce that.
15216         (sort_patterns): Remove this function as we now use the simpler
15217         technigue of inserting blacklist entries at the top of the file,
15218         assuming gnulib won't be inserting !whitelist entries.
15220 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15222         readlinkat: don't depend on gl_FUNC_OPENAT
15223         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
15224         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
15225         renameat.m4, symlinkat.m4; but one thing at a time.
15227         statat: new module, split out from fstatat
15228         GNU Emacs needs the POSIX-specified fstatat, but not the
15229         gnulib-specified statat and lstat.  Split the latter two into a
15230         new module 'statat'.
15231         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
15232         * lib/openat.h, lib/statat.c (STATAT_INLINE):
15233         Rename from FSTATAT_INLINE. All uses changed.
15234         * modules/fstatat (Files): Remove lib/statat.c.
15235         (gl_MODULE_INDICATOR([fstatat])): Remove.
15236         (lib_SOURCES): Remove.
15237         (Maintainer): Add self.
15238         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
15239         * tests/test-fstatat.c (BASE): Don't define if already defined.
15240         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
15242 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
15244         tests: don't assume fd 99 is closed
15245         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
15246         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
15247         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
15248         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
15249         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
15250         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
15251         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
15252         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
15253         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
15254         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
15255         * tests/test-fwrite.c, tests/test-getpeername.c:
15256         * tests/test-getsockname.c, tests/test-getsockopt.c:
15257         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
15258         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
15259         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
15260         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
15261         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
15262         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
15263         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
15264         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
15265         * tests/test-unlinkat.c, tests/test-unlockpt.c:
15266         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
15267         Close file descriptor 99, instead of assuming it's already closed.
15269 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15271         stpncpy: port to OS X 10.8
15272         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
15273         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
15275 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
15277         unistd: port to recent mingw
15278         * lib/unistd.in.h: Remove special invocation convention for mingw,
15279         which breaks for the latest mingw version.  See John W. Eaton in
15280         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
15282         largefile: port better to Mac OS X 10.5
15283         This patch is backported from Autoconf git.
15284         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
15285         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
15286         with ino_t size being different for configuration time versus
15287         build/run time.  Problem reported by PHO in
15288         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
15290 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
15292         doc: clarify -Werror
15293         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
15294         clarify that it's intended for developers, not for ordinary builds,
15295         and mention --enable-gcc-warnings as one possible use.
15297 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
15299         stdint: fix build with Android's Bionic fox x86
15300         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
15301         was already included as _SSIZE_T_DEFINED_ might also be defined
15302         in include/machine/_types.h, which is included by stdio.h
15304 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
15306         net_if-tests: port to Solaris 7 + GCC 3.4.6
15307         Problem reported by Tom G. Christensen in
15308         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
15309         * tests/test-net_if.c (ni): Move to next the code that uses it,
15310         so that it's declared only if needed.
15312 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
15314         net_if-tests: port to older Solaris
15315         Problem reported by Tom G. Christensen in
15316         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
15317         * modules/net_if-tests (NET_IF_LIB): New substitution.
15318         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
15319         (HAVE_IF_NAMEINDEX): New C macro.
15320         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
15322         system-quote-tests: port to older Solaris
15323         Problem reported by Tom G. Christensen in
15324         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
15325         * tests/test-system-quote-child.c (fopen, fread): Undef.
15327         c-xvasprintf etc.: fix link errors on older Solaris
15328         These need to link with @LIBINTL@ to get libintl_gettext.
15329         Problem reported by Tom G. Christensen in
15330         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
15331         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
15332         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
15333         * modules/futimens-tests (test_futimens_LDADD):
15334         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
15336 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
15338         locale: port to Solaris 2.6 and 7 + GNU gettext
15339         * lib/locale.in.h: Just include_next <locale.h> when
15340         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
15341         when combining the localename module with GNU gettext 0.18.2.
15342         Problem reported by Tom G. Christensen in
15343         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
15345 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
15347         stdlib: port to Solaris 2.6
15348         Also, the code worked on Solaris 7 through 9 only by accident.
15349         Problem reported by Tom G. Christensen in
15350         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
15351         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
15352         simply include the system stdlib.h.
15353         * lib/getopt.in.h (__need_system_stdlib_h):
15354         * lib/pthread.in.h (__need_system_stdlib_h):
15355         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
15356         Define when including <stdlib.h>, to avoid problems at least for
15357         the pthread case on Solaris 2.6 and 7.  These .h files can get by
15358         with the system stdlib.h.
15360 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
15362         doc: update main copyright year
15363         * doc/gnulib.texi: Update copyright date.
15365         doc: improve ISO 8601 discussion
15366         * doc/parse-datetime.texi (Combined date and time of day items):
15367         Specify more carefully what formats are supported and what is
15368         done with excess precision.
15370 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
15372         doc: avoid small caps
15373         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
15374         they're more trouble than they're worth.  Suggested by Karl Berry
15375         in <http://bugs.gnu.org/13360>.
15377         regex: conform to strict C
15378         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
15379         From Aharon Robbins.
15381         gnulib-tool: fix incompatibility with autopoint 0.18.2
15382         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
15383         Problem reported by Tom G. Christensen in
15384         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
15386 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
15388         fprintftime: bring back and reword fwrite comment
15389         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
15391         stdio: remove now-unnecessary stdio.c
15392         Since stdio.in.h no longer uses inline functions, we no longer
15393         need to compile the extern versions.
15394         * lib/stdio.c: Remove.
15395         * modules/stdio (Files): Remove lib/stdio.c.
15396         (lib_SOURCES): Remove.
15398         unicodeio: depend on stdio, not ignore-value
15399         * lib/unicodeio.c: Do not include ignore-value.h.
15400         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
15401         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
15403         fprintftime: depend on stdio, not ignore-value
15404         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
15405         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
15406         since the stdio module arranges to silence that warning now.
15407         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
15409 2012-10-04  Simon Josefsson  <simon@josefsson.org>
15411         stdint-tests: Fix expanded-before-required-warning.
15412         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
15414 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
15416         fwrite: silence __wur only for older glibc versions
15417         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
15418         This will help us remove this workaround some time in the far future.
15420 2013-01-03  Eric Blake  <eblake@redhat.com>
15422         fwrite: silence __wur without using inline
15423         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
15424         just gcc, and in a way that avoids inline issues.
15425         * modules/stdio (Depends-on): Drop extern-inline.
15427 2013-01-03  Jim Meyering  <jim@meyering.net>
15429         update-copyright: avoid copyright notice date corruption
15430         Given a sequence of copyright year numbers in which the final
15431         one was a two-digit number that happened to be a substring of
15432         a preceding four-digit year number, we would mistakenly update
15433         the substring (from two- to four-digit) rather than the two-digit
15434         number at the end, which, combined with the addition of the current
15435         4-digit year number would yield two 5-digit year numbers, e.g.,
15436         here, it would convert the first "99" to "1999, 2013" rather than
15437         the final one:
15438           1991, 99
15439           11999, 20131, 1999
15440         * build-aux/update-copyright: Tighten a regexp.
15441         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
15442         Reported by Joseph Myers in
15443         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
15445 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15447         regex: omit needless signed-pointer casts
15448         * lib/regcomp.c (build_charclass, build_charclass_op):
15449         Use char *, not unsigned char *, for class name and extra.
15450         The char values are always nonnegative so there's no need to
15451         insist on unsigned char * here, and using char * removes the need
15452         for casts.  Reported by Aharon Robbins in
15453         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
15455         regex: support Gawk, which never uses alloca
15456         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
15457         Do not include in this case.  Gawk doesn't supply a substitute
15458         alloca.h and doesn't need one.
15460         regex: port __libc_lock_define usage to C89
15461         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
15462         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
15463         does not conform to C89, as it has an empty macro argument.
15464         Reported by Aharon Robbins in
15465         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
15467 2013-01-01  Eric Blake  <eblake@redhat.com>
15469         maint: update all copyright year number ranges
15470         Run "make update-copyright".
15472         version-etc: bump copyright year reported in --version
15473         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
15475 2012-12-31  Eric Blake  <eblake@redhat.com>
15477         sigprocmask-tests: skip test if pid is unexpectedly large
15478         * tests/test-sigprocmask.c (main): Add range check.
15480         git-version-gen: avoid test -z portability glitch
15481         * build-aux/git-version-gen: Prefer portable test spelling, since
15482         git-version-gen is run on more than just developer machines.
15484 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
15486         git-version-gen: add --fallback option to use if git is not present
15487         * build-aux/git-version-gen: Add support for the new option --fallback,
15488         which comes into play when there is no $tarball_version_file and
15489         git is not working.
15490         (scriptversion): Update.
15492         maint.mk: handle missing git with more grace
15493         * top/maint.mk (no-submodule-changes, public-submodule-commit):
15494         Quietly proceed if git is not present.
15496 2012-12-31  Eric Blake  <eblake@redhat.com>
15498         dup2: work around cygwin bug
15499         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
15500         * lib/dup2.c (rpl_dup2): Work around it.
15501         * doc/posix-functions/dup2.texi (dup2): Document it.
15503 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
15505         regex: remove unnecessary dependency on localcharset.h
15506         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
15507         hasn't been needed for years.
15508         * modules/regex (Depends-on): Remove localcharset.
15510         regex: revert single-byte change
15511         * lib/regexec.c (check_node_accept_bytes): Revert previous change
15512         to this function.  This was alredy fixed in a different way, at
15513         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
15514         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
15515         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
15517         regex: simplify based on Gawk version
15518         * lib/regex_internal.c (re_dfa_add_node): Simplify.
15519         Reported by Aharon Robbins in
15520         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
15522 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
15524         regex: check that pattern char is single-byte
15525         Reported by Aharon Robbins in
15526         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
15527         * lib/regexec.c (check_node_accept_bytes):
15528         Return 0 if the pattern string has a multibyte character here.
15530         regex: implement rational ranges
15531         Reported by Aharon Robbins in
15532         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
15533         * lib/regcomp.c (build_range_exp) [!_LIBC]:
15534         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
15535         Implement rational ranges.
15537         regex: avoid redefining __wctype
15538         Reported by Aharon Robbins in
15539         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
15540         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
15541         #undef before defining.
15543         regex: port to hosts where malloc (0) == NULL
15544         Reported by Aharon Robbins in
15545         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
15546         * lib/regex_internal.c (re_node_set_alloc):
15547         Don't assume that malloc (0) yields nonnull.
15548         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
15549         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
15550         * modules/regex (Files): Add m4/eealloc.m4.
15552         regex: port to C89
15553         Reported by Aharon Robbins in
15554         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
15555         * lib/regcomp.c (init_word_char): Declaration before statement.
15557         regex: merge glibc changes
15558         Also, copy the license wording from glibc.  This simplifies
15559         merging changes.  gnulib-tool will change the wording to GPL as
15560         appropriate, when importing it to other packages.  The only
15561         glibc change made since the last merge, which needs merging, is:
15562         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
15563         * lib/regex_internal.h (gettext): Remove use of INTUSE.
15565         * users.txt: Add Emacs.
15567         doc: omit mention of version when not needed
15568         * doc/gnulib-intro.texi (Portability and Application Code):
15569         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
15570         Don't mention particular dates or versions when not necessary, so
15571         that the documentation won't go out of date so quickly.
15573         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
15575 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
15577         bootstrap: pass --force to autoreconf.
15578         * build-aux/bootstrap (AUTORECONFFLAGS): New.
15579         Add "--force" so that Automake's ylwrap and other such tools
15580         be updated at each bootstrap invocation.
15581         Use it.
15583 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
15585         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
15586         The earlier patch forgot to update one of the #if conditions, causing
15587         a problem on Debian testing i386 reported by Mats Erik Andersson
15588         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
15589         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
15590         (__argp_fmtstream_puts, argp_fmtstream_puts)
15591         (__argp_fmtstream_write, argp_fmtstream_write)
15592         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
15594         * doc/gnulib-readme.texi: Minor fixups.
15595         (Portability guidelines): Modernize URLs.  Remove some repetition.
15596         (Indent with spaces not TABs): Reword to avoid too-long lines.
15597         Remove some '@ifset standalone' stuff that isn't used.
15599         * doc/gnulib-readme.texi (Portability guidelines):
15600         ctype.h, not ctime.h.
15602         Correct name of POSIX.1-2001.
15603         * doc/posix-functions/fgetc.texi (fgetc):
15604         * doc/posix-functions/fgets.texi (fgets):
15605         * doc/posix-functions/fread.texi (fread):
15606         * doc/posix-functions/fscanf.texi (fscanf):
15607         * doc/posix-functions/getc.texi (getc):
15608         * doc/posix-functions/getchar.texi (getchar):
15609         * doc/posix-functions/scanf.texi (scanf):
15610         POSIX.1-2001, not POSIX-2001.
15612         doc: move README into manual
15613         * README: Move contents to new file doc/gnulib-readme.texi.
15614         Replace with a one-line summary.
15615         * doc/gnulib.texi (Brief Overview): New section,
15616         with old intro preface.  Include gnulib-readme.texi for contents.
15617         (Philosophy): Rename from "Introduction", since this
15618         section no longer introduces the rest.  Write a new preface.
15619         * doc/gnulib-readme.texi: New file, with the old contents of
15620         README texinfo-ized.  This way, the README info appears
15621         in the online and printed manual.
15623 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
15625         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
15626         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
15627         c_vasprintf() prototype.
15629 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
15631         c-vasprintf: Fix "empty declaration" warning reported by GCC.
15632         * lib/c-vasprintf.h: Remove stray semicolon.
15634 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
15636         gettext: avoid obsolete macro AM_PROG_MKDIR_P
15637         It is obsolete and is planned to be removed from Automake 1.14; see
15638         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
15639         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
15640         (installdirs-data, installdirs-data-yes):
15641         Use $(MKDIR_P), not $(mkdir_p).
15642         * m4/intl.m4 (AM_INTL_SUBDIR):
15643         * m4/po.m4 (AM_PO_SUBDIRS):
15644         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
15646 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
15648         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
15649         On this platform, we are not optimizing but we are using
15650         the substitute for extern inlines, so compile as if
15651         C99-style extern inline, or a substitute, is available.
15652         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
15653         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
15654         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
15655         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
15656         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
15657         Declare as ARGP_FS_EI, not as extern.
15658         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
15659         (__option_is_short, _option_is_end, __option_is_end)
15660         [!_LIBC && __USE_EXTERN_INLINES]:
15661         Declare as ARGP_EI, not as extern.
15663 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
15665         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
15666         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
15667         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
15668         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
15669         ...), as the latter is fatal with older Autoconfs.
15670         Problem reported and fix suggested by Eric Blake in thread starting at
15671         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
15673 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
15675         AC_PROG_MKDIR_P: don't workaround if not buggy
15676         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
15677         Define only for Autoconf versions before 2.62.
15678         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
15679         undocumented m4_PACKAGE_VERSION, for consistency with the
15680         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
15681         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
15682         was introduced in 2.62.
15684 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
15686         New 'c-*printf' modules for formatted output in C locale.
15688         New module 'c-vasnprintf'.
15689         * modules/c-vasnprintf: New file.
15690         * lib/c-vasnprintf.c: New file.
15691         * lib/c-vasnprintf.h: New file.
15693         New module 'c-snprintf'.
15694         * modules/c-snprintf: New file.
15695         * modules/c-snprintf-tests: New file.
15696         * lib/c-snprintf.c: New file.
15697         * lib/c-snprintf.h: New file.
15698         * tests/test-c-snprintf.c: New file.
15699         * tests/test-c-snprintf.sh: New file.
15701         New module 'c-vsnprintf'.
15702         * modules/c-vsnprintf: New file.
15703         * modules/c-vsnprintf-tests: New file.
15704         * lib/c-vsnprintf.c: New file.
15705         * lib/c-vsnprintf.h: New file.
15706         * tests/test-c-vsnprintf.c: New file.
15707         * tests/test-c-vsnprintf.sh: New file.
15709         New module 'c-vasprintf'.
15710         * modules/c-vasprintf: New file.
15711         * modules/c-vasprintf-tests: New file.
15712         * lib/c-asprintf.c: New file.
15713         * lib/c-vasprintf.c: New file.
15714         * lib/c-vasprintf.h: New file.
15715         * tests/test-c-vasprintf.c  +: New file.
15716         * tests/test-c-vasprintf.sh: New file.
15718         New module 'c-xvasprintf'.
15719         * modules/c-xvasprintf: New file.
15720         * modules/c-xvasprintf-tests: New file.
15721         * lib/c-xasprintf.c: New file.
15722         * lib/c-xvasprintf.c: New file.
15723         * lib/c-xvasprintf.h: New file.
15724         * tests/test-c-xvasprintf.c: New file.
15725         * tests/test-c-xvasprintf.sh: New file.
15727 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
15729         argp: better 'inline'
15730         Use extern-inline module to declare extern inline functions.
15731         This avoids some bogus warning diagnostics.  Problem discovered
15732         when modifying GNU tar to use the manywarnings module.
15733         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
15734         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
15735         Define based on extern-inline.
15736         * modules/argp (Depends-on): Add extern-inline.
15738 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
15740         filemode, sys_stat: Handle MPX files a la AIX.
15741         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
15742         * lib/sys_stat.in.h (S_ISMPX): New macro.
15743         * tests/test-sys_stat.c: Add tests for MPX files.
15745 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
15747         x-to-1: honor $PERL
15748         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
15749         a chance to use his preferred version of Perl.  This is typically
15750         required by Darwin users whose default /usr/bin/perl does not have all
15751         the libraries required by help2man, and who need to use their MacPorts
15752         installation of Perl instead.
15754 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
15756         gnu-web-doc-update: add all the new files, even in new directories
15757         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
15758         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
15759         Use it.
15760         (main): Don't use cvsutils to get the list of unknown files,
15761         just add all the existing files and directories.
15763 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
15765         gnu-web-doc-update: improve --help
15766         * build-aux/gnu-web-doc-update: Move comments into --help.
15768 2012-12-07  Eric Wong  <normalperson@yhbt.net>
15770         mountlist: recognize more "dummy" file systems
15771         * lib/mountlist.c (ME_DUMMY_0):
15772         Add these dummy FS names to the list:
15773         - "debugfs" virtual filesystem for kernel debugging
15774         - "devpts" PTY slave filesystem
15775         - "devtmpfs" device filesystem on top of tmpfs/ramfs
15776         - "fusectl" control filesystem for FUSE
15777         - "mqueue" enumerates POSIX message queues
15778         - "rpc_pipefs" kernel <-> userspace bridge for NFS
15779         - "sysfs" is for exporting kernel objects
15780         - "devfs" device filesystem for Linux 2.4 and FreeBSD
15782 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
15784         extern-inline: avoid incompatibility with Darwin Libc
15785         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
15786         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
15787         Problem reported by Akim Demaille in
15788         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
15790 2012-12-11  Simon Josefsson  <simon@josefsson.org>
15792         gnupload: Work with GnuPG using gpg-agent (for smartcards).
15793         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
15794         let it handle password prompting.
15796 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
15798         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
15799         * lib/canonicalize.c (canonicalize_filename_mode):
15800         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
15801         fetching the current directory.  Don't overrun the beginning of
15802         rpath if there's no slashes after the MS-Windows drive letter.
15804 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
15806         maint.mk: avoid extra forks
15807         * top/maint.mk (_cfg_mk): The GNU make manual documents that
15808         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
15809         So use that instead of "$(shell test -f FILE && echo FILE)".
15811 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
15813         vasnprintf: fix ASCII_ONLY typo
15814         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
15815         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
15816         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
15817         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
15818         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
15820 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
15822         list, oset, xlist, xoset: fix extern inline issue with C99
15823         This was introduced by my recent changes for 'inline'.
15824         Problem reported for gettext by Daiki Ueno in
15825         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
15826         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
15827         (gl_list_nx_create, gl_list_size, gl_list_node_value)
15828         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
15829         (gl_list_previous_node, gl_list_get_at)
15830         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
15831         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
15832         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
15833         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
15834         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
15835         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
15836         (gl_list_iterator_free, gl_sortedlist_search)
15837         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
15838         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
15839         (gl_sortedlist_remove):
15840         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
15841         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
15842         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
15843         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
15844         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
15845         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
15846         (gl_list_add_at, gl_sortedlist_add):
15847         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
15848         Wrap these extern decls inside "#if 0", because they are implemented
15849         as inline functions, and extern inline is not what's wanted here.
15850         It would simplify these .h files to remove the extern decls entirely,
15851         although a downside would be less-clear separation between
15852         specification and implementation.
15854 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
15856         sys_stat: no 'static inline'
15857         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
15858         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
15860         extern-inline: no 'static inline'
15861         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
15862         Do not require AC_C_INLINE.
15863         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
15864         'static inline', for older compilers.
15866         snippet/warn-on-use: no 'static inline'
15867         * build-aux/snippet/warn-on-use.h:
15868         Remove unnecessary 'inline' in comment.
15870         rbtree-list, rbtreehash-list: no 'static inline'
15871         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
15872         * lib/gl_anytree_list2.h (node_at):
15873         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
15874         (gl_oset_first, add_nodes_to_buckets):
15875         Now static, not static inline.
15877         regex: no 'static inline'
15878         * lib/regex_internal.c (calc_state_hash):
15879         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
15880         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
15881         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
15882         Now static, not static inline.
15883         (inline) [__GNUC__ < 3 && _LIBC]:
15884         Remove macro; no longer needed.
15886         xvasprintf: no 'static inline'
15887         * lib/xvasprintf.c (xstrcat):
15888         Now static, not static inline.
15889         * m4/xvasprintf.m4 (gl_XVASPRINTF):
15890         Do not require AC_C_INLINE.
15892         parse-datetime, parse-duration: no 'static inline'
15893         * lib/parse-datetime.y (to_uchar):
15894         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
15895         (scale_n_add):
15896         Now static, not static inline.
15897         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
15898         * modules/parse-duration (configure.ac):
15899         Do not require AC_C_INLINE.
15901         getaddrinfo: no 'static inline'
15902         * lib/getaddrinfo.c (validate_family):
15903         Now static, not static inline.
15904         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
15905         Do not require AC_C_INLINE.
15907         ftruncate, fts, lstat, openat, raise: no 'static inline'
15908         * lib/ftruncate.c (chsize_nothrow):
15909         * lib/fts.c (opendirat, diropen):
15910         * lib/lstat.c (orig_lstat):
15911         * lib/openat.c (orig_openat):
15912         * lib/raise.c (raise_nothrow):
15913         Now static, not static inline.
15914         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
15915         * m4/fts.m4 (gl_FUNC_FTS_CORE):
15916         * m4/lstat.m4 (gl_PREREQ_LSTAT):
15917         * m4/openat.m4 (gl_PREREQ_OPENAT):
15918         * m4/raise.m4 (gl_PREREQ_RAISE):
15919         Do not require AC_C_INLINE.
15921         fflush, stat: no 'static inline'
15922         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
15923         (clear_ungetc_buffer, disable_seek_optimization)
15924         (restore_seek_optimization, update_fpos_cache):
15925         * lib/stat.c (orig_stat):
15926         Now static, not static inline.
15927         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
15928         (update_fpos_cache):
15929         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
15930         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
15931         * m4/stat.m4 (gl_PREREQ_STAT):
15932         Do not require AC_C_INLINE.
15934         error, filevercmp: no 'static inline'
15935         * lib/error.c (is_open, flush_stdout):
15936         * lib/filevercmp.c (order):
15937         Now static, not static inline.
15938         * m4/error.m4 (gl_PREREQ_ERROR):
15939         * modules/filevercmp (configure.ac):
15940         Do not require AC_C_INLINE.
15942         dup, execute, fatal-signal, etc.: no 'static inline'
15943         * lib/dup.c (dup_nothrow):
15944         * lib/execute.c (nonintr_close, nonintr_open):
15945         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
15946         * lib/fopen.c (orig_fopen):
15947         * lib/freadseek.c (freadptrinc):
15948         * lib/freopen.c (orig_freopen):
15949         * lib/fstat.c (orig_fstat, fstat_nothrow):
15950         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
15951         (get_rusage_as_via_iterator):
15952         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
15953         * lib/getdtablesize.c (_setmaxstdio_nothrow):
15954         * lib/isatty.c (_isatty_nothrow):
15955         * lib/open.c (orig_open):
15956         * lib/read.c (read_nothrow):
15957         * lib/sigprocmask.c (signal_nothrow):
15958         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
15959         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
15960         * lib/wait-process.c (unregister_slave_subprocess):
15961         * lib/write.c (write_nothrow):
15962         Now static, not static inline.
15963         * lib/spawn-pipe.c (nonintr_open): Define only if
15964         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
15965         * m4/dup.m4 (gl_PREREQ_DUP):
15966         * m4/execute.m4 (gl_EXECUTE):
15967         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
15968         * m4/fopen.m4 (gl_PREREQ_FOPEN):
15969         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
15970         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
15971         * m4/fstat.m4 (gl_PREREQ_FSTAT):
15972         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
15973         * m4/isatty.m4 (gl_PREREQ_ISATTY):
15974         * m4/open.m4 (gl_PREREQ_OPEN):
15975         * m4/read.m4 (gl_PREREQ_READ):
15976         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
15977         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
15978         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
15979         * m4/wait-process.m4 (gl_WAIT_PROCESS):
15980         * m4/write.m4 (gl_PREREQ_WRITE):
15981         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
15982         Do not require AC_C_INLINE.
15984         c-strtod, memcoll, readutmp: no 'static inline'
15985         * lib/c-strtod.c (c_locale):
15986         * lib/memcoll.c (strcoll_loop):
15987         * lib/readutmp.c (desirable_utmp_entry):
15988         Now static, not static inline.
15989         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
15990         * m4/memcoll.m4 (gl_MEMCOLL):
15991         * m4/readutmp.m4 (gl_READUTMP):
15992         Do not require AC_C_INLINE.
15994         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
15995         * lib/arctwo.c (to_uchar):
15996         * lib/md4.c (set_uint32):
15997         * lib/md5.c (set_uint32):
15998         * lib/sha1.c (set_uint32):
15999         * lib/sha256.c (set_uint32):
16000         * lib/sha512.c (set_uint64):
16001         Now static, not static inline.  This is a bit simpler, and doesn't
16002         affect performance with GCC and default optimization.
16003         * m4/arctwo.m4 (gl_ARCTWO):
16004         * m4/md4.m4 (gl_MD4):
16005         * m4/md5.m4 (gl_MD5):
16006         * m4/sha1.m4 (gl_SHA1):
16007         * m4/sha256.m4 (gl_SHA256):
16008         * m4/sha512.m4 (gl_SHA512):
16009         Do not require AC_C_INLINE.
16011         cond, lock, thread: better 'inline'
16012         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
16013         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
16014         New macros.  Use them instead of static inline, for header functions.
16015         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
16016         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
16017         * lib/glthread/lock.c (gl_waitqueue_init)
16018         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
16019         * lib/glthread/thread.c (get_current_thread_handle):
16020         Change 'static inline' to 'inline'.
16021         * lib/glthread/cond.h, lib/glthread/thread.h:
16022         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16023         * m4/cond.m4 (gl_COND):
16024         * m4/lock.m4 (gl_PREREQ_LOCK):
16025         * m4/thread.m4 (gl_THREAD):
16026         Do not require AC_C_INLINE.
16027         * modules/cond, modules/thread (Depends-on): Add extern-inline.
16029         chdir-long, cycle-check, savewd: better 'inline'
16030         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
16031         (find_non_slash):
16032         * lib/cycle-check.c (is_zero_or_power_of_two):
16033         * lib/savewd.c (savewd_delegating):
16034         Change 'static inline' to 'inline'.
16035         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
16036         Replace all remaining uses of 'static inline' with it.
16037         * lib/savewd.h:
16038         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16039         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
16040         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
16041         * m4/savewd.m4 (gl_SAVEWD):
16042         Do not require AC_C_INLINE.
16043         * modules/savewd (Depends-on): Add extern-inline.
16045         base32, base64: no need for 'inline'
16046         * lib/base32.c (to_uchar, get_8, decode_8):
16047         * lib/base64.c (to_uchar, get_4, decode_4):
16048         Change 'static inline' to 'inline'.
16049         * m4/base32.m4 (gl_PREREQ_BASE32):
16050         * m4/base64.m4 (gl_PREREQ_BASE64):
16051         Do not require AC_C_INLINE.
16053         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
16054         * lib/gl_array_oset.c (gl_array_nx_add_at):
16055         (gl_array_remove_at):
16056         * lib/gl_linkedhash_list.c (hash_resize_after_add)
16057         (add_to_bucket, remove_from_bucket):
16058         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
16059         Change 'static inline' to 'static', as it's simpler to omit
16060         'inline' unless there's a significant performance advantage.
16062         list, oset, xlist, xoset, xsublist: simplify via extern inline
16063         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
16064         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
16065         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
16066         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
16067         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
16068         New macro.  Replace all uses of 'static inline' with it.
16069         [HAVE_INLINE]: Implement functions as *_INLINE functions,
16070         instead of as macros FOO that are defined to static inline
16071         functions FOO_inline.
16072         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
16073         * lib/gl_xsublist.c:
16074         Reimplement from scratch, by defining the corresponding *_INLINE
16075         macro and including the corresponding .h file.  This is simpler.
16076         * modules/list, modules/oset, modules/xlist, modules/xoset:
16077         (Files): Remove m4/gl_list.m4.
16078         (configure.ac): Remove gl_LIST.
16079         * m4/gl_list.m4: Remove.
16080         * modules/list, modules/oset, modules/xlist, modules/xoset:
16081         * modules/xsublist:
16082         (Depends-on): Depend on extern-inline, not inline.
16084         xalloc: better 'inline'
16085         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
16086         New macro.  Replace all uses of 'static inline' with it.
16087         (static_inline): Remove.
16088         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
16089         Let 'extern inline' do the work automatically, instead of doing
16090         it by hand.
16091         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
16092         Remove.  All uses removed.
16093         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
16095         gethrxtime: better 'inline'
16096         * lib/xtime.c: New file.
16097         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
16098         * lib/xtime.h (XTIME_INCLUDE):
16099         New macros.  Replace all uses of 'static inline' with them.
16100         * lib/gethrxtime.c (gethrxtime): Define only if
16101         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
16102         this source file is now always compiled, because of the extern inline.
16103         * lib/gethrxtime.h, lib/xtime.h:
16104         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16105         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
16106         if gethrtime works, as they're not needed in that case.
16107         (gl_XTIME): Do not require AC_C_INLINE.
16108         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
16109         compiled now.  Move the check into gl_GETHRXTIME.
16110         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
16111         (Depends-on): Add extern-inline.
16112         (configure.ac): gethrxtime is always compiled now.
16113         (lib_SOURCES): Add gethrxtime.c.
16115         wctype-h: better 'inline'
16116         * lib/wctype-h.c: New file.
16117         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
16118         New macro.  Replace all uses of 'static inline' with it.
16119         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16120         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
16121         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
16122         (Depends-on): Add extern-inline.
16124         unistd: better 'inline'
16125         * lib/unistd.c: New file.
16126         * lib/unistd.in.h (_GL_UNISTD_INLINE):
16127         New macro.  Replace all uses of 'static inline' with it.
16128         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16129         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
16130         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
16131         (Depends-on): Add extern-inline.
16133         sys_socket: better 'inline'
16134         * lib/sys_socket.c: New file.
16135         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
16136         New macro.  Replace all uses of 'static inline' with it.
16137         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16138         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
16139         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
16140         (Depends-on): Add extern-inline.
16142         stdio: better 'inline'
16143         * lib/stdio.c: New file.
16144         * lib/stdio.in.h (_GL_STDIO_INLINE):
16145         New macro.  Replace all uses of 'static inline' with it.
16146         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16147         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
16148         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
16149         (Depends-on): Add extern-inline.
16151         sigaction: better 'inline'
16152         * lib/sig-handler.c: New file.
16153         * lib/sig-handler.h (SIG_HANDLER_INLINE):
16154         New macro.  Replace all uses of 'static inline' with it.
16155         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16156         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
16157         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
16158         (Depends-on): Add extern-inline.
16160         selinux-h: better 'inline'
16161         * lib/se-context.c, lib/se-selinux.c: New files.
16162         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
16163         * lib/se-context.in.h (SE_CONTEXT_INLINE):
16164         New macro.  Replace all uses of 'static inline' with it.
16165         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16166         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
16167         New macro.  Replace all uses of 'static inline' with it.
16168         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16169         * modules/selinux-h (Files, lib_SOURCES):
16170         Add lib/se-context.c, lib/se-selinux.c.
16171         (Depends-on): Add extern-inline.
16172         (configure.ac): Do not require AC_C_INLINE.
16174         pthread: better 'inline'
16175         * lib/pthread.c: New file.
16176         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
16177         New macro.  Replace all uses of 'static inline' with it.
16178         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16179         * m4/pthread.m4 (gl_PTHREAD_CHECK):
16180         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
16181         * modules/pthread (Files): Add lib/pthread.c.
16182         (Depends-on): Add extern-inline.
16184         math: better 'inline'
16185         * lib/math.c: New file.
16186         * lib/math.in.h (_GL_MATH_INLINE):
16187         New macro.  Replace all uses of 'static inline' with it.
16188         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16189         * m4/math_h.m4 (gl_MATH_H):
16190         Do not require AC_C_INLINE.
16191         * modules/math (Files, lib_SOURCES):
16192         Add lib/math.c.
16193         (Depends-on): Add extern-inline.
16195         count-one-bits: better 'inline'
16196         * lib/count-one-bits.c: New file.
16197         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
16198         New macro.  Replace all uses of 'static inline' with it.
16199         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16200         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
16201         Do not require AC_C_INLINE.
16202         * modules/count-one-bits (Files, lib_SOURCES):
16203         Add lib/count-one-bits.c.
16204         (Depends-on): Add extern-inline.
16206         count-leading-zeros: better 'inline'
16207         * lib/count-leading-zeros.c: New file.
16208         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
16209         New macro.  Replace all uses of 'static inline' with it.
16210         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16211         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
16212         Do not require AC_C_INLINE.
16213         * modules/count-leading-zeros (Files, lib_SOURCES):
16214         Add lib/count-leading-zeros.c.
16215         (Depends-on): Add extern-inline.
16217         bitrotate: better 'inline'
16218         * lib/bitrotate.c: New file.
16219         * lib/bitrotate.h (BITROTATE_INLINE):
16220         New macros.
16221         Replace all uses of 'static inline' with them.
16222         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16223         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
16224         (Depends-on): Add extern-inline.
16225         (configure.ac): Do not require AC_C_INLINE.
16227 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
16229         maint.mk: avoid gratuitous failure
16230         Reported by Stefano Lattarini in
16231         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
16232         * top/maint.mk (public-submodule-commit): Quote more safely.
16234 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
16236         canonicalize, canonicalize-lgpl: support MS-Windows file names
16237         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
16238         for test cases, which it'd be nice to add at some point.
16239         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
16240         * lib/canonicalize.c (canonicalize_filename_mode):
16241         * lib/canonicalize-lgpl.c (__realpath):
16242         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
16243         slash is at the beginning of the file name.  Use ISSLASH, instead
16244         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
16245         the first character with '/'.  Test for
16246         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
16247         with a drive letter.
16248         * lib/canonicalize.c (SLASHES): New macro.
16249         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
16251 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
16253         fts: introduce FTS_VERBATIM
16254         * lib/fts_.h (FTS_VERBATIM): New bit flag.
16255         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
16256         * lib/fts.c (fts_open): Honor it.
16258 2012-11-09  Pádraig Brady  <P@draigBrady.com>
16260         getlogin-tests: allow errno == ENXIO
16261         * tests/test-getlogin.c (main): Skip tests if getlogin fails
16262         with errno == ENXIO (No controlling tty).
16263         getlogin_r-tests: Likewise. Also allow errno == ENOENT
16264         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
16265         with errno == ENOENT.  This was reported to happen in various
16266         situations on GNU/Linux.
16268 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
16270         getlogin-tests: allow errno == ENOENT
16271         * tests/test-getlogin.c (main): Skip tests if getlogin fails
16272         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
16273         when running a test in an Emacs shell buffer.
16275 2012-11-08  Jim Meyering  <jim@meyering.net>
16277         tests/nap.h: avoid warning about unused variable
16278         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
16280         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
16281         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
16282         white space before each of the special-cased file names, to avoid
16283         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
16284         in http://bugs.gnu.org/12830.
16286 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
16288         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
16289         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
16290         fails with errno == EBADF when fd is opened with O_PATH.
16291         Reported by Jim Meyering in
16292         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
16293         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
16294         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
16296 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
16298         test-utimens: speed up by taking shorter naps
16299         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
16300         New functions.
16301         (nap): Use them, to do a better job of guessing the delay.
16302         On Fedora 17 with ext4 atop md atop hard disks, this made
16303         test-utimens run 10x faster, because the test napped for
16304         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
16305         <http://bugs.gnu.org/12820#11>.
16307 2012-11-07  Jim Meyering  <jim@meyering.net>
16309         mountlist.c: fix a compilation failure
16310         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
16311         I introduced while transforming commit v0.0-7683-g613bcb6
16313 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
16315         errno: port to LynxOS 178 2.2.2
16316         Problem reported by Joel Brobecker in
16317         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
16318         * doc/posix-headers/errno.texi (errno.h): Document this.
16319         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
16320         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
16321         Supply a string for EILSEQ.
16322         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
16324 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
16326         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
16327         Linux kernel 2.6.39 introduced O_PATH (see
16328         <http://lwn.net/Articles/433854/>) and this is a better fallback
16329         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
16330         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
16331         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
16332         * lib/fcntl.in.h (O_ACCMODE):
16333         * tests/test-fcntl-h.c (main):
16334         Do not reject O_ACCMODE merely because it has more than the
16335         minimal number of bits, as POSIX allows extensions here.
16337 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
16339         mountlist: do not classify a bind-mounted dir entry as "dummy"
16340         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
16341         the "none"-testing clause.
16342         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
16343         exception for bind-mounted directories.
16345 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
16347         quote: provide a means to escape strings with nul characters
16348         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
16349         (quote, quote_n): Rename formal arguments for consistency with
16350         quotearg.
16352 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
16354         test-raise: don't assume 199 is an invalid signal
16355         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
16357         sh-quote-tests: port to Solaris 9
16358         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
16359         Problem reported by Dagobert Michelsen in
16360         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
16362 2012-10-28  Jim Meyering  <jim@meyering.net>
16364         maint.mk: rename a new configurable variable
16365         * top/maint.mk (_gl_translatable_string_re): Rename from
16366         translation-markers: _gl_ prefix to insulate from user Makefile code,
16367         and the _re suffix to inform that it's a regular expression.
16369 2012-10-26  Eric Blake  <eblake@redhat.com>
16371         maint.mk: let packages tweak sc_po_check pattern
16372         * top/maint.mk (sc_po_check): Add translation-markers, to allow
16373         finding files with other translation markers.
16375 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
16377         euidaccess: speed up 'configure' on GNU hosts
16378         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
16379         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
16380         it's needed only in this case.  Use AC_CHECK_DECLS, not
16381         AC_CHECK_DECLS_ONCE.
16382         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
16383         or AC_REQUIRE for AC_FUNC_GETGROUPS.
16385         * lib/regexec.c (re_search_internal): Fix grammar in comment.
16387 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
16389         fchmodat, fchownat, fstatat: port to non-inlining compilers
16390         Problem reported for FreeBSD 9 by Jim Meyering in
16391         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
16392         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
16393         New files, which define FCHMODAT_INLINE etc.
16394         * lib/fchmodat.c (FCHMODAT_INLINE):
16395         * lib/fchownat.c (FCHOWNAT_INLINE):
16396         * lib/fstatat.c (FSTATAT_INLINE):
16397         Remove, as chmodat.c etc. now do this.
16398         * modules/fchmodat (Files): Add lib/chmodat.c.
16399         * modules/fchownat (Files): Add lib/chownat.c.
16400         * modules/fstatat (Files): Add lib/statat.c.
16402 2012-10-15  Jim Meyering  <jim@meyering.net>
16404         fchmodat.c, fchownat.c: compile-impeding typos
16405         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
16406         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
16407         Introduced in commit v0.0-7636-gd202279.
16409 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
16411         fcntl-h: support GNU flags like O_IGNORE_CTTY
16412         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
16413         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
16414         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
16415         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
16416         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
16417         Define to 0 if not already defined.
16418         * tests/test-fcntl-h.c: Test these new flags.
16420 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
16422         faccessat, etc.: support AT_FDCWD-only use
16423         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
16424         this function only if its first argument is AT_FDCWD.
16425         Emacs wants faccessat for AT_EACCESS but not for any first-arg
16426         values other than AT_FDCWD, so it doesn't want all the openat
16427         machinery with fchdir etc.
16428         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
16429         * modules/fstatat, modules/mkdirat, modules/openat (Files):
16430         * modules/unlinkat (Files):
16431         Remove lib/openat-priv.h, as at-internal supplies this file.
16432         Removing this file here allows us to support programs like Emacs
16433         that avoid at-internal.
16435         faccessat: speed up 'configure' on mainstream hosts
16436         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
16437         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
16438         since it's only on unusual platforms that we need to check for
16439         'access', and it's better not to slow 'configure' down on all
16440         platforms.
16442         faccessat: port to Solaris 10
16443         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
16444         Needed on Solaris 10, which doesn't have AT_EACCESS,
16445         so we need the Gnulib fcntl.h, which defines it.
16447 2012-10-14  Pádraig Brady  <P@draigBrady.com>
16448         canonicalize: fix C89 compilation
16449         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
16450         declarations so C89 is supported.  Also remove the comment
16451         referencing memorty allocation as the suggested feature could
16452         not be implemented as suggested.
16453         Reported by Michael Goffioul.
16455 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
16457         group-member: omit unnecessary dependencies
16458         This is for Emacs, which has its own allocator and where we
16459         don't want to use xalloc.
16460         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
16461         since we no longer use xmalloc.  Do not include stdbool.h, since
16462         the changes below happen to remove the only use of bool.
16463         (GROUPBUF_SIZE): New constant.
16464         (struct group_info): Remove n_groups member.  Add groupbuf member.
16465         This lets us get the groups without using malloc, usually.
16466         (free_group_info, get_group_info): Adjust to this.
16467         (get_group_info): Return the number of groups found, or -1 on error.
16468         Use plain malloc not xmalloc, and treat its failure as if there
16469         are no groups, as the user already loses in case of error.
16470         (group_member): Simplify, based on changes to get_group_info.
16471         * modules/group-member (Depends-on): Remove dependencies on
16472         xalloc and stdbool.  Add dependency on xalloc-oversized.
16474 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
16476         gethrxtime: port to C++
16477         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
16479 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
16481         ptsname: fix macro-name typo
16482         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
16484 2012-10-03  Simon Josefsson  <simon@josefsson.org>
16486         inttostr: Relax license.
16487         * modules/inttostr (License): Change from LGPL to LGPLv2+.
16489 2012-10-03  Eric Blake  <eblake@redhat.com>
16491         ptsname_r: support ptys returned by FreeBSD posix_openpt
16492         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
16493         lives in /dev/pts/.
16495 2012-10-02  Eric Blake  <eblake@redhat.com>
16497         pselect: reject invalid file descriptors
16498         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
16499         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
16500         * modules/pselect (Depends-on): Add dup2.
16501         * doc/posix-functions/pselect.texi (pselect): Document this.
16503         select: reject invalid file descriptors
16504         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
16505         * lib/select.c (rpl_select) [!win32]: Work around it.
16506         * modules/select (Depends-on): Add dup2.
16507         * doc/posix-functions/select.texi (select): Document this.
16509         select: enhance test
16510         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
16511         New functions.
16512         (test_function): Enhance test.
16513         (do_select_bad_fd): Avoid any stale errno values.
16515         ptsname: reject invalid file descriptors
16516         http://www.austingroupbugs.net/view.php?id=503
16517         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
16518         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
16519         * modules/stdlib (Makefile.am): Replace witness.
16520         * lib/stdlib.in.h (ptsname): Allow for replacement.
16521         * modules/ptsname (configure.ac): Trigger replacement.
16522         * doc/posix-functions/ptsname.texi (ptsname): Document this.
16524 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
16526         hash-pjw-bare: new module
16527         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
16528         * lib/hash-pjw-bare.h: Likewise.
16529         * modules/hash-pjw-bare: New file.
16530         * MODULES.html.sh (Misc): Add it.
16532 2012-10-02  Eric Blake  <eblake@redhat.com>
16534         manywarnings: cater to more gcc infelicities
16535         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
16536         -Wuninitialized without -O.
16538 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
16540         select, poll tests: Make setsockopt invocation effective.
16541         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
16542         the bind() call.
16543         * tests/test-select.h (open_server_socket): Likewise.
16545 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
16547         sockets, sys_stat: restore AC_C_INLINE
16548         This undoes the 2012-09-22 patch.
16549         * m4/sockets.m4 (gl_SOCKETS):
16550         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
16551         Restore AC_C_INLINE, since MSVC requires __inline or _inline
16552         and does not support plain 'inline'.  Reported by Bruno Haible in
16553         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
16555 2012-09-30  Bruno Haible  <bruno@clisp.org>
16557         localeconv tests: Avoid test failure on OpenIndiana.
16558         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
16559         skip the 'grouping' and 'mon_grouping' tests.
16560         Reported by Jim Meyering.
16562 2012-09-30  Bruno Haible  <bruno@clisp.org>
16564         havelib: Follow libtool developments.
16565         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
16566         Suggested by Simon Josefsson.
16568 2012-09-29  Jim Meyering  <meyering@redhat.com>
16570         fstatat.c: fix a compile-impeding typo
16571         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
16572         Introduced in commit v0.0-7636-gd202279.
16573         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
16575 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
16577         extern-inline: provide a -Wundef safe config.h
16578         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
16579         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
16580         to produce a -Wundef warning free config.h.
16582 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
16584         hash-pjw: relax license to LGPLv2+
16585         * modules/hash-pjw (License): Relax, with consent of author.
16587 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
16589         maint.mk: fix strict vs. lazy variable issues with RELEASE
16590         * top/maint.mk (_equal): New function.
16591         (member_check): Strip the result to avoid spurious spaces.
16592         (url_dir_list): Do not use ifeq, which is strict, as it will
16593         require RELEASE_TYPE to be defined.
16594         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
16595         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
16596         (announcement_Cc_alpha,announcement_mail_headers_alpha)
16597         (announcement_Cc_beta,announcement_mail_headers_beta)
16598         (announcement_Cc_stable,announcement_mail_headers_stable): these.
16599         (release): Do not depend on $(release-type), as it forces its
16600         evaluation.  Bounce to it.
16602 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
16604         maint.mk: formatting changes
16605         * top/maint.mk: Indent bodies of if's.
16607 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
16609         maint.mk: factor the validation of RELEASE_TYPE
16610         With help from Jim Meyering.
16611         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
16612         * top/maint.mk (_empty, _sp): Move their definition earlier.
16613         (member-check, release-type): New.
16614         Use the latter instead of $(RELEASE_TYPE).
16615         Remove now useless local checks.
16617 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
16619         maint.mk: provide "make upload" to ease uploading
16620         See
16621         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
16622         Do not depend simply on the current $(VERSION), as there may have been
16623         new commits since the tarball generation.  Rather, rely on $(RELEASE),
16624         as "make release-commit" already does.
16626         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
16627         "make TYPE".
16629         * top/maint.mk (upload_command, upload, release): New.
16630         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
16631         (VERSION): first word of $(RELEASE) is always right.
16632         (emit_upload_commands): Adjust.
16633         * top/README-release: Update.
16635 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
16637         maint.mk: silent rules
16638         With help from Stefano Lattarini.
16639         * top/maint.mk (writable-files): Use $(AM_V_GEN).
16640         (announcement): Use $(AM_V_at).
16642 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
16644         localename: port gl_locale_name_thread_unsafe to FreeBSD
16645         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
16646         and use the simpler FreeBSD implementation on Mac OS X as well.
16647         Original idea suggested by Ed Maste in
16648         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
16650 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16652         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
16653         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
16654         * lib/mbuiter.c, lib/xsize.c: New files.
16655         * lib/binary-io.h (BINARY_IO_INLINE):
16656         * lib/eealloc.h (EEALLOC_INLINE):
16657         * lib/mbfile.h (MBFILE_INLINE):
16658         * lib/mbiter.h (MBITER_INLINE):
16659         * lib/mbuiter.h (MBUITER_INLINE):
16660         * lib/xsize.h (XSIZE_INLINE):
16661         New macros.
16662         Replace all uses of 'static inline' with them.
16663         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16664         * m4/eealloc.m4 (gl_EEALLOC):
16665         * m4/mbfile.m4 (gl_MBFILE):
16666         * m4/mbiter.m4 (gl_MBITER):
16667         * m4/xsize.m4 (gl_XSIZE):
16668         Do not require AC_C_INLINE.
16669         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
16670         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
16671         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
16672         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
16673         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
16674         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
16675         * modules/binary-io, modules/eealloc, modules/mbfile:
16676         * modules/mbiter, modules/mbuiter:
16677         (Depends-on): Add extern-inline.
16679         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
16680         * lib/pipe-filter-aux.c: New file.
16681         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
16682         Replace all uses of 'static inline' with it.
16683         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16684         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
16685         (filter_retcode): No real need for inline here.
16686         * modules/pipe-filter-gi, modules/pipe-filter-ii:
16687         (Files): Add lib/pipe-filter-aux.c.
16688         (Depends-on): Add extern-inline.
16689         (configure.ac): Do not require AC_C_INLINE.
16690         (lib_SOURCES): Add pipe-filter-aux.c.
16692         fdutimensat: omit unnecessary AC_C_INLINE
16693         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
16695         fchmodat, fchownat, fstatat: use extern-inline
16696         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
16697         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
16698         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
16699         New macros.
16700         * lib/openat.h:
16701         Replace all uses of 'static inline' with them.
16702         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16703         * modules/fchmodat, modules/fchownat, modules/fstatat:
16704         * modules/openat-h:
16705         (Depends-on):
16706         Add extern-inline.
16707         (configure.ac): Remove AC_C_INLINE.
16709         acl, mbchar, priv-set: use extern-inline
16710         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
16711         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
16712         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
16713         New macros.
16714         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
16715         Replace all uses of 'static inline' with it.
16716         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
16717         * m4/acl.m4 (gl_FUNC_ACL):
16718         * m4/mbchar.m4 (gl_MBCHAR):
16719         * m4/priv-set.m4 (gl_PRIV_SET):
16720         Remove AC_C_INLINE, since 'inline' is no longer used directly.
16721         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
16722         Add extern-inline.
16724         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
16725         * m4/sockets.m4 (gl_SOCKETS):
16726         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
16727         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
16728         environments where it's already guaranteed to work, so we needn't
16729         check for it at 'configure'-time.
16731         tls-tests: omit unnecessary 'inline'
16732         * tests/test-tls.c (perhaps_yield): No longer inline.
16733         Simplicity and portability trump efficiency in test cases.
16735         utimens-tests: avoid unnecessary 'inline'
16736         * modules/fdutimensat-tests (configure.ac):
16737         * modules/futimens-tests (configure.ac):
16738         * modules/utimens-tests (configure.ac):
16739         * modules/utimensat-tests (configure.ac):
16740         Remove AC_C_INLINE.
16741         * tests/test-utimens-common.h (ctime_compare):
16742         No longer inline.  Simplicity and portability trump efficiency here.
16744         misc: don't limit commentary to inline functions
16745         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
16746         * lib/xalloc-oversized.h, lib/xsize.h:
16747         Contrast macros to functions in general, not just to inline functions,
16748         when the commentary does not apply only to inline functions.
16750 2012-09-20  Jim Meyering  <meyering@redhat.com>
16752         non-recursive-gnulib-prefix-hack: new module
16753         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
16754         the file that originated in Bison.
16755         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
16756         largely copied from a snippet that resided in bison's configure.ac.
16757         * modules/non-recursive-gnulib-prefix-hack: New file.
16758         * MODULES.html.sh (Support for maintaining and releasing projects):
16759         Add it.
16761 2012-09-18  Jim Meyering  <meyering@redhat.com>
16763         maint.mk: generalize _gl_tight_scope for non-recursive make
16764         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
16765         that *.h would describe additional .h files in the directory
16766         specified by $(_gl_TS_dir).  I.e., add this...
16767         (_gl_TS_other_headers): New variable.
16769         maint.mk: exempt trailing blanks found in "binary" files
16770         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
16771         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
16772         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
16774 2012-09-17  Jim Meyering  <meyering@redhat.com>
16776         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
16777         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
16778         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
16779         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
16781 2012-09-17  Jim Meyering  <meyering@redhat.com>
16783         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
16784         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
16785         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
16786         It is not in the same category as "exit (0)" or "exit (1)", and
16787         besides, I know of no symbolic name for that 77.  Reported by
16788         Richard W.M. Jones in
16789         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
16791 2012-09-17  Jim Meyering  <meyering@redhat.com>
16793         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
16794         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
16795         all uses of #define, not just those that start in column 1.
16796         Richard W.M. Jones reported a false positive in
16797         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
16799 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
16801         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
16802         * lib/localcharset.c (locale_charset) [DARWIN7]:
16803         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
16804         as these two values are incompatible.  Problem reported by Max Horn.
16805         For more discussion, please see
16806         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
16808         doc: document sticky-EOF issue
16809         * doc/posix-functions/fgetc.texi (fgetc):
16810         * doc/posix-functions/fgets.texi (fgets):
16811         * doc/posix-functions/fread.texi (fread):
16812         * doc/posix-functions/fscanf.texi (fscanf):
16813         * doc/posix-functions/getc.texi (getc):
16814         * doc/posix-functions/getchar.texi (getchar):
16815         * doc/posix-functions/scanf.texi (scanf):
16816         Mention that glibc and default Solaris do not conform to
16817         C99 and POSIX-2001 or later, with respect to how getchar
16818         etc. behave when feof reports nonzero.
16820 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
16822         poll: fix poll(0, NULL, msec)
16823         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
16824         but nfd is 0.  In that case poll should behave like select.
16826 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
16827             Paolo Bonzini  <bonzini@gnu.org>
16829         poll: fix for systems that can't recv() on a non-socket
16830         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
16831         is readable.  In this case POLLHUP will not be supported.
16832         * doc/posix-functions/poll.texi: Document this.
16834 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
16836         poll/select: document portability problems not fixed by Gnulib.
16837         * doc/posix-functions/poll.texi: poll does not work well on
16838         pipes under Windows.  It has the same limitations as select on
16839         BeOS.
16840         * doc/posix-functions/select.texi: select does not work well
16841         on pipes under Windows.
16843 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16845         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
16846         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
16847         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
16848         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
16850 2012-09-06  Eric Blake  <eblake@redhat.com>
16852         net_if: give more details about the bug being fixed
16853         * doc/posix-headers/net_if.texi: Add clarification.
16855 2012-09-05  Eric Blake  <eblake@redhat.com>
16857         net_if: new module
16858         * modules/net_if: New module, borrowing ideas from netinet_in.
16859         * m4/net_if_h.m4: New file.
16860         * lib/net_if.in.h: Likewise.
16861         * doc/posix-headers/net_if.texi (net/if.h): Document it.
16862         * MODULES.html.sh (lacking POSIX:2008): Likewise.
16863         * tests/test-net_if.c: Make function checks conditional.
16864         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
16866 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
16868         readutmp: fix non-portable UT_PID use
16869         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
16870         Use `UT_PID (u) > 0' as absolute condition.
16872 2012-09-04  Jim Meyering  <meyering@redhat.com>
16874         fts: reduce two or more trailing spaces to just one, usually
16875         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
16876         or more slashes, trim all but the final one.  But if a name consists
16877         solely of two slashes, don't modify it.  If it consists solely of
16878         three or more slashes, strip all but one.
16880         This is part of the solution to a minor problem with rm:
16881         it would print a bogus ELOOP diagnostic when failing to remove
16882         the slash-decorated name of a symlink-to-directory:
16884             $ mkdir d && ln -s d s && env rm -r s/
16885             rm: cannot remove 's': Too many levels of symbolic links
16887         With the change below and a trivial don't-trim-trailing-slashes
16888         adjustment to remove.c, it does this:
16890             $ env rm -r s/
16891             rm: cannot remove 's/': Not a directory
16893         Improved by: Eric Blake
16895         fts: when there is no risk of overlap, use memcpy, not memmove
16896         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
16898 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
16900         stdbool: be more compatible with mixed C/C++ compiles
16901         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
16902         Define to bool, true, false, respectively, as GCC's builtin
16903         stdbool.h does.  Problem reported by Michael Goffioul in
16904         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
16906 2012-08-28  Jim Meyering  <meyering@redhat.com>
16908         revert last change: it was not needed
16909         * tests/test-vc-list-files-git.sh: There's already a test for
16910         a working git, just below.
16912 2012-08-28  Jim Meyering  <meyering@redhat.com>
16914         tests: test-vc-list-files-git.sh: skip if git is not available
16915         * tests/test-vc-list-files-git.sh: Skip this test when git is
16916         not available.
16918 2012-08-26  Bruno Haible  <bruno@clisp.org>
16920         gnulib-tool: Remove no-op option --no-changelog.
16921         * gnulib-tool (func_usage): Don't mention --no-changelog.
16922         (do_changelog): Remove variable.
16923         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
16925 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
16927         doc: remove fdl-1.2.texi
16928         It is no longer used or maintained, and its use of @acronym
16929         is problematic.  See the thread containing
16930         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
16931         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
16932         * doc/old-licenses/fdl-1.2.texi: Remove.
16934         execinfo: port to FreeBSD
16935         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
16936         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
16937         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
16938         * modules/execinfo (Link): Add $(LIB_EXECINFO).
16940 2012-08-23  Jim Meyering  <meyering@redhat.com>
16942         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
16943         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
16944         to placate gcc's -Wold-style-declaration.
16946 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
16948         doc: do not use @acronym
16949         * doc/inet_ntoa.texi (inet_ntoa):
16950         * doc/parse-datetime.texi (Seconds since the Epoch)
16951         (Specifying time zone rules):
16952         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
16953         Don't use @acronym.  Problem reported by John Darlington in
16954         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
16956 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
16958         stdnoreturn: port to newer GCCs
16959         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
16960         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
16961         Problem reported by Jim Meyering in
16962         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
16963         Also, rename the 'test' function to a void a clash with the
16964         already-supplied 'main' function; this fixes a bug that incorrectly
16965         rejected GCC 4.7.1's <stdnoreturn.h>.
16966         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
16967         Document GCC problem.
16969 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
16971         pipe-filter: fix comment typo
16972         * lib/pipe-filter.h: Mention correct function.
16974 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
16976         execinfo: new module
16977         This is for Emacs.  Currently, it provides a no-effect stub
16978         on all platforms where it does not already work.
16979         It already works on glibc-based systems, and on Solaris 11.
16980         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
16981         New files.
16982         * doc/glibc-headers/execinfo.texi (execinfo.h):
16983         * MODULES.html.sh (Misc): Document it.
16985 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
16987         extern-inline: support old GCC 'inline'
16988         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
16989         if available.  This applies to GCC versions 2.7 through 4.2, or
16990         when newer GCC is using -fgnu89-inline.  The goal is to address
16991         some of the performance issues mentioned by Bruno Haible in
16992         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
16994 2012-08-20  Eric Blake  <eblake@redhat.com>
16996         maint.mk: avoid redundant file name in message
16997         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
16998         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
16999         (sc_makefile_path_separator_check): Remove bogus $(ME).
17001 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
17003         timer-time: fix link order when static linking on glibc
17004         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
17005         _after_ -lrt so that it's significant.
17007 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
17009         timespec: omit unnecessary AC_C_INLINE
17010         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
17012         stat-time: omit unnecessary AC_C_INLINE
17013         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
17014         Do not require AC_C_INLINE.
17016         ignore-value: omit unnecessary AC_C_INLINE
17017         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
17019         sys_select: avoid 'static inline'
17020         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
17022         mktime: avoid 'static inline'
17023         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
17024         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
17026 2012-08-19  Bruno Haible  <bruno@clisp.org>
17028         gnulib-tool: Improve coding style.
17029         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
17030         func_emit_lib_Makefile_am.
17031         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
17033 2012-08-19  Bruno Haible  <bruno@clisp.org>
17035         gnulib-tool: Fix indentation.
17036         * gnulib-tool (func_import): Fix indentation.
17038 2012-08-19  Bruno Haible  <bruno@clisp.org>
17040         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
17041         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
17042         on the list of removed files.
17044 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
17046         test-parse-datetime: avoid glibc leap-second glitch
17047         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
17048         with the 2012 rules.  Problem reported by Bruce Dubbs in
17049         <http://bugs.gnu.org/12206>.
17051 2012-08-14  Bruno Haible  <bruno@clisp.org>
17053         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
17054         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
17055         from argument.
17056         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
17058 2012-08-14  Eric Blake  <eblake@redhat.com>
17060         ldexp: relax license
17061         * modules/ldexp (License): Trivial relax, since the module only
17062         provides a permissively licensed m4 file.
17064 2012-08-13  Bruno Haible  <bruno@clisp.org>
17066         gnulib-tool: Fix persistence of --witness-c-macro option.
17067         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
17068         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
17070 2012-08-11  Eric Blake  <eblake@redhat.com>
17072         count-leading-zeros: use a lookup table on non-gcc compilers
17073         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
17074         alternate implementation, suggested by Jim Meyering.
17076 2012-08-10  Eric Blake  <eblake@redhat.com>
17078         count-leading-zeros: new module
17079         * modules/count-leading-zeros: New module.
17080         * m4/count-leading-zeros.m4: New file.
17081         * lib/count-leading-zeros.h: Likewise.
17082         * modules/count-leading-zeros-tests: New test.
17083         * tests/test-count-leading-zeros.c: New file.
17084         * MODULES.html.sh (Integer arithmetic functions): Document it.
17086 2012-08-07  Simon Josefsson  <simon@josefsson.org>
17087             Jim Meyering  <meyering@redhat.com>
17089         maintainer-makefile: Fix syntax error with dash.
17090         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
17091         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
17093 2012-08-05  Jim Meyering  <meyering@redhat.com>
17095         extern-inline: also ignore -Wmissing-declarations
17096         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
17097         required with gcc-4.8.0-to-be.
17099         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
17100         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
17101         for /error ?([^,]*)/.  This avoids false-positives for strings like
17102         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
17104 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
17106         gnumakefile: better interaction with Automake-NG
17107         * modules/gnumakefile [Makefile.am]: The makefiles generated by
17108         Automake-NG always contain a definition of VPATH, even in non-VPATH
17109         builds (its value being simply '.' in that case).  So, in the
17110         'clean-GNUmakefile' rule, to determine whether running under a
17111         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
17112         '$(VPATH)' expands to the empty string.
17114 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
17116         base64: Use extern C scope in header file, for C++.
17117         * lib/base64.h: Add C++ namespace protection.
17119 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
17121         stat-time, timespec, u64: support naive out-of-dir builds
17122         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
17123         Use '#include "foo.h"', not '#include <foo.h>', when including
17124         one's own interface.  This works better when configuring with
17125         out-of-directory builds, since packages need not add an
17126         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
17128 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
17130         utimens: use extern-inline
17131         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
17132         * lib/utimens.h: Add copyright notice, since this is now large enough
17133         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17134         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
17135         * modules/utimens (Depends-on): Add extern-inline.
17137         u64: use extern-inline
17138         * lib/u64.c: New file.
17139         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17140         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
17141         * modules/u64 (Files): Add lib/u64.c.
17142         (Depends-on): Add extern-inline.
17143         (configure.ac): No need to require AC_C_INLINE, since extern-inline
17144         does that now.
17145         (lib_SOURCES): Add u64.c.
17147         timespec: use extern-inline
17148         * lib/timespec.c: New file.
17149         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17150         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
17151         * modules/timespec (Files): Add lib/timespec.c.
17152         (Depends-on): Add extern-inline.
17153         (lib_SOURCES): Add timespec.c.
17155         stat-time: use extern-inline
17156         * lib/stat-time.c: New file.
17157         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17158         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
17159         * modules/stat-time (Files): Add lib/stat-time.c.
17160         (Depends-on): Add extern-inline.
17161         (lib_SOURCES): Add stat-time.c.
17163         extern-inline: new module
17164         * modules/extern-inline, m4/extern-inline.m4: New files.
17165         This is for better support of 'extern inline' a la ISO C99,
17166         with a portable alternative on compilers that do not support
17167         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
17168         of the Emacs executable, when compiled with debugging disabled,
17169         which is a typical way that Emacs is built while developing.
17171 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
17173         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
17174         * build-aux/do-release-commit-and-tag: Move variable definitions
17175         together.
17176         ($branch): Instead of defaulting to "master", default to the current
17177         branch (as gnu-web-doc-update does).
17178         (help): Display the current values of the option arguments.
17179         * top/maint.mk (release-commit): New.
17180         * top/README-release: Simplify the corresponding step.
17182 2012-07-30  Eric Blake  <eblake@redhat.com>
17184         passfd: fix comment on recvfd
17185         * lib/passfd.c (recvfd): Fix comment.
17186         Reported by Jann Horn <jannhorn@googlemail.com>.
17188 2012-07-30  Jim Meyering  <meyering@redhat.com>
17190         maint.mk: avoid a sub-shell
17191         * top/maint.mk (release-prep): Remove unneeded sub-shell.
17193 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
17195         maint.mk: use silent-rules support from Automake
17196         * top/maint.mk (news-check, vc-diff-check, announcement)
17197         (no-submodule-changes, alpha beta stable, release-prep)
17198         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
17200 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
17202         maint.mk: provide a web-manual-update target
17203         * top/maint.mk: here.
17204         * top/README-release: Use it to simplify the web manual update step.
17206 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
17208         README-release: shorten the circuit to post a news
17209         * top/README-release: Point directly to the news submission form.
17211 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
17213         gnu-web-doc-update: fix --help
17214         * build-aux/gnu-web-doc-update: The information "top level" was written
17215         twice.
17217 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
17219         maint.mk: absolute VPATH issue
17220         * top/maint.mk (release-prep): Help Git find .git/.
17221         From Jim Meyering.
17223 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
17225         gitlog-to-changelog: fix previous change
17226         * build-aux/gitlog-to-changelog: Fix condition.
17227         Add missing ";".
17229 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
17231         gitlog-to-changelog: don't expect .git to be in $srcdir
17232         Reported by Bruno Haible.
17233         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
17234         * build-aux/gitlog-to-changelog (&git_dir_option): New.
17235         Use it.
17237 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
17239         maint.mk: absolute VPATH build fix
17240         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
17241         $(srcdir) is not a parent of $(builddir).
17243 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
17245         clean-temp: Fix memory leak.
17246         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
17247         'files' members of tmpdir.
17249 2012-07-27  Jim Meyering  <meyering@redhat.com>
17251         maint.mk: new rule: refresh-gnulib-patches
17252         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
17253         Use this rule to refresh them.
17254         * top/maint.mk (refresh-gnulib-patches): New rule.
17256 2012-07-24  Bruno Haible  <bruno@clisp.org>
17258         gnulib-tool: Fix handling of inctests variable.
17259         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
17260         Reported by Nick Bowler <nbowler@elliptictech.com>.
17262 2012-07-22  Bruno Haible  <bruno@clisp.org>
17264         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
17265         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
17266         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
17267         Remove exemption for getpass.h.
17268         Suggested by Eric Blake.
17270 2012-07-20  Eric Blake  <eblake@redhat.com>
17272         verify: document conflict with -Wnested-externs
17273         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
17275         maint.mk: forbid exit(-1)
17276         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
17278 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
17280         fsusage: port back to Solaris
17281         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
17282         error (fsd not declared) on Solaris 10.  Reported privately by
17283         Andrew Borodin.
17285 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
17287         gnu-web-doc-update: fix error messages
17288         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
17290         gnu-web-doc-update: check the requirements.
17291         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
17292         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
17293         * build-aux/bootstrap (find_tool): Comment change.
17295 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
17297         maint.mk: minor simplication.
17298         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
17299         for default values.
17301 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
17303         gitlog-to-changelog: VPATH build issues
17304         If builddir is not a subdirectory of srcdir, running git from it will
17305         fail.
17306         * build-aux/gitlog-to-changelog (--srcdir): New option.
17308 2012-07-15  Bruno Haible  <bruno@clisp.org>
17310         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
17311         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
17312         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
17313         Remove exemption for fpending.h.
17314         Suggested by Eric Blake.
17316 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
17318         pthread_sigmask: fix bug on FreeBSD 9
17319         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
17320         Include string.h.
17321         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
17322         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
17323         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
17324         but pthread_sigmask (1729, NULL, NULL) returns zero.
17325         See <http://bugs.gnu.org/11884>.
17326         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
17327         by inspecting whether the main call changed the old mask.
17329 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
17331         README-release: make it more legible
17332         * top/README-release: Improve typography slightly.
17334 2012-07-15  Jim Meyering  <meyering@redhat.com>
17336         maint: require that each sc_... command start with "@"
17337         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
17338         "make sc_maint" helps us avoid this nit.
17340 2012-07-15  Jim Meyering  <meyering@redhat.com>
17342         maint.mk: add leading "@" to quiet new "make syntax-check" rule
17343         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
17345 2012-07-13  Eric Blake  <eblake@redhat.com>
17347         maint.mk: new syntax check for HAVE_DECL checks
17348         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
17349         * cfg.mk
17350         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
17351         Exempt some false positives.
17352         Based on a report by Karel Zak.
17354         argp: make HAVE_DECL usage consistent
17355         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
17356         macros, not whether they are defined.
17357         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
17358         convention with other declaration checks.
17359         Reported by Karel Zak, with suggestions from Paul Eggert.
17361         stat-time: relax license to LGPLv2+
17362         * modules/stat-time (License): Relax, with consent of all authors.
17364         strndup: fix m4 usage error
17365         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
17366         defined, to either 0 or 1.
17367         Reported by Karel Zak.
17369 2012-07-11  Jim Meyering  <meyering@redhat.com>
17371         maint: enable the sc_avoid_if_before_free syntax-check rule
17372         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
17373         (if_before_free_offenders_): Define.
17374         (if_before_free_basename_re_): Define.
17375         Exempt current files with useless if-before-free.
17377 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
17379         gettext: do not assume '#define ... defined ...' behavior
17380         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
17381         Do not use '#define FOO ... defined BAR ...', as the C standard says
17382         it's not portable to expect that this works after macro expansion.
17383         Problem reported for gzip by Steven M. Schweda in
17384         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
17386 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
17388         getloadavg: clean out old Emacs and Autoconf cruft
17389         See Glenn Morris in <http://bugs.gnu.org/11905>.
17390         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
17391         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
17392         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
17393         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
17395 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
17397         bootstrap: let warn be like tests/init.sh's warn_
17398         Reported by Jim Meyering.
17399         * build-aux/bootstrap (warn): Remove, replaced by...
17400         (warnf_, warn_): these.
17401         Adjust callers.
17402         Shorten messages that no longer fit in 80 columns.
17404 2012-07-09  Bruno Haible  <bruno@clisp.org>
17406         getopt: Simplify after Emacs changed.
17407         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
17408         (gl_GETOPT_IFELSE): Remove macro.
17410 2012-07-09  Jim Meyering  <meyering@redhat.com>
17412         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
17413         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
17415         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
17416         Bugs in both of those conspired to make the
17417         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
17418         _sc_search_regexp's handling of non-empty $in_files would filter
17419         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
17420         choice of in_files value meant there would be no match in most
17421         projects, due to the presence of two or more Makefile.in files.
17422         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
17423         Fix a bug in how a non-empty $$in_files was processed:
17424         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
17425         in spite of the name, it's a regexp, not a list of file names.
17427 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
17429         getloadavg, getopt: fix commentary re configure.in
17430         Autoconf is deprecating the name 'configure.in', so change it to
17431         to the new name 'configure.ac' in a couple of places.
17432         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
17433         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
17434         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
17435         Emacs has renamed it to configure.ac, and it no longer refers
17436         to these macros anyway.
17438         timespec: mark functions with const attributes
17439         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
17440         Mark with _GL_ATTRIBUTE_CONST.
17442 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
17444         canonicalize[-lgpl]: handle "guessing" values when cross-building
17445         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
17446         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
17447         matches "*yes" instead of just "yes".  Regression introduced in commit
17448         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
17450 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
17451             Bruno Haible  <bruno@clisp.org>
17453         canonicalize: make the right guess when cross-compiling to GNU
17454         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
17455         determine whether cross-compiling to glibc systems, so as to
17456         include GNU/Hurd.
17458 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17460         timespec-sub: avoid duplicate include
17461         * lib/timespec-sub.c: Do not include <config.h> twice.
17462         Reported by Juanma Barranquero.
17464 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
17466         bootstrap: use a more consistent error reporting scheme
17467         * build-aux/bootstrap (warn, die): New.
17468         Use them.
17470 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
17472         sys_time: allow too-wide tv_sec
17473         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
17474         timeval even if tv_sec is wider than time_t.  This allows
17475         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
17476         as without this patch gnulib replaces struct timeval
17477         and OpenBSD futimes therefore has a type mismatch.
17478         * doc/posix-headers/sys_time.texi: Mention this.
17480         pthread: check for both pthread_create and pthread_join
17481         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
17482         alter the check so that it tests for both pthread_create and
17483         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
17484         Suggested by Bruno Haible and Richard Yao in
17485         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
17487         parse-datetime: doc tuneup
17488         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
17489         spacing issues.
17491 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
17493         do-release-commit-and-tag: fix the previous commit
17494         * build-aux/do-release-commit-and-tag: Actually the test was right,
17495         but the comment and the error message were misleading.
17496         Fix comment, and improve error message.
17497         Perform check first, so that NEWS is not modified uselessly.
17499         do-release-commit-and-tag: fix typo
17500         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
17501         _not_ start with a stub.
17503 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
17505         pthread: check for pthread_create, not pthread_join
17506         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
17507         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
17508         pthread_join in libc.  I hope this removes the need for all the
17509         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
17510         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
17512 2012-07-04  Jim Meyering  <meyering@redhat.com>
17514         parse-datetime: fix failure to diagnose invalid input
17515         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
17516         rather than diagnosing the invalid input.  Now it reports this:
17517         date: invalid date '\260'
17518         * lib/parse-datetime.y (to_uchar): Define.
17519         (yylex): Don't sign-extend "other" bytes.
17520         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
17521         Thanks to Bruno Haible for the patch to this file.
17522         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
17523         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
17525 2012-07-03  Jim Meyering  <meyering@redhat.com>
17527         bootstrap: do not require now-removed build-aux/missing
17528         Now that build-aux/missing is, er, missing, bootstrap would
17529         silently fail.
17530         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
17531         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
17532         no longer part of gnulib.
17533         Diagnose the failure.
17535 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
17537         alloca: add support for HP NonStop TNS/E native
17538         * lib/alloca.in.h (alloca): Support the new host.
17539         From a suggestion by Joachim Schmitz in
17540         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
17542 2012-07-02  Pádraig Brady  <P@draigBrady.com>
17544         fsusage: remove code not needed on non GNU/Linux systems.
17546         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
17547         Don't include headers no longer needed in this case.
17548         * lib/fsusage.c [STAT_STATVFS &&
17549         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
17550         STAT_STATFS2_FRSIZE to exclude code not used in this case.
17552 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
17554         fsusage: include files needed for glibc 2.6 fallback
17555         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
17556         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
17557         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
17558         Problem reported by Ludovic Courtès in
17559         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
17561         fsusage: avoid needless check on GNU/Linux
17562         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
17563         on GNU/Linux systems, since it can't possibly work.
17565 2012-07-01  Bruno Haible  <bruno@clisp.org>
17567         log: Fix an autoconf >= 2.64 warning.
17568         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
17569         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
17571 2012-06-28  Bruno Haible  <bruno@clisp.org>
17573         log10f: Fix possible configuration problem.
17574         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
17575         $LOGF_LIBM.
17576         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
17578 2012-06-28  Bruno Haible  <bruno@clisp.org>
17580         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
17581         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
17582         not gl_cv_func_unlink_works.
17583         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
17585 2012-06-27  Eric Blake  <eblake@redhat.com>
17587         config: drop scripts that automake says are not independent
17588         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
17589         * build-aux/elisp-comp: Delete.
17590         * build-aux/missing: Likewise.
17591         * build-aux/ylwrap: Likewise.
17592         * modules/elisp-comp: Likewise.
17593         * MODULES.html.sh: Drop mention of elisp-comp.
17594         * NEWS: Mention this.
17596 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
17598         root-uid: new module
17599         This is for portability to Tandem's NonStop Kernel.
17600         * lib/root-uid.h, modules/root-uid: New files.
17601         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
17602         * lib/write-any-file.c, tests/test-sethostname2.c:
17603         Include "root-uid.h".
17604         * lib/euidaccess.c (euidaccess):
17605         * lib/pt_chown.c (main):
17606         * lib/unlinkdir.c (cannot_unlink_dir):
17607         * lib/write-any-file.c (can_write_any_file):
17608         * m4/mknod.m4 (gl_FUNC_MKNOD):
17609         * tests/test-sethostname2.c (geteuid, main):
17610         Don't assume ROOT_UID == 0.
17611         * modules/euidaccess (Depends-on):
17612         * modules/pt_chown (Depends-on):
17613         * modules/sethostname-tests (Depends-on):
17614         * modules/unlinkdir (Depends-on):
17615         * modules/write-any-file (Depends-on):
17616         Add root-uid.
17618         regex: use locale-independent comparison for codeset name
17619         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
17620         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
17621         for codeset name.
17622         * lib/regex_internal.h: Do not include <strings.h>, since we
17623         no longer use strcasecmp.
17624         * modules/regex (Depends-on): Remove strcase.
17626 2012-06-23  Bruno Haible  <bruno@clisp.org>
17628         getopt-posix: No longer guarantee that option processing is resettable.
17629         * doc/posix-functions/getopt.texi: Drop description of problem with
17630         internal state. Fix info about mingw and msvc9.
17631         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
17632         option processing by getopt(). Run three test programs instead of one.
17633         Simplify cross-compilation guess.
17634         * NEWS: Mention the change.
17635         Reported by Rich Felker <dalias@aerifal.cx>.
17637 2012-06-26  Bruno Haible  <bruno@clisp.org>
17639         argp, regex: Ensure strcasecmp gets declared.
17640         * lib/argp-help.c: Include <strings.h>.
17641         * lib/regex_internal.h: Likewise.
17642         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
17644 2012-06-24  Bruno Haible  <bruno@clisp.org>
17646         ptsname_r: Make it consistent with ptsname on AIX.
17647         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
17648         implementation as for OSF/1.
17649         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
17650         a pty master.
17652         ptsname_r: Make it consistent with ptsname on OSF/1.
17653         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
17654         OSF/1.
17656 2012-06-24  Bruno Haible  <bruno@clisp.org>
17658         ttyname_r: Fix result on OSF/1, Solaris.
17659         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
17661 2012-06-24  Bruno Haible  <bruno@clisp.org>
17663         ptsname_r: Add support for Solaris.
17664         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
17665         Solaris.
17667         ptsname_r: Fix test failure on native Windows.
17668         * modules/ptsname_r (Depends-on): Add isatty.
17670         ptsname_r: Fix test failures on IRIX, Solaris.
17671         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
17672         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
17673         accordingly.
17674         * lib/ptsname_r.c: Include <fcntl.h>.
17675         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
17676         set errno if fd is invalid.
17677         * tests/test-isatty.c (main): Update comments.
17679 2012-06-24  Bruno Haible  <bruno@clisp.org>
17681         ptsname test: Extend test.
17682         * tests/test-ptsname.c: Include <errno.h>.
17683         (main): Test behaviour with invalid file descriptor.
17685 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
17687         time: fix obsolete comment
17688         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
17689         reference to HAVE_STRUCT_TIMESPEC in comment.
17691 2012-06-23  Bruno Haible  <bruno@clisp.org>
17693         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
17694         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
17695         does not handle abbreviated long options with equivalent
17696         disambiguations, set gl_replace_getopt to yes.
17697         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
17699 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
17701         time_r: fix typo that always overrode localtime_r decl
17702         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
17703         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
17704         not in a standard include.
17706 2012-06-22  Bruno Haible  <bruno@clisp.org>
17708         Write "Mac OS X" instead of "MacOS X".
17709         * README: Write "Mac OS X" instead of "MacOS X".
17710         * build-aux/bootstrap: Likewise.
17711         * build-aux/install-reloc: Likewise.
17712         * lib/acl-internal.h: Likewise.
17713         * lib/acl_entries.c: Likewise.
17714         * lib/argp-ba.c: Likewise.
17715         * lib/argp-pv.c: Likewise.
17716         * lib/config.charset: Likewise.
17717         * lib/copy-acl.c: Likewise.
17718         * lib/csharpexec.c: Likewise.
17719         * lib/euidaccess.c: Likewise.
17720         * lib/fbufmode.c: Likewise.
17721         * lib/fflush.c: Likewise.
17722         * lib/file-has-acl.c: Likewise.
17723         * lib/filemode.h: Likewise.
17724         * lib/fpurge.c: Likewise.
17725         * lib/freadable.c: Likewise.
17726         * lib/freadahead.c: Likewise.
17727         * lib/freading.c: Likewise.
17728         * lib/freadptr.c: Likewise.
17729         * lib/freadseek.c: Likewise.
17730         * lib/fseeko.c: Likewise.
17731         * lib/fseterr.c: Likewise.
17732         * lib/fsusage.c: Likewise.
17733         * lib/fwritable.c: Likewise.
17734         * lib/fwriting.c: Likewise.
17735         * lib/get-rusage-as.c: Likewise.
17736         * lib/get-rusage-data.c: Likewise.
17737         * lib/getdomainname.c: Likewise.
17738         * lib/idpriv-drop.c: Likewise.
17739         * lib/idpriv-droptemp.c: Likewise.
17740         * lib/localcharset.c: Likewise.
17741         * lib/locale.in.h: Likewise.
17742         * lib/localename.c: Likewise.
17743         * lib/mbsrtowcs-state.c: Likewise.
17744         * lib/nproc.c: Likewise.
17745         * lib/passfd.c: Likewise.
17746         * lib/posix_openpt.c: Likewise.
17747         * lib/printf-parse.c: Likewise.
17748         * lib/progreloc.c: Likewise.
17749         * lib/safe-read.h: Likewise.
17750         * lib/safe-write.h: Likewise.
17751         * lib/sched.in.h: Likewise.
17752         * lib/set-mode-acl.c: Likewise.
17753         * lib/signal.in.h: Likewise.
17754         * lib/stdint.in.h: Likewise.
17755         * lib/stdio-impl.h: Likewise.
17756         * lib/stdlib.in.h: Likewise.
17757         * lib/strtod.c: Likewise.
17758         * lib/sys_select.in.h: Likewise.
17759         * lib/tcgetsid.c: Likewise.
17760         * lib/unistd.in.h: Likewise.
17761         * lib/unlockpt.c: Likewise.
17762         * lib/vasnprintf.c: Likewise.
17763         * lib/vma-iter.c: Likewise.
17764         * lib/wcsrtombs-state.c: Likewise.
17765         * m4/acl.m4: Likewise.
17766         * m4/acosl.m4: Likewise.
17767         * m4/asinl.m4: Likewise.
17768         * m4/atanl.m4: Likewise.
17769         * m4/c-stack.m4: Likewise.
17770         * m4/cosl.m4: Likewise.
17771         * m4/expl.m4: Likewise.
17772         * m4/extensions.m4: Likewise.
17773         * m4/fdatasync.m4: Likewise.
17774         * m4/fmal.m4: Likewise.
17775         * m4/frexp.m4: Likewise.
17776         * m4/frexpf.m4: Likewise.
17777         * m4/frexpl.m4: Likewise.
17778         * m4/fsusage.m4: Likewise.
17779         * m4/getdomainname.m4: Likewise.
17780         * m4/getloadavg.m4: Likewise.
17781         * m4/getopt.m4: Likewise.
17782         * m4/gettext.m4: Likewise.
17783         * m4/gnulib-common.m4: Likewise.
17784         * m4/intdiv0.m4: Likewise.
17785         * m4/intlmacosx.m4: Likewise.
17786         * m4/largefile.m4: Likewise.
17787         * m4/ldexpl.m4: Likewise.
17788         * m4/link-follow.m4: Likewise.
17789         * m4/locale-ar.m4: Likewise.
17790         * m4/locale-fr.m4: Likewise.
17791         * m4/locale-ja.m4: Likewise.
17792         * m4/locale-tr.m4: Likewise.
17793         * m4/locale-zh.m4: Likewise.
17794         * m4/locale_h.m4: Likewise.
17795         * m4/lock.m4: Likewise.
17796         * m4/logl.m4: Likewise.
17797         * m4/mathfunc.m4: Likewise.
17798         * m4/minus-zero.m4: Likewise.
17799         * m4/mktime.m4: Likewise.
17800         * m4/mmap-anon.m4: Likewise.
17801         * m4/multiarch.m4: Likewise.
17802         * m4/nanosleep.m4: Likewise.
17803         * m4/nocrash.m4: Likewise.
17804         * m4/poll.m4: Likewise.
17805         * m4/printf-frexpl.m4: Likewise.
17806         * m4/printf.m4: Likewise.
17807         * m4/signbit.m4: Likewise.
17808         * m4/sinl.m4: Likewise.
17809         * m4/sqrtl.m4: Likewise.
17810         * m4/strerror_r.m4: Likewise.
17811         * m4/tanl.m4: Likewise.
17812         * m4/threadlib.m4: Likewise.
17813         * m4/ttyname_r.m4: Likewise.
17814         * m4/unlink.m4: Likewise.
17815         * m4/visibility.m4: Likewise.
17816         * m4/wcwidth.m4: Likewise.
17817         * tests/minus-zero.h: Likewise.
17818         * tests/test-alloca-opt.c: Likewise.
17819         * tests/test-copy-acl.sh: Likewise.
17820         * tests/test-copy-file.sh: Likewise.
17821         * tests/test-fdatasync.c: Likewise.
17822         * tests/test-file-has-acl.sh: Likewise.
17823         * tests/test-flock.c: Likewise.
17824         * tests/test-fsync.c: Likewise.
17825         * tests/test-localename.c: Likewise.
17826         * tests/test-malloca.c: Likewise.
17827         * tests/test-nonblocking-pipe.h: Likewise.
17828         * tests/test-nonblocking-socket.h: Likewise.
17829         * tests/test-openpty.c: Likewise.
17830         * tests/test-posix_openpt.c: Likewise.
17831         * tests/test-ptsname.c: Likewise.
17832         * tests/test-ptsname_r.c: Likewise.
17833         * tests/test-sameacls.c: Likewise.
17834         * tests/test-select.h: Likewise.
17835         * tests/test-set-mode-acl.sh: Likewise.
17836         * tests/test-snprintf-posix.h: Likewise.
17837         * tests/test-sprintf-posix.h: Likewise.
17838         * tests/test-strtod.c: Likewise.
17839         * tests/test-time.c: Likewise.
17840         * tests/test-vasnprintf-posix.c: Likewise.
17841         * tests/test-vasprintf-posix.c: Likewise.
17842         * doc/acl-resources.txt: Likewise.
17843         * doc/**/*.texi: Likewise.
17844         Reported by Max Horn <max@quendi.de>.
17846 2012-06-22  Bruno Haible  <bruno@clisp.org>
17848         grantpt: Relax requirement regarding invalid file descriptors.
17849         * lib/grantpt.c: Don't include <fcntl.h>.
17850         (grantpt): Don't verify the validity of the file descriptor.
17851         * modules/grantpt (Depends-on): Remove fcntl-h.
17852         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
17853         file descriptors.
17854         * doc/posix-functions/grantpt.texi: Document more platforms on which
17855         grantpt succeeds for invalid file descriptors.
17856         Reported by Rich Felker <dalias@aerifal.cx>.
17858 2012-06-22  Bruno Haible  <bruno@clisp.org>
17860         fbufmode test: Don't test unportable behaviour.
17861         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
17862         (main): Invoke it three times.
17863         Reported by Szabolcs Nagy <nsz@port70.net>
17864         and Rich Felker <dalias@aerifal.cx>.
17866 2012-06-21  Bruno Haible  <bruno@clisp.org>
17868         gnulib-tool: Refactor inctests variable.
17869         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
17870         (func_modules_transitive_closure,
17871         func_modules_transitive_closure_separately,
17872         func_import, func_create_testdir): Update.
17874         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
17875         * gnulib-tool: Accept option --without-tests.
17876         (func_usage): Document --without-tests option. Rearrange.
17877         (inctests): Normalize according to the mode.
17878         * NEWS: Mention the change.
17879         Suggested by Simon Josefsson.
17881 2012-06-21  Bruce Korb  <bkorb@gnu.org>
17883         parse-duration test: Avoid spurious output.
17884         * tests/test-parse-duration.sh: Reindent with leading tabs.
17886 2012-06-21  Jim Meyering  <meyering@redhat.com>
17888         maint: disable the strncpy prohibition
17889         * cfg.mk: Do not prohibit strncpy here.
17891 2012-06-21  Bruno Haible  <bruno@clisp.org>
17893         nonblocking: Avoid compilation error on mingw64.
17894         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
17895         fscanf.
17896         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
17897         * modules/vfscanf (configure.ac): Likewise.
17898         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
17899         definition only if stdio.h has prepared it.
17900         Reported by Daniel P. Berrange <berrange@redhat.com>.
17902 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
17904         gnulib-tool: Use readlink if it is available.
17905         * gnulib-tool (func_readlink): Choose function more appropriately.
17907 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
17909         posixtm-tests: port to buggy compiler
17910         Problem reported by Simon Josefsson in
17911         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
17912         * modules/posixtm-tests (Depends-on): Add stdint.
17913         * tests/test-posixtm.c (struct posixtm_test.t_expected):
17914         Now of type int_least64_t, not int64_t, both because that's
17915         what INT64_C returns and because int_least64_t works even
17916         on 72-bit hosts.
17917         (T): Use INT64_C on constants outside the traditional int range,
17918         to work around compiler bug noted by Simon.
17920         mktime: fix integer overflow in 'configure'-time test
17921         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
17922         after integer overflow.  Problem reported by Rich Felker in
17923         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
17924         Also, don't look for further instances of a bug if we've already
17925         found one instance; this helps 'configure' run faster.
17927 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
17929         tmpfile, clean-temp: Fix invocation of GetVersionEx.
17930         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
17931         GetVersionEx correctly.
17932         * lib/clean-temp.c (supports_delete_on_close): Likewise.
17934 2012-06-20  Bruno Haible  <bruno@clisp.org>
17936         fdopen: Allow implementations that don't reject invalid fd arguments.
17937         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
17938         succeeds.
17939         Reported by Rich Felker <dalias@aerifal.cx>.
17941 2012-06-20  Simon Josefsson  <simon@josefsson.org>
17943         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
17944         bring in LIBINTL.
17946 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
17948         init.sh: do not rely on autoupated PWD
17949         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
17950         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
17951         Although Nelson's bug was not necessarily fixed by this patch,
17952         it seems wise to make the change for safety.
17953         * tests/init.sh (path_prepend_): Do not rely on PWD updating
17954         automagically after 'cd'; this is not reliable on older shells.
17955         (setup_): Fail if we cannot cd to temporary directory.
17957 2012-06-19  Bruno Haible  <bruno@clisp.org>
17959         stat, fstat: Avoid warnings on mingw64.
17960         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
17961         redefining.
17962         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
17963         Reported by Daniel P. Berrange <berrange@redhat.com>.
17965 2012-06-19  Bruno Haible  <bruno@clisp.org>
17967         stdioext: Add support for musl libc.
17969         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
17970         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
17972         * m4/fseterr.m4: New file.
17973         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
17974         function exists.
17975         * modules/fseterr (Files): Add m4/fseterr.m4.
17976         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
17977         __fseterr does not exist.
17978         (Makefile.am): Remove fseterr.c from lib_SOURCES.
17980         * lib/freadable.h: Update comment.
17982         * lib/fwritable.h: Update comment.
17984         * lib/freading.h: Update comment.
17986         * lib/fwriting.h: Update comment.
17988         * m4/freadahead.m4: New file.
17989         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
17990         that function exists.
17991         * modules/freadahead (Files): Add m4/freadahead.m4.
17992         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
17993         __freadahead does not exist.
17994         (Makefile.am): Remove freadahead.c from lib_SOURCES.
17996         * m4/freadptr.m4: New file.
17997         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
17998         function exists.
17999         * modules/freadptr (Files): Add m4/freadptr.m4.
18000         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
18001         __freadptr does not exist.
18002         (Makefile.am): Remove freadptr.c from lib_SOURCES.
18004         * m4/freadseek.m4: New file.
18005         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
18006         exists.
18007         * modules/freadseek (Files): Add m4/freadseek.m4.
18008         (configure.ac): Invoke gl_FUNC_FREADSEEK.
18010         * lib/fpurge.c (fpurge): Update comment.
18012         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
18014 2012-06-19  Bruno Haible  <bruno@clisp.org>
18016         *printf-posix: Put more info into config.log.
18017         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
18018         exit code into config.log.
18020 2012-06-19  Bruno Haible  <bruno@clisp.org>
18022         getopt-gnu: Fix exit code overflow in autoconf test.
18023         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
18024         to keep them below < 128.
18026 2012-06-17  Jim Meyering  <meyering@redhat.com>
18028         maint.mk: fix typo in code to derive GPG key at release time
18029         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
18031 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
18033         regex: avoid warning when pointers are not long
18034         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
18035         and uintptr_t, not long, for portability to hosts where pointers and
18036         long have different sizes.  Issue noted by Daniel P. Berrange in
18037         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
18038         and fix suggested by Bruno Haible in
18039         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
18041 2012-06-17  Bruno Haible  <bruno@clisp.org>
18043         dummy: Relicense into the public domain.
18044         * modules/dummy (License): Set to "public domain".
18045         Suggested by Reuben Thomas.
18047 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
18049         announce-gen: VPATH issues
18050         * build-aux/announce-gen (--srcdir): New option, used to trim the
18051         $srcdir part of the path from $builddir to NEWS.
18052         * top/maint.mk (announcement): Adjust.
18054 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
18056         gnu-web-doc-update: VPATH builds
18057         * build-aux/gnu-web-doc-update (--builddir): New option.
18058         Revamp the handling of options.
18059         Prefer $(...) to `...`.
18060         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
18061         the template, and it is GNU mktemp specific.
18062         Prefer set -e to long series of &&.
18063         Restore the initial git branch, not "master".
18064         Properly initialize submodules (don't rely only on bootstrap).
18065         Do not reconfigure blindly, use config.status.
18066         * top/README-release: Update instructions for gnu-web-doc-update.
18068 2012-06-11  Jim Meyering  <meyering@redhat.com>
18070         maint.mk: revert most of the previous change re "all these"
18071         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
18072         For rationale, see the discussion at
18073         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
18075 2012-06-10  Karl Berry  <karl@gnu.org>
18077         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
18079         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
18081 2012-06-10  Bruce Korb  <bkorb@gnu.org>
18083         parse-duration: Relicense under LGPLv2+.
18084         * modules/parse-duration (License): Change to LGPLv2+.
18086 2012-06-10  Jim Meyering  <meyering@redhat.com>
18088         maint.mk: prohibit common grammar error: "all these"
18089         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
18090         the list of prohibited word sequences.  It should be "all of these".
18091         * lib/tempname.c (__gen_tempname): Fix one of them.
18093 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
18095         do-release-commit-and-tag: support VPATH builds
18096         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
18097         (noteworthy): Defined earlier to factor its value.
18098         (noteworthy_stub): New.
18099         Use it to factor.
18100         (help_version): Split into...
18101         (help, version): these.
18102         Adjust the option processing part.
18103         Support "--option=value" in addition to "--option value".
18104         (builddir): New.
18105         (--builddir): New option.
18106         * top/README-release: Document this.
18107         Reword slightly so that the reader cannot understand that he
18108         has to do these steps before calling do-release-commit-and-tag.
18110 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
18112         readme-release: also require announce-gen and maintainer-makefile
18113         * modules/readme-release (Depends-on): here.
18114         * modules/announce-gen, modules/do-release-commit-and-tag,
18115         modules/gnu-web-doc-update, modules/maintainer-makefile
18116         (Description): Point to readme-release.
18118 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
18120         maint.mk: fix VPATH issues.
18121         * top/maint.mk (news-check): GNU Make understand $< very well.
18122         (release-prep): NEWS is in $(srcdir).
18124 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
18126         readme-release: require the promoted modules.
18127         * modules/readme-release (Depends-on): Add
18128         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
18129         in this text.
18131 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
18132             Bruno Haible  <bruno@clisp.org>
18134         error, strerror-override: Support mingw64 from Fedora 17.
18135         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
18136         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
18137         EINPROGRESS.
18138         * lib/strerror-override.h (strerror_override): Test it.
18139         * lib/strerror-override.c (strerror_override): Likewise.
18140         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
18142 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
18143             Bruno Haible  <bruno@clisp.org>
18145         error, strerror-override: Support mingw64 from Fedora 17.
18146         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
18147         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
18148         * lib/strerror-override.h (strerror_override): Test it.
18149         * lib/strerror-override.c (strerror_override): Likewise.
18151 2012-06-03  Bruno Haible  <bruno@clisp.org>
18153         error, strerror-override: Support new errno values from POSIX:2008.
18154         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
18155         ENOTRECOVERABLE.
18156         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
18157         platforms.
18158         * lib/strerror-override.c (strerror_override): Conditionalize the
18159         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
18160         * lib/strerror-override.h (strerror_override): Declare also if
18161         GNULIB_defined_EOWNERDEAD is defined.
18162         * tests/test-errno.c (e130, e131): New variables.
18163         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
18164         ENOTRECOVERABLE.
18165         Reported by Paolo Bonzini.
18167 2012-05-31  Jim Meyering  <meyering@redhat.com>
18169         savewd: add missing dependency on sys_wait module
18170         * modules/savewd (Depends-on): Add sys_wait, needed at least
18171         for MSVC.  Report and suggested change by Michael Goffioul.
18173 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
18175         system-quote-tests: port to CentOS 5
18176         Problem reported by Tom G. Christensen in
18177         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
18178         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
18180 2012-05-29  Jim Meyering  <meyering@redhat.com>
18182         maint: fix typos in comments and ChangeLog
18183         Culprits identified and fixed mostly automatically using these commands:
18184         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
18185         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
18186         using http://github.com/lyda/misspell-check
18187         * ChangeLog: Fix typos.
18188         * doc/solaris-versions: Likewise.
18189         * lib/regexec.c (re_search_stub): Likewise.
18190         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18192 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
18194         manywarnings: remove duplicate -Wmultichar entry
18195         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
18196         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
18197         so keep the entry marked as documented.
18199 2012-05-27  Karl Berry  <karl@gnu.org>
18201         * config/srclist.txt (mktime.c): remove last libc sync,
18202         perhaps just temporarily.
18204 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
18206         regex: don't assume uint64_t or uint32_t
18207         * lib/regcomp.c (init_word_char): Don't assume that the types
18208         uint64_t and uint32_t exist.  The C standard doesn't guarantee
18209         them, and on some 32-bit compilers there is no uint64_t.
18210         Problem reported by Gianluigi Tiesi in
18211         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
18213 2012-05-25  Jim Meyering  <meyering@redhat.com>
18215         maint.mk: add strncpy-prohibiting syntax-check rule
18216         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
18218 2012-05-24  Jim Meyering  <meyering@redhat.com>
18220         maint.mk: compute $(gpg_key_ID) more portably
18221         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
18222         That use of sed is not portable to some fringe systems.
18223         Reported by Paul Eggert in
18224         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
18226 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
18228         mktime: sync from glibc
18229         * config/srclist.txt: Uncomment mktime.c.
18230         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
18231         First, indent with tabs, since glibc uses tabs and doesn't want to
18232         change and we'd rather be identical to glibc.  Also, two small
18233         coding changes:
18234         (isdst_differ): Use &&, not &, as && is the usual style.
18235         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
18236         for clarity.
18238 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
18240         announce-gen: du -h is more portable than du --human
18241         * build-aux/announce-gen (sizes): Invoke du with -h instead
18242         of --human.  Accept leading white space in its output.
18244 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
18246         announce-gen: Improve diagnostics.
18247         * build-aux/announce-gen: When parsing command line options,
18248         prefer "announce-gen: option --release-type requires an argument"
18249         to "Option release-type requires an argument".
18251 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
18253         maint.mk: gpg_key_ID: use sed more portably
18254         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
18255         the closing brace.
18256         (refresh-po): Fuse two sed invocations into one.
18258 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
18260         gitlog-to-changelog: support the log message format used in Bison.
18261         * build-aux/gitlog-to-changelog: Support --strip-tab and
18262         --strip-cherry-picked.
18264 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
18266         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
18267         the rest of the current time slice to another thread in the current
18268         process. So if the thread that feeds the file decscriptor we're
18269         polling is not in the current process, we get busy-waiting.
18270         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
18271         Patch from Theodore Leblond.
18272         * lib/select.c: Split polling out of the loop that sets the output
18273         fd_sets.  Check for zero result and loop if the wait timeout is
18274         infinite.
18276 2012-05-21  Simon Josefsson  <simon@josefsson.org>
18278         select: Fix build error on IRIX 6.5.
18279         * lib/select.c: Include stddef.h for NULL.
18281 2012-05-21  Simon Josefsson  <simon@josefsson.org>
18283         gc: fix libgcrypt detection on older machines.
18284         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
18285         copyright years because the file has been distributed every year
18286         since it was created.
18288 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
18290         crypto: fix bug in large buffer handling
18291         Problem reported by Serge Belyshev for glibc in
18292         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
18293         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
18294         * lib/md4.c (md4_process_block):
18295         * lib/md5.c (md5_process_block):
18296         * lib/sha1.c (sha1_process_block):
18297         * lib/sha256.c (sha256_process_block):
18298         Don't assume the buffer length is less than 2**32.
18299         * lib/sha512.c (sha512_process_block): Likewise.
18300         Here, the bug is present only in the rare case where the host does
18301         not support uint64_t or where size_t is wider than 64 bits.
18302         Use u64size to work around the problems.
18303         * lib/u64.h (u64size): New macro.
18305 2012-05-15  Pádraig Brady  <P@draigBrady.com>
18307         fsusage: fix block size returned on older Linux 2.6
18309         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
18310         which is available since Linux 2.6.
18311         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
18312         when the member is available so it can be used as a fallback.
18313         * doc/posix-functions/statvfs.texi: Mention the hang issue
18314         on Linux < 2.6.36.
18316 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
18318         bootstrap: suppress stderr chatter
18319         * build-aux/bootstrap (insert_sorted_if_absent, main program):
18320         Omit unnecessary chatter to stderr.  The main program chatter
18321         was there only inadvertantly.
18323         bootstrap: .gitignore files created by autopoint, libtool
18324         I ran into this problem when bootstrapping the latest diffutils.
18325         After './bootstrap', 'git status' reported lots of untracked files
18326         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
18327         autopoint and do not need to be version-controlled.
18328         * build-aux/bootstrap: Put into .gitignore the files that
18329         autopoint and libtool create, by keeping track of files that exist
18330         after but not before these programs are run.
18331         (version_controlled_file): Move up.  2nd arg is now full file
18332         name, not base name; this is more convenient.  Put CVS at the end,
18333         as it's now somewhat deprecated.
18335 2012-05-14  Jim Meyering  <meyering@redhat.com>
18337         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
18338         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
18339         definition.  Reported by Bruno Haible.
18341 2012-05-13  Bruno Haible  <bruno@clisp.org>
18342             Paul Eggert  <eggert@cs.ucla.edu>
18344         binary-io: Define set_binary_mode function.
18345         * lib/binary-io.h (set_binary_mode): New function.
18346         (SET_BINARY): Define in terms of set_binary_mode.
18347         * modules/binary-io (configure.ac): Require AC_C_INLINE.
18348         * tests/test-binary-io.c (main): Accept an argument, and test either
18349         set_binary_mode or SET_BINARY depending on the argument.
18350         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
18351         argument. Clean up also t-bin-out0.tmp.
18353 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
18355         bootstrap: take advantage of POSIX shell features
18357         The 'bootstrap' script offered by Gnulib script already uses POSIX
18358         shell features (like $((...)) arithmetic expansions) that are not
18359         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
18360         means that bootstrap must already be run using a proper POSIX shell,
18361         which will thus provide more features, like ${var#pattern} parameter
18362         expansion or inversion of a command exit status with '!'.  We can
18363         thus use these features to improve the clarity and the performances
18364         of the bootstrap script.
18366         Suggested by Eric Blake.
18368         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
18369         of sed/expr plus command substitutions, to save some forks.  While
18370         we are at it, prefer the POSIX $(...) form of command substitution,
18371         rather than the legacy form `...` (since the former is visually
18372         clearer and interacts better with quoting), and prefer the idiom:
18373           "if ! CMD; then ACTION ..."
18374         over the idiom:
18375           "if CMD; then :; else ACTION ..."
18376         which was required by legacy Bourne shells not supporting '!'.
18378 2012-05-12  Bruno Haible  <bruno@clisp.org>
18380         system-quote: Add more comments.
18381         * lib/system-quote.h: Add more comments about wilcards and limitations.
18382         Suggested by Eli Zaretskii <eliz@gnu.org>.
18384         sh-quote, system-quote: Add comments about wildcards.
18385         * lib/sh-quote.h: Clarify what happens with wildcard characters.
18386         * lib/system-quote.h: Likewise.
18387         Reported by Eli Zaretskii <eliz@gnu.org>.
18389 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
18391         fsusage: check for GNU/Linux statvfs problem dynamically
18392         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
18393         Define STAT_STATFS2_BSIZE too, since in this case the code now
18394         checks dynamically whether statvfs is reliable, falling back on
18395         Linux-style statfs otherwise.
18396         (statvfs_works): New function, for dynamically testing statvfs.
18397         (get_fs_usage) [STAT_STATVFS]: Use it.
18398         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
18399         statvfs on GNU/Linux hosts, since it's now done dynamically.
18401 2012-05-10  Bruno Haible  <bruno@clisp.org>
18403         system-quote, execute, spawn-pipe: Escape '?' on Windows.
18404         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
18405         '?' character.
18406         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
18407         * tests/test-system-quote-main.c (check_all): Check also strings like
18408         "??????????".
18409         Reported by Eli Zaretskii <eliz@gnu.org>.
18411 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
18413         _Noreturn: port config.h to gcc -Wundef
18414         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
18415         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
18416         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
18418 2012-05-10  Bruno Haible  <bruno@clisp.org>
18420         system-quote: Refactor.
18421         * lib/system-quote.h (system_quote_copy): Fix comment.
18422         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
18423         New functions, extracted from system_quote_copy.
18424         (system_quote_length, system_quote_copy): Use these functions.
18425         Reported by Paul Eggert.
18427 2012-05-08  Bruno Haible  <bruno@clisp.org>
18429         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
18430         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
18432 2012-05-08  Bruno Haible  <bruno@clisp.org>
18434         Tests for module 'system-quote'.
18435         * modules/system-quote-tests: New file.
18436         * tests/test-system-quote.sh: New file.
18437         * tests/test-system-quote-main.c: New file.
18438         * tests/test-system-quote-child.c: New file.
18440         New module 'system-quote'.
18441         * lib/system-quote.h: New file.
18442         * lib/system-quote.c: New file.
18443         * modules/system-quote: New file.
18445 2012-05-08  Bruno Haible  <bruno@clisp.org>
18447         sh-quote: Make C++ safe and allow multiple inclusion.
18448         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
18449         declarations in extern "C".
18451 2012-05-08  Bruno Haible  <bruno@clisp.org>
18453         sh-quote tests: Make tests stricter.
18454         * tests/test-sh-quote.c (check_one): Check the return value of
18455         shell_quote_copy.
18456         (main): Check a string with a CR character. Check a string that
18457         contains UCHAR_MAX.
18459 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
18461         warnings.m4: provide a means to specify the program to compile.
18462         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
18463         (gl_WARN_ADD): here.
18464         Use gl_AS_VAR_APPEND.
18465         Support an argument to specify the program to compile.
18466         (gl_WARN_ADD): Accept an argument to specify the program to compile.
18467         AC_SUBST the WARN_CFLAGS when they are used.
18468         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
18469         leave this to gl_WARN_ADD.
18471 2012-05-08  Eric Blake  <eblake@redhat.com>
18473         doc: recommendations on gettext version
18474         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
18475         choice between versions.
18476         * DEPENDENCIES (gettext): Cover both approaches.
18478 2012-05-08  Jim Meyering  <meyering@redhat.com>
18480         init.sh: explain why EXEEXT support uses aliases rather than functions
18481         * tests/init.sh: Add a comment.
18483         init.sh: don't let bash aliases interfere with tests
18484         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
18485         is bash.  This avoids problems for those who alias standard commands to
18486         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
18487         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
18489 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
18491         stdint: be more consistent with glibc, SunOS libc
18492         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
18493         (gl_int_fast16_t, gl_uint_fast16_t)
18494         (gl_int_fast32_t, gl_uint_fast32_t)
18495         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
18496         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
18497         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
18498         Be consistent with glibc by default, and with SunOS 5.10 and later
18499         if __sun is defined.  This lessens the likelihood of clashes if
18500         code compiled for older hosts is combined with code compiled for
18501         newer ones.  Problem reported by Niels Möller in
18502         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
18504 2012-05-07  Eric Blake  <eblake@redhat.com>
18506         isatty: relax license to LGPLv2+
18507         * modules/isatty (License): Relax license.
18509 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
18511         stat-size: comment fix
18512         * lib/stat-size.h: Remove obsolete comment about indenting.
18514 2012-05-06  Bruno Haible  <bruno@clisp.org>
18516         Tests for module 'sh-quote'.
18517         * modules/sh-quote-tests: New file.
18518         * tests/test-sh-quote.c: New file.
18520 2012-05-06  Bruno Haible  <bruno@clisp.org>
18522         sh-quote: Improve shell_quote_argv's signature.
18523         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
18524         * lib/sh-quote.c (shell_quote_argv): Likewise.
18526 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
18528         stdint: document issues with int_fast8_t etc.
18529         * doc/posix-headers/stdint.texi (stdint.h): Say that other
18530         stdint.h substitutes may define these types differently.  See
18531         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
18533 2012-05-05  Bruno Haible  <bruno@clisp.org>
18535         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
18536         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
18537         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
18538         or 'guessing no (mishandles large arguments)'.
18540 2012-05-05  Bruno Haible  <bruno@clisp.org>
18542         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
18543         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
18544         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
18545         set gl_cv_func_link_follows_symlink to "guessing no".
18547 2012-05-05  Bruno Haible  <bruno@clisp.org>
18549         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
18550         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
18551         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
18552         "guessing no".
18553         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
18555 2012-05-05  Bruno Haible  <bruno@clisp.org>
18557         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
18558         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
18559         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
18560         set gl_cv_struct_dirent_d_ino to "guessing yes".
18562 2012-05-05  Bruno Haible  <bruno@clisp.org>
18564         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
18565         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
18566         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
18567         "guessing yes".
18569 2012-05-05  Bruno Haible  <bruno@clisp.org>
18571         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
18572         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
18573         compiling to a glibc system, set gl_cv_func_signbit and
18574         gl_cv_func_signbit_gcc to "guessing yes".
18576 2012-05-05  Bruno Haible  <bruno@clisp.org>
18578         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
18579         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
18580         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
18581         to "guessing yes".
18582         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
18583         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
18585 2012-05-05  Bruno Haible  <bruno@clisp.org>
18587         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
18588         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
18589         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
18590         gl_cv_func_realpath_works to "guessing yes".
18592 2012-05-05  Bruno Haible  <bruno@clisp.org>
18594         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
18595         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
18596         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
18598 2012-05-04  Bruno Haible  <bruno@clisp.org>
18600         Tweak last commit.
18601         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
18602         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18604 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
18606         unistd_h: make it easier to avoid sys_types_h
18607         This is useful for Emacs, which has its own method of porting to
18608         Windows, and which therefore does not need the sys_types_h module.
18609         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
18610         code moved here from gl_SYS_TYPES_H.
18611         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
18612         using the code directly.
18613         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
18614         gl_SYS_TYPES_H.
18615         * modules/sys_types (Files):
18616         * modules/unistd (Files): Add m4/off_t.m4.
18618 2012-05-03  Bruno Haible  <bruno@clisp.org>
18620         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
18621         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
18622         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
18623         "guessing yes" or "guessing no".
18624         (gl_FUNC_LSTAT): Update.
18625         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
18626         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
18627         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
18629 2012-05-03  Bruno Haible  <bruno@clisp.org>
18631         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
18632         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
18633         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
18634         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
18635         cross-compiling, choose the first alternative on glibc systems.
18636         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
18638 2012-05-03  Bruno Haible  <bruno@clisp.org>
18640         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
18641         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
18642         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
18644 2012-05-03  Bruno Haible  <bruno@clisp.org>
18646         chown: Avoid "guessing no" when cross-compiling to glibc systems.
18647         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
18649 2012-05-03  Bruno Haible  <bruno@clisp.org>
18651         Avoid "guessing no" guesses when cross-compiling to glibc systems.
18652         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
18653         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
18654         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
18655         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
18656         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
18657         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
18658         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
18659         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
18660         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
18661         compiling to glibc systems, set gl_cv_func_chown_slash_works,
18662         gl_cv_func_chown_ctime_works to "guessing yes".
18663         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
18664         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
18665         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
18666         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
18667         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
18668         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
18669         compiling to glibc systems, set gl_cv_func_open_directory_works to
18670         "guessing yes".
18671         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
18672         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
18673         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
18674         "guessing yes".
18675         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
18676         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
18677         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
18678         compiling to glibc systems, set gl_cv_func_floorf_ieee to
18679         "guessing yes".
18680         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
18681         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
18682         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
18683         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
18684         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
18685         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
18686         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
18687         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
18688         "guessing yes".
18689         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
18690         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
18691         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
18692         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
18693         "guessing yes".
18694         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
18695         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
18696         "guessing yes".
18697         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
18698         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
18699         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
18700         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
18701         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
18702         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
18703         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
18704         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
18705         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
18706         compiling to glibc systems, set gl_cv_func_log10f_ieee to
18707         "guessing yes".
18708         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
18709         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
18710         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
18711         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
18712         "guessing yes".
18713         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
18714         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
18715         "guessing yes".
18716         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
18717         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
18718         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
18719         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
18720         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
18721         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
18722         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
18723         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
18724         compiling to glibc systems, set gl_cv_func_mkfifo_works to
18725         "guessing yes".
18726         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
18727         compiling to glibc systems, set gl_cv_func_mknod_works to
18728         "guessing yes".
18729         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
18730         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
18731         "guessing yes".
18732         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
18733         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
18734         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
18735         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
18736         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
18737         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
18738         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
18739         compiling to glibc systems, set gl_cv_func_svid_putenv to
18740         "guessing yes".
18741         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
18742         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
18743         "guessing yes".
18744         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
18745         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
18746         "guessing yes".
18747         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
18748         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
18749         to "guessing yes".
18750         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
18751         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
18752         to "guessing yes".
18753         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
18754         compiling to glibc systems, set gl_cv_func_rmdir_works to
18755         "guessing yes".
18756         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
18757         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
18758         gl_cv_func_unlink_parent_fails to "guessing yes".
18759         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
18760         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
18761         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
18762         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
18763         gl_cv_func_rename_dest_works to "guessing yes".
18764         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
18765         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
18766         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
18767         compiling to glibc systems, set gl_cv_func_roundf_ieee to
18768         "guessing yes".
18769         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
18770         compiling to glibc systems, set gl_cv_func_roundl_ieee to
18771         "guessing yes".
18772         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
18773         compiling to glibc systems, set gl_cv_func_setenv_works to
18774         "guessing yes".
18775         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
18776         compiling to glibc systems, set gl_cv_func_unsetenv_works to
18777         "guessing yes".
18778         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
18779         compiling to glibc systems, set gl_cv_func_sleep_works to
18780         "guessing yes".
18781         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
18782         compiling to glibc systems, set gl_cv_func_stat_file_slash to
18783         "guessing yes".
18784         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
18785         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
18786         "guessing yes".
18787         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
18788         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
18789         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
18790         compiling to glibc systems, set gl_cv_func_truncf_ieee to
18791         "guessing yes".
18792         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
18793         compiling to glibc systems, set gl_cv_func_truncl_ieee to
18794         "guessing yes".
18795         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
18796         compiling to glibc systems, set gl_cv_func_usleep_works to
18797         "guessing yes".
18798         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
18799         compiling to glibc systems, set gl_cv_func_futimesat_works to
18800         "guessing yes".
18802 2012-05-03  Bruno Haible  <bruno@clisp.org>
18804         Say "guessing yes" or "guessing no" when cross-compiling.
18805         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
18806         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
18807         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
18808         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
18809         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
18810         am_cv_func_working_getline to "guessing yes" or "guessing no".
18811         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
18812         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
18813         (gl_FUNC_MEMMEM): When cross-compiling, set
18814         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
18815         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
18816         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
18817         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
18818         set gl_cv_func_strcasestr_works_always to "guessing yes" or
18819         "guessing no".
18820         (gl_FUNC_STRCASESTR): When cross-compiling, set
18821         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
18822         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
18823         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
18824         (gl_FUNC_STRSTR): When cross-compiling, set
18825         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
18826         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
18827         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
18828         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
18829         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
18831 2012-05-01  Bruno Haible  <bruno@clisp.org>
18833         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
18834         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
18835         * build-aux/reloc-ldflags: Likewise.
18836         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
18838 2012-05-01  Bruno Haible  <bruno@clisp.org>
18840         gnulib-tool: Remove transitional code.
18841         * gnulib-tool: Don't warn about --import with 0 arguments any more.
18842         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
18844 2012-05-01  Bruno Haible  <bruno@clisp.org>
18846         getcwd: Fix misindentation.
18847         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
18849 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
18851         exclude: process exclude and include directives in order
18852         This restores the pre-2009 behavior, and is part of a fix of a
18853         grep bug reported by Quentin Arce in
18854         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
18855         * lib/exclude.c (struct exclude): Remove 'tail' member.
18856         (new_exclude_segment): Prepend the new segment instead of appending.
18857         Return void, since that's now more convenient.
18858         (file_pattern_matches): Renamed from excluded_file_pattern_p.
18859         (file_name_matches): Renamed from excluded_file_name_p.
18860         (file_pattern_matches, file_name_matches):
18861         Return true if the pattern matches, not if it excludes.
18862         All callers changed.
18863         (excluded_file_name): Process the list in reverse order;
18864         since the list is now reversed this restores the pre-2009 behavior.
18865         (add_exclude): Adjust to new reversed-order list.  Use local var
18866         rather than macro, for clarity.
18867         * tests/test-exclude7.sh: Adjust to corrected behavior.
18869         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
18870         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
18871         it's not possible here.  Handle the case of \ at end of pattern
18872         without dumping core.
18873         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
18875         _Noreturn: future-proof non-GNU and non-MSVC compilers
18876         * build-aux/snippet/_Noreturn.h (_Noreturn):
18877         * m4/gnulib-common.m4 (gl_COMMON_BODY):
18878         Do not define _Noreturn if __STDC_VERSION__ indicates this is
18879         C11 or later.  This is more likely to work with random future C
18880         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
18881         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
18883         exclude: handle wildcards with FNM_EXTMATCH
18884         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
18885         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
18886         comment that "has wildcards" really means "has or may have
18887         wildcards".  Simplify by avoiding the need to call strcspn.
18889 2012-04-29  Bruno Haible  <bruno@clisp.org>
18891         gnulib-tool: Fix list of authors.
18892         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
18894 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
18896         bootstrap: support Automake-NG in $buildreq
18897         * bootstrap (check_versions): Handle automake and aclocal from
18898         Automake-NG specially.  They can be specified as respectively
18899         the "automake-ng" and "aclocal-ng" requirements.
18901 2012-04-25  Eric Blake  <eblake@redhat.com>
18903         bootstrap: only force latest Makefile.in.in for gettext module
18904         * build-aux/bootstrap (with_gettext): Only install latest
18905         Makefile.in.in for projects requesting bleeding edge gettext.
18907 2012-04-22  Bruno Haible  <bruno@clisp.org>
18909         doc: Mention reason for replacement on glibc/Linux systems.
18910         * doc/posix-functions/dprintf.texi: Mention the problem with special
18911         'long double' values.
18912         * doc/posix-functions/fprintf.texi: Likewise.
18913         * doc/posix-functions/printf.texi: Likewise.
18914         * doc/posix-functions/snprintf.texi: Likewise.
18915         * doc/posix-functions/sprintf.texi: Likewise.
18916         * doc/posix-functions/vdprintf.texi: Likewise.
18917         * doc/posix-functions/vfprintf.texi: Likewise.
18918         * doc/posix-functions/vprintf.texi: Likewise.
18919         * doc/posix-functions/vsnprintf.texi: Likewise.
18920         * doc/posix-functions/vsprintf.texi: Likewise.
18921         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
18922         platforms with F_DUPFD_CLOEXEC problems.
18923         * doc/posix-functions/glob.texi: Mention which platforms are affected
18924         by the problem with symbolic links.
18925         * doc/posix-functions/linkat.texi: Mention the problem with
18926         AT_SYMLINK_FOLLOW on Linux.
18928 2012-04-22  Bruno Haible  <bruno@clisp.org>
18930         pwrite: Don't replace on all platforms.
18931         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
18933 2012-04-22  Bruno Haible  <bruno@clisp.org>
18935         rint* tests: Avoid gcc warnings.
18936         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
18937         * tests/test-rintf.c (INFINITY, NAN): Likewise.
18938         * tests/test-rintl.c (INFINITY, NAN): Likewise.
18940 2012-04-21  Bruno Haible  <bruno@clisp.org>
18942         users.txt: Update.
18943         * users.txt: Add freedink, wdiff. Update URLs for projects that have
18944         switched from CVS to git, bzr, or svn.
18946 2012-04-21  Bruno Haible  <bruno@clisp.org>
18948         Large File Support for native Windows platforms.
18950         * m4/largefile.m4 (gl_LARGEFILE): New macro.
18951         * modules/largefile (configure.ac): Require gl_LARGEFILE.
18953         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
18954         type.
18955         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
18956         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
18957         * doc/posix-headers/sys_types.texi: Mention the effect of the
18958         'largefile' module.
18960         * lib/fcntl.in.h: Add comments about off_t.
18961         * modules/fcntl-h (Depends-on): Add sys_types.
18963         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
18964         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
18965         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
18966         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
18967         * modules/unistd (Depends-on): Add sys_types.
18968         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
18970         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
18971         instead of lseek.
18972         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
18973         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
18974         * modules/lseek (Depends-on): Add sys_types.
18976         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
18977         msvc-nothrow.h.
18978         (SetFileSize): New function.
18979         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
18980         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
18981         if Large File Support is requested.
18982         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
18983         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
18985         * lib/stdio.in.h: Add comments about off_t.
18986         * modules/stdio (Depends-on): Add sys_types.
18988         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
18989         instead of ftello.
18990         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
18991         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
18992         (gl_PREREQ_FTELLO): New macro.
18993         * modules/ftello (Depends-on): Add sys_types.
18994         (configure.ac): Incoke gl_PREREQ_FTELLO.
18996         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
18997         instead of fseeko.
18998         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
18999         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
19000         (gl_PREREQ_FSEEKO): New macro.
19001         * modules/fseeko (Depends-on): Add sys_types.
19002         (configure.ac): Invoke gl_PREREQ_FSEEKO.
19004         * lib/sys_stat.in.h: Add comments about off_t.
19005         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
19006         64-bit integer for st_size in 'struct stat'.
19007         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
19008         Define _GL_WINDOWS_64_BIT_ST_SIZE.
19009         * modules/sys_stat (Depends-on): Add sys_types.
19010         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
19012         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
19013         instead of stat or _stat.
19015         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
19016         'struct _stati64' instead of fstat and 'struct stat'.
19017         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
19018         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
19020         Reported by Ray Satiro <raysatiro@yahoo.com>.
19022 2012-04-19  Eric Blake  <eblake@redhat.com>
19024         bootstrap: accommodate older libtool
19025         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
19026         Reported by Daniel P. Berrange.
19028 2012-04-19  Jim Meyering  <meyering@redhat.com>
19030         announce-gen: avoid failure due to lack of Digest::SHA1
19031         Even with the preferred Digest::SHA available, this script
19032         would fail when the backup module, Digest::SHA1, was not installed.
19033         * build-aux/announce-gen: Quote the conditional use of "use".
19034         Reported by Reuben Thomas in:
19035         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
19037         bootstrap: don't let a user's CDPATH setting affect this script
19038         When CDPATH is set, cd will sometimes generate output.
19039         When "cd" is run in a subshell whose output matters, that
19040         surprising-to-some output can cause malfunction.
19041         Unsetting CDPATH turns off this shell "feature."
19042         * build-aux/bootstrap (CDPATH): Unset.
19043         Reported by Reuben Thomas in:
19044         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
19045         and inspired by his patch here:
19046         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
19048 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
19049         and Jim Meyering  <meyering@redhat.com>
19051         maint.mk: catch "see @xref{}" and similar
19052         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
19053         prohibit "See also @xref{", "Also see @pxref{", and similar.
19055 2012-04-16  Jim Meyering  <meyering@redhat.com>
19057         bootstrap: really use gnulib's po/Makefile.in.in
19058         * build-aux/bootstrap: Correct the source file name in previous change.
19059         Reported by Akim Demaille.
19061         configmake: correct minor inconsistency in Makefile rule
19062         * modules/configmake (Makefile.am): All other rules like this one
19063         run the final "mv -f ..." in the same backslash-continued command
19064         as the one that does everything else.  This one put the mv -f ...
19065         command on a separate, non-backslash-continued line.
19066         Make it like the others.
19068         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
19069         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
19070         the one from gettext.  Reported by Akim Demaille.
19072 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
19074         Fix recursion of install-* into po directories.
19075         Bison's install-pdf bug reported by Hans Aberg at
19076         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
19077         * build-aux/po/Makefile.in.in (install-dvi, install-html)
19078         (install-info, install-pdf, install-ps): New targets.
19080 2012-04-16  Jim Meyering  <meyering@redhat.com>
19082         maint: avoid spurious "make sc_maint" failure
19083         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
19084         exempt all *.class file names, for lib/javaversion.class.
19086 2012-04-15  Bruno Haible  <bruno@clisp.org>
19088         lseek: Make configure test independent of environment.
19089         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
19090         Windows, we know that lseek() on pipes is broken; skip the runtime
19091         test.
19093 2012-04-14  Bruno Haible  <bruno@clisp.org>
19095         stat: Bypass buggy override in mingw64.
19096         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
19097         * lib/stat.c (stat) [mingw64]: Define to _stat.
19098         * doc/posix-functions/stat.texi: Mention mingw64 bug.
19100 2012-04-14  Bruno Haible  <bruno@clisp.org>
19102         pathmax: Fix compilation error on MSVC 9.
19103         * modules/pathmax (Depends-on): Add unistd.
19105 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
19107         README: document pointer comparison assumption
19108         * README (Portability guidelines): Document assumption about
19109         pointer comparisons, in response to a recent bug-gnulib comment by
19110         Jeffrey Kegler.
19112 2012-04-12  Bruno Haible  <bruno@clisp.org>
19114         Tests for module 'getrusage'.
19115         * modules/getrusage-tests: New file.
19116         * tests/test-getrusage.c: New file.
19118         New module 'getrusage'.
19119         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
19120         warn-on-use.h.
19121         (getrusage): New declaration.
19122         * lib/getrusage.c: New file.
19123         * m4/getrusage.m4: New file.
19124         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
19125         is declared.
19126         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
19127         HAVE_GETRUSAGE.
19128         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
19129         snippet/c++defs, snippet/warn-on-use.
19130         (Makefile.am): Update generation of sys/resource.h. Substitute
19131         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
19132         * modules/getrusage: New file.
19133         * doc/posix-functions/getrusage.texi: Mention the new module.
19135 2012-04-12  Bruno Haible  <bruno@clisp.org>
19137         Tests for module 'sys_resource'.
19138         * modules/sys_resource-tests: New file.
19139         * tests/test-sys_resource.c: New file.
19141         New module 'sys_resource'.
19142         * lib/sys_resource.in.h: New file.
19143         * m4/sys_resource_h.m4: New file.
19144         * modules/sys_resource: New file.
19145         * doc/posix-headers/sys_resource.texi: Mention the new module.
19147 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
19149         ioctl: Fix compilation error on mingw.
19150         * lib/ioctl.c: Include <windows.h>.
19151         Also reported by Ray Satiro <raysatiro@yahoo.com>.
19153 2012-04-04  Jim Meyering  <meyering@redhat.com>
19155         regex: correct #pragma guard expression
19156         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
19157         not 4.3.  Correct its cpp guard expression.
19159 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
19161         regex: remove unnecessary type punning
19162         Problem reported by Vladimir Serbinenko in
19163         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
19164         * lib/regex.h (struct re_pattern_buffer): Change the type of
19165         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
19166         Fix comment to match code.
19167         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
19168         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
19169         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
19170         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
19171         (set_regs):
19172         Omit no-longer-necessary casts.
19174 2012-04-03  Bruno Haible  <bruno@clisp.org>
19176         Tests for module 'ilogbl'.
19177         * modules/ilogbl-tests: New file.
19178         * tests/test-ilogbl.c: New file.
19180         New module 'ilogbl'.
19181         * lib/math.in.h (ilogbl): New declaration.
19182         * lib/ilogbl.c: New file.
19183         * m4/ilogbl.m4: New file.
19184         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
19185         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
19186         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
19187         Split sed invocation, to avoid the limit of 100 substitutions of
19188         HP-UX 'sed'.
19189         * modules/ilogbl: New file.
19190         * tests/test-math-c++.cc: Check the declaration of ilogbl.
19191         * doc/posix-functions/ilogbl.texi: Mention the new module.
19193 2012-04-03  Bruno Haible  <bruno@clisp.org>
19195         Tests for module 'ilogbf'.
19196         * modules/ilogbf-tests: New file.
19197         * tests/test-ilogbf.c: New file.
19199         New module 'ilogbf'.
19200         * lib/math.in.h (ilogbf): New declaration.
19201         * lib/ilogbf.c: New file.
19202         * m4/ilogbf.m4: New file.
19203         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
19204         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
19205         REPLACE_ILOGBF.
19206         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
19207         REPLACE_ILOGBF.
19208         * modules/ilogbf: New file.
19209         * tests/test-math-c++.cc: Check the declaration of ilogbf.
19210         * doc/posix-functions/ilogbf.texi: Mention the new module.
19212 2012-04-03  Bruno Haible  <bruno@clisp.org>
19214         Tests for module 'ilogb'.
19215         * modules/ilogb-tests: New file.
19216         * tests/test-ilogb.c: New file.
19217         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
19218         tests/test-logb-ieee.h.
19220         New module 'ilogb'.
19221         * lib/math.in.h (ilogb): New declaration.
19222         * lib/ilogb.c: New file.
19223         * m4/ilogb.m4: New file.
19224         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
19225         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
19226         REPLACE_ILOGB.
19227         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
19228         REPLACE_ILOGB.
19229         * modules/ilogb: New file.
19230         * tests/test-math-c++.cc: Check the declaration of ilogb.
19231         * doc/posix-functions/ilogb.texi: Mention the new module.
19233 2012-04-03  Bruno Haible  <bruno@clisp.org>
19235         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
19236         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
19237         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
19238         (main): Check their values.
19239         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
19240         problem.
19242 2012-04-03  Bruno Haible  <bruno@clisp.org>
19244         Tests for module 'logbl-ieee'.
19245         * modules/logbl-ieee-tests: New file.
19246         * tests/test-logbl-ieee.c: New file.
19248         New module 'logbl-ieee'.
19249         * modules/logbl-ieee: New file.
19251         Tests for module 'logb-ieee'.
19252         * modules/logb-ieee-tests: New file.
19253         * tests/test-logb-ieee.c: New file.
19255         New module 'logb-ieee'.
19256         * modules/logb-ieee: New file.
19258         Tests for module 'logbf-ieee'.
19259         * modules/logbf-ieee-tests: New file.
19260         * tests/test-logbf-ieee.c: New file.
19261         * tests/test-logb-ieee.h: New file.
19263         New module 'logbf-ieee'.
19264         * modules/logbf-ieee: New file.
19266 2012-04-03  Bruno Haible  <bruno@clisp.org>
19268         Tests for module 'logbl'.
19269         * modules/logbl-tests: New file.
19270         * tests/test-logbl.c: New file.
19272         New module 'logbl'.
19273         * lib/math.in.h (logbl): New declaration.
19274         * lib/logbl.c: New file.
19275         * m4/logbl.m4: New file.
19276         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
19277         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
19278         REPLACE_LOGBL.
19279         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
19280         REPLACE_LOGBL.
19281         * modules/logbl: New file.
19282         * tests/test-math-c++.cc: Check the declaration of logbl.
19283         * doc/posix-functions/logbl.texi: Mention the new module.
19285 2012-04-02  Bruno Haible  <bruno@clisp.org>
19287         Tests for module 'logbf'.
19288         * modules/logbf-tests: New file.
19289         * tests/test-logbf.c: New file.
19291         New module 'logbf'.
19292         * lib/math.in.h (logbf): New declaration.
19293         * lib/logbf.c: New file.
19294         * m4/logbf.m4: New file.
19295         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
19296         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
19297         REPLACE_LOGBF.
19298         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
19299         REPLACE_LOGBF.
19300         * modules/logbf: New file.
19301         * tests/test-math-c++.cc: Check the declaration of logbf.
19302         * doc/posix-functions/logbf.texi: Mention the new module.
19304 2012-04-02  Bruno Haible  <bruno@clisp.org>
19306         logb tests: More tests.
19307         * tests/test-logb.h: New file, based on tests/test-logb.c and
19308         tests/test-frexp.h.
19309         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
19310         (main): Just invoke test_function.
19311         * modules/logb-tests (Files): Add tests/test-logb.h,
19312         tests/minus-zero.h, tests/randomd.c.
19313         (Makefile.am): Add randomd.c to test_logb_SOURCES.
19315         logb: Provide replacement and workarounds.
19316         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
19317         is 1.
19318         * lib/logb.c: New file.
19319         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
19320         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
19321         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
19322         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
19323         * modules/logb (Files): Add lib/logb.c.
19324         (Depends-on): Add isfinite, frexp, isnand.
19325         (configure.ac): Compile the replacement code logb.c if needed.
19326         * tests/test-math-c++.cc: Check the declaration of logb.
19327         * doc/posix-functions/logb.texi: Mention the replacement and the bug
19328         with subnormal numbers.
19330 2012-04-02  Bruno Haible  <bruno@clisp.org>
19332         log10* tests: Speed up.
19333         * tests/test-log10.h (test_function): Reduce amount of random numbers
19334         to test.
19336 2012-04-01  Bruno Haible  <bruno@clisp.org>
19338         logf-ieee: Fix test whether logf works.
19339         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
19341 2012-04-01  Bruno Haible  <bruno@clisp.org>
19343         log10l: Work around log10l-ieee test failure on IRIX 6.5.
19344         * lib/log10l.c: Include <float.h>
19345         (log10l): On IRIX, normalize the +Infinity value.
19346         * modules/log10l (Depends-on): Add 'float'.
19347         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
19348         +Infinity.
19350         log10f-ieee: Work around test failure on NetBSD 5.1.
19351         * m4/log10f-ieee.m4: New file.
19352         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
19353         test whether log10f works with a negative argument. Replace it if not.
19354         * lib/log10f.c (log10f): For negative arguments, return NaN.
19355         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
19356         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
19357         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
19359         log10f-ieee: Work around test failure on Solaris 9.
19360         * modules/log10f-ieee (Depends-on): Add log10-ieee.
19361         (configure.ac): Require gl_FUNC_LOG10F.
19363         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
19364         * m4/log10-ieee.m4: New file.
19365         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
19366         whether log10 works with a negative argument. Replace it if not.
19367         * lib/log10.c (log10): For negative arguments, return NaN.
19368         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
19369         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
19370         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
19372         Tests for module 'log10l-ieee'.
19373         * modules/log10l-ieee-tests: New file.
19374         * tests/test-log10l-ieee.c: New file.
19376         New module 'log10l-ieee'.
19377         * modules/log10l-ieee: New file.
19379         Tests for module 'log10-ieee'.
19380         * modules/log10-ieee-tests: New file.
19381         * tests/test-log10-ieee.c: New file.
19383         New module 'log10-ieee'.
19384         * modules/log10-ieee: New file.
19386         Tests for module 'log10f-ieee'.
19387         * modules/log10f-ieee-tests: New file.
19388         * tests/test-log10f-ieee.c: New file.
19389         * tests/test-log10-ieee.h: New file.
19391         New module 'log10f-ieee'.
19392         * modules/log10f-ieee: New file.
19394 2012-04-01  Bruno Haible  <bruno@clisp.org>
19396         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
19397         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
19398         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
19399         workaround.
19400         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
19401         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
19402         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
19403         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
19404         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
19405         (Depends-on): Update conditions.
19406         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
19407         IRIX 6.5, OSF/1 5.1 problems.
19409 2012-04-01  Bruno Haible  <bruno@clisp.org>
19411         log10f: Work around OSF/1 5.1 bug.
19412         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
19413         * lib/log10f.c (log10f): If logf exists, use it and provide just the
19414         workaround.
19415         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
19416         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
19417         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
19418         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
19419         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
19420         (Depends-on): Update conditions.
19421         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
19423 2012-04-01  Bruno Haible  <bruno@clisp.org>
19425         log10: Work around OSF/1 5.1 bug.
19426         * lib/math.in.h (log10): New declaration.
19427         * lib/log10.c: New file.
19428         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
19429         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
19430         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
19431         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
19432         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
19433         * modules/log10 (Files): Add lib/log10.c.
19434         (Depends-on): Add math.
19435         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
19436         * tests/test-math-c++.cc: Check the declaration of log10.
19437         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
19439 2012-03-31  Bruno Haible  <bruno@clisp.org>
19441         log10l tests: More tests.
19442         * modules/log10l-tests (Files): Add tests/test-log10l.h,
19443         tests/minus-zero.h, tests/randoml.c.
19444         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
19445         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
19446         (main): Invoke test_function.
19448         log10f tests: More tests.
19449         * modules/log10f-tests (Files): Add tests/test-log10.h,
19450         tests/minus-zero.h, tests/randomf.c.
19451         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
19452         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
19453         (main): Invoke test_function.
19455         log10 tests: More tests.
19456         * tests/test-log10.h: New file.
19457         * modules/log10-tests (Files): Add tests/test-log10.h,
19458         tests/minus-zero.h, tests/randomd.c.
19459         (Makefile.am): Add randomd.c to test_log10_SOURCES.
19460         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
19461         (main): Invoke test_function.
19463 2012-03-31  Simon Josefsson  <simon@josefsson.org>
19465         fflush: Fix syntax error.
19466         * lib/fflush.c: Include unused-parameter.h, needed for
19467         _GL_UNUSED_PARAMETER.
19468         * modules/fflush (Depends-on): Add snippet/unused-parameter.
19470 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
19472         regex: pacify GCC when compiling GRUB
19473         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
19474         a diagnostic.  Reported by Vladimir Serbinenko in
19475         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
19477 2012-03-29  Eric Blake  <eblake@redhat.com>
19479         stdio: don't assume gets any more
19480         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
19481         support.
19482         * modules/stdio (Makefile.am): Likewise.
19483         * lib/stdio-read.c (gets): Likewise.
19484         * tests/test-stdio-c++.cc: Likewise.
19485         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
19486         * lib/stdio.in.h (gets): Make warning occur in more places.
19487         * doc/posix-functions/gets.texi (gets): Update documentation.
19488         Reported by Christer Solskogen.
19490         maint.mk: fix syntax checks without exclusions
19491         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
19492         Reported by Daniel P. Berrange.
19494         strerror_r: avoid compiler warning
19495         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
19496         level.
19498         fflush: avoid compiler warning
19499         * lib/fflush.c (update_fpos_cache): Mark variables that are
19500         potentially unused.
19502 2012-03-25  Bruno Haible  <bruno@clisp.org>
19504         Tests for module 'localeconv'.
19505         * modules/localeconv-tests: New file.
19506         * tests/test-localeconv.c: New file.
19508         New module 'localeconv'.
19509         * lib/locale.in.h (localeconv): New declaration.
19510         * lib/localeconv.c: New file.
19511         * m4/localeconv.m4: New file.
19512         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
19513         REPLACE_LOCALECONV.
19514         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
19515         REPLACE_LOCALECONV.
19516         * modules/localeconv: New file.
19517         * modules/nl_langinfo (Depends-on): Add localeconv.
19518         * modules/human (Depends-on): Likewise.
19519         * doc/posix-functions/localeconv.texi: Mention the new module.
19521 2012-03-25  Bruno Haible  <bruno@clisp.org>
19523         locale: Provide a complete 'struct lconv'.
19524         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
19525         'struct lconv' does not contain int_p_cs_precedes.
19526         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
19527         * doc/posix-headers/locale.texi: Update.
19529         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
19530         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
19531         * doc/posix-headers/locale.texi: Update.
19533         locale: Provide a working 'struct lconv'.
19534         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
19535         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
19536         'struct lconv' does not even contain decimal_point.
19537         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
19538         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
19539         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
19540         * doc/posix-headers/locale.texi: Mention the problems with
19541         'struct lconv'.
19542         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
19544 2012-03-24  Bruno Haible  <bruno@clisp.org>
19546         Enable common subexpression optimization in GCC.
19547         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
19548         macros.
19549         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
19550         GCC attribute 'const'.
19551         (uc_locale_language): Declare with GCC attribute 'pure'.
19552         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
19553         with GCC attribute 'const'.
19554         * lib/unictype.in.h (uc_is_general_category_withtable,
19555         uc_combining_class, uc_combining_class_name,
19556         uc_combining_class_long_name, uc_bidi_class_name,
19557         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
19558         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
19559         uc_decimal_value, uc_digit_value, uc_numeric_value,
19560         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
19561         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
19562         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
19563         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
19564         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
19565         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
19566         Declare with GCC attribute 'const'.
19567         (uc_general_category_name, uc_general_category_long_name,
19568         uc_general_category_byname, uc_general_category,
19569         uc_is_general_category, uc_combining_class_byname,
19570         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
19571         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
19572         Declare with GCC attribute 'pure'.
19573         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
19574         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
19575         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
19576         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
19577         with GCC attribute 'pure'.
19578         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
19579         'const'.
19580         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
19581         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
19582         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
19583         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
19584         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
19585         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
19586         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
19587         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
19588         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
19589         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
19590         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
19591         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
19592         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
19593         GCC attribute 'pure'.
19594         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
19595         'const'.
19596         * lib/uniwidth.in.h (uc_width): Simplify declaration.
19597         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
19598         u32_strwidth): Declare with GCC attribute 'pure'.
19600         Enable common subexpression optimization in GCC.
19601         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
19602         (alphasort): Declare with GCC attribute 'pure'.
19603         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
19604         (atoll): Declare with GCC attribute 'pure'.
19605         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
19606         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
19607         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
19608         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
19609         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
19610         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
19611         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
19613 2012-03-24  Bruno Haible  <bruno@clisp.org>
19615         gnulib-tool: Avoid unintended error output from 'cmp'.
19616         * gnulib-tool (func_add_file, func_update_file, func_import): Use
19617         "cmp -s", not "cmp > /dev/null".
19619 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
19621         gnulib-tool: fix imprecise comments w.r.t. an automake bug
19623         It's not just Automake versions < 1.9b that creates an empty
19624         pkgdatadir at installation time if pkgdata_DATA is specified
19625         to empty; modern automake versions do this as well, at least
19626         until automake 1.11.4 (not yet released at the moment of writing,
19627         but soon to appear).  That behaviour was generally considered a
19628         feature rather than a bug, at least until this discussion:
19629         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
19631         See also automake bugs #10997 and #11030.
19633         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
19634         reference to relevant automake bug numbers.
19635         (func_emit_tests_Makefile_am): Likewise.
19637 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
19639         announce-gen: use Digest::SHA when possible
19640         * build-aux/announce-gen: Use Digest::SHA when possible, falling
19641         back to Digest::SHA1 if necessary.
19643 2012-03-20  Jim Meyering  <meyering@redhat.com>
19645         tests: avoid gcc warnings about argv vs. const initializers
19646         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
19647         warnings about discarding 'const' qualifier from pointer target type.
19648         * tests/test-posix_spawn2.c (main): Likewise.
19650 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
19652         README-release: simplify slightly
19653         * top/README-release: Run "git checkout master" only once.
19655 2012-03-15  Mark Wielaard  <mark@klomp.org>
19657         git-merge-changelog: add specific example on how to use with hg.
19658         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
19660 2012-03-18  Mark Wielaard  <mark@klomp.org>
19662         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
19664 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
19666         git-version-gen: don't let "prefix" envvar cause trouble
19667         * build-aux/git-version-gen (prefix): Initialize properly,
19668         so as not to use a value specified via the environment.
19669         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
19671 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
19673         regex: diagnose too-large repeat counts in EREs
19674         Previously, the code did not diagnose the too-large repeat count
19675         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
19676         as if it were 'b\{1000000000}', which is unexpected.
19677         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
19678         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
19679         is a reasonable one for this problem.  Another option would be to
19680         create a new REG_OVERFLOW error for repeat counts that are too large.
19681         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
19682         count is too large, so that the caller can distinguish the two cases.
19683         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
19684         "Too large" return code, and that repeat counts are one example of this.
19686 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
19688         doc: some glibc x32 integer width issues
19689         * doc/posix-headers/sys_types.texi (sys/types.h):
19690         * doc/posix-headers/time.texi (time.h):
19691         Mention that glibc x32 does not conform to POSIX in a couple of
19692         areas related to integer widths.
19694 2012-03-15  Bruno Haible  <bruno@clisp.org>
19696         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
19697         * lib/fma.c (VOLATILE): New macro.
19698         (FUNC): Use it to work around a GCC compiler bug.
19700 2012-03-13  Bruno Haible  <bruno@clisp.org>
19702         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
19703         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
19704         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
19705         REPLACE_HYPOTL to 1.
19706         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
19708 2012-03-13  Bruno Haible  <bruno@clisp.org>
19710         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
19711         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
19712         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
19713         REPLACE_REMAINDERL to 1.
19714         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
19715         bug.
19717 2012-03-13  Bruno Haible  <bruno@clisp.org>
19719         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
19720         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
19721         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
19722         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
19723         too big rounding errors.
19724         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
19725         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
19726         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
19727         (Depends-on): Update conditions.
19728         * tests/test-sqrtl.c (my_ldexpl): New function.
19729         (main): Add test of a particular value.
19730         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
19732 2012-03-13  Pádraig Brady  <P@draigBrady.com>
19734         doc: Update timer_* platform portability notes.
19735         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
19736         that always return ENOSYS.
19737         * doc/posix-functions/timer_delete.texi: Likewise.
19738         * doc/posix-functions/timer_gettime.texi: Likewise.
19739         * doc/posix-functions/timer_settime.texi: Likewise.
19741 2012-03-13  Bruno Haible  <bruno@clisp.org>
19743         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
19744         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
19745         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
19746         REPLACE_CBRTL to 1.
19747         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
19749 2012-03-13  Bruno Haible  <bruno@clisp.org>
19751         remainderl: Avoid compilation error on AIX >= 5.2.
19752         * lib/math.in.h (remainderl): Undefine macro from the system header.
19754 2012-03-13  Bruno Haible  <bruno@clisp.org>
19756         Avoid compilation errors with MSVC option -fp:strict.
19757         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
19758         * lib/cbrtf.c: Likewise.
19759         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
19761 2012-03-12  Bruno Haible  <bruno@clisp.org>
19763         uninorm: Don't crash in out-of-memory conditions.
19764         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
19765         gracefully.
19766         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
19767         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
19769 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
19771         quote: fix syntax-check
19772         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
19773         also exports quote_quoting_options.
19775 2012-03-12  Simon Josefsson  <simon@josefsson.org>
19777         Collapse list of copyright years to ranges.  See
19778         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
19779         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
19780         build-aux/csharpexec.sh.in, build-aux/gnupload,
19781         build-aux/install-reloc, build-aux/javacomp.sh.in,
19782         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
19783         build-aux/move-if-change, build-aux/reloc-ldflags,
19784         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
19786 2012-03-11  Bruno Haible  <bruno@clisp.org>
19788         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
19789         * m4/log2f-ieee.m4: New file.
19790         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
19791         whether log2f works with a minus zero argument. Replace it if not.
19792         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
19793         (Depends-on): Add log2-ieee.
19794         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
19795         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
19797         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
19798         * m4/log2-ieee.m4: New file.
19799         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
19800         whether log2 works with a minus zero argument. Replace it if not.
19801         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
19802         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
19803         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
19805         Tests for module 'log2l-ieee'.
19806         * modules/log2l-ieee-tests: New file.
19807         * tests/test-log2l-ieee.c: New file.
19809         New module 'log2l-ieee'.
19810         * modules/log2l-ieee: New file.
19812         Tests for module 'log2-ieee'.
19813         * modules/log2-ieee-tests: New file.
19814         * tests/test-log2-ieee.c: New file.
19816         New module 'log2-ieee'.
19817         * modules/log2-ieee: New file.
19819         Tests for module 'log2f-ieee'.
19820         * modules/log2f-ieee-tests: New file.
19821         * tests/test-log2f-ieee.c: New file.
19822         * tests/test-log2-ieee.h: New file.
19824         New module 'log2f-ieee'.
19825         * modules/log2f-ieee: New file.
19827 2012-03-11  Bruno Haible  <bruno@clisp.org>
19829         Tests for module 'log2l'.
19830         * modules/log2l-tests: New file.
19831         * tests/test-log2l.c: New file.
19833         New module 'log2l'.
19834         * lib/math.in.h (log2l): New declaration.
19835         * lib/log2l.c: New file.
19836         * m4/log2l.m4: New file.
19837         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
19838         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
19839         REPLACE_LOG2L.
19840         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
19841         REPLACE_LOG2L.
19842         * modules/log2l: New file.
19843         * tests/test-math-c++.cc: Check the declaration of log2l.
19844         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
19845         and OSF/1 problems.
19847 2012-03-11  Bruno Haible  <bruno@clisp.org>
19849         Tests for module 'log2f'.
19850         * modules/log2f-tests: New file.
19851         * tests/test-log2f.c: New file.
19853         New module 'log2f'.
19854         * lib/math.in.h (log2f): New declaration.
19855         * lib/log2f.c: New file.
19856         * m4/log2f.m4: New file.
19857         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
19858         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
19859         REPLACE_LOG2F.
19860         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
19861         REPLACE_LOG2F.
19862         * modules/log2f: New file.
19863         * tests/test-math-c++.cc: Check the declaration of log2f.
19864         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
19865         and OSF/1 and Cygwin problems.
19867 2012-03-11  Bruno Haible  <bruno@clisp.org>
19869         Tests for module 'log2'.
19870         * modules/log2-tests: New file.
19871         * tests/test-log2.c: New file.
19872         * tests/test-log2.h: New file.
19874         New module 'log2'.
19875         * lib/math.in.h (log2): New declaration.
19876         * lib/log2.c: New file.
19877         * m4/log2.m4: New file.
19878         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
19879         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
19880         REPLACE_LOG2.
19881         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
19882         REPLACE_LOG2.
19883         * modules/log2: New file.
19884         * tests/test-math-c++.cc: Check the declaration of log2.
19885         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
19886         and OSF/1 and Cygwin problems.
19888 2012-03-11  Bruno Haible  <bruno@clisp.org>
19890         exp2* tests: More tests.
19891         * tests/test-exp2.h (test_function): Test all integral arguments that
19892         don't need to overflow or denormalized numbers.
19893         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
19894         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
19895         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
19897 2012-03-10  Bruno Haible  <bruno@clisp.org>
19899         log1pl-ieee: Work around test failure on AIX 7.1.
19900         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
19902         log1pl-ieee: Work around test failure on IRIX 6.5.
19903         * m4/log1pl-ieee.m4: New file.
19904         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
19905         test whether log1pl works with a minus zero argument. Replace it if
19906         not.
19907         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
19908         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
19909         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
19910         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
19911         (Depends-on): Update conditions.
19912         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
19913         m4/signbit.m4.
19914         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
19915         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
19917         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
19918         * m4/log1pf-ieee.m4: New file.
19919         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
19920         test whether log1pf works with a minus zero argument. Replace it if
19921         not.
19922         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
19923         m4/signbit.m4.
19924         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
19925         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
19927         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
19928         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
19929         (configure.ac): Require gl_FUNC_LOG1PF.
19931         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
19932         * m4/log1p-ieee.m4: New file.
19933         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
19934         whether log1p works with a minus zero argument. Replace it if not.
19935         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
19936         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
19937         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
19938         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
19939         (Depends-on): Update conditions.
19940         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
19941         m4/signbit.m4.
19942         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
19943         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
19945         Tests for module 'log1pl-ieee'.
19946         * modules/log1pl-ieee-tests: New file.
19947         * tests/test-log1pl-ieee.c: New file.
19949         New module 'log1pl-ieee'.
19950         * modules/log1pl-ieee: New file.
19952         Tests for module 'log1p-ieee'.
19953         * modules/log1p-ieee-tests: New file.
19954         * tests/test-log1p-ieee.c: New file.
19956         New module 'log1p-ieee'.
19957         * modules/log1p-ieee: New file.
19959         Tests for module 'log1pf-ieee'.
19960         * modules/log1pf-ieee-tests: New file.
19961         * tests/test-log1pf-ieee.c: New file.
19962         * tests/test-log1p-ieee.h: New file.
19964         New module 'log1pf-ieee'.
19965         * modules/log1pf-ieee: New file.
19967 2012-03-10  Bruno Haible  <bruno@clisp.org>
19969         Tests for module 'log1pl'.
19970         * modules/log1pl-tests: New file.
19971         * tests/test-log1pl.c: New file.
19973         New module 'log1pl'.
19974         * lib/math.in.h (log1pl): New declaration.
19975         * lib/log1pl.c: New file.
19976         * m4/log1pl.m4: New file.
19977         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
19978         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
19979         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
19980         * modules/log1pl: New file.
19981         * tests/test-math-c++.cc: Check the declaration of log1pl.
19982         * doc/posix-functions/log1pl.texi: Mention the new module.
19984 2012-03-10  Bruno Haible  <bruno@clisp.org>
19986         Tests for module 'log1pf'.
19987         * modules/log1pf-tests: New file.
19988         * tests/test-log1pf.c: New file.
19990         New module 'log1pf'.
19991         * lib/math.in.h (log1pf): New declaration.
19992         * lib/log1pf.c: New file.
19993         * m4/log1pf.m4: New file.
19994         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
19995         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
19996         REPLACE_LOG1PF.
19997         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
19998         REPLACE_LOG1PF.
19999         * modules/log1pf: New file.
20000         * tests/test-math-c++.cc: Check the declaration of log1pf.
20001         * doc/posix-functions/log1pf.texi: Mention the new module.
20003 2012-03-10  Bruno Haible  <bruno@clisp.org>
20005         log1p tests: More tests.
20006         * tests/test-log1p.h: New file.
20007         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
20008         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
20009         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
20010         (main): Invoke test_function.
20012         log1p: Provide replacement for Minix and MSVC.
20013         * lib/math.in.h (log1p): New declaration.
20014         * lib/log1p.c: New file.
20015         * m4/log1p.m4: New file.
20016         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
20017         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
20018         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
20019         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
20020         (Depends-on): Add math, isnand, log, round.
20021         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
20022         HAVE_LOG1P is 0.
20023         * tests/test-math-c++.cc: Check the declaration of log1p.
20024         * doc/posix-functions/log1p.texi: Mention the replacement.
20026 2012-03-10  Bruno Haible  <bruno@clisp.org>
20028         math tests: Small simplification.
20029         * tests/test-exp.h (test_function): Use the same err_bound for
20030         'double' on platforms with sizeof (long double) == sizeof (double)
20031         than on platforms with sizeof (long double) > sizeof (double).
20032         * tests/test-exp2.h (test_function): Likewise.
20033         * tests/test-expm1.h (test_function): Likewise.
20034         * tests/test-log.h (test_function): Likewise.
20036 2012-03-10  Bruno Haible  <bruno@clisp.org>
20038         Fix some comments.
20039         * lib/expl.c: Fix an ambiguous comment.
20040         * lib/expm1.c: Likewise.
20041         * lib/expm1l.c: Likewise.
20042         * lib/exp2.c: Likewise.
20043         * lib/exp2l.c: Likewise.
20045 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
20047         regex: allow inclusion of <regex.h> before <limits.h>
20048         Without this patch, portable programs had to include <limits.h> before
20049         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
20050         I ran into this problem with a test version of GNU grep on Solaris 8.
20051         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
20052         This is done conditionally so that this change can be merged
20053         back to glibc.
20054         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
20055         using the included regex.
20057         fts: depend on fdopendir
20058         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
20059         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
20060         problem was introduced when fdopendir was split out.
20062 2012-03-10  Bruno Haible  <bruno@clisp.org>
20064         Remove unused variables.
20065         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
20066         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
20068 2012-03-10  Bruno Haible  <bruno@clisp.org>
20070         isnanf-nolibm: Fix last commit.
20071         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
20073         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
20074         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
20076 2012-03-10  Bruno Haible  <bruno@clisp.org>
20078         logf-ieee: Work around test failure on NetBSD 5.1.
20079         * m4/logf-ieee.m4: New file.
20080         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
20081         whether logf works with a negative argument. Replace it if not.
20082         * lib/logf.c (logf): For negative arguments, return NaN.
20083         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
20084         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
20085         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
20087         logf-ieee: Work around test failure on Solaris 9.
20088         * modules/logf-ieee (Depends-on): Add log-ieee.
20089         (configure.ac): Require gl_FUNC_LOGF.
20091         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
20092         * m4/log-ieee.m4: New file.
20093         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
20094         log works with a negative argument. Replace it if not.
20095         * lib/log.c (log): For negative arguments, return NaN.
20096         * modules/log-ieee (Files): Add m4/log-ieee.m4.
20097         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
20098         * doc/posix-functions/log.texi: Mention the log-ieee module.
20100         Tests for module 'logl-ieee'.
20101         * modules/logl-ieee-tests: New file.
20102         * tests/test-logl-ieee.c: New file.
20104         New module 'logl-ieee'.
20105         * modules/logl-ieee: New file.
20107         Tests for module 'log-ieee'.
20108         * modules/log-ieee-tests: New file.
20109         * tests/test-log-ieee.c: New file.
20111         New module 'log-ieee'.
20112         * modules/log-ieee: New file.
20114         Tests for module 'logf-ieee'.
20115         * modules/logf-ieee-tests: New file.
20116         * tests/test-logf-ieee.c: New file.
20117         * tests/test-log-ieee.h: New file.
20119         New module 'logf-ieee'.
20120         * modules/logf-ieee: New file.
20122 2012-03-10  Bruno Haible  <bruno@clisp.org>
20124         log: Fix bug introduced on 2012-03-09.
20125         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
20127 2012-03-10  Pádraig Brady  <P@draigBrady.com>
20129         timer-time: link explicitly with pthreads on glibc
20130         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
20131         to support static linking, when newer glibc is
20132         detected, as that contains pthread emulation of
20133         POSIX timer functions where required.
20134         * modules/timer-time: Depend on threadlib to
20135         pull in the appropriate library to link.
20137 2012-03-10  Bruno Haible  <bruno@clisp.org>
20139         log* tests: More tests.
20140         * tests/test-log.h: New file.
20141         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
20142         (main): Invoke test_function.
20143         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
20144         (main): Invoke test_function.
20145         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
20146         (main): Invoke test_function.
20147         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
20148         tests/randomd.c.
20149         (Makefile.am): Add randomd.c to test_log_SOURCES.
20150         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
20151         tests/randomf.c.
20152         (Makefile.am): Add randomf.c to test_logf_SOURCES.
20153         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
20154         tests/randoml.c.
20155         (Depends-on): Add 'float'.
20156         (Makefile.am): Add randoml.c to test_logl_SOURCES.
20158 2012-03-09  Bruno Haible  <bruno@clisp.org>
20160         logl: Work around OSF/1 5.1 bug.
20161         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
20162         * lib/logl.c (logl): If logl exists, use it and provide just the
20163         workaround.
20164         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
20165         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
20166         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
20167         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
20168         * modules/logl (configure.ac): Consider REPLACE_LOGL.
20169         (Depends-on): Update conditions.
20170         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
20172 2012-03-09  Bruno Haible  <bruno@clisp.org>
20174         logf: Work around OSF/1 5.1 bug.
20175         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
20176         * lib/logf.c (logf): If logf exists, use it and provide just the
20177         workaround.
20178         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
20179         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
20180         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
20181         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
20182         * modules/logf (configure.ac): Consider REPLACE_LOGF.
20183         (Depends-on): Update conditions.
20184         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
20186 2012-03-09  Bruno Haible  <bruno@clisp.org>
20188         log: Work around OSF/1 5.1 bug.
20189         * lib/math.in.h (log): New declaration.
20190         * lib/log.c: New file.
20191         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
20192         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
20193         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
20194         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
20195         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
20196         * modules/log (Files): Add lib/log.c.
20197         (Depends-on): Add math.
20198         (configure.ac): If REPLACE_LOG is 1, compile an override.
20199         * tests/test-math-c++.cc: Check the declaration of log.
20200         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
20202 2012-03-09  Jim Meyering  <meyering@redhat.com>
20204         readtokens.c: adjust wording in a comment
20205         * lib/readtokens.c: Insert omitted "that" in a comment.
20207 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
20209         modechange: add notations +40, 00440, etc.
20210         * lib/modechange.c (mode_compile): Support new notations
20211         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
20213 2012-03-08  Bruno Haible  <bruno@clisp.org>
20215         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
20216         * m4/exp2l-ieee.m4: New file.
20217         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
20218         test whether exp2l works with a NaN argument and with a negative
20219         infinity argument. Replace it if not.
20220         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
20221         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
20222         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
20223         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
20224         (Depends-on): Update conditions.
20225         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
20226         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
20227         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
20229         Tests for module 'exp2l-ieee'.
20230         * modules/exp2l-ieee-tests: New file.
20231         * tests/test-exp2l-ieee.c: New file.
20233         New module 'exp2l-ieee'.
20234         * modules/exp2l-ieee: New file.
20236         Tests for module 'exp2-ieee'.
20237         * modules/exp2-ieee-tests: New file.
20238         * tests/test-exp2-ieee.c: New file.
20240         New module 'exp2-ieee'.
20241         * modules/exp2-ieee: New file.
20243         Tests for module 'exp2f-ieee'.
20244         * modules/exp2f-ieee-tests: New file.
20245         * tests/test-exp2f-ieee.c: New file.
20246         * tests/test-exp2-ieee.h: New file.
20248         New module 'exp2f-ieee'.
20249         * modules/exp2f-ieee: New file.
20251 2012-03-08  Bruno Haible  <bruno@clisp.org>
20253         Tests for module 'exp2l'.
20254         * modules/exp2l-tests: New file.
20255         * tests/test-exp2l.c: New file.
20257         New module 'exp2l'.
20258         * lib/math.in.h (exp2l): New declaration.
20259         * lib/exp2l.c: New file.
20260         * lib/expl-table.c: New file, extracted from lib/expl.c.
20261         * lib/expl.c (gl_expl_table): New declaration.
20262         (expl): Remove expl_table. Update reference.
20263         * m4/exp2l.m4: New file.
20264         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
20265         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
20266         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
20267         * modules/exp2l: New file.
20268         * modules/expl (Files): Add lib/expl-table.c.
20269         (configure.ac): Compile also expl-table.c.
20270         * tests/test-math-c++.cc: Check the declaration of exp2l.
20271         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
20272         problem.
20274 2012-03-08  Bruno Haible  <bruno@clisp.org>
20276         Tests for module 'exp2f'.
20277         * modules/exp2f-tests: New file.
20278         * tests/test-exp2f.c: New file.
20280         New module 'exp2f'.
20281         * lib/math.in.h (exp2f): New declaration.
20282         * lib/exp2f.c: New file.
20283         * m4/exp2f.m4: New file.
20284         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
20285         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
20286         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
20287         * modules/exp2f: New file.
20288         * tests/test-math-c++.cc: Check the declaration of exp2f.
20289         * doc/posix-functions/exp2f.texi: Mention the new module and the
20290         IRIX problem.
20292 2012-03-08  Bruno Haible  <bruno@clisp.org>
20294         Tests for module 'exp2'.
20295         * modules/exp2-tests: New file.
20296         * tests/test-exp2.c: New file.
20297         * tests/test-exp2.h: New file.
20299         New module 'exp2'.
20300         * lib/math.in.h (exp2): New declaration.
20301         * lib/exp2.c: New file.
20302         * m4/exp2.m4: New file.
20303         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
20304         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
20305         REPLACE_EXP2.
20306         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
20307         REPLACE_EXP2.
20308         * modules/exp2: New file.
20309         * tests/test-math-c++.cc: Check the declaration of exp2.
20310         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
20311         and OpenBSD problems.
20313 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
20315         savedir: fix comment typo
20316         * lib/savedir.c (savedirstream): Fix typo in comment.
20318 2012-03-08  Bruno Haible  <bruno@clisp.org>
20320         test-readtokens.c: use const; remove unwarranted cast
20321         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
20323 2012-03-08  Bruno Haible  <bruno@clisp.org>
20325         fmal: Avoid compilation error on AIX.
20326         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
20327         AIX 5.2..7.1.
20329 2012-03-08  Bruno Haible  <bruno@clisp.org>
20331         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
20332         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
20333         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
20334         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
20335         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
20336         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
20337         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
20339 2012-03-08  Bruno Haible  <bruno@clisp.org>
20341         remainderf: Override buggy system function on IRIX 6.5.
20342         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
20343         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
20344         when it exists.
20345         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
20347 2012-03-08  Jim Meyering  <meyering@redhat.com>
20349         test-readtokens.c: avoid const-related compilation warnings
20350         * tests/test-readtokens.c: Avoid const-related compilation warnings.
20352 2012-03-07  Jim Meyering  <meyering@redhat.com>
20353             Bruno Haible  <bruno@clisp.org>
20355         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
20356         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
20357         tests/randomd.c.
20358         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
20359         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
20360         tests/randoml.c.
20361         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
20363 2012-03-07  Bruno Haible  <bruno@clisp.org>
20365         expm1l: Avoid compilation error on AIX.
20366         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
20367         AIX 5.2..7.1.
20369 2012-03-07  Bruno Haible  <bruno@clisp.org>
20371         expm1l: Don't override undeclared system function on IRIX 6.5.
20372         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
20373         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
20374         it exists. Set HAVE_DECL_EXPM1L.
20375         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
20376         HAVE_EXPM1L.
20377         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
20378         HAVE_EXPM1L.
20379         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
20381 2012-03-07  Bruno Haible  <bruno@clisp.org>
20383         remainderl: Don't override undeclared system function on IRIX 6.5.
20384         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
20385         HAVE_REMAINDERL.
20386         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
20387         declared when it exists. Set HAVE_DECL_REMAINDERL.
20388         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
20389         not HAVE_REMAINDERL.
20390         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
20391         HAVE_REMAINDERL.
20392         * doc/posix-functions/remainderl.texi: Mention missing declaration
20393         problem.
20395 2012-03-07  Bruno Haible  <bruno@clisp.org>
20397         rintf: Don't override undeclared system function on IRIX 6.5.
20398         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
20399         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
20400         exists. Set HAVE_DECL_RINTF.
20401         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
20402         HAVE_RINTF.
20403         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
20404         HAVE_RINTF.
20405         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
20407 2012-03-07  Bruno Haible  <bruno@clisp.org>
20409         roundl: Avoid compilation error on AIX.
20410         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
20411         AIX 5.2..7.1.
20413 2012-03-07  Bruno Haible  <bruno@clisp.org>
20415         roundl: Don't override undeclared system function on IRIX 6.5.
20416         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
20417         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
20418         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
20419         * modules/roundl (configure.ac): For replacement code, test
20420         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
20421         (Depends-on): Update conditions.
20422         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
20424 2012-03-07  Bruno Haible  <bruno@clisp.org>
20426         roundf: Don't override undeclared system function on IRIX 6.5.
20427         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
20428         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
20429         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
20430         * modules/roundf (configure.ac): For replacement code, test
20431         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
20432         (Depends-on): Update conditions.
20433         * modules/roundf-ieee (Depends-on): Update conditions.
20434         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
20436 2012-03-07  Bruno Haible  <bruno@clisp.org>
20438         round: Don't override undeclared system function on IRIX 6.5.
20439         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
20440         argument.
20441         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
20442         also when it is not declared. Set HAVE_ROUND. For replacement code,
20443         test HAVE_ROUND, not HAVE_DECL_ROUND.
20444         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
20445         not HAVE_DECL_ROUND.
20446         (Depends-on): Update conditions.
20447         * modules/round-ieee (Depends-on): Update conditions.
20448         * doc/posix-functions/round.texi: Mention the IRIX problem.
20450 2012-03-07  Bruno Haible  <bruno@clisp.org>
20452         copysignf: Don't override undeclared system function on IRIX 6.5.
20453         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
20454         HAVE_COPYSIGNF.
20455         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
20456         declared when it exists. Set HAVE_DECL_COPYSIGNF.
20457         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
20458         not HAVE_COPYSIGNF.
20459         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
20460         HAVE_COPYSIGNF.
20461         * doc/posix-functions/copysignf.texi: Mention missing declaration
20462         problem.
20464 2012-03-07  Jim Meyering  <meyering@redhat.com>
20466         readtokens: add tests
20467         * modules/readtokens-tests: New file.
20468         * tests/test-readtokens.c: New file.
20470 2012-03-07  Jim Meyering  <meyering@redhat.com>
20472         quotearg: the module must now include quote.h
20473         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
20474         So must the module.
20475         * modules/quotearg (Files): Add quote.h.
20477 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
20479         readtokens: avoid core dumps with unusual calling patterns
20480         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
20481         * lib/readtokens.c: Include limits.h.
20482         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
20483         (readtoken): Don't cache the delimiters; the cache code was buggy
20484         if !delim && saved_delim, or if the new n_delim differs from the old.
20485         Also, it wasn't thread-safe.
20487 2012-03-07  Bruno Haible  <bruno@clisp.org>
20489         quote: Adhere to common module description layout.
20490         * modules/quote (Makefile.am): Add back empty section.
20492 2012-03-06  Akim Demaille  <demaille@gostai.com>
20494         quote: fuse into quotearg
20495         This patch is made for the benefit of Bison.
20496         quote does not leave the choice of the quoting style to the user.
20497         quoting_style provides poor customizability, yet quoting_options,
20498         which is very rich, is hidden inside quotearg.c.  So in order to
20499         allow quote customization, move its implementation to quotearg.c.
20500         * lib/quote.c: Remove.
20501         * modules/quote: Adjust.
20502         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
20503         warning: provide all the members of literal structs.
20504         (quote_quoting_options): New.
20505         (quote, quote_n): Import implementation from quote.c.
20506         * lib/quote.h: Import the comments from quote.c.
20507         (quote_quoting_options): New.
20509 2012-03-06  Bruno Haible  <bruno@clisp.org>
20511         Tests for module 'expm1l-ieee'.
20512         * modules/expm1l-ieee-tests: New file.
20513         * tests/test-expm1l-ieee.c: New file.
20515         New module 'expm1l-ieee'.
20516         * modules/expm1l-ieee: New file.
20518         Tests for module 'expm1f-ieee'.
20519         * modules/expm1f-ieee-tests: New file.
20520         * tests/test-expm1f-ieee.c: New file.
20522         New module 'expm1f-ieee'.
20523         * modules/expm1f-ieee: New file.
20525         Tests for module 'expm1-ieee'.
20526         * modules/expm1-ieee-tests: New file.
20527         * tests/test-expm1-ieee.c: New file.
20528         * tests/test-expm1-ieee.h: New file.
20530         New module 'expm1-ieee'.
20531         * modules/expm1-ieee: New file.
20532         * m4/expm1-ieee.m4: New file.
20533         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
20534         whether expm1 works with a minus zero argument. Replace it if not.
20535         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
20536         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
20537         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
20538         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
20539         (Depends-on): Update conditions.
20540         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
20541         AIX problem.
20543 2012-03-06  Bruno Haible  <bruno@clisp.org>
20545         Work around expm1f bug on IRIX 6.5.
20546         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
20547         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
20548         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
20549         not work.
20550         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
20551         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
20552         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
20553         (Depends-on): Update conditions.
20554         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
20556 2012-03-06  Bruno Haible  <bruno@clisp.org>
20558         Tests for module 'expm1l'.
20559         * modules/expm1l-tests: New file.
20560         * tests/test-expm1l.c: New file.
20562         New module 'expm1l'.
20563         * lib/math.in.h (expm1l): New declaration.
20564         * lib/expm1l.c: New file.
20565         * m4/expm1l.m4: New file.
20566         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
20567         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
20568         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
20569         * modules/expm1l: New file.
20570         * tests/test-math-c++.cc: Check the declaration of expm1l.
20571         * doc/posix-functions/expm1l.texi: Mention the new module.
20573 2012-03-06  Bruno Haible  <bruno@clisp.org>
20575         Tests for module 'expm1f'.
20576         * modules/expm1f-tests: New file.
20577         * tests/test-expm1f.c: New file.
20579         New module 'expm1f'.
20580         * lib/math.in.h (expm1f): New declaration.
20581         * lib/expm1f.c: New file.
20582         * m4/expm1f.m4: New file.
20583         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
20584         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
20585         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
20586         * modules/expm1f: New file.
20587         * tests/test-math-c++.cc: Check the declaration of expm1f.
20588         * doc/posix-functions/expm1f.texi: Mention the new module.
20590 2012-03-06  Bruno Haible  <bruno@clisp.org>
20592         Tests for module 'expm1'.
20593         * modules/expm1-tests: New file.
20594         * tests/test-expm1.c: New file.
20595         * tests/test-expm1.h: New file.
20597         New module 'expm1'.
20598         * lib/math.in.h (expm1): New declaration.
20599         * lib/expm1.c: New file.
20600         * m4/expm1.m4: New file.
20601         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
20602         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
20603         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
20604         * modules/expm1: New file.
20605         * tests/test-math-c++.cc: Check the declaration of expm1.
20606         * doc/posix-functions/expm1.texi: Mention the new module.
20608 2012-03-06  Bruno Haible  <bruno@clisp.org>
20610         math: Ensure declarations of math functions.
20611         * modules/acosf (Depends-on): Add 'extensions'.
20612         * modules/asinf (Depends-on): Likewise.
20613         * modules/atan2f (Depends-on): Likewise.
20614         * modules/atanf (Depends-on): Likewise.
20615         * modules/cbrt (Depends-on): Likewise.
20616         * modules/cbrtf (Depends-on): Likewise.
20617         * modules/cbrtl (Depends-on): Likewise.
20618         * modules/copysignf (Depends-on): Likewise.
20619         * modules/copysignl (Depends-on): Likewise.
20620         * modules/cosf (Depends-on): Likewise.
20621         * modules/coshf (Depends-on): Likewise.
20622         * modules/expf (Depends-on): Likewise.
20623         * modules/fabsf (Depends-on): Likewise.
20624         * modules/fabsl (Depends-on): Likewise.
20625         * modules/fmaf (Depends-on): Likewise.
20626         * modules/fmal (Depends-on): Likewise.
20627         * modules/fmodf (Depends-on): Likewise.
20628         * modules/fmodl (Depends-on): Likewise.
20629         * modules/frexpf (Depends-on): Likewise.
20630         * modules/frexpl (Depends-on): Likewise.
20631         * modules/hypot (Depends-on): Likewise.
20632         * modules/hypotf (Depends-on): Likewise.
20633         * modules/hypotl (Depends-on): Likewise.
20634         * modules/ldexpf (Depends-on): Likewise.
20635         * modules/ldexpl (Depends-on): Likewise.
20636         * modules/log10f (Depends-on): Likewise.
20637         * modules/log10l (Depends-on): Likewise.
20638         * modules/log1p (Depends-on): Likewise.
20639         * modules/logb (Depends-on): Likewise.
20640         * modules/logf (Depends-on): Likewise.
20641         * modules/modff (Depends-on): Likewise.
20642         * modules/modfl (Depends-on): Likewise.
20643         * modules/powf (Depends-on): Likewise.
20644         * modules/remainderf (Depends-on): Likewise.
20645         * modules/remainderl (Depends-on): Likewise.
20646         * modules/rintf (Depends-on): Likewise.
20647         * modules/rintl (Depends-on): Likewise.
20648         * modules/sinf (Depends-on): Likewise.
20649         * modules/sinhf (Depends-on): Likewise.
20650         * modules/sqrtf (Depends-on): Likewise.
20651         * modules/tanf (Depends-on): Likewise.
20652         * modules/tanhf (Depends-on): Likewise.
20653         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
20654         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
20655         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
20656         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
20657         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
20658         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
20659         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
20660         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
20661         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
20662         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
20663         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
20664         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
20665         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
20666         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
20667         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
20668         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
20669         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
20670         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
20671         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
20672         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
20673         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
20674         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
20675         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
20676         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
20677         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
20678         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
20679         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
20680         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
20681         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
20682         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
20683         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
20684         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
20685         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
20686         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
20687         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
20688         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
20689         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
20690         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
20691         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
20692         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
20693         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
20695 2012-03-06  Bruno Haible  <bruno@clisp.org>
20697         math: Update module names in warnings.
20698         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
20699         tanl): Use specific module name in warn-on-use warning.
20701 2012-03-06  Bruno Haible  <bruno@clisp.org>
20703         expl: Simplify computation.
20704         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
20706 2012-03-05  Bruno Haible  <bruno@clisp.org>
20708         exp* tests: More tests.
20709         * tests/test-exp.h: New file.
20710         * tests/test-exp.c: Include <float.h> and test-exp.h.
20711         (main): Invoke test_function.
20712         * tests/test-expf.c: Include <float.h> and test-exp.h.
20713         (main): Invoke test_function.
20714         * tests/test-expl.c: Include <float.h> and test-exp.h.
20715         (main): Invoke test_function.
20716         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
20717         (Makefile.am): Add randomd.c to test_exp_SOURCES.
20718         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
20719         (Makefile.am): Add randomf.c to test_expf_SOURCES.
20720         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
20721         (Depends-on): Add 'float'.
20722         (Makefile.am): Add randoml.c to test_expl_SOURCES.
20724         expl: Fix precision of computed result.
20725         * lib/expl.c: Completely rewritten.
20726         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
20727         (Maintainer): Add me.
20728         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
20730 2012-03-05  Bruno Haible  <bruno@clisp.org>
20732         cbrt* tests: More tests.
20733         * tests/test-cbrt.h: New file.
20734         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
20735         (main): Invoke test_function.
20736         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
20737         (main): Invoke test_function.
20738         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
20739         (main): Invoke test_function.
20740         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
20741         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
20742         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
20743         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
20744         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
20745         (Depends-on): Add 'float'.
20746         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
20748 2012-03-05  Bruno Haible  <bruno@clisp.org>
20750         hypot* tests: More tests.
20751         * tests/test-hypot.h: New file, partially extracted from
20752         tests/test-hypotl.c.
20753         * tests/test-hypot.c: Include test-hypot.h.
20754         (main): Invoke test_function.
20755         * tests/test-hypotf.c: Include test-hypot.h.
20756         (main): Invoke test_function.
20757         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
20758         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
20759         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
20760         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
20761         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
20762         tests/randomf.c.
20763         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
20764         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
20765         tests/randoml.c.
20766         (Depends-on): Add 'fpucw', 'float'.
20767         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
20769 2012-03-05  Bruno Haible  <bruno@clisp.org>
20771         fpucw: Doc about FreeBSD.
20772         * lib/fpucw.h: Mention FreeBSD in comments.
20774 2012-03-04  Bruno Haible  <bruno@clisp.org>
20776         sqrt* tests: More tests.
20777         * tests/test-sqrt.h: New file.
20778         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
20779         (main): Invoke test_function.
20780         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
20781         (main): Invoke test_function.
20782         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
20783         (main): Invoke test_function.
20784         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
20785         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
20786         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
20787         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
20788         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
20789         (Depends-on): Add 'float'.
20790         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
20792 2012-03-04  Bruno Haible  <bruno@clisp.org>
20794         remainder* tests: More tests.
20795         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
20796         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
20797         (main): Invoke test_function.
20798         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
20799         (main): Invoke test_function.
20800         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
20801         (main): Invoke test_function.
20802         * modules/remainder-tests (Files): Add tests/test-remainder.h,
20803         tests/randomd.c.
20804         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
20805         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
20806         tests/randomf.c.
20807         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
20808         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
20809         tests/randoml.c.
20810         (Depends-on): Add 'float'.
20811         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
20813 2012-03-04  Bruno Haible  <bruno@clisp.org>
20815         remainder, remainderf, remainderl: Fix computation for large quotients.
20816         * lib/remainder.c: Completely rewritten.
20817         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
20818         USE_FLOAT.
20819         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
20820         USE_LONG_DOUBLE.
20821         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
20822         isnand, isinf. Remove round, fma.
20823         * modules/remainderf (Files): Add lib/remainder.c.
20824         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
20825         Remove roundf, fmaf.
20826         * modules/remainderl (Files): Add lib/remainder.c.
20827         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
20828         isinf. Remove roundl, fmal.
20829         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
20830         REMAINDER_LIBM.
20831         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
20832         REMAINDERF_LIBM.
20833         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
20834         REMAINDERL_LIBM.
20836 2012-03-04  Bruno Haible  <bruno@clisp.org>
20838         fmod* tests: More tests.
20839         * tests/test-fmod.h (my_ldexp): New function.
20840         (test_function): Reduce amount of random numbers to test. Add tests
20841         of very large quotients x / y.
20842         * tests/test-fmod.c (MAX_EXP): New macro.
20843         * tests/test-fmodf.c (MAX_EXP): Likewise.
20844         * tests/test-fmodl.c (MAX_EXP): Likewise.
20846 2012-03-04  Bruno Haible  <bruno@clisp.org>
20848         fmod, fmodl: Fix computation for large quotients x / y.
20849         * lib/fmod.c: Completely rewritten.
20850         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
20851         USE_LONG_DOUBLE.
20852         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
20853         isnand. Remove fma.
20854         * modules/fmodl (Files): Add lib/fmod.c.
20855         (Depends-on): Add float, isfinite, signbit, fabsl,
20856         frexpl, ldexpl, isnanl. Remove fma.
20857         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
20858         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
20860 2012-03-03  Bruno Haible  <bruno@clisp.org>
20862         fmod* tests: More tests.
20863         * tests/test-fmod.h: New file.
20864         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
20865         (main): Invoke test_function.
20866         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
20867         (main): Invoke test_function.
20868         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
20869         (main): Invoke test_function.
20870         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
20871         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
20872         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
20873         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
20874         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
20875         (Depends-on): Add 'float'.
20876         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
20878 2012-03-03  Bruno Haible  <bruno@clisp.org>
20880         rint* tests: More tests.
20881         * tests/test-rint.h: New file, partially extracted from
20882         tests/test-rintl.c.
20883         * tests/test-rint.c: Include test-rint.h.
20884         (main): Invoke test_function.
20885         * tests/test-rintf.c: Include test-rint.h.
20886         (main): Invoke test_function.
20887         * tests/test-rintl.c: Include test-rint.h.
20888         (main): Invoke test_function.
20889         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
20890         (Makefile.am): Add randomd.c to test_rint_SOURCES.
20891         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
20892         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
20893         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
20894         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
20896 2012-03-03  Bruno Haible  <bruno@clisp.org>
20898         modf* tests: More tests.
20899         * tests/test-modf.h: New file.
20900         * tests/test-modf.c: Include <float.h> and test-modf.h.
20901         (main): Invoke test_function.
20902         * tests/test-modff.c: Include <float.h> and test-modf.h.
20903         (main): Invoke test_function.
20904         * tests/test-modfl.c: Include <float.h> and test-modf.h.
20905         (main): Invoke test_function.
20906         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
20907         (Makefile.am): Add randomd.c to test_modf_SOURCES.
20908         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
20909         (Makefile.am): Add randomf.c to test_modff_SOURCES.
20910         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
20911         (Depends-on): Add 'float'.
20912         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
20914 2012-03-03  Bruno Haible  <bruno@clisp.org>
20916         fabs* tests: More tests.
20917         * tests/test-fabs.h: New file, partially extracted from
20918         tests/test-fabsl.c.
20919         * tests/test-fabs.c (RANDOM): New macro.
20920         * tests/test-fabsf.c (RANDOM): New macro.
20921         * tests/test-fabsl.c (RANDOM): New macro.
20922         * modules/fabs-tests (Files): Add tests/randomd.c.
20923         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
20924         * modules/fabsf-tests (Files): Add tests/randomf.c.
20925         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
20926         * modules/fabsl-tests (Files): Add tests/randoml.c.
20927         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
20929 2012-03-03  Bruno Haible  <bruno@clisp.org>
20931         ldexp* tests: More tests.
20932         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
20933         * tests/test-ldexp.c (RANDOM): New macro.
20934         * tests/test-ldexpf.c (RANDOM): New macro.
20935         * tests/test-ldexpl.c (RANDOM): New macro.
20936         * modules/ldexp-tests (Files): Add tests/randomd.c.
20937         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
20938         * modules/ldexpf-tests (Files): Add tests/randomf.c.
20939         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
20940         * modules/ldexpl-tests (Files): Add tests/randoml.c.
20941         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
20943 2012-03-03  Bruno Haible  <bruno@clisp.org>
20945         frexp* tests: More tests.
20946         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
20947         * tests/test-frexp.c (RANDOM): New macro.
20948         * tests/test-frexpf.c (RANDOM): New macro.
20949         * tests/test-frexpl.c (RANDOM): New macro.
20950         * modules/frexp-tests (Files): Add tests/randomd.c.
20951         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
20952         * modules/frexpf-tests (Files): Add tests/randomf.c.
20953         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
20954         * modules/frexpl-tests (Files): Add tests/randoml.c.
20955         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
20957 2012-03-03  Bruno Haible  <bruno@clisp.org>
20959         Support for pseudo-random numbers in tests.
20960         * tests/randomf.c: New file.
20961         * tests/randomd.c: New file.
20962         * tests/randoml.c: New file.
20963         * tests/macros.h (randomf, randomd, randoml): New declarations.
20965 2012-03-03  Bruno Haible  <bruno@clisp.org>
20967         frexp* tests: Refactor.
20968         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
20969         * tests/test-frexp.c: Include and use it.
20970         * tests/test-frexpf.c: Likewise.
20971         * tests/test-frexpl.c: Likewise.
20972         * modules/frexp-tests (Files): Add tests/test-frexp.h.
20973         * modules/frexpf-tests (Files): Likewise.
20974         * modules/frexpl-tests (Files): Likewise.
20976 2012-03-02  Jim Meyering  <meyering@redhat.com>
20978         maint: don't specify XZ_OPT=-9ev in dist-related rule
20979         Using xz's -9 option is warranted only if you have a very large
20980         tarball (see xz's documentation for the sizes vs. presets), and
20981         requires 64MiB of memory at decompression time.
20982         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
20983         Automake's default of just "-e" is fine.  Override on a
20984         per-package basis by setting XZ_OPT e.g., in cfg.mk.
20986 2012-03-01  Eric Blake  <eblake@redhat.com>
20988         maint.mk: allow announcement for non-gnulib project
20989         * maint.mk (announcement): Skip gnulib version if not used.
20991 2012-03-01  Jim Meyering  <meyering@redhat.com>
20993         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
20994         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
20995         envvar settings cannot interfere.  Otherwise, setting envvars like
20996         prohibit=foo require=bar, etc. would cause spurious test failures.
20998 2012-03-01  Eric Blake  <eblake@redhat.com>
21000         maint.mk: add per-line exclusions to prohibitions
21001         * maint.mk (_sc_search_regexp): Add $exclude parameter.
21002         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
21003         (sc_const_long_option): Use it.
21005 2012-03-01  Bruno Haible  <bruno@clisp.org>
21007         Tests for module 'expl-ieee'.
21008         * modules/expl-ieee-tests: New file.
21009         * tests/test-expl-ieee.c: New file.
21011         New module 'expl-ieee'.
21012         * modules/expl-ieee: New file.
21014         Tests for module 'exp-ieee'.
21015         * modules/exp-ieee-tests: New file.
21016         * tests/test-exp-ieee.c: New file.
21018         New module 'exp-ieee'.
21019         * modules/exp-ieee: New file.
21021         Tests for module 'expf-ieee'.
21022         * modules/expf-ieee-tests: New file.
21023         * tests/test-expf-ieee.c: New file.
21024         * tests/test-exp-ieee.h: New file.
21026         New module 'expf-ieee'.
21027         * modules/expf-ieee: New file.
21029 2012-02-29  Bruno Haible  <bruno@clisp.org>
21031         cbrtl-ieee: Work around test failure on IRIX 6.5.
21032         * m4/cbrtl-ieee.m4: New file.
21033         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
21034         test whether cbrtl works with a minus zero argument. Replace it if not.
21035         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
21036         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
21037         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
21038         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
21039         (Depends-on): Update conditions.
21040         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
21041         m4/signbit.m4.
21042         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
21043         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
21044         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
21046         Tests for module 'cbrtl-ieee'.
21047         * modules/cbrtl-ieee-tests: New file.
21048         * tests/test-cbrtl-ieee.c: New file.
21050         New module 'cbrtl-ieee'.
21051         * modules/cbrtl-ieee: New file.
21053         Tests for module 'cbrt-ieee'.
21054         * modules/cbrt-ieee-tests: New file.
21055         * tests/test-cbrt-ieee.c: New file.
21057         New module 'cbrt-ieee'.
21058         * modules/cbrt-ieee: New file.
21060         Tests for module 'cbrtf-ieee'.
21061         * modules/cbrtf-ieee-tests: New file.
21062         * tests/test-cbrtf-ieee.c: New file.
21063         * tests/test-cbrt-ieee.h: New file.
21065         New module 'cbrtf-ieee'.
21066         * modules/cbrtf-ieee: New file.
21068 2012-02-29  Bruno Haible  <bruno@clisp.org>
21070         cbrtf: Work around bug in IRIX 6.5 system function.
21071         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
21072         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
21073         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
21074         work.
21075         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
21076         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
21077         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
21078         (Depends-on): Update conditions.
21079         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
21081 2012-02-29  Bruno Haible  <bruno@clisp.org>
21083         Tests for module 'cbrtl'.
21084         * modules/cbrtl-tests: New file.
21085         * tests/test-cbrtl.c: New file.
21087         New module 'cbrtl'.
21088         * lib/math.in.h (cbrtl): New declaration.
21089         * lib/cbrtl.c: New file.
21090         * m4/cbrtl.m4: New file.
21091         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
21092         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
21093         HAVE_DECL_CBRTL.
21094         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
21095         HAVE_DECL_CBRTL.
21096         * modules/cbrtl: New file.
21097         * tests/test-math-c++.cc: Check the declaration of cbrtl.
21098         * doc/posix-functions/cbrtl.texi: Mention the new module.
21100 2012-02-29  Bruno Haible  <bruno@clisp.org>
21102         Tests for module 'cbrtf'.
21103         * modules/cbrtf-tests: New file.
21104         * tests/test-cbrtf.c: New file.
21106         New module 'cbrtf'.
21107         * lib/math.in.h (cbrtf): New declaration.
21108         * lib/cbrtf.c: New file.
21109         * m4/cbrtf.m4: New file.
21110         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
21111         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
21112         HAVE_DECL_CBRTF.
21113         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
21114         HAVE_DECL_CBRTF.
21115         * modules/cbrtf: New file.
21116         * tests/test-math-c++.cc: Check the declaration of cbrtf.
21117         * doc/posix-functions/cbrtf.texi: Mention the new module.
21119 2012-02-29  Bruno Haible  <bruno@clisp.org>
21121         cbrt: Provide replacement on MSVC and Minix.
21122         * lib/math.in.h (cbrt): New declaration.
21123         * lib/cbrt.c: New file.
21124         * m4/cbrt.m4: New file.
21125         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
21126         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
21127         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
21128         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
21129         (Depends-on): Add dependencies.
21130         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
21131         * tests/test-math-c++.cc: Check the declaration of cbrt.
21132         * doc/posix-functions/cbrt.texi: Mention that the module provides a
21133         replacement.
21135 2012-02-29  Bruno Haible  <bruno@clisp.org>
21137         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
21138         * m4/hypotl-ieee.m4: New file.
21139         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
21140         test whether hypotl works with mixed NaN and Infinity arguments.
21141         Replace it if not.
21142         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
21143         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
21144         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
21145         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
21146         (Depends-on): Update conditions.
21147         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
21148         (Depends-on): Add hypot-ieee.
21149         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
21150         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
21152         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
21153         * m4/hypotf-ieee.m4: New file.
21154         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
21155         test whether hypotf works with mixed NaN and Infinity arguments.
21156         Replace it if not.
21157         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
21158         (Depends-on): Add hypot-ieee.
21159         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
21160         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
21162         hypot-ieee: Work around test failure on OSF/1 and native Windows.
21163         * lib/math.in.h (hypot): New declaration.
21164         * lib/hypot.c: New file.
21165         * m4/hypot-ieee.m4: New file.
21166         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
21167         whether hypot works with mixed NaN and Infinity arguments. Replace it
21168         if not.
21169         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
21170         REPLACE_HYPOT.
21171         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
21172         * modules/hypot (Files): Add lib/hypot.c.
21173         (Depends-on): Add dependencies.
21174         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
21175         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
21176         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
21177         * tests/test-math-c++.cc: Check the declaration of hypot.
21178         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
21180         Tests for module 'hypotl-ieee'.
21181         * modules/hypotl-ieee-tests: New file.
21182         * tests/test-hypotl-ieee.c: New file.
21184         New module 'hypotl-ieee'.
21185         * modules/hypotl-ieee: New file.
21187         Tests for module 'hypot-ieee'.
21188         * modules/hypot-ieee-tests: New file.
21189         * tests/test-hypot-ieee.c: New file.
21191         New module 'hypot-ieee'.
21192         * modules/hypot-ieee: New file.
21194         Tests for module 'hypotf-ieee'.
21195         * modules/hypotf-ieee-tests: New file.
21196         * tests/test-hypotf-ieee.c: New file.
21197         * tests/test-hypot-ieee.h: New file.
21199         New module 'hypotf-ieee'.
21200         * modules/hypotf-ieee: New file.
21202 2012-02-29  Bruno Haible  <bruno@clisp.org>
21204         Remove unused variables.
21205         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
21206         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
21207         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
21208         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
21210 2012-02-29  Eric Blake  <eblake@redhat.com>
21212         termios: fix pid_t always, not just for tcgetsid
21213         * doc/posix-headers/termios.texi (termios.h): Mention problem.
21214         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
21215         just when building tcgetsid.
21217 2012-02-29  Bruno Haible  <bruno@clisp.org>
21219         Tests for module 'hypotl'.
21220         * modules/hypotl-tests: New file.
21221         * tests/test-hypotl.c: New file.
21223         New module 'hypotl'.
21224         * lib/math.in.h (hypotl): New declaration.
21225         * lib/hypotl.c: New file.
21226         * m4/hypotl.m4: New file.
21227         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
21228         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
21229         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
21230         * modules/hypotl: New file.
21231         * tests/test-math-c++.cc: Check the hypotl declaration.
21232         * doc/posix-functions/hypotl.texi: Mention the new module.
21234 2012-02-29  Eric Blake  <eblake@redhat.com>
21236         tcgetsid: fix cygwin header bug
21237         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
21239         docs: update cygwin progress
21240         * doc/posix-functions/llround.texi (llround): Added in cygwin
21241         1.7.8.
21242         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
21243         * doc/glibc-functions/program_invocation_name.texi
21244         (program_invocation_name): Likewise.
21245         * doc/glibc-functions/program_invocation_short_name.texi
21246         (program_invocation_short_name): Likewise.
21247         * doc/glibc-functions/madvise.texi (madvise): Likewise.
21248         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
21249         Likewise.
21250         * doc/posix-functions/pthread_spin_destroy.texi
21251         (pthread_spin_destroy): Added in cygwin 1.7.10.
21252         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
21253         Likewise.
21254         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
21255         Likewise.
21256         * doc/posix-functions/pthread_spin_trylock.texi
21257         (pthread_spin_trylock): Likewise.
21258         * doc/posix-functions/pthread_spin_unlock.texi
21259         (pthread_spin_unlock): Likewise.
21260         * doc/posix-functions/pthread_setschedprio.texi
21261         (pthread_setschedprio): Likewise.
21262         * doc/posix-functions/pthread_attr_getstack.texi
21263         (pthread_attr_getstack): Likewise.
21264         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
21265         (pthread_attr_getstackaddr): Likewise.
21266         * doc/glibc-functions/pthread_getattr_np.texi
21267         (pthread_getattr_np): Likewise.
21268         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
21269         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
21270         * doc/posix-functions/clock_settime.texi (clock_settime):
21271         Likewise.
21272         * doc/posix-functions/pthread_attr_getguardsize.texi
21273         (pthread_attr_getguardsize): Likewise.
21274         * doc/posix-functions/pthread_attr_setguardsize.texi
21275         (pthread_attr_setguardsize): Likewise.
21276         * doc/posix-functions/pthread_attr_setstack.texi
21277         (pthread_attr_setstack): Likewise.
21278         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
21279         (pthread_attr_setstackaddr): Likewise.
21280         * doc/posix-functions/clock_getcpuclockid.texi
21281         (clock_getcpuclockid): Likewise.
21282         * doc/posix-functions/pthread_getcpuclockid.texi
21283         (pthread_getcpuclockid): Likewise.
21284         * doc/glibc-functions/error.texi (error): Likewise.
21285         * doc/glibc-functions/error_at_line.texi (error_at_line):
21286         Likewise.
21287         * doc/glibc-functions/error_message_count.texi
21288         (error_message_count): Likewise.
21289         * doc/glibc-functions/error_one_per_line.texi
21290         (error_one_per_line): Likewise.
21291         * doc/glibc-functions/error_print_progname.texi
21292         (error_print_progname): Likewise.
21293         * doc/posix-functions/pthread_condattr_getclock.texi
21294         (pthread_condattr_getclock): Likewise.
21295         * doc/posix-functions/pthread_condattr_setclock.texi
21296         (pthread_condattr_setclock): Likewise.
21297         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
21298         Likewise.
21299         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
21300         * doc/glibc-functions/getpt.texi (getpt): Likewise.
21301         * doc/glibc-functions/get_current_dir_name.texi
21302         (get_current_dir_name): Likewise.
21303         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
21304         Likewise.
21305         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
21306         wrong return type.
21307         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
21308         1.7.11.
21310 2012-02-29  Bruno Haible  <bruno@clisp.org>
21312         Tests for module 'hypotf'.
21313         * modules/hypotf-tests: New file.
21314         * tests/test-hypotf.c: New file.
21316         New module 'hypotf'.
21317         * lib/math.in.h (hypotf): New declaration.
21318         * lib/hypotf.c: New file.
21319         * m4/hypotf.m4: New file.
21320         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
21321         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
21322         REPLACE_HYPOTF.
21323         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
21324         REPLACE_HYPOTF.
21325         * modules/hypotf: New file.
21326         * tests/test-math-c++.cc: Check the hypotf declaration.
21327         * doc/posix-functions/hypotf.texi: Mention the new module.
21329         hypot: Prepare for hypotf module.
21330         * m4/hypot.m4: New file.
21331         * modules/hypot (Files): Add m4/hypot.m4.
21332         (configure.ac): Invoke gl_FUNC_HYPOT.
21334 2012-02-29  Bruno Haible  <bruno@clisp.org>
21336         hypot tests: More tests.
21337         * tests/test-hypot.c: Include <float.h>.
21338         (main): Add tests about overflow and underflow.
21340 2012-02-29  Bruno Haible  <bruno@clisp.org>
21342         math code: Add comments.
21343         * lib/acosl.c: Add comment about related glibc source files.
21344         * lib/asinl.c: Likewise.
21345         * lib/atanl.c: Likewise.
21346         * lib/expl.c: Likewise.
21347         * lib/logl.c: Likewise.
21348         * lib/sincosl.c: Likewise.
21349         * lib/sinl.c: Likewise.
21350         * lib/tanl.c: Likewise.
21351         * lib/trigl.c: Likewise.
21352         * lib/cosl.c: Likewise. Fix comments.
21354 2012-02-28  Bruno Haible  <bruno@clisp.org>
21356         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
21357         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
21358         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
21359         HUGE_VALL are defined.
21360         (numeric_equald): Renamed from numeric_equal.
21361         (numeric_equalf, numeric_equall): New functions.
21362         (main): Check also HUGE_VALF, HUGE_VALL.
21363         * modules/math-tests (Files): Add tests/macros.h.
21364         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
21365         HUGE_VALL.
21367 2012-02-28  Bruno Haible  <bruno@clisp.org>
21369         doc: Move ISO C11 feature notes into POSIX chapters.
21370         * doc/posix-functions/aligned_alloc.texi: Renamed from
21371         doc/glibc-functions/aligned_alloc.texi.
21372         * doc/posix-functions/quick_exit.texi: Renamed from
21373         doc/glibc-functions/quick_exit.texi.
21374         * doc/posix-headers/uchar.texi: Renamed from
21375         doc/glibc-headers/uchar.texi.
21376         * doc/posix-functions/c16rtomb.texi: Renamed from
21377         doc/glibc-functions/c16rtomb.texi.
21378         * doc/posix-functions/c32rtomb.texi: Renamed from
21379         doc/glibc-functions/c32rtomb.texi.
21380         * doc/posix-functions/mbrtoc16.texi: Renamed from
21381         doc/glibc-functions/mbrtoc16.texi.
21382         * doc/posix-functions/mbrtoc32.texi: Renamed from
21383         doc/glibc-functions/mbrtoc32.texi.
21384         * doc/gnulib.texi: Update.
21385         (Glibc uchar.h): Remove section.
21386         Suggested by Eric Blake.
21388 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
21390         stdnoreturn: port to MSVC better
21391         MSVC standard headers use __declspec(noreturn), so #define noreturn
21392         to empty on that platform.  Reported by Bruno Haible in
21393         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
21394         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
21395         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
21397 2012-02-28  Bruno Haible  <bruno@clisp.org>
21399         doc: Mention new glibc headers and functions.
21400         * doc/glibc-headers/uchar.texi: New file.
21401         * doc/glibc-functions/aligned_alloc.texi: New file.
21402         * doc/glibc-functions/c16rtomb.texi: New file.
21403         * doc/glibc-functions/c32rtomb.texi: New file.
21404         * doc/glibc-functions/clock_adjtime.texi: New file.
21405         * doc/glibc-functions/fanotify_init.texi: New file.
21406         * doc/glibc-functions/fanotify_mark.texi: New file.
21407         * doc/glibc-functions/inet6_opt_append.texi: New file.
21408         * doc/glibc-functions/inet6_opt_find.texi: New file.
21409         * doc/glibc-functions/inet6_opt_finish.texi: New file.
21410         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
21411         * doc/glibc-functions/inet6_opt_init.texi: New file.
21412         * doc/glibc-functions/inet6_opt_next.texi: New file.
21413         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
21414         * doc/glibc-functions/inet6_rth_add.texi: New file.
21415         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
21416         * doc/glibc-functions/inet6_rth_init.texi: New file.
21417         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
21418         * doc/glibc-functions/inet6_rth_segments.texi: New file.
21419         * doc/glibc-functions/inet6_rth_space.texi: New file.
21420         * doc/glibc-functions/login.texi: New file.
21421         * doc/glibc-functions/mbrtoc16.texi: New file.
21422         * doc/glibc-functions/mbrtoc32.texi: New file.
21423         * doc/glibc-functions/name_to_handle_at.texi: New file.
21424         * doc/glibc-functions/ntp_gettimex.texi: New file.
21425         * doc/glibc-functions/open_by_handle_at.texi: New file.
21426         * doc/glibc-functions/prlimit.texi: New file.
21427         * doc/glibc-functions/process_vm_readv.texi: New file.
21428         * doc/glibc-functions/process_vm_writev.texi: New file.
21429         * doc/glibc-functions/recvmmsg.texi: New file.
21430         * doc/glibc-functions/scandirat.texi: New file.
21431         * doc/glibc-functions/sendmmsg.texi: New file.
21432         * doc/glibc-functions/setns.texi: New file.
21433         * doc/glibc-functions/timespec_get.texi: New file.
21434         * doc/gnulib.texi: Include them.
21435         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
21436         sections.
21437         Reported by Eric Blake.
21439 2012-02-28  Bruno Haible  <bruno@clisp.org>
21441         Avoid compilation errors with MSVC option -fp:strict.
21442         * lib/floor.c: Use MSVC specific pragma fenv_access.
21443         * lib/ceil.c: Likewise.
21444         * lib/trunc.c: Likewise.
21445         * lib/round.c: Likewise.
21446         * lib/rint.c: Likewise.
21447         * lib/fma.c: Likewise.
21448         * lib/integer_length.c: Likewise.
21449         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
21450         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
21451         * tests/test-floor2.c: Likewise.
21452         * tests/test-floorf2.c: Likewise.
21453         * tests/test-ceil2.c: Likewise.
21454         * tests/test-ceilf2.c: Likewise.
21455         * tests/test-trunc2.c: Likewise.
21456         * tests/test-truncf2.c: Likewise.
21457         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
21459 2012-02-27  Bruno Haible  <bruno@clisp.org>
21461         Tests for module 'sqrtl-ieee'.
21462         * modules/sqrtl-ieee-tests: New file.
21463         * tests/test-sqrtl-ieee.c: New file.
21465         New module 'sqrtl-ieee'.
21466         * modules/sqrtl-ieee: New file.
21468         Tests for module 'sqrt-ieee'.
21469         * modules/sqrt-ieee-tests: New file.
21470         * tests/test-sqrt-ieee.c: New file.
21472         New module 'sqrt-ieee'.
21473         * modules/sqrt-ieee: New file.
21475         Tests for module 'sqrtf-ieee'.
21476         * modules/sqrtf-ieee-tests: New file.
21477         * tests/test-sqrtf-ieee.c: New file.
21478         * tests/test-sqrt-ieee.h: New file.
21480         New module 'sqrtf-ieee'.
21481         * modules/sqrtf-ieee: New file.
21483 2012-02-27  Bruno Haible  <bruno@clisp.org>
21485         remainderl-ieee: Work around test failure on OSF/1.
21486         * m4/remainderl-ieee.m4: New file.
21487         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
21488         present, test whether remainderl works with a zero second argument.
21489         Replace it if not.
21490         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
21491         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
21492         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
21493         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
21494         (Depends-on): Update conditions.
21495         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
21496         (Depends-on): Add remainder-ieee.
21497         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
21498         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
21499         module.
21501         remainderf-ieee: Work around test failure on OSF/1.
21502         * m4/remainderf-ieee.m4: New file.
21503         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
21504         present, test whether remainderf works with a zero second argument.
21505         Replace it if not.
21506         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
21507         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
21508         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
21509         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
21510         (Depends-on): Update conditions.
21511         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
21512         (Depends-on): Add remainder-ieee.
21513         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
21514         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
21515         module.
21517         remainder-ieee: Work around test failure on OSF/1.
21518         * m4/remainder-ieee.m4: New file.
21519         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
21520         present, test whether remainder works with a zero second argument.
21521         Replace it if not.
21522         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
21523         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
21524         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
21525         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
21526         (Depends-on): Update dependencies.
21527         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
21528         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
21529         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
21531         Tests for module 'remainderl-ieee'.
21532         * modules/remainderl-ieee-tests: New file.
21533         * tests/test-remainderl-ieee.c: New file.
21535         New module 'remainderl-ieee'.
21536         * modules/remainderl-ieee: New file.
21538         Tests for module 'remainder-ieee'.
21539         * modules/remainder-ieee-tests: New file.
21540         * tests/test-remainder-ieee.c: New file.
21542         New module 'remainder-ieee'.
21543         * modules/remainder-ieee: New file.
21545         Tests for module 'remainderf-ieee'.
21546         * modules/remainderf-ieee-tests: New file.
21547         * tests/test-remainderf-ieee.c: New file.
21548         * tests/test-remainder-ieee.h: New file.
21550         New module 'remainderf-ieee'.
21551         * modules/remainderf-ieee: New file.
21553 2012-02-27  Bruno Haible  <bruno@clisp.org>
21555         modff, modfl: Fix configure syntax error.
21556         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
21557         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
21559 2012-02-27  Bruno Haible  <bruno@clisp.org>
21561         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
21562         * m4/fmodl-ieee.m4: New file.
21563         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
21564         whether fmodl works with zero arguments. Replace it if not.
21565         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
21566         (Depends-on): Add fmod-ieee.
21567         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
21568         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
21570         fmodf-ieee: Work around test failure on OSF/1.
21571         * m4/fmodf-ieee.m4: New file.
21572         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
21573         whether fmodf works with zero arguments. Replace it if not.
21574         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
21575         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
21576         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
21577         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
21578         (Depends-on): Update dependencies.
21579         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
21580         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
21581         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
21583         fmodf-ieee: Work around test failure on MSVC 9.
21584         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
21585         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
21587         fmod-ieee: Work around test failures on OSF/1, mingw.
21588         * m4/fmod-ieee.m4: New file.
21589         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
21590         whether fmod works with zero arguments. Replace it if not.
21591         * lib/math.in.h (fmod): New declaration.
21592         * lib/fmod.c: New file.
21593         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
21594         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
21595         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
21596         * modules/fmod (Files): Add lib/fmod.c.
21597         (Depends-on): Add math, isinf, trunc, fma.
21598         (configure.ac): Arrange to compile lib/fmod.c if needed.
21599         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
21600         m4/signbit.m4.
21601         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
21602         * tests/test-math-c++.cc: Check the declaration of fmod.
21603         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
21605         fmodl-ieee: Fix test failures.
21606         * lib/fmodl.c (fmodl): Treat Inf specially.
21607         * modules/fmodl (Depends-on): Add isinf.
21609         Tests for module 'fmodl-ieee'.
21610         * modules/fmodl-ieee-tests: New file.
21611         * tests/test-fmodl-ieee.c: New file.
21613         New module 'fmodl-ieee'.
21614         * modules/fmodl-ieee: New file.
21616         Tests for module 'fmod-ieee'.
21617         * modules/fmod-ieee-tests: New file.
21618         * tests/test-fmod-ieee.c: New file.
21620         New module 'fmod-ieee'.
21621         * modules/fmod-ieee: New file.
21623         Tests for module 'fmodf-ieee'.
21624         * modules/fmodf-ieee-tests: New file.
21625         * tests/test-fmodf-ieee.c: New file.
21626         * tests/test-fmod-ieee.h: New file.
21628         New module 'fmodf-ieee'.
21629         * modules/fmodf-ieee: New file.
21631 2012-02-27  Bruno Haible  <bruno@clisp.org>
21633         Tests for module 'rintl-ieee'.
21634         * modules/rintl-ieee-tests: New file.
21635         * tests/test-rintl-ieee.c: New file.
21637         New module 'rintl-ieee'.
21638         * modules/rintl-ieee: New file.
21640         Tests for module 'rint-ieee'.
21641         * modules/rint-ieee-tests: New file.
21642         * tests/test-rint-ieee.c: New file.
21644         New module 'rint-ieee'.
21645         * modules/rint-ieee: New file.
21647         Tests for module 'rintf-ieee'.
21648         * modules/rintf-ieee-tests: New file.
21649         * tests/test-rintf-ieee.c: New file.
21650         * tests/test-rint-ieee.h: New file.
21652         New module 'rintf-ieee'.
21653         * modules/rintf-ieee: New file.
21655 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
21657         regex: re_search etc. should return -2 when memory exhausted
21658         This bug was uncovered when testing 'grep'.  Without the fix,
21659         re_search and friends return -1 when memory is exhausted, but -1
21660         means no match, and this causes grep to falsely report no-match
21661         instead of memory-exhaustion.  See
21662         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
21663         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
21664         trouble; this can occur if re_search_internal ran out of memory.
21666 2012-02-26  Bruno Haible  <bruno@clisp.org>
21668         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
21669         * m4/modfl-ieee.m4: New file.
21670         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
21671         whether modfl works with Inf. Replace it if not.
21672         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
21673         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
21674         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
21675         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
21676         (Depends-on): Update dependencies.
21677         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
21678         m4/signbit.m4.
21679         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
21680         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
21682         modfl-ieee: Fix dependencies.
21683         * modules/modfl-ieee (Depends-on): Add modf-ieee.
21685         modfl-ieee: Fix test failures.
21686         * lib/modfl.c (modfl): Treat NaN and Inf specially.
21687         * modules/modfl (Depends-on): Add isfinite, isinf.
21689         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
21690         * m4/modff-ieee.m4: New file.
21691         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
21692         whether modff works with NaN and Inf. Replace it if not.
21693         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
21694         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
21695         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
21696         * modules/modff (configure.ac): Consider REPLACE_MODFF.
21697         (Depends-on): Update dependencies.
21698         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
21699         m4/signbit.m4.
21700         (Depends-on): Add modf-ieee.
21701         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
21702         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
21704         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
21705         * m4/modf-ieee.m4: New file.
21706         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
21707         whether modf works with NaN and Inf. Replace it if not.
21708         * lib/math.in.h (modf): New declaration.
21709         * lib/modf.c: New file.
21710         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
21711         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
21712         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
21713         * modules/modf (Files): Add lib/modf.c.
21714         (Depends-on): Add math, isfinite, trunc, isinf.
21715         (configure.ac): Addrange to compile lib/modf.c if needed.
21716         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
21717         m4/signbit.m4.
21718         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
21719         * tests/test-math-c++.cc: Check the declaration of modf.
21720         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
21722         Tests for module 'modfl-ieee'.
21723         * modules/modfl-ieee-tests: New file.
21724         * tests/test-modfl-ieee.c: New file.
21726         New module 'modfl-ieee'.
21727         * modules/modfl-ieee: New file.
21729         Tests for module 'modf-ieee'.
21730         * modules/modf-ieee-tests: New file.
21731         * tests/test-modf-ieee.c: New file.
21733         New module 'modf-ieee'.
21734         * modules/modf-ieee: New file.
21736         Tests for module 'modff-ieee'.
21737         * modules/modff-ieee-tests: New file.
21738         * tests/test-modff-ieee.c: New file.
21739         * tests/test-modf-ieee.h: New file.
21741         New module 'modff-ieee'.
21742         * modules/modff-ieee: New file.
21744 2012-02-26  Bruno Haible  <bruno@clisp.org>
21746         Tests for module 'fabsl-ieee'.
21747         * modules/fabsl-ieee-tests: New file.
21748         * tests/test-fabsl-ieee.c: New file.
21750         New module 'fabsl-ieee'.
21751         * modules/fabsl-ieee: New file.
21753         Tests for module 'fabs-ieee'.
21754         * modules/fabs-ieee-tests: New file.
21755         * tests/test-fabs-ieee.c: New file.
21757         New module 'fabs-ieee'.
21758         * modules/fabs-ieee: New file.
21760         Tests for module 'fabsf-ieee'.
21761         * modules/fabsf-ieee-tests: New file.
21762         * tests/test-fabsf-ieee.c: New file.
21763         * tests/test-fabs-ieee.h: New file.
21765         New module 'fabsf-ieee'.
21766         * modules/fabsf-ieee: New file.
21768 2012-02-26  Bruno Haible  <bruno@clisp.org>
21770         Tests for module 'fmal-ieee'.
21771         * modules/fmal-ieee-tests: New file.
21772         * tests/test-fmal-ieee.c: New file.
21774         New module 'fmal-ieee'.
21775         * modules/fmal-ieee: New file.
21777         Tests for module 'fma-ieee'.
21778         * modules/fma-ieee-tests: New file.
21779         * tests/test-fma-ieee.c: New file.
21781         New module 'fma-ieee'.
21782         * modules/fma-ieee: New file.
21784         Tests for module 'fmaf-ieee'.
21785         * modules/fmaf-ieee-tests: New file.
21786         * tests/test-fmaf-ieee.c: New file.
21787         * tests/test-fma-ieee.h: New file.
21789         New module 'fmaf-ieee'.
21790         * modules/fmaf-ieee: New file.
21792 2012-02-26  Bruno Haible  <bruno@clisp.org>
21794         Tests for module 'ldexpl-ieee'.
21795         * modules/ldexpl-ieee-tests: New file.
21796         * tests/test-ldexpl-ieee.c: New file.
21798         New module 'ldexpl-ieee'.
21799         * modules/ldexpl-ieee: New file.
21801         Tests for module 'ldexp-ieee'.
21802         * modules/ldexp-ieee-tests: New file.
21803         * tests/test-ldexp-ieee.c: New file.
21805         New module 'ldexp-ieee'.
21806         * modules/ldexp-ieee: New file.
21808         Tests for module 'ldexpf-ieee'.
21809         * modules/ldexpf-ieee-tests: New file.
21810         * tests/test-ldexpf-ieee.c: New file.
21811         * tests/test-ldexp-ieee.h: New file.
21813         New module 'ldexpf-ieee'.
21814         * modules/ldexpf-ieee: New file.
21816 2012-02-26  Bruno Haible  <bruno@clisp.org>
21818         Refactor frexp*-ieee tests.
21819         * tests/test-frexp-ieee.h: New file.
21820         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
21821         (main): Just call test_function.
21822         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
21823         (main): Just call test_function.
21824         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
21825         (main): Just call test_function.
21826         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
21827         * modules/frexp-ieee-tests (Files): Likewise.
21828         * modules/frexpl-ieee-tests (Files): Likewise.
21830         Tests for module 'frexpl-ieee'.
21831         * modules/frexpl-ieee-tests: New file.
21832         * tests/test-frexpl-ieee.c: New file.
21834         New module 'frexpl-ieee'.
21835         * modules/frexpl-ieee: New file.
21837         Tests for module 'frexp-ieee'.
21838         * modules/frexp-ieee-tests: New file.
21839         * tests/test-frexp-ieee.c: New file.
21841         New module 'frexp-ieee'.
21842         * modules/frexp-ieee: New file.
21844         Tests for module 'frexpf-ieee'.
21845         * modules/frexpf-ieee-tests: New file.
21846         * tests/test-frexpf-ieee.c: New file.
21848         New module 'frexpf-ieee'.
21849         * modules/frexpf-ieee: New file.
21851 2012-02-26  Bruno Haible  <bruno@clisp.org>
21853         roundl-ieee tests: More tests.
21854         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
21855         (main): Add tests for [MX] shaded specification in POSIX.
21856         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
21857         (Depends-on): Add isnanl-nolibm.
21859         round-ieee tests: More tests.
21860         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
21861         (main): Add tests for [MX] shaded specification in POSIX.
21862         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
21863         (Depends-on): Add isnand-nolibm.
21865         roundf-ieee tests: More tests.
21866         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
21867         (main): Add tests for [MX] shaded specification in POSIX.
21868         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
21869         (Depends-on): Add isnanf-nolibm.
21871         truncl-ieee tests: More tests.
21872         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
21873         (main): Add tests for [MX] shaded specification in POSIX.
21874         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
21875         (Depends-on): Add isnanl-nolibm.
21877         trunc-ieee tests: More tests.
21878         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
21879         (main): Add tests for [MX] shaded specification in POSIX.
21880         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
21881         (Depends-on): Add isnand-nolibm.
21883         truncf-ieee tests: More tests.
21884         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
21885         (main): Add tests for [MX] shaded specification in POSIX.
21886         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
21887         (Depends-on): Add isnanf-nolibm.
21889         ceill-ieee tests: More tests.
21890         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
21891         (main): Add tests for [MX] shaded specification in POSIX.
21892         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
21893         (Depends-on): Add isnanl-nolibm.
21895         ceil-ieee tests: More tests.
21896         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
21897         (main): Add tests for [MX] shaded specification in POSIX.
21898         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
21899         (Depends-on): Add isnand-nolibm.
21901         ceilf-ieee tests: More tests.
21902         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
21903         (main): Add tests for [MX] shaded specification in POSIX.
21904         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
21905         (Depends-on): Add isnanf-nolibm.
21907         floorl-ieee tests: More tests.
21908         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
21909         (main): Add tests for [MX] shaded specification in POSIX.
21910         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
21911         (Depends-on): Add isnanl-nolibm.
21913         floor-ieee tests: More tests.
21914         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
21915         (main): Add tests for [MX] shaded specification in POSIX.
21916         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
21917         (Depends-on): Add isnand-nolibm.
21919         floorf-ieee tests: More tests.
21920         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
21921         (main): Add tests for [MX] shaded specification in POSIX.
21922         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
21923         (Depends-on): Add isnanf-nolibm.
21925 2012-02-26  Bruno Haible  <bruno@clisp.org>
21927         fpieee: More comments.
21928         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
21930 2012-02-25  Bruno Haible  <bruno@clisp.org>
21932         Tests for module 'log10l'.
21933         * modules/log10l-tests: New file.
21934         * tests/test-log10l.c: New file.
21935         * tests/test-math-c++.cc: Check the declaration of log10l.
21937         New module 'log10l'.
21938         * lib/math.in.h (log10l): New declaration.
21939         * lib/log10l.c: New file.
21940         * m4/log10l.m4: New file.
21941         * modules/log10l: New file.
21942         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
21943         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
21944         HAVE_DECL_LOG10L.
21945         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
21946         HAVE_DECL_LOG10L.
21947         * doc/posix-functions/log10l.texi: Mention the new module.
21949 2012-02-25  Bruno Haible  <bruno@clisp.org>
21951         fmodl, remainder*: Avoid wrong results due to rounding errors.
21952         * lib/fmodl.c (fmodl): Correct the result if it is not within the
21953         expected bounds.
21954         * lib/remainderf.c (remainderf): Likewise.
21955         * lib/remainder.c (remainder): Likewise.
21956         * lib/remainderl.c (remainderl): Likewise.
21958 2012-02-25  Bruno Haible  <bruno@clisp.org>
21960         Tests for module 'remainderl'.
21961         * modules/remainderl-tests: New file.
21962         * tests/test-remainderl.c: New file.
21963         * tests/test-math-c++.cc: Check the declaration of remainderl.
21965         New module 'remainderl'.
21966         * lib/math.in.h (remainderl): New declaration.
21967         * lib/remainderl.c: New file.
21968         * m4/remainderl.m4: New file.
21969         * modules/remainderl: New file.
21970         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
21971         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
21972         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
21973         HAVE_REMAINDERL.
21974         * doc/posix-functions/remainderl.texi: Mention the new module.
21976 2012-02-25  Bruno Haible  <bruno@clisp.org>
21978         Tests for module 'remainderf'.
21979         * modules/remainderf-tests: New file.
21980         * tests/test-remainderf.c: New file.
21981         * tests/test-math-c++.cc: Check the declaration of remainderf.
21983         New module 'remainderf'.
21984         * lib/math.in.h (remainderf): New declaration.
21985         * lib/remainderf.c: New file.
21986         * m4/remainderf.m4: New file.
21987         * modules/remainderf: New file.
21988         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
21989         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
21990         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
21991         HAVE_REMAINDERF.
21992         * doc/posix-functions/remainderf.texi: Mention the new module.
21994 2012-02-25  Bruno Haible  <bruno@clisp.org>
21996         remainder: Support for MSVC.
21997         * lib/math.in.h (remainder): New declaration.
21998         * lib/remainder.c: New file.
21999         * m4/remainder.m4: New file.
22000         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
22001         (Depends-on): Add math, round, fma.
22002         (configure.ac): Use results of gl_FUNC_REMAINDER.
22003         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
22004         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
22005         HAVE_DECL_REMAINDER.
22006         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
22007         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
22008         * tests/test-math-c++.cc: Check the declaration of remainder.
22009         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
22010         problems are fixed.
22012 2012-02-25  Bruno Haible  <bruno@clisp.org>
22014         Tests for module 'fmodl'.
22015         * modules/fmodl-tests: New file.
22016         * tests/test-fmodl.c: New file.
22017         * tests/test-math-c++.cc: Check the declaration of fmodl.
22019         New module 'fmodl'.
22020         * lib/math.in.h (fmodl): New declaration.
22021         * lib/fmodl.c: New file.
22022         * m4/fmodl.m4: New file.
22023         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
22024         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
22025         REPLACE_FMODL.
22026         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
22027         REPLACE_FMODL.
22028         * modules/fmodl: New file.
22029         * doc/posix-functions/fmodl.texi: Mention the new module.
22031 2012-02-25  Bruno Haible  <bruno@clisp.org>
22033         Tests for module 'modfl'.
22034         * modules/modfl-tests: New file.
22035         * tests/test-modfl.c: New file.
22036         * tests/test-math-c++.cc: Check the declaration of modfl.
22038         New module 'modfl'.
22039         * lib/math.in.h (modfl): New declaration.
22040         * lib/modfl.c: New file.
22041         * m4/modfl.m4: New file.
22042         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
22043         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
22044         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
22045         * modules/modfl: New file.
22046         * doc/posix-functions/modfl.texi: Mention the new module.
22048 2012-02-25  Bruno Haible  <bruno@clisp.org>
22050         Tests for module 'fabsl'.
22051         * modules/fabsl-tests: New file.
22052         * tests/test-fabsl.c: New file.
22053         * tests/test-math-c++.cc: Check the declaration of fabsl.
22055         New module 'fabsl'.
22056         * lib/math.in.h (fabsl): New declaration.
22057         * lib/fabsl.c: New file.
22058         * m4/fabsl.m4: New file.
22059         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
22060         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
22061         REPLACE_FABSL.
22062         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
22063         REPLACE_FABSL.
22064         * modules/fabsl: New file.
22065         * doc/posix-functions/fabsl.texi: Mention the new module.
22067 2012-02-25  Bruno Haible  <bruno@clisp.org>
22069         fabs tests: More tests.
22070         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
22071         (zero): New variable.
22072         (main): Add tests for signed zero.
22073         * modules/fabs-tests (Files): Add tests/minus-zero.h.
22075         fabsf tests: More tests.
22076         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
22077         (zero): New variable.
22078         (main): Add tests for signed zero.
22079         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
22081 2012-02-24  Bruno Haible  <bruno@clisp.org>
22083         atanl: Provide function definition on MSVC.
22084         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
22085         function pointer.
22086         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
22088 2012-02-24  Bruno Haible  <bruno@clisp.org>
22090         acosl: Provide function definition on MSVC.
22091         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
22092         function pointer.
22093         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
22095 2012-02-24  Bruno Haible  <bruno@clisp.org>
22097         asinl: Provide function definition on MSVC.
22098         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
22099         function pointer.
22100         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
22102 2012-02-24  Bruno Haible  <bruno@clisp.org>
22104         tanl: Provide function definition on MSVC.
22105         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
22106         function pointer.
22107         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
22109 2012-02-24  Bruno Haible  <bruno@clisp.org>
22111         cosl: Provide function definition on MSVC.
22112         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
22113         function pointer.
22114         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
22116 2012-02-24  Bruno Haible  <bruno@clisp.org>
22118         sinl: Provide function definition on MSVC.
22119         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
22120         function pointer.
22121         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
22123 2012-02-24  Bruno Haible  <bruno@clisp.org>
22125         logl: Provide function definition on MSVC.
22126         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
22127         function pointer.
22128         * lib/math.in.h (logl): Undefine if it does not exist as a function.
22130 2012-02-24  Bruno Haible  <bruno@clisp.org>
22132         expl: Provide function definition on MSVC.
22133         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
22134         function pointer.
22135         * lib/math.in.h (expl): Undefine if it does not exist as a function.
22137 2012-02-24  Bruno Haible  <bruno@clisp.org>
22139         sqrtl: Provide function definition on MSVC.
22140         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
22141         a function pointer.
22142         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
22144 2012-02-24  Bruno Haible  <bruno@clisp.org>
22146         ceill: Provide function definition on MSVC.
22147         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
22148         used as a function pointer.
22149         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
22151 2012-02-24  Bruno Haible  <bruno@clisp.org>
22153         floorl: Provide function definition on MSVC.
22154         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
22155         used as a function pointer.
22156         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
22158 2012-02-24  Bruno Haible  <bruno@clisp.org>
22160         ceilf: Provide function definition on MSVC.
22161         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
22162         used as a function pointer.
22163         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
22165 2012-02-24  Bruno Haible  <bruno@clisp.org>
22167         floorf: Provide function definition on MSVC.
22168         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
22169         used as a function pointer.
22170         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
22172 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22174         stdnoreturn: new module
22175         This implements a replacement for C11's <stdnoreturn.h>.
22176         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
22177         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
22178         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
22179         * tests/test-stdnoreturn.c: New files.
22181 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
22183         regex: fix false multibyte matches in some regular expressions
22184         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
22185         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
22186         * lib/regex_internal.c (re_string_skip_chars):
22187         Fix miscomputation of remain_len that may cause incomplete
22188         multi-byte character and false match.
22190 2012-02-24  Jim Meyering  <meyering@redhat.com>
22192         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
22193         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
22194         uses with "==" *before* the call, e.g., 0 == strcmp (...)
22195         Remove now-unnecessary str''cmp obfuscation.
22196         Suggested by Akim Demaille.
22198 2012-02-24  Bruno Haible  <bruno@clisp.org>
22200         streq: Rename macro.
22201         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
22202         * NEWS: Mention the change.
22203         * lib/mbrtowc.c (mbrtowc): Update.
22204         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
22205         * lib/wcwidth.c (wcwidth): Update.
22206         Suggested by Akim Demaille and Jim Meyering.
22208 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
22210         regex: fix typo in definition of MIN
22211         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
22212         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
22214 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
22215             Bruno Haible  <bruno@clisp.org>
22217         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
22218         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
22219         entries into a stack-allocated buffer directly.
22220         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
22222 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
22223             Bruno Haible  <bruno@clisp.org>
22225         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
22227          - There were several instances of this pattern:
22229              for (;;) {
22230                n = acl (f, GETACLCNT, 0, NULL);
22231                [ allocate an array A of size N ]
22232                if (acl (f, GETACL, n, a) == n)
22233                  break;
22234              }
22236            This loop might never terminate if some other process is constantly
22237            manipulating the file's ACL.  The loop should be rewritten to
22238            terminate.
22240          - The acl (... GETACLNT ...) call is merely an optimization; its value
22241            is merely a hint as to how big to make the array.  A better
22242            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
22243            and just guess a reasonably-big size, growing the size and trying
22244            again if it's not large enough.  This guarantees termination, and
22245            saves a system call.
22247         * lib/acl-internal.h: Include <limits.h>.
22248         (MIN, SIZE_MAX): New macros.
22249         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
22250         a stack-allocated buffer, and use malloc if it does not fit. Don't
22251         use GETACLCNT.
22252         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
22254 2012-02-19  Bruno Haible  <bruno@clisp.org>
22256         acl: Fix endless loop on Solaris with vxfs.
22257         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
22258         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
22259         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
22260         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
22261         * tests/test-sameacls.c (main)[Solaris]: Likewise.
22262         Reported by Bill Jones in
22263         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
22265 2012-02-19  Bruno Haible  <bruno@clisp.org>
22267         acl: Fix copy-acl test failure on Solaris 11.0.
22268         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
22269         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
22270         that this function returns 0 in some more cases.
22272 2012-02-19  Bruno Haible  <bruno@clisp.org>
22274         acl: Update doc references.
22275         * doc/acl-resources.txt: Update links to Solaris documentation.
22277 2012-02-19  Bruno Haible  <bruno@clisp.org>
22279         Fix test failure in many locales on Solaris 11.
22280         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
22281         'tr' arguments.
22282         * tests/test-pipe-filter-ii1.c (main): Likewise.
22283         * build-aux/bootstrap (check_versions): Run 'tr' command with range
22284         expressions in the C locale.
22285         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
22286         * m4/host-os.m4 (gl_HOST_OS): Likewise.
22288 2012-02-19  Bruno Haible  <bruno@clisp.org>
22290         gnulib-tool: Improve usage message.
22291         * gnulib-tool (func_usage): Move doc of --help and --version to the
22292         section "Operation modes".
22294 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
22296         README-release: make it easier to execute commands
22297         * top/README-release: break commands out on to separate lines.
22299 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
22301         GNUmakefile: simplify detection of unconfigured trees
22302         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
22303         whether the tree make is being run from is already configured or
22304         not.  Related simplifications.
22306 2012-02-13  Simon Josefsson  <simon@josefsson.org>
22308         * gnulib-tool (func_usage): Document --help and --version.
22310 2012-02-11  Jim Meyering  <meyering@redhat.com>
22312         bootstrap: don't exit 0 upon gnulib-tool failure
22313         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
22314         its exit status, not 0.
22316 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
22318         README-release: various improvements
22319         * top/README-release: Give a command to push changes for the
22320         release.  Add "distcheck" to list of other pre-release checks.
22321         Fix instance of "make stable" which should be "make TYPE".
22323 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
22325         maint: replace FSF snail-mail addresses with URLs
22326         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
22327         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
22328         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
22329         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
22330         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
22331         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
22332         * lib/check-version.c, lib/check-version.h, lib/config.charset:
22333         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
22334         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
22335         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
22336         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
22337         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
22338         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
22339         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
22340         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
22341         * lib/glthread/thread.c, lib/glthread/thread.h:
22342         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
22343         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
22344         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
22345         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
22346         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
22347         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
22348         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
22349         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
22350         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
22351         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
22352         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
22353         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
22354         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
22355         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
22356         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
22357         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
22358         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
22359         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
22360         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
22361         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
22362         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
22363         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
22364         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
22365         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
22366         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
22367         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
22368         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
22369         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
22370         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
22371         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
22372         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
22373         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
22374         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
22375         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
22376         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
22377         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
22378         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
22379         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
22380         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
22381         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
22382         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
22383         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
22384         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
22385         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
22386         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
22387         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
22388         * tests/test-poll.c, tests/test-quotearg-simple.c:
22389         * tests/test-quotearg.c, tests/test-quotearg.h:
22390         * tests/test-round-ieee.c, tests/test-round1.c:
22391         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
22392         * tests/test-roundl-ieee.c, tests/test-roundl.c:
22393         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
22394         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
22395         * tests/test-strerror.c, tests/test-strerror_r.c:
22396         * tests/test-strsignal.c, tests/test-strverscmp.c:
22397         * tests/test-xmemdup0.c:
22398         Replace FSF snail mail addresses with URLs, as per GNU coding
22399         standards.  See glibc bug
22400         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
22402 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
22404         README-release: capitalize a word and split a line
22405         * top/README-release: Fix punctuation and spacing.
22407 2012-02-08  Akim Demaille  <demaille@gostai.com>
22409         fatal-signal: use C prototypes (with explicit void).
22410         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
22411         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
22413 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
22415         regex: spelling fix
22416         * lib/regexec.c: spelling fix
22418         regex: rely on stdint.h for SIZE_MAX
22419         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
22421 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
22423         regex: merge glibc changes
22425         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
22426         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
22427         (init_word_char): Work even if bitset words are not exactly 32 or
22428         64 bits wide.  Don't assume there are no padding bits.
22429         * lib/regex.c [_LIBC]: Do not include <config.h>.
22430         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
22431         and -Wtype-limits.
22432         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
22433         needless disagreement with glibc.  All uses changed.  Define it to
22434         1 only if _GNU_SOURCE, to match glibc.
22435         (_REG_RM_NAME): Remove; no longer needed, since the names in
22436         question are now all protected by __USE_GNU.
22437         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
22438         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
22439         * lib/regex_internal.h (MIN): New macro.
22441         2012-01-03 Ulrich Drepper <drepper@gmail.com>
22442         * lib/regcomp.c (init_word_char): Optimize regex a bit.
22444         2011-12-30 Jakub Jelinek <jakub@redhat.com>
22445         * lib/regex_internal.c (re_string_fetch_byte_case):
22446         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
22447         is miscompiled, and it turns out it is because of an incorrect
22448         attribute on re_string_fetch_byte_case.  Unlike
22449         re_string_peek_byte_case, this one is really not pure, it modifies
22450         memory (increments pstr->cur_idx), and with the pure attribute GCC
22451         assumed it doesn't and it cached the presumed value of
22452         regexp->cur_idx in a variable across the
22453          for (;; ++i)
22454            {
22455              if (i >= BRACKET_NAME_BUF_SIZE)
22456                return REG_EBRACK;
22457              if (token->type == OP_OPEN_CHAR_CLASS)
22458                ch = re_string_fetch_byte_case (regexp);
22459              else
22460                ch = re_string_fetch_byte (regexp);
22461              if (re_string_eoi(regexp))
22462                return REG_EBRACK;
22463              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
22464                break;
22465              elem->opr.name[i] = ch;
22466            }
22468         2011-11-29 Andreas Schwab <schwab@redhat.com>
22469         * lib/regcomp.c (build_equiv_class):
22470         Fix access after end of search string in regex matcher.
22472         2011-11-12 Ulrich Drepper <drepper@redhat.com>
22473         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
22475         2011-10-12 Ulrich Drepper <drepper@redhat.com>
22476         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
22478         2011-10-11 Ulrich Drepper <drepper@redhat.com>
22479         * lib/regcomp.c (parse_branch, parse_sub_exp):
22480         More regex memory leak fixes and tests.
22481         (parse_sub_exp, parse_bracket_exp):
22482         Fix memory leak for some invalid regular expressions.
22484         2011-05-28 Ulrich Drepper <drepper@gmail.com>
22485         * lib/regex_internal.c, lib/regexec.c:
22486         Fix unnecessary overallocation due to incomplete character.  When
22487         incomplete characters are found at the end of a string the code
22488         ran amok and allocated lots of memory.  Stricter limits are now in
22489         place.
22491         2011-05-20 Reuben Thomas <rrt@sc3d.org>
22492         * lib/regex.h: Update documentation.
22494         2011-05-16 Aharon Robbins <arnold@skeeve.com>
22495         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
22497         2010-05-05 Andreas Schwab <schwab@redhat.com>
22498         * lib/regexec.c (find_collation_sequence_value):
22499         Fix lookup of collation sequence value during regexp matching.
22501         2010-01-22 Ulrich Drepper <drepper@redhat.com>
22502         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
22504         2008-01-16 Ulrich Drepper <drepper@redhat.com>
22505         * lib/regex.h: Cleanup namespace.
22507         2007-11-26 Ulrich Drepper <drepper@redhat.com>
22508         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
22510         2007-08-26 Ulrich Drepper <drepper@redhat.com>
22511         * lib/regex_internal.h: Prevent some declarations and definitions
22512         to be seen when used in tests.
22514         2005-05-06 Ulrich Drepper <drepper@redhat.com>
22515         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
22516         __libc_lock_* macros if not _LIBC.
22517         (struct re_dfa_t): Add lock.
22519 2012-02-07  Eric Blake  <eblake@redhat.com>
22521         maint.mk: also prohibit lower-case @var@
22522         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
22523         lower case, like @top_srcdir@.
22525 2012-02-04  Eric Blake  <eblake@redhat.com>
22527         canonicalize: avoid uninitialized memory use
22528         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
22529         random '/' left in dest.
22530         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
22532 2012-02-04  Bruno Haible  <bruno@clisp.org>
22534         isatty: Fix test failure of ptsname_r on native Windows.
22535         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
22536         and don't set errno.
22537         (isatty): Test first whether fd is valid. Set errno when returning 0.
22539 2012-02-04  Bruno Haible  <bruno@clisp.org>
22541         spawn-pipe tests: Fix a NULL program name in a diagnostic.
22542         * tests/test-spawn-pipe-main.c: Include progname.h.
22543         (main): Invoke set_program_name.
22544         * modules/spawn-pipe-tests (Depends-on): Add progname.
22546         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
22547         * tests/test-nonblocking-socket-main.c: Include progname.h.
22548         (main): Invoke set_program_name.
22549         * modules/nonblocking-socket-tests (Depends-on): Add progname.
22551         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
22552         * tests/test-nonblocking-pipe-main.c: Include progname.h.
22553         (main): Invoke set_program_name.
22554         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
22556 2012-02-04  Eric Blake  <eblake@redhat.com>
22558         canonicalize-lgpl: fix // handling
22559         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
22561         canonicalize: fix // handling
22562         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
22563         /// to //, since only // is special.
22565 2012-02-04  Bruno Haible  <bruno@clisp.org>
22567         ioctl: Fix test failure on native Windows.
22568         * lib/ioctl.c: Include msvc-nothrow.h.
22569         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
22571 2012-02-04  Bruno Haible  <bruno@clisp.org>
22573         fsync: Avoid test failure on native Windows.
22574         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
22575         read-only.
22577 2012-02-04  Bruno Haible  <bruno@clisp.org>
22579         sys_select: Avoid syntax error on OpenBSD 5.0.
22580         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
22581         currently being included, just include the system's <sys/select.h>.
22583 2012-02-04  Bruno Haible  <bruno@clisp.org>
22585         sys_select: Avoid syntax error on OpenBSD 5.0.
22586         * lib/sys_select.in.h: Include <signal.h> only after the include_next
22587         <sys/select.h>, not before.
22588         Reported by Jiri B <jirib@devio.us>.
22590 2012-02-04  Bruno Haible  <bruno@clisp.org>
22592         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
22593         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
22594         global variables.
22595         * tests/test-get-rusage-data.c (main): Likewise.
22596         Reported by Jim Meyering.
22598 2012-02-04  Bruno Haible  <bruno@clisp.org>
22600         stdioext: Fix last commit.
22601         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
22603 2012-02-03  Bruno Haible  <bruno@clisp.org>
22605         stdioext: Add tentative support for Plan9.
22606         * lib/stdio-impl.h: Include <errno.h>.
22607         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
22608         * lib/freadable.c (freadable): Likewise.
22609         * lib/fwritable.c (fwritable): Likewise.
22610         * lib/fbufmode.c (fbufmode): Likewise.
22611         * lib/freading.c (freading): Likewise.
22612         * lib/fwriting.c (fwriting): Likewise.
22613         * lib/freadptr.c (freadptr): Likewise.
22614         * lib/freadseek.c (freadptrinc): Likewise.
22615         * lib/freadahead.c (freadahead): Likewise.
22616         * lib/fpurge.c (fpurge): Likewise.
22617         * lib/fseeko.c (rpl_fseeko): Likewise.
22618         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
22619         Reported by Jens Staal <staal1978@gmail.com>.
22621 2012-02-02  Jim Meyering  <meyering@redhat.com>
22623         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
22624         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
22625         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
22626         not even to try to add the attribute.  Instead, add a pragma to suppress
22627         the suggestion/warning.
22629 2012-01-31  Karl Berry  <karl@gnu.org>
22631         setstate doc: typo.
22632         * doc/posix-functions/setstate.texi (setstate): { not (.
22634 2012-01-31  Bruno Haible  <bruno@clisp.org>
22636         popen: Make more robust on Windows.
22637         * lib/popen.c: On native Windows, use the _popen based code even if
22638         HAVE_POPEN is set.
22639         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
22640         environment variable on native Windows.
22642 2012-01-30  Bruno Haible  <bruno@clisp.org>
22644         pclose: Fix typo.
22645         * lib/stdio.in.h (pclose): Fix typo in warning message.
22647 2012-01-30  Bruno Haible  <bruno@clisp.org>
22649         doc about getlogin_r, setstate.
22650         * doc/posix-functions/getlogin_r.texi: List the incompatible
22651         declaration problem under "not fixed by gnulib".
22652         * doc/posix-functions/setstate.texi: Mention incompatible declaration
22653         problem on Solaris 11 and other platforms.
22655 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
22656             Bruno Haible  <bruno@clisp.org>
22658         poll tests: Make test more robust.
22659         * tests/test-poll.c: Include macros.h.
22660         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
22661         return value of various I/O operations.
22662         * modules/poll-tests (Files): Add tests/macros.h.
22664 2012-01-30  Bruno Haible  <bruno@clisp.org>
22666         sys_stat: Fix support for mingw64 and MSVC.
22667         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
22668         header files already do it.
22669         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
22670         stat itself.
22671         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
22673 2012-01-30  Bruno Haible  <bruno@clisp.org>
22675         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
22676         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
22677         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
22679 2012-01-29  Bruno Haible  <bruno@clisp.org>
22681         quotearg: Fix test failure on MacOS X 10.5.
22682         * tests/test-quotearg-simple.c: Include localcharset.h.
22683         (main): If the locale encoding is not ASCII, bypass the tests of
22684         locale_quoting_style and clocale_quoting_style.
22685         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
22687 2012-01-29  Jim Meyering  <meyering@redhat.com>
22689         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
22690         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
22691         detect uses of canonicalize_file_name.
22693 2012-01-28  Bruno Haible  <bruno@clisp.org>
22695         test-framework-sh: Fix test failure with AIX 7.1 diff.
22696         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
22697         in column 1, like 'diff -c' does.
22698         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
22699         whether 'diff -u' is used. Instead, test whether the output contains
22700         some '@' character.
22702 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
22704         strtoimax: eliminate need for stdint.h, inttypes.h checks
22705         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
22706         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
22707         the prerequisites for a recently-introduced strtoimax test.
22708         I guess this might cause strtoimax to be replaced when not
22709         strictly necessary on older hosts, but this shouldn't introduce
22710         any bugs and it should make Emacs 'configure' faster on typical
22711         modern hosts.  Problem discovered when importing the latest gnulib
22712         to an Emacs test version.
22713         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
22715 2012-01-28  Bruno Haible  <bruno@clisp.org>
22717         sys_time: Override 'struct timeval' on some native Windows platforms.
22718         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
22719         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
22720         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
22721         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
22722         needs to be overridden.
22723         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
22724         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
22725         * tests/test-sys_select.c: Check that the tv_sec member has the same
22726         size as a 'time_t'.
22727         * tests/test-sys_time.c: Likewise.
22728         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
22729         is set, set also REPLACE_GETTIMEOFDAY.
22730         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
22731         convert the resulting 'struct timeval' before returning.
22732         * lib/select.c: Include <sys/time.h>.
22733         (select, timeval): Undefine at the right place.
22734         * modules/select (Depends-on): Add sys_time.
22735         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
22736         some Windows platforms.
22737         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
22739 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
22741         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
22742         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
22743         an integer.
22744         * lib/fcntl.c (dupfd): Likewise.
22745         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
22747 2012-01-28  Bruno Haible  <bruno@clisp.org>
22749         fcntl: Avoid compilation error on native Windows.
22750         * modules/fcntl (Depends-on): Add 'close'.
22752 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
22754         select, poll, isatty: Avoid warnings on x86_64 mingw64.
22755         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
22756         pointer to an integer.
22757         * lib/poll.c (IsConsoleHandle): Likewise.
22758         * lib/isatty.c (IsConsoleHandle): Likewise.
22760 2012-01-28  Jim Meyering  <meyering@redhat.com>
22762         doc: clarify README-release
22763         * top/README-release: Clarify: you should make a point to have
22764         the latest stable versions of build tools in your PATH, and the
22765         reference to buildreq is solely for its list of tool names, not
22766         for its minimal-functional version numbers.
22767         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
22769         maint.mk: use more readable (yet functionally equivalent) quoting
22770         It is common to quote a single quote in a single quoted string like
22771         this:  '...'\''...'.  Unless you know the idiom, that looks like
22772         gibberish, so prefer to double-quote the string when possible.
22773         Then you can use a more readable, lone single quote: "...'..."
22774         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
22775         "don't" is more readable than the equivalent 'don'\''t'.
22776         (sc_cast_of_x_alloc_return_value): Likewise.
22777         (sc_cast_of_alloca_return_value): Likewise.
22778         (sc_makefile_path_separator_check): Similar: use ":" in '...',
22779         rather than '\'':'\''.
22781 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
22783         stdalign: relax _Alignof and tighten _Alignas test
22784         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
22785         as it was too strict: alignof must divide offsetof, but it need
22786         not equal offsetof.  Inspired by Joseph S. Myers's comment
22787         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
22788         Conversely, tighten the _Alignas test a bit, as the resulting
22789         alignment must be exactly 8.
22791 2012-01-27  Bruno Haible  <bruno@clisp.org>
22793         stdalign: Document the last change.
22794         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
22796 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
22798         stdalign: check that alignof and offsetof are consistent
22799         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
22800         Problem reported for gnulib by Richard W.M. Jones in
22801         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
22803 2012-01-27  Jim Meyering  <meyering@redhat.com>
22805         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
22806         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
22807         convert a sequence with gaps to the minimal containing range.
22808         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
22809         * tests/test-update-copyright.sh: Test for this.
22810         The FSF confirmed it is ok to do this, assuming there is at
22811         least one significant change per year in the affected range:
22812         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
22814 2012-01-26  Bruno Haible  <bruno@clisp.org>
22816         pipe2: refine doc about thread-safety
22817         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
22818         multithread-safety problem.
22819         * doc/glibc-functions/accept4.texi: Likewise.
22821 2012-01-26  Bruno Haible  <bruno@clisp.org>
22823         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
22824         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
22825         In the test program, include <fcntl.h>, for O_RDONLY.
22827 2012-01-26  Eric Blake  <eblake@redhat.com>
22829         pipe2: document lack of thread-safety in replacement
22830         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
22831         issue in replacement.
22832         * doc/glibc-functions/accept4.texi (accept4): Likewise.
22833         Based on a report by Eric Wong.
22835 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
22836             Bruno Haible  <bruno@clisp.org>
22838         malloca: Avoid warnings on x86_64 mingw64.
22839         * lib/malloca.c: Include <stdint.h>.
22840         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
22841         * modules/malloca (Depends-on): Add stdint.
22842         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
22844 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
22846         obstack: remove __STDC__ conditionals
22847         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
22848         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
22849         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
22850         m4/include_next.m4 as the only gnulib-maintained places that still
22851         refer to __STDC__.
22853 2012-01-24  Bruno Haible  <bruno@clisp.org>
22855         havelib: Modern quoting.
22856         * build-aux/config.rpath: Quote 'like this', not `like this', as per
22857         the recent change to the GNU coding standards.
22859 2012-01-24  Bruno Haible  <bruno@clisp.org>
22861         stdint: Improve support for Android.
22862         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
22863         Reported by Simon Josefsson <simon@josefsson.org>.
22865 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22867         doc: omit trailing empty lines from INSTALL etc.
22868         * doc/Makefile (INSTALL): Omit trailing empty lines.
22869         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
22870         omit trailing empty lines.  This simplifies the build procedure.
22872 2012-01-23  Jim Meyering  <meyering@redhat.com>
22874         tests: avoid spurious warnings about gl_sockets_startup
22875         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
22876         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
22877         reporting a "statement with no effect".
22878         * tests/test-accept.c (main): Mark as "(void)".
22879         * tests/test-accept4.c (main): Likewise.
22880         * tests/test-bind.c (main): Likewise.
22881         * tests/test-connect.c (main): Likewise.
22882         * tests/test-getpeername.c (main): Likewise.
22883         * tests/test-getsockname.c (main): Likewise.
22884         * tests/test-getsockopt.c (main): Likewise.
22885         * tests/test-listen.c (main): Likewise.
22886         * tests/test-recv.c (main): Likewise.
22887         * tests/test-recvfrom.c (main): Likewise.
22888         * tests/test-send.c (main): Likewise.
22889         * tests/test-sendto.c (main): Likewise.
22890         * tests/test-setsockopt.c (main): Likewise.
22891         * tests/test-shutdown.c (main): Likewise.
22893 2012-01-21  Bruno Haible  <bruno@clisp.org>
22895         locale-fr.m4: Fix for Android.
22896         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
22897         failure of the test program on Bionic libc.
22899 2012-01-21  Jim Meyering  <meyering@redhat.com>
22901         bootstrap: fail when bootstrap_post_import_hook fails
22902         Otherwise, it's far too easy to miss diagnostics emitted
22903         between gnulib-tool's output and that of running configure.
22904         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
22906 2012-01-17  Jim Meyering  <meyering@redhat.com>
22908         maint: enable sc_trailing_blank
22909         * build-aux/pmccabe.css: Remove trailing blanks.
22910         * doc/acl-cygwin.txt: Likewise.
22911         * doc/gnu-oids.texi: Likewise
22912         * cfg.mk: Enable sc_trailing_blank.
22913         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
22915 2012-01-17  Jim Meyering  <meyering@redhat.com>
22917         maint: enable sc_prohibit_openat_without_use
22918         * cfg.mk: Enable sc_prohibit_openat_without_use.
22919         Exempt lib/selinux-at.c.
22921 2012-01-17  Jim Meyering  <meyering@redhat.com>
22923         maint: enable sc_prohibit_cloexec_without_use
22924         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
22925         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
22927 2012-01-17  Jim Meyering  <meyering@redhat.com>
22929         maint: enable sc_prohibit_intprops_without_use
22930         * cfg.mk: Enable sc_prohibit_intprops_without_use
22931         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
22933 2012-01-17  Jim Meyering  <meyering@redhat.com>
22935         maint: enable sc_prohibit_hash_pjw_without_use
22936         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
22937         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
22938         to match any use of \<hash_pjw\>, i.e., not necessarily with a
22939         following " (".
22941 2012-01-17  Jim Meyering  <meyering@redhat.com>
22943         maint: enable double-word-prohibiting rule
22944         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
22945         Exempt three files.
22947 2012-01-17  Jim Meyering  <meyering@redhat.com>
22949         maint: remove empty lines at EOF, but excluding modules/*
22950         Apply syntax rules at home as well as abroad.  Most changes
22951         were induced by running this:
22952           make srcdir=. _build-aux=build-aux -f top/maint.mk \
22953             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
22954             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
22955         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
22956         Exempt modules/* and two binary files.
22957         Also exempt doc/INSTALL*, per request from Bruno Haible.
22958         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
22959         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
22960         * doc/Copyright/request-assign.future: Likewise.
22961         * doc/Copyright/request-disclaim.changes: Likewise.
22962         * doc/INSTALL: Likewise.
22963         * doc/INSTALL.ISO: Likewise.
22964         * doc/INSTALL.UTF-8: Likewise.
22965         * doc/acl-cygwin.txt: Likewise.
22966         * doc/acl-resources.txt: Likewise.
22967         * doc/fdl-1.2.texi: Likewise.
22968         * doc/fdl-1.3.texi: Likewise.
22969         * doc/fdl.texi: Likewise.
22970         * lib/argp-pin.c: Likewise.
22971         * lib/round.c: Likewise.
22972         * lib/unicase/u16-totitle.c: Likewise.
22973         * lib/unictype/block_test.c: Likewise.
22974         * lib/uninorm/canonical-decomposition.c: Likewise.
22975         * m4/README: Likewise.
22976         * m4/relocatable-lib.m4: Likewise.
22977         * tests/test-isnand-nolibm.c: Likewise.
22978         * tests/test-isnand.c: Likewise.
22979         * tests/uninorm/NormalizationTest.txt: Likewise.
22981 2012-01-17  Jim Meyering  <meyering@redhat.com>
22983         maint: add framework to run syntax-check rules against gnulib sources
22984         * cfg.mk: New file, to disable all currently-failing tests.
22985         We'll enable them one by one, as they are made to pass.
22986         * Makefile (sc_maint): New rule.
22988 2012-01-21  Bruno Haible  <bruno@clisp.org>
22990         stdint: Add support for Android.
22991         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
22992         include the system's <stdint.h>.
22993         Reported by Simon Josefsson <simon@josefsson.org>.
22995 2012-01-19  Jim Meyering  <meyering@redhat.com>
22997         bootstrap: add bootstrap_post_import_hook
22998         Bison does still need something like the gnulib_mk_hook whose
22999         invocation I had to remove along with slurp in commit 767ccd40.
23000         Technically, we could get along without it, but doing so would
23001         have required living with a warning and a mandatory post-bootstrap
23002         automake rerun.
23003         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
23004         (bootstrap_post_import_hook): New function.
23005         Invoke it after gnulib-tool --import and before autoreconf.
23007 2012-01-18  Jim Meyering  <meyering@redhat.com>
23009         gitlog-to-changelog: don't use "no_"-prefixed variable name
23010         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
23011         to enable both --cluster and --no-cluster.  Change variable name,
23012         s/\$no_cluster/$cluster/, and reverse usage to match.
23014         gitlog-to-changelog: use "||", not "or" in expressions
23015         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
23016         expressions.
23018 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
23020         gitlog-to-changelog: new option --no-cluster
23021         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
23022         clustering of adjacent commit messages.
23024 2012-01-17  Jim Meyering  <meyering@redhat.com>
23026         maint: spell file systems with two words, not one
23027         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
23028         two words, not one.
23030 2012-01-16  Jim Meyering  <meyering@redhat.com>
23032         bootstrap: add a FIXME comment to ensure we eventually remove the hack
23033         * build-aux/bootstrap (gnulib_tool_options): Add comment.
23035 2012-01-16  Eric Blake  <eblake@redhat.com>
23037         bootstrap: cater to autoconf 2.59
23038         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
23039         is not available.
23041         bootstrap: properly check for libtool
23042         * build-aux/bootstrap (libtoolize): Also run libtool when older
23043         usage is detected.
23045 2012-01-15  Bruno Haible  <bruno@clisp.org>
23047         Improve support for MSVC 9.
23048         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
23049         clashes on MSVC.
23050         * lib/fcntl.in.h: Likewise.
23051         * lib/stdlib.in.h: Likewise.
23052         * lib/sys_stat.in.h: Likewise.
23054 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
23056         gnupload: we hold the master copy of this script now
23057         For motivation and more information, see:
23058         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
23059         * build-aux/gnupload: Make it clear in the heading comments that the
23060         master copy of this file is maintained by gnulib.  Since we are at
23061         it, bump its copyright year and ...
23062         ($scriptversion): ... the date in its version.
23063         ($usage): Patches and bug reports should be sent to the gnulib list,
23064         not the automake one.
23065         * config/srclist.txt: Don't try to sync 'gnupload' from automake
23066         anymore.
23068 2012-01-15  Bruno Haible  <bruno@clisp.org>
23070         Fix module 'random'.
23071         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
23072         initstate, setstate are declared.
23074 2012-01-14  Bruno Haible  <bruno@clisp.org>
23076         Tests for module 'random'.
23077         * modules/random-tests: New file.
23078         * tests/test-random.c: New file, based on tests/test-random_r.c.
23080         New module 'random'.
23081         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
23082         declarations.
23083         * lib/random.c: New file, based on glibc/stdlib/random.c.
23084         * m4/random.m4: New file.
23085         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
23086         HAVE_RANDOM.
23087         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
23088         * modules/random: New file.
23089         * config/srclist.txt: Add an entry for random.c.
23090         * doc/posix-functions/random.texi: Mention the 'random' module.
23091         * doc/posix-functions/initstate.texi: Likewise.
23092         * doc/posix-functions/setstate.texi: Likewise.
23093         * doc/posix-functions/srandom.texi: Likewise.
23095 2012-01-12  Bruno Haible  <bruno@clisp.org>
23097         random_r: Use common idioms.
23098         * lib/random_r.c: Include <stdlib.h> first.
23100         random_r: Override incompatible API on AIX, OSF/1.
23101         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
23102         Override the system function if REPLACE_RANDOM_R is 1.
23103         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
23104         and OSF/1, set REPLACE_RANDOM_R.
23105         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
23106         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
23107         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
23108         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
23109         * doc/glibc-functions/random_r.texi: Likewise.
23110         * doc/glibc-functions/setstate_r.texi: Likewise.
23112         random_r: Support for MSVC 9.
23113         * lib/random_r.c: Include stdint.h, not inttypes.h.
23115 2012-01-12  Eric Blake  <eblake@redhat.com>
23117         inet_ntop: guard extra work by IF_LINT
23118         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
23119         better code generation when not checking for warnings.
23120         Suggested by Paul Eggert and Jim Meyering.
23122         strptime: fix regression on mingw
23123         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
23124         Fix regression.  Reported by Bruno Haible.
23126 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
23127             Bruno Haible  <bruno@clisp.org>
23129         copy-file: add error-code-returning variant.
23130         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
23131         (qcopy_file_preserving): New declaration.
23132         * lib/copy-file.c (qcopy_file_preserving): Renamed from
23133         copy_file_preserving. Change return type to 'int'. Don't emit an error
23134         message here.
23135         (copy_file_preserving): New function.
23136         * tests/test-copy-file.c: Include <stdlib.h>.
23137         (main): Test qcopy_file_preserving if the environment variable
23138         NO_STDERR_OUTPUT is set.
23139         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
23140         with NO_STDERR_OUTPUT
23141         * tests/test-copy-file-2.sh: Likewise.
23143 2012-01-10  Bruno Haible  <bruno@clisp.org>
23145         copy-file: Use 'quote' module consistently.
23146         * lib/copy-file.c (copy_file_preserving): Use quote().
23148         copy-file: Refactor.
23149         * lib/copy-file.c: Include quote.h.
23150         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
23151         message here.
23152         * modules/copy-file (Depends-on): Add quote.
23154         acl: Export qcopy_acl.
23155         * lib/acl.h (qcopy_acl): New declaration.
23156         * lib/copy-acl.c (qcopy_acl): Make non-static.
23158         acl: Rename a local variable.
23159         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
23161         acl: Align return values of copy_acl and qcopy_acl.
23162         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
23163         maybe < -1.
23165 2012-01-11  Eric Blake  <eblake@redhat.com>
23167         strptime: silence gcc warnings
23168         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
23169         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
23170         Reported by Daniel P. Berrange.
23172         inet_ntop: silence gcc warning
23173         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
23174         Reported by Daniel P. Berrange.
23176 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
23178         getloadavg test: skip the test on GNU/Linux without /proc mounted
23179         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
23180         file.  When /proc is not mounted, it always fails with ENOENT.
23181         * tests/test-getloadavg.c (main): Treat ENOENT return code from
23182         getloadavg(3) the same way as ENOSYS and ENOTSUP.
23184 2012-01-10  Bruno Haible  <bruno@clisp.org>
23186         regex: Avoid link error on MSVC 9.
23187         * modules/regex (Depends-on): Add wctype.
23189 2012-01-10  Bruno Haible  <bruno@clisp.org>
23191         doc: Mention --with-tests option.
23192         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
23193         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
23194         --with-tests.
23195         Reported by Reuben Thomas.
23197 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
23199         users.txt: order package names lexicographically.
23200         * users.txt: Order package names lexicographically.
23202 2012-01-10  Jim Meyering  <meyering@redhat.com>
23204         maint.mk: fix description in comment
23205         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
23207         ignore-value: remove deprecated ignore_ptr function
23208         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
23209         * NEWS: Note this.
23211 2012-01-09  Jim Meyering  <meyering@redhat.com>
23213         test-init.sh: avoid a subshell
23214         * tests/test-init.sh: Remove protective subshell.
23215         Suggested by Bernhard Voelker.  While a subshell is normally
23216         required to protect against older shells (Solaris, FreeBSD) that
23217         warn about a missing program before performing redirection, the
23218         shell-selection tests performed by init.sh probably exclude any
23219         offending shell.
23221 2012-01-08  Bruno Haible  <bruno@clisp.org>
23223         setlocale tests: Avoid test failure on Solaris 11.0.
23224         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
23225         variable.
23227 2012-01-08  Bruno Haible  <bruno@clisp.org>
23229         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
23230         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
23231         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
23232         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
23233         macro.
23234         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
23235         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
23236         * lib/spawn_faction_addopen.c: Add workaround implementation if
23237         HAVE_WORKING_POSIX_SPAWN.
23238         * modules/spawn (Makefile): Substitute
23239         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
23240         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
23241         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
23242         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
23243         (Depends-on): Update conditions.
23244         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
23245         the Solaris 11 bug.
23247 2012-01-08  Bruno Haible  <bruno@clisp.org>
23249         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
23250         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
23251         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
23252         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
23253         macro.
23254         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
23255         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
23256         * lib/spawn_faction_adddup2.c: Add workaround implementation if
23257         HAVE_WORKING_POSIX_SPAWN.
23258         * modules/spawn (Makefile): Substitute
23259         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
23260         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
23261         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
23262         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
23263         (Depends-on): Update conditions.
23264         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
23265         the Solaris 11 bug.
23267 2012-01-08  Bruno Haible  <bruno@clisp.org>
23269         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
23270         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
23271         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
23272         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
23273         HAVE_WORKING_POSIX_SPAWN.
23274         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
23275         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
23276         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
23277         * lib/spawn_faction_addclose.c: Add workaround implementation if
23278         HAVE_WORKING_POSIX_SPAWN.
23279         * modules/spawn (Makefile): Substitute
23280         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
23281         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
23282         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
23283         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
23284         (Depends-on): Update conditions.
23285         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
23286         the Solaris 11 bug.
23288 2012-01-08  Bruno Haible  <bruno@clisp.org>
23290         doc: Update for Solaris 11.0.
23291         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
23292         * m4/printf.m4: Update comments.
23294 2012-01-08  Bruno Haible  <bruno@clisp.org>
23296         mktime: Avoid compilation error on Solaris 11.
23297         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
23299 2012-01-08  Bruno Haible  <bruno@clisp.org>
23301         doc: Small fix.
23302         * doc/posix-headers/nl_types.texi: Correct platforms list.
23304 2012-01-08  Simon Josefsson  <simon@josefsson.org>
23306         Add lgpl-3.0 module.
23307         * MODULES.html.sh (Support for building documentation): Add
23308         lgpl-3.0.
23309         * modules/lgpl-3.0: New file.
23311 2012-01-08  Jim Meyering  <meyering@redhat.com>
23313         select.c: indent with spaces, not TABs
23314         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
23316 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
23318         quotearg: do not use grave accent for left quote
23319         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
23320         locale_quoting_style.
23321         (quotearg_buffer_restyled): Fix example.
23322         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
23324 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
23326         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
23327         Most programs do not have translation catalogs for English and much
23328         less separate catalogs for British and American English.  Drop the
23329         suggestion to translators about these two, and provide it
23330         automatically for Unicode locales.  Like most programs, even those
23331         using American English, we use single quotation marks.  This conflicts
23332         with the American typographic convention, but works better when you
23333         cite the entire error message within double quotes.  It also tries not
23334         to clash with established practice and with what non-gnulib programs
23335         will usually do.
23336         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
23337         using an UTF-8 or GB-18030 locale.  The list of other locales with
23338         quotes was provided by Bruno Haible.
23339         (quotearg_buffer_restyled): Adjust instructions to translators.
23340         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
23341         text, since this would be wrong when using Unicode.
23342         * modules/quotearg: Depend on c-strcaseeq.
23344 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
23346         quotearg: fix Wikipedia link
23347         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
23349 2012-01-07  Simon Josefsson  <simon@josefsson.org>
23351         Fix for mingw with MSVC9.
23352         * m4/ld-version-script.m4: Check that compiler rejects version
23353         scripts with syntax errors.  Reported by Bruno Haible
23354         <bruno@clisp.org>.
23356 2012-01-06  Bruno Haible  <bruno@clisp.org>
23358         Talk about "native Windows API", not "Woe32".
23359         * lib/accept4.c: Update comments to mention native Windows.
23360         * lib/execute.c: Likewise.
23361         * lib/fatal-signal.c: Likewise.
23362         * lib/localcharset.c: Likewise.
23363         * lib/nanosleep.c: Likewise.
23364         * lib/nl_langinfo.c: Likewise.
23365         * lib/pclose.c: Likewise.
23366         * lib/pipe-filter-gi.c: Likewise.
23367         * lib/pipe-filter-ii.c: Likewise.
23368         * lib/pipe.c: Likewise.
23369         * lib/pipe2.c: Likewise.
23370         * lib/popen.c: Likewise.
23371         * lib/progreloc.c: Likewise.
23372         * lib/relocatable.c: Likewise.
23373         * lib/sigaction.c: Likewise.
23374         * lib/sigprocmask.c: Likewise.
23375         * lib/spawn-pipe.h: Likewise.
23376         * lib/spawn-pipe.c: Likewise.
23377         * lib/spawni.c: Likewise.
23378         * lib/stat-time.h: Likewise.
23379         * lib/w32spawn.h: Likewise.
23380         * tests/test-isatty.c: Likewise.
23381         * lib/config.charset: More comments.
23382         * doc/gnulib-intro.texi: Mention native Windows.
23383         * doc/posix-functions/_Exit_C99.texi: Likewise.
23384         * doc/posix-headers/fcntl.texi: Likewise.
23386 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
23388         argp: Avoid crash if translator uses % characters in a translation.
23389         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
23390         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
23392 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
23394         doc: C11 and C++11 are now official
23395         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
23396         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
23397         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
23398         * modules/stdalign:
23399         Replace references to draft C1X to C11, and to draft C++0X to C++11.
23401 2012-01-06  Bruno Haible  <bruno@clisp.org>
23403         uc-is-grapheme-break tests: Tweak.
23404         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
23405         message.
23407 2012-01-06  Bruno Haible  <bruno@clisp.org>
23409         test-init.sh: correct the test for diff -u
23410         * tests/test-init.sh: Also redirect stdout to /dev/null.
23412 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
23414         Use ', not `, for quoting output.
23415         * build-aux/announce-gen (usage, sizes, print_news_deltas)
23416         (print_changelog_deltas, get_tool_versions, main program):
23417         * build-aux/git-version-gen:
23418         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
23419         * build-aux/move-if-change (help):
23420         * build-aux/useless-if-before-free (usage, main program):
23421         * check-module (parse_module_file, usage)
23422         (find_included_lib_files, check_module):
23423         * lib/argmatch.c (main) [TEST]:
23424         * lib/argp-help.c (_help):
23425         * lib/getopt1.c (main) [TEST]:
23426         * lib/git-merge-changelog.c (usage):
23427         * lib/xstrtol-error.c (xstrtol_error):
23428         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
23429         * m4/argz.m4 (gl_FUNC_ARGZ):
23430         * m4/bison.m4 (gl_BISON):
23431         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
23432         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
23433         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
23434         * m4/fpending.m4 (gl_PREREQ_FPENDING):
23435         * m4/gc-random.m4 (gl_GC_RANDOM):
23436         * m4/intl.m4 (gt_CHECK_DECL):
23437         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
23438         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
23439         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
23440         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
23441         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
23442         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
23443         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
23444         * tests/test-dirname.c (main):
23445         * tests/test-getpass.c (main):
23446         * tests/test-iconvme.c (main):
23447         * tests/test-parse-datetime.c (LOG):
23448         * tests/test-xstrtoimax.sh:
23449         * tests/test-xstrtol.sh:
23450         * tests/test-xstrtoll.sh:
23451         * tests/test-xstrtoumax.sh:
23452         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
23453         * top/GNUmakefile (abort-due-to-no-makefile):
23454         Quote 'like this', not `like this', as per the recent change to
23455         the GNU coding standards.
23457 2012-01-05  Bruno Haible  <bruno@clisp.org>
23459         strtoimax: Don't force a replacement on systems where intmax_t is int.
23460         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
23461         'intmax_t' is not larger than 'int'.
23462         Reported by Pádraig Brady <P@draigBrady.com>.
23464 2012-01-05  Bruno Haible  <bruno@clisp.org>
23466         doc: Mention NetBSD bugs.
23467         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
23468         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
23470 2012-01-05  Bruno Haible  <bruno@clisp.org>
23472         strtoumax tests: Enhance tests.
23473         * tests/test-strtoumax.c (main): Add tests for large values.
23475 2012-01-05  Bruno Haible  <bruno@clisp.org>
23477         strtoimax: Work around AIX 5.1 bug.
23478         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
23479         definition.
23480         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
23481         Set HAVE_STRTOIMAX.
23482         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
23483         REPLACE_STRTOIMAX.
23484         * modules/inttypes-incomplete (Makefile.am): Substitute
23485         REPLACE_STRTOIMAX.
23486         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
23487         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
23488         (Depends-on): Update conditions.
23489         * tests/test-strtoimax.c (main): Add tests for large values.
23490         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
23492 2012-01-05  Bruno Haible  <bruno@clisp.org>
23494         inttypes: Modernize.
23495         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
23496         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
23497         (Makefile.am): Update inttypes.h rule.
23499 2012-01-05  Jim Meyering  <meyering@redhat.com>
23501         init.sh: don't waste a subshell just to redirect stderr
23502         * tests/init.sh: In testing for diff -u and diff -c, use a
23503         stderr-redirecting exec inside `...` rather than a subshell.
23505         test-init.sh: avoid failure on HP-UX 11.00
23506         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
23507         resolves to diff -c or cmp.  Reported by Bruno Haible.
23509 2012-01-05  Bruno Haible  <bruno@clisp.org>
23511         Tests for module 'strtoull'.
23512         * modules/strtoull-tests: New file.
23513         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
23515 2012-01-05  Bruno Haible  <bruno@clisp.org>
23517         Tests for module 'strtoll'.
23518         * modules/strtoll-tests: New file.
23519         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
23521 2012-01-05  Bruno Haible  <bruno@clisp.org>
23523         Tests for module 'strtoul'.
23524         * modules/strtoul-tests: New file.
23525         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
23527 2012-01-05  Bruno Haible  <bruno@clisp.org>
23529         Tests for module 'strtol'.
23530         * modules/strtol-tests: New file.
23531         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
23533 2012-01-04  Jim Meyering  <meyering@redhat.com>
23535         test-init.sh: accommodate Solaris 5.10's different diff -u output
23536         * tests/test-init.sh: Also exempt @@ lines from the comparison
23537         of diff output, since Solaris 5.10 and GNU diff formats differ.
23538         Reported by Stefano Lattarini.
23540 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
23542         test-posixtm: don't assume signed integer wraparound
23543         * tests/test-posixtm.c (main): Don't assume wraparound semantics
23544         after signed integer overflow.  Inspired by (though it may not
23545         fix) Bruno Haible's bug report in
23546         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
23548         Spell out "Windows 9x" and "Windows XP".
23549         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
23550         "Windows 9x" and "WinXP" with "Windows XP".
23552 2012-01-04  Jim Meyering  <meyering@redhat.com>
23554         test-vc-list-files-cvs.sh: remove obsolete comment
23555         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
23556         double exit.  Now that's all encapsulated via skip_ and Exit.
23558 2012-01-04  Bruno Haible  <bruno@clisp.org>
23560         Talk about "native Windows API", not "Win32".
23561         * lib/classpath.c: Update comments to mention native Windows.
23562         * lib/csharpexec.c: Likewise.
23563         * lib/dup2.c: Likewise.
23564         * lib/error.c: Likewise.
23565         * lib/fcntl.c: Likewise.
23566         * lib/filename.h: Likewise.
23567         * lib/findprog.c: Likewise.
23568         * lib/get-rusage-as.c: Likewise.
23569         * lib/get-rusage-data.c: Likewise.
23570         * lib/getpagesize.c: Likewise.
23571         * lib/javaexec.c: Likewise.
23572         * lib/msvc-inval.c: Likewise.
23573         * lib/msvc-nothrow.c: Likewise.
23574         * lib/nanosleep.c: Likewise.
23575         * lib/nonblocking.c: Likewise.
23576         * lib/printf-parse.c: Likewise.
23577         * lib/setlocale.c: Likewise.
23578         * lib/sigaction.c: Likewise.
23579         * lib/strerror_r.c: Likewise.
23580         * lib/tmpdir.c: Likewise.
23581         * lib/vasnprintf.c: Likewise.
23582         * lib/w32spawn.h: Likewise.
23583         * lib/waitpid.c: Likewise.
23584         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
23585         * m4/locale-ar.m4: Likewise.
23586         * m4/locale-fr.m4: Likewise.
23587         * m4/locale-ja.m4: Likewise.
23588         * m4/locale-tr.m4: Likewise.
23589         * m4/locale-zh.m4: Likewise.
23590         * m4/printf.m4: Likewise.
23591         * tests/test-cloexec.c: Likewise.
23592         * tests/test-copy-acl.sh: Likewise.
23593         * tests/test-copy-file.sh: Likewise.
23594         * tests/test-file-has-acl.sh: Likewise.
23595         * tests/test-set-mode-acl.sh: Likewise.
23596         * tests/test-dup-safer.c: Likewise.
23597         * tests/test-dup2.c: Likewise.
23598         * tests/test-dup3.c: Likewise.
23599         * tests/test-fcntl.c: Likewise.
23600         * tests/test-nonblocking-pipe.h: Likewise.
23601         * tests/test-nonblocking-socket.h: Likewise.
23602         * tests/test-pipe.c: Likewise.
23603         * tests/test-pipe2.c: Likewise.
23604         * tests/test-spawn-pipe-child.c: Likewise.
23605         * doc/acl-resources.txt: Likewise.
23606         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
23607         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
23608         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
23609         * lib/localcharset.c: Update comments to mention native Windows.
23610         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
23611         * lib/localename.c: Likewise.
23612         * lib/progreloc.c: Likewise.
23613         * lib/relocatable.c: Likewise.
23614         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
23615         (windows_compute_revents): Renamed from win32_compute_revents.
23616         (windows_compute_revents_socket): Renamed from
23617         win32_compute_revents_socket.
23618         * lib/select.c: Update comments to mention native Windows.
23619         (windows_poll_handle): Renamed from win32_poll_handle.
23620         * m4/threadlib.m4: Update comments to mention native Windows.
23621         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
23622         --enable-threads=windows instead of --enable-threads=win32. Set
23623         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
23624         * lib/glthread/lock.h: Update comments to mention native Windows.
23625         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
23626         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
23627         USE_WIN32_THREADS.
23628         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
23629         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
23630         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
23631         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
23632         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
23633         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
23634         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
23635         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
23636         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
23637         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
23638         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
23639         * tests/test-tls.c: Likewise.
23640         Rationale:
23641         Microsoft renamed the "Win32 API" to "Windows API", as it is available
23642         on both 32-bit and 64-bit Windows systems.
23643         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
23644         line of distinction is between "native Windows" on one side and Unix/
23645         POSIX systems on the other side. More details in
23646         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
23647         Suggested by Paul Eggert.
23649 2012-01-03  Bruno Haible  <bruno@clisp.org>
23651         isatty: Support for MSVC 9.
23652         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
23653         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
23654         (_isatty_nothrow): New function.
23655         (isatty): Use it instead of _isatty.
23656         (IsConsoleHandle): Add comment, from Paolo Bonzini.
23657         * lib/poll.c (IsConsoleHandle): Likewise.
23658         * lib/select.c (IsConsoleHandle): Likewise.
23659         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
23660         (gl_PREREQ_ISATTY): New macro.
23661         * modules/isatty (Depends-on): Add msvc-inval.
23662         (configure.ac): Invoke gl_PREREQ_ISATTY.
23664 2012-01-03  Jim Meyering  <meyering@redhat.com>
23666         maint.mk: remove temporary transition aid from over 1.5 years ago
23667         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
23668         purpose was to aid in the transition (avoiding silent malfunction)
23669         from that old name to the new _sc_search_regexp.  This shim was
23670         added by commit 219c504b.
23672         init.sh: do not try to accommodate compare arguments starting with "-"
23673         * tests/init.sh (compare_dev_null_): Do not try to accommodate
23674         compare arguments that start with "-".  Besides, we do not worry
23675         about this when invoking diff or cmp; why start now with sed?
23676         Using "--" to separate options from argument would trigger sed
23677         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
23678         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
23680 2012-01-02  Bruno Haible  <bruno@clisp.org>
23682         Enhance tests for module 'isatty'.
23683         * modules/isatty-tests (Depends-on): Add pipe-posix.
23684         * tests/test-isatty.c: Include <fcntl.h>.
23685         (DEV_NULL): New macro.
23686         (main): Test the resut of isatty() also on regular files, pipes, and
23687         /dev/null.
23689         New module 'isatty'.
23690         * lib/unistd.in.h (isatty): New declaration.
23691         * lib/isatty.c: New file, based on an idea of
23692         Bastien Roucariès <roucaries.bastien@gmail.com>.
23693         * m4/isatty.m4: New file.
23694         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
23695         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
23696         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
23697         REPLACE_ISATTY.
23698         * modules/isatty: New file.
23699         * doc/posix-functions/isatty.texi: Mention the new module.
23700         Suggested by Paolo Bonzini.
23702 2012-01-02  Bruno Haible  <bruno@clisp.org>
23704         canonicalize: Tweak 2011-12-29 commit.
23705         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
23706         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
23708 2012-01-02  Jim Meyering  <meyering@redhat.com>
23710         gitlog-to-changelog: describe input syntax in --help output
23711         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
23713         gitlog-to-changelog: fix typo in --help: show backslash before email @
23714         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
23715         in sources, but not in actual output.
23717 2011-12-30  Jim Meyering  <meyering@redhat.com>
23719         gitlog-to-changelog: don't malfunction when name contains %-directive
23720         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
23721         in a name string cause trouble.  E.g., with a user name of "%s",
23722         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
23724 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
23726         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
23727         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
23728         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
23729         the "  (tiny change)" notation that is appended to the standard
23730         ChangeLog "date  name  email" header line.
23732 2012-01-01  Jim Meyering  <meyering@redhat.com>
23734         test-framework-sh: init.sh: fix "make dist" failure
23735         When using gnulib-tool's --with-tests option and any module that
23736         depends on test-framework-sh, "make dist" would fail due to the
23737         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
23738         in the gltests directory, and not in the gllib/ directory.
23739         One way to work around that is to move the EXTRA_DIST += init.sh
23740         from the primary module to the -tests one:
23741         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
23742         * modules/test-framework-sh (Makefile.am): ...not here.
23743         Reported by Tom G. Christensen in
23744         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
23746         version-etc: update copyright year reported by --version
23747         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
23749 2011-12-31  Pádraig Brady  <P@draigBrady.com>
23751         canonicalize: only stat() if required
23752         * lib/canonicalize.c (canonicalize_filename_mode):
23753         Avoid calling l?stat() when both CAN_MISSING,
23754         and CAN_NOLINKS are set, as we neither need
23755         to resolve symlinks or test component existence.
23757 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
23759         doc: cover st_ino issues once; add OpenVMS etc.
23760         * doc/posix-functions/stat.texi (stat):
23761         * doc/posix-functions/lstat.texi (lstat):
23762         * doc/posix-functions/fstatat.texi (fstatat):
23763         * doc/posix-functions/fstat.texi (fstat):
23764         Move general 'struct stat' stuff to sys_stat.texi,
23765         leaving behind a pointer.
23766         * doc/posix-headers/sys_stat.texi (sys/stat.h):
23767         Merge duplicate info about 'struct stat' problems into here.
23768         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
23769         and suggest partial workarounds.
23771         same-inode: port to OpenVMS
23772         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
23773         three st_ino values.
23775 2011-12-30  Pádraig Brady  <P@draigBrady.com>
23777         canonicalize: fix references to stat() and lstat()
23778         * lib/canonicalize.c (canonicalize_filename_mode):
23779         Ensure references always resolve to a replacement
23780         function if required (even via a macro).
23782 2011-12-30  Jim Meyering  <meyering@redhat.com>
23784         gitlog-to-changelog: remove a little duplication
23785         * build-aux/gitlog-to-changelog (main): Grep @lines once,
23786         rather than twice.
23788 2011-12-29  Pádraig Brady  <P@draigBrady.com>
23790         canonicalize: add support for not resolving symlinks
23791         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
23792         indicate we don't want to follow symlinks.  Also
23793         provide CAN_MODE_MASK to aid setting these existing
23794         mutually exclusive values.
23795         * lib/canonicalize.c (canonicalize_filename_mode):
23796         Extract the flags from can_mode parameter, which
23797         are currently just used to select between stat()
23798         and lstat().  Also ensure that mutually exclusive
23799         values are flagged immediately as invalid.
23800         * tests/test-canonicalize.c: Verify symlinks are
23801         not followed, and that invalid flag combinations
23802         are diagnosed.
23804 2011-12-25  Jim Meyering  <meyering@redhat.com>
23806         gitlog-to-changelog: do not clump multi-paragraph entries
23807         Identical header lines (date,name,email+coauthors) are suppressed,
23808         thus putting all entries with those same characteristics under
23809         a single header.  However, when a log entry consists of two or
23810         more paragraphs, it may not be clear where it starts and ends.
23811         This change makes it so that such an entry is always separated
23812         from others by a header line, even when that header would
23813         otherwise be suppressed.
23814         * build-aux/gitlog-to-changelog: Implement the above.
23815         Inspired by a related request from Stefano Lattarini in
23816         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
23818 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
23820         announce-gen: fix `cmd' typo in diagnostic
23821         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
23822         diagnostic: a missing '$' meant that the command was not output.
23824 2011-12-23  Jim Meyering  <meyering@redhat.com>
23826         test-framework-sh: distribute init.sh
23827         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
23828         Otherwise, "make -C gnulib-tests check" (at least in grep) would
23829         fail due to the lack of init.sh.
23831         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
23832         * modules/atexit-tests: Rather than listing tests/init.sh,
23833         now that there's a module for it, simply depend on that new module.
23834         * modules/closein-tests: Likewise.
23835         * modules/exclude-tests: Likewise.
23836         * modules/getcwd-tests: Likewise.
23837         * modules/perror-tests: Likewise.
23838         * modules/pread-tests: Likewise.
23839         * modules/pwrite-tests: Likewise.
23840         * modules/vc-list-files-tests: Likewise.
23841         * modules/verify-tests: Likewise.
23842         * modules/xalloc-die-tests: Likewise.
23843         * modules/xstrtoimax-tests: Likewise.
23844         * modules/xstrtol-tests: Likewise.
23845         * modules/xstrtoll-tests: Likewise.
23846         * modules/xstrtoumax-tests: Likewise.
23847         * modules/yesno-tests: Likewise.
23849 2011-12-22  Jim Meyering  <meyering@redhat.com>
23851         test-framework-sh: add minimal tests of init.sh's compare function
23852         * modules/test-framework-sh-tests: New file.
23853         * tests/test-init.sh: New file.
23855         test-framework-sh: new module
23856         * modules/test-framework-sh: New file.
23857         * MODULES.html.sh (Support for maintaining and releasing projects):
23858         List it.
23860         init.sh: do not emit simulated diff output to stderr
23861         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
23863 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
23865         .gitignore: ignore gnulib.dvi and regex.info
23866         * doc/.gitignore:add gnulib.dvi and regex.info
23868 2011-12-22  Jim Meyering  <meyering@redhat.com>
23870         init.sh: correct previous change
23871         * tests/init.sh (compare): My previous change was wrong.
23872         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
23874         init.sh: avoid unwarranted test failure when using "set -e"
23875         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
23876         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
23877         a use like "compare exp out" would get evoke an unconditional failure.
23879 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
23881         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
23882         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
23883         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
23884         autoreconf that did not.
23885         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
23886         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
23888 2011-12-17  Jim Meyering  <meyering@redhat.com>
23890         bootstrap: remove some now-unneeded code
23891         This script arose back when gnulib-tool was young.
23892         Since then, it has seen improvements that render much of this
23893         script unnecessary.  In particular, it can now make symlinks
23894         to the files it uses.  Also, I no longer see as much value in
23895         marking files as read-only via comments.
23896         If you relied on the symlink-creation feature of the preceding
23897         version of this script, you can get most of that functionality
23898         by adding the --symlink option to the definition of
23899         gnulib_tool_option_extras in your bootstrap.conf file.
23900         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
23901         Run autopoint and libtoolize *before* gnulib-tool.
23902         After it, run an abbreviated autoreconf, rather than a loop around
23903         all tools.
23904         (slirp, bt_mark_as_generated): Remove functions.
23906 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23908         ftoastr: fix typo
23909         * lib/ftoastr.h: Fix misspelling in comment.
23911 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
23913         * top/README-release: fix punctuation.
23915 2011-12-17  Jim Meyering  <meyering@redhat.com>
23917         bootstrap: correct the recent buildreq change
23918         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
23919         had no effect.
23920         * build-aux/bootstrap (buildreq): Bracket each search term with
23921         "*...*", so that the shell "case" statement works as intended.
23922         Add comments.
23924 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
23926         build: let bootstrap resort to wget when downloading .po files
23927         * build-aux/bootstrap (download_po_files): Fallback to wget when
23928         downloading the .po files via rsync fails.  This is necessary to
23929         bootstrap from behind a strict firewall.
23931 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
23933         stdint: don't assume C++11 when compiling with g++
23934         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
23935         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
23936         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
23937         work also in C++ before C++11, as that improperly inhibits
23938         generating a substitute stdint.h for that case.
23940 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
23942         alloca: protect comment from gnulib-tool
23943         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
23944         that gnulib-tool doesn't think it's a license, and munge it to
23945         say "GCC version 3".
23947 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
23949         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
23950         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
23951         $(abs_top_builddir) instead of $(top_builddir).
23953 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
23955         strftime-tests: also test nanoseconds
23956         * tests/test-strftime.c (T): Add a test of %N.
23958 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
23960         inttypes, stdint: add C++11 support
23961         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
23962         when including inttypes.h and stdint.h.  Support this change to
23963         the standard.
23964         * doc/posix-headers/inttypes.texi (inttypes.h):
23965         * doc/posix-headers/stdint.texi (stdint.h): Document this.
23966         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
23967         Define if not defined already, for the benefit of pre-C++11 hosts.
23968         Define the standard format macros (e.g., PRId8) always.
23969         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
23970         Likewise, if __cpluspus.  Define the standard constant and limit
23971         macros (e.g., INT8_C, INT8_MAX) always.
23972         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
23973         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
23974         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
23975         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
23976         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
23977         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
23978         Likewise.
23980 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
23982         nonblocking tests: Fix test failure on Linux/PPC.
23983         Suggested by Prerna Saxena in
23984         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
23985         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
23986         Set to 1100000.
23988 2011-12-12  Jim Meyering  <meyering@redhat.com>
23990         argmatch: don't hard-code `' when listing valid option arguments
23991         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
23992         use the quote function to add quotes.  Use fputs rather than
23993         fprintf for the format string with no format directive.
23995 2011-12-07  Eric Blake  <eblake@redhat.com>
23997         bootstrap: detect tools required by gnulib-tool
23998         * build-aux/bootstrap (buildreq): Provide minimum implicit
23999         dependencies.
24000         * DEPENDENCIES: Mention patch as a prereq.
24002 2011-12-04  Bruno Haible  <bruno@clisp.org>
24004         sethostname: Port to Windows platforms.
24005         * lib/sethostname.c: Provide an alternate implementation for Windows
24006         platforms.
24007         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
24008         (main): Skip the test if sethostname() fails with EPERM. On Windows
24009         platforms, don't check the result of gethostname().
24011 2011-12-04  Bruno Haible  <bruno@clisp.org>
24012             Jim Meyering  <meyering@redhat.com>
24014         tests: Avoid spurious error message on platforms without mktemp program.
24015         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
24017 2011-12-04  Bruno Haible  <bruno@clisp.org>
24019         sethostname: Fix documentation.
24020         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
24021         "not fixed" section.
24023 2011-12-03  Bruno Haible  <bruno@clisp.org>
24025         gnulib-tool: Verify that the License field is present and non-empty.
24026         * gnulib-tool (func_get_license_raw): New function, extracted from
24027         func_get_license.
24028         (func_get_license): Use it. Warn if the module is not a test module and
24029         has no license.
24030         Suggested by Jim Meyering.
24032 2011-12-03  Bruno Haible  <bruno@clisp.org>
24034         sethostname tests: Fix link error on mingw.
24035         * tests/test-sethostname1.c: New file, extracted from
24036         tests/test-sethostname.c.
24037         * tests/test-sethostname2.c: New file, extracted from
24038         tests/test-sethostname.c.
24039         * tests/test-sethostname.c: Remove file.
24040         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
24041         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
24042         (Depends-on): Add gethostname.
24043         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
24044         Link the latter with $(GETHOSTNAME_LIB).
24046         sethostname tests: Fix compilation error on mingw.
24047         * tests/test-sethostname.c: Don't include <sys/types.h>.
24048         (geteuid): Use a dummy value without uid_t.
24049         * modules/sethostname-tests (Depends-on): Remove sys_types.
24051         sethostname tests: Avoid a gcc warning.
24052         * tests/test-sethostname.c (main): Remove an unused variable.
24054         Tweak last commit.
24055         * modules/sethostname-tests (Files): Sort by decreasing importance.
24056         (configure.ac): Check for geteuid.
24057         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
24058         the test when there's nothing to test. Drop an unnecessary cast.
24059         Improve an error message. Verify that the final sethostname() call
24060         succeeds.
24062 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
24064         Add a test suite for the sethostname module.
24065         * modules/sethostname-tests: New file.  A test program
24066         for the sethostname module.
24067         * tests/test-sethostname.c: Likewise.
24069 2011-12-03  Bruno Haible  <bruno@clisp.org>
24071         Tweak last commit.
24072         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
24073         Fix preprocessor directives indentation. Fix typos.
24074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
24075         * modules/unistd (Makefile): Likewise.
24077 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
24079         Integrate the sethostname module into unistd.
24080         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
24081         into the unistd.h header.
24082         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
24083         preprocessor directives.
24084         * modules/unistd: Setup the Makefile substitutions of the
24085         SETHOSTNAME preprocessor directives.
24087 2011-12-03  Bruno Haible  <bruno@clisp.org>
24089         Tweak last commit.
24090         * lib/sethostname.c: Don't include <string.h>.
24091         (sethostname): No need to copy the argument string to the stack. Don't
24092         call clearerr. Preserve errno when fprintf failed.
24093         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
24094         Don't invoke AC_REPLACE_FUNCS.
24095         * modules/sethostname (Link): Remove empty section.
24096         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
24097         failure problem.
24099 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
24101         New module 'sethostname'.
24102         * lib/sethostname.c (sethostname): New file.  Provide sethostname
24103         for systems that lack it.
24104         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
24105         sethostname declaration and function.
24106         * modules/sethostname: New file.  Define the sethostname module.
24108 2011-12-03  Bruno Haible  <bruno@clisp.org>
24110         Tweak last commit.
24111         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
24113 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
24115         Split the HOST_NAME_MAX detection into a separate m4 macro.
24116         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
24117         macro so it can be used by the pending sethostname module.
24119 2011-12-03  Bruno Haible  <bruno@clisp.org>
24121         Fix module descriptions syntax.
24122         * modules/argv-iter (License): Fix syntax.
24123         * modules/di-set (License): Likewise.
24124         * modules/ino-map (License): Likewise.
24125         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
24127 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
24129         stdalign: port to Clang 3.0
24130         Problem reported by Simon Josefsson in
24131         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
24132         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
24133         which has <stdalign.h> but which does not define alignof.
24134         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
24136 2011-12-01  Eric Blake  <eblake@redhat.com>
24138         mktempd: silence dd usage
24139         * build-aux/mktempd (rand_bytes): Silence dd.
24141 2011-11-30  Simon Josefsson  <simon@josefsson.org>
24143         manywarnings: Don't mention gcc version in docstring.
24144         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
24145         Jim Meyering <meyering@redhat.com>.
24147 2011-11-30  Jim Meyering  <meyering@redhat.com>
24149         hash: mark a few floating point constants with "f" suffix
24150         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
24151         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
24152         floating point constants with "f", since they're destined to be
24153         saved/used as "float"s.
24155 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
24157         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
24158         * tests/test-float.c (test_long_double): Correct and re-enable the
24159         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
24161 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
24163         Avoid subtracting two pointers that don't point into the same block.
24164         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
24165         only pointers into the same memory block are subtracted. We cannot
24166         assume that sizeof (ptrdiff_t) == sizeof (void *).
24168 2011-11-29  Eric Blake  <eblake@redhat.com>
24170         maint.mk: add syntax check for use of compare from init.sh
24171         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
24172         moved here from coreutils.
24174         manywarnings: drop -Wunsuffixed-float-constants
24175         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
24176         '1.0D', which is the only way to silence this warning for 'double'.
24178 2011-11-29  Jim Meyering  <meyering@redhat.com>
24180         hash: mark compute_bucket_size with the pure attribute
24181         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
24183         quotearg, propername: correct pragma guard expression
24184         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
24185         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
24187 2011-11-28  Jim Meyering  <meyering@redhat.com>
24189         propername: do not mark proper_name with the const attribute
24190         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
24191         since it examines data pointed to by its parameter.
24192         * lib/propername.c (proper_name): Instead, add a pragma to suppress
24193         the suggestion from -Wsuggest-attribute=const.
24195         propername: mark one more function as const
24196         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
24198 2011-11-27  Jim Meyering  <meyering@redhat.com>
24200         mark functions with const and pure attributes
24202         Mark functions per suggestions from gcc-4.6 when using these options:
24203         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
24204         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
24205         Follow these guidelines: when possible, apply the attribute to
24206         an extern declaration, not to its definition.  Apply it to the
24207         definition only when the definition is static.
24208         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
24209         * lib/argv-iter.h (argv_iter_n_args): Likewise.
24210         * lib/base64.h (isbase64): Likewise.
24211         * lib/basename-lgpl.c (last_component, base_len): Likewise.
24212         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
24213         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
24214         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
24215         (c_tolower, c_toupper): Likewise.
24216         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
24217         * lib/chdir-long.c (find_non_slash): Likewise.
24218         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
24219         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
24220         * lib/file-type.h (file_type): Likewise.
24221         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
24222         * lib/filevercmp.c (verrevcmp): Likewise.
24223         * lib/freadahead.h (freadahead): Likewise.
24224         * lib/fts.c (fts_maxarglen): Likewise.
24225         * lib/hash-pjw.h (hash_pjw): Likewise.
24226         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
24227         * lib/hash.c (is_prime, next_prime): Likewise.
24228         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
24229         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
24230         (hash_table_ok, hash_get_first, hash_string): Likewise.
24231         (compute_bucket_size): Likewise.
24232         * lib/i-ring.h (i_ring_empty): Likewise.
24233         * lib/isnan.c (isnanl): Likewise.
24234         * lib/math.h (isnanl, rpl_isnanl): Likewise.
24235         * lib/memcasecmp.h (memcasecmp): Likewise.
24236         * lib/memchr2.h (memchr2): Likewise.
24237         * lib/memcmp2.h (memcmp2): Likewise.
24238         * lib/parse-datetime.y (lookup_zone): Likewise.
24239         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
24240         [!WINDOWS_SOCKETS]: Likewise.
24241         * lib/strnlen1.h (strnlen1): Likewise.
24242         * lib/uniwidth.in.h (uc_width): Likewise.
24243         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
24244         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
24245         (quoting_options_from_style): Add a comment.
24246         * lib/propername.h (proper_name): Add a comment.
24248 2011-11-27  Bruno Haible  <bruno@clisp.org>
24250         Remove unused macros from !_LIBC code in glibc-borrowed files.
24251         * lib/fnmatch.c (STRCOLL): Remove macro.
24252         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
24253         * lib/glob.c (__stat, __readdir64): Remove macros.
24254         * lib/tempname.c (__open64, __xstat64): Remove macros.
24255         Suggested by Paul Eggert.
24257 2011-11-27  Bruno Haible  <bruno@clisp.org>
24259         getcwd: Fix link error on MSVC 9.
24260         * modules/getcwd (Depends-on): Add readdir, rewinddir.
24262 2011-11-27  Bruno Haible  <bruno@clisp.org>
24264         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
24265         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
24266         HAVE_OPENDIR is 0.
24267         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
24268         HAVE_CLOSEDIR is 0.
24269         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
24270         is 0.
24271         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
24273 2011-11-27  Bruno Haible  <bruno@clisp.org>
24275         getcwd: Fix bug from 2011-08-17.
24276         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
24277         platforms that need it.
24278         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
24279         code of 4 to be a failure, not a success. This ensures that
24280         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
24282 2011-11-27  Bruno Haible  <bruno@clisp.org>
24284         binary-io tests: Avoid test failure on mingw when libtool is used.
24285         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
24286         Don't verify the size of t-bin-out1.tmp here.
24287         * tests/test-binary-io.sh: Verify it here.
24288         Reported by Simon Josefsson.
24290 2011-11-26  Bruno Haible  <bruno@clisp.org>
24292         Fix conflict between two instantiations of module 'unistd'.
24293         * gnulib-tool (func_emit_autoconf_snippet): Substitute
24294         ${include_guard_prefix} also in the autoconf snippet.
24295         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
24296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
24297         GNULIB_UNISTD_H_GETOPT.
24298         * modules/getopt-posix (configure.ac): Set the
24299         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
24300         * modules/getopt-gnu (configure.ac): Likewise.
24301         * modules/unistd (Makefile.am): Change the substitution value of
24302         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
24303         Reported by Simon Josefsson.
24305 2011-11-25  Bruno Haible  <bruno@clisp.org>
24307         pagealign_alloc: Doc and comments.
24308         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
24309         module.
24310         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
24312 2011-11-25  Jim Meyering  <meyering@redhat.com>
24314         test-update-copyright.sh: avoid false-positive failure
24315         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
24316         around false positive failure on Cygwin/Windows.  The latter was
24317         matching erroneously-created files with names like
24318         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
24320 2011-11-25  Simon Josefsson  <simon@josefsson.org>
24322         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
24323         * m4/valgrind-tests.m4: Check that the parameters that will be
24324         used works, not just a subset of them.  Reported by Bruno Haible
24325         <bruno@clisp.org>.
24327 2011-11-24  Jim Meyering  <meyering@redhat.com>
24329         test-stdalign.c: comment out long double tests
24330         * tests/test-stdalign.c: Don't try to reduce alignment of long double
24331         variables.  That provokes errors like this from gcc-4.7.0 20111124:
24332         error: '_Alignas' specifiers cannot reduce alignment of \
24333         'static_longdouble_alignas'.
24335 2011-11-22  Jim Meyering  <meyering@redhat.com>
24337         init.sh: make "compare /dev/null FILE" output more readable
24338         * tests/init.sh (compare_): Document the preferred order of arguments.
24339         (emit_diff_u_header_): New function.
24340         (compare_dev_null_): Emit a simulated diff, rather than just the
24341         contents of the unexpected file.  Suggestion from Bruno Haible.
24343 2011-11-21  Jim Meyering  <meyering@redhat.com>
24344             Eric Blake  <eblake@redhat.com>
24346         init.sh: work around OSF/1 5.1's mishandling of /dev/null
24347         * tests/init.sh: Make our compare function slightly more portable.
24348         Reported by Bruno Haible in
24349         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
24351 2011-11-21  Simon Josefsson  <simon@josefsson.org>
24353         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
24354         before using it, in code that ends up in config.h.
24356 2011-11-20  Bruno Haible  <bruno@clisp.org>
24358         getcwd: Work around getcwd bug on AIX 5..7.
24359         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
24360         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
24361         Use a different value for gl_cv_func_getcwd_path_max. Move the
24362         definition of HAVE_PARTLY_WORKING_GETCWD from here...
24363         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
24364         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
24365         Define HAVE_MINIMALLY_WORKING_GETCWD.
24366         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
24367         where it is not even minimally working, that is, on AIX.
24368         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
24369         m4/getcwd-path-max.m4.
24370         (main): Update exit code computation.
24371         * doc/posix-functions/getcwd.texi: Mention list of platforms where
24372         getcwd does not handle long file names.
24374 2011-11-20  Bruno Haible  <bruno@clisp.org>
24376         getcwd: Fix bug from 2009-09-10.
24377         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
24378         like "no".
24380 2011-11-20  Simon Josefsson  <simon@josefsson.org>
24382         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
24384 2011-11-20  Bruno Haible  <bruno@clisp.org>
24386         fma tests: Avoid shadowing local variables.
24387         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
24388         expected.
24390 2011-11-20  Bruno Haible  <bruno@clisp.org>
24392         copysignf tests: Fix.
24393         * tests/test-copysignf.c: Fix signature check.
24395 2011-11-20  Bruno Haible  <bruno@clisp.org>
24397         fma: Remove unused code.
24398         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
24399         unused macros.
24401 2011-11-20  Bruno Haible  <bruno@clisp.org>
24403         sethostname: Fix doc about AIX.
24404         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
24405         sethostname; it has it.
24407         sethostname: Mention more portability problems.
24408         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
24409         problem.
24410         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
24412 2011-11-19  Bruno Haible  <bruno@clisp.org>
24414         Depend on module fcntl-h when AT_FDCWD is used.
24415         * modules/utimens (Depends-on): Add fcntl-h.
24416         * modules/areadlinkat (Depends-on): Likewise.
24417         * modules/areadlinkat-with-size (Depends-on): Likewise.
24418         * modules/faccessat (Depends-on): Likewise.
24419         * modules/fchmodat (Depends-on): Likewise.
24420         * modules/fchownat (Depends-on): Likewise.
24421         * modules/getcwd (Depends-on): Likewise.
24422         * modules/mkdirat (Depends-on): Likewise.
24423         * modules/mkfifoat (Depends-on): Likewise.
24424         * modules/readlinkat (Depends-on): Likewise.
24425         * modules/symlinkat (Depends-on): Likewise.
24426         * modules/dup2-tests (Depends-on): Likewise.
24427         * modules/fdutimensat-tests (Depends-on): Likewise.
24428         * modules/futimens-tests (Depends-on): Likewise.
24430 2011-11-19  Bruno Haible  <bruno@clisp.org>
24432         euidaccess: Update a comment.
24433         * lib/euidaccess.c: Update comment about platforms with faccessat.
24435 2011-11-19  Bruno Haible  <bruno@clisp.org>
24437         openat: Fix file list.
24438         * modules/openat (Files): Remove lib/at-func.c.
24440 2011-11-19  Bruno Haible  <bruno@clisp.org>
24442         fstatat: Simplify.
24443         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
24444         gnulib should define rpl_fstatat, there is a
24445         "#define fstatat rpl_fstatat" in <sys/stat.h>.
24447 2011-11-19  Bruno Haible  <bruno@clisp.org>
24449         Ensure 'inline' can be used in tests/test-utimens-common.h.
24450         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
24451         * modules/futimens-tests (configure.ac): Likewise.
24452         * modules/utimens-tests (configure.ac): Likewise.
24453         * modules/utimensat-tests (configure.ac): Likewise.
24455 2011-11-19  Simon Josefsson  <simon@josefsson.org>
24457         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
24458         not hash_insert0.
24459         (hash_insert_if_absent): Doc fix.
24461 2011-11-19  Simon Josefsson  <simon@josefsson.org>
24463         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
24465 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
24467         test-getcwd: disambiguate exit status
24468         * tests/test-getcwd.c (test_long_name): Return 0..7.
24469         (main): Exit with an unambiguous exit status.  The old
24470         code yielded a mysterious mixture of two failure codes.
24472         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
24473         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
24474         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
24475         rpl_fstatat or fstatat.  This should fix the other problem
24476         reported by Kai Habel in
24477         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
24478         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
24479         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
24480         and I reproduced it on a Solaris 8 host we still have in production.
24482 2011-11-18  Jim Meyering  <meyering@redhat.com>
24484         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
24485         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
24486         Add a sentence to the comment.
24487         (hash_insert0): New function that simply calls hash_insert_if_absent.
24488         * lib/hash.h (hash_insert_if_absent): Declare it.
24489         (hash_insert0): Add deprecation attribute.
24490         (_GL_ATTRIBUTE_DEPRECATED): Define.
24491         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
24492         not hash_insert0.
24493         * NEWS: Mention it, even though it's not really an incompatible change.
24495 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
24497         openat: avoid compilation failure due to lack of <errno.h> inclusion
24498         * lib/openat.c: Include <errno.h>.
24500 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
24502         * modules/getcwd (Depends-on): Add fdopendir.
24503         This fixes one of the two problems reported by Kai Habel in
24504         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
24506         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
24507         stdalign problem reported by Ian Beckwith in
24508         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
24509         * modules/crypto/gc-arcfour (Depends-on):
24510         Depend conditionally on crypto/arcfour.
24511         * modules/crypto/gc-arctwo (Depends-on):
24512         Depend conditionally on crypto/arctwo.
24513         * modules/crypto/gc-des (Depends-on):
24514         Depend conditionally on crypto/des.
24515         * modules/crypto/gc-hmac-md5 (Depends-on):
24516         Depend conditionally on crypto/hmac-md5.
24517         * modules/crypto/gc-hmac-sha1 (Depends-on):
24518         Depend conditionally on crypto/hmac-sha1.
24519         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
24520         * modules/crypto/gc-md4 (Depends-on):
24521         Depend conditionally on crypto/md4.
24522         * modules/crypto/gc-md5 (Depends-on):
24523         Depend conditionally on crypto/md5.
24524         * modules/crypto/gc-rijndael (Depends-on):
24525         Depend conditionally on crypto/rijndael.
24526         * modules/crypto/gc-sha1 (Depends-on):
24527         Depend conditionally on crypto/sha1.
24528         * modules/crypto/gc-arcfour:
24529         * modules/crypto/gc-arctwo:
24530         * modules/crypto/gc-des:
24531         * modules/crypto/gc-hmac-md5:
24532         * modules/crypto/gc-hmac-sha1:
24533         * modules/crypto/gc-md2:
24534         * modules/crypto/gc-md4:
24535         * modules/crypto/gc-md5:
24536         * modules/crypto/gc-rijndael:
24537         * modules/crypto/gc-sha1:
24538         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
24539         now that the conditional dependencies do the work for us.
24541 2011-11-17  Jim Meyering  <meyering@redhat.com>
24543         tests: factor st_ctime-comparison out of two headers
24544         * tests/test-utimens-common.h (ctime_compare): Define.
24545         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
24546         * tests/test-lutimens.h (test_lutimens): Likewise.
24547         * tests/test-utimens.h (test_utimens): Likewise.
24549         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
24550         Invoke the test program via an init.sh-using wrapper.
24551         * tests/test-getcwd.sh: New file.
24552         * modules/getcwd-tests (Files): Add it.
24553         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
24555 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
24557         gitlog-to-changelog: support multi-author commits.
24558         The FSF cares about keeping track of all authors of patches to its
24559         projects, but Git doesn't provide obvious support for multi-author
24560         changesets. Consensus seems to be forming around the use of extra
24561         Signed-off-by inspired lines in the log message formatted as
24562         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
24563         multi-author commits between version control systems.
24564         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
24565         log message and output in standard ChangeLog multi-author format.
24566         Reported by Peter Rosin <peda@lysator.liu.se>
24568 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
24569             Bruno Haible  <bruno@clisp.org>
24571         Fix some modules' file list.
24572         * modules/fstatat (Files): Add m4/lstat.m4.
24573         * modules/openat (Files): Likewise.
24574         * modules/unlinkat (Files): Likewise.
24576 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
24578         maint.mk: fix tight-scope.mk generation in VPATH builds.
24579         * top/maint.mk (tight-scope.mk): Make sure to prefix file
24580         reference with $(srcdir) so that the file is found correctly even
24581         when running `make syntax-check' in a VPATH build.
24583 2011-11-13  Bruno Haible  <bruno@clisp.org>
24584             Jim Meyering  <meyering@redhat.com>
24586         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
24587         * tests/init.sh (compare): Remove "No differences encountered" or
24588         synonymous output from the 'diff' program.
24590 2011-11-13  Bruno Haible  <bruno@clisp.org>
24592         Makefile: Tweak indentation.
24593         * Makefile: Use tab as first character in every line that contains rule
24594         commands.
24596 2011-11-13  Bruno Haible  <bruno@clisp.org>
24598         Syntax check for copyright statements.
24599         * check-copyright: New file.
24600         * Makefile (sc_check_copyright): New rule.
24602 2011-11-13  Simon Josefsson  <simon@josefsson.org>
24604         * build-aux/git-version-gen: Add --prefix to configure the tag
24605         match string.
24607 2011-11-13  Simon Josefsson  <simon@josefsson.org>
24609         * build-aux/git-version-gen: Add --help and --version.
24611 2011-11-12  Jim Meyering  <meyering@redhat.com>
24613         revamp the other test-exclude?.sh scripts to use init.sh, too
24614         * tests/test-exclude1.sh: Use init.sh.
24615         * tests/test-exclude2.sh: Likewise.
24616         * tests/test-exclude3.sh: Likewise.
24617         * tests/test-exclude4.sh: Likewise.
24618         * tests/test-exclude5.sh: Likewise.
24619         * tests/test-exclude6.sh: Likewise.
24620         * tests/test-exclude7.sh: Likewise.
24621         * tests/test-exclude8.sh: Likewise.
24622         * modules/exclude-tests (Files): List init.sh.
24624         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
24625         These shell scripts ignored failure of the binary test-exclude,
24626         so making the latter return 77 didn't cause them to be skipped.
24627         * tests/test-exclude5.sh: Exit with test-exclude's error status
24628         when that program fails.  Revamp to use init.sh.
24629         * tests/test-exclude2.sh: Likewise.
24631         test-exclude: fix a typo
24632         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
24634 2011-11-11  Bruno Haible  <bruno@clisp.org>
24636         obstack: Fix compilation error on MSVC 9.
24637         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
24639 2011-11-11  Jim Meyering  <meyering@redhat.com>
24641         test-exclude: skip tests rather than failing on deficient systems
24642         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
24643         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
24644         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
24645         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
24647 2011-11-10  Bruno Haible  <bruno@clisp.org>
24649         ptsname_r test: Avoid gcc warning on glibc systems.
24650         * tests/test-ptsname_r.c (null_ptr): New function.
24651         (test_errors): Use it.
24653 2011-11-10  Bruno Haible  <bruno@clisp.org>
24655         ptsname_r: Avoid compilation error on OSF/1 5.1.
24656         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
24657         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
24658         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
24659         function is not declared or incompatibly declared.
24660         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
24661         * modules/ptsname_r (Depends-on, configure.ac): Update.
24662         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
24664 2011-11-10  Bruno Haible  <bruno@clisp.org>
24666         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
24667         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
24668         When cross-compiling, guess yes on all platforms except AIX.
24669         Reported by Ludovic Courtès <ludo@gnu.org>.
24671 2011-11-09  Bruno Haible  <bruno@clisp.org>
24673         ptsname_r tests: Fix bugs.
24674         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
24675         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
24677 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
24679         fstatat: work with cross-compilation
24680         Problem reported by Ludovic Courtès in
24681         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
24682         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
24683         "cross-compiling" and assume the bug is present.  Replace
24684         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
24685         an inverted sense, to be more conservative about our assumptions.
24686         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
24688 2011-11-09  Bruno Haible  <bruno@clisp.org>
24690         Improve MODULES.html output.
24691         * modules/mkfifoat (Description): Use the word "function".
24692         * modules/readlinkat (Description): Likewise.
24693         * modules/symlinkat (Description): Likewise.
24695 2011-11-09  Eric Blake  <eblake@redhat.com>
24697         ptsname_r-tests: new test module
24698         * modules/ptsname_r-tests: New module.
24699         * tests/test-ptsname_r.c: New file.
24701         ptsname_r: new module
24702         * modules/ptsname_r: New module.
24703         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
24704         * lib/ptsname.c (__ptsname_r): Split...
24705         * lib/ptsname_r.c: ...into new file.
24706         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
24707         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
24708         * modules/stdlib (Makefile.am): Substitute witnesses.
24709         * lib/stdlib.in.h (ptsname_r): Declare it.
24710         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
24711         * MODULES.html.sh (Misc): Likewise.
24712         * modules/ptsname (Depends-on): Alter dependency.
24713         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
24715 2011-11-09  Jim Meyering  <meyering@redhat.com>
24717         announce-gen: be more concise when there's only one URL+tarball
24718         * build-aux/announce-gen (get_tool_versions): When you distribute
24719         only one type of tarball, combine the first two "Here are..."
24720         sections and make the key-checking grammar independent of
24721         how many tarballs there are.
24723 2011-11-09  Eric Blake  <eblake@redhat.com>
24725         openpty: provide a stub on mingw
24726         * lib/pty.in.h (includes): Provide forward declarations.
24727         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
24729         raise: fix mingw handling of SIGPIPE
24730         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
24732 2011-11-08  Bruno Haible  <bruno@clisp.org>
24734         More conditional dependencies.
24735         * modules/faccessat (Depends-on): Add conditions.
24736         * modules/fchmodat (Depends-on): Likewise.
24737         * modules/fchownat (Depends-on): Likewise.
24738         * modules/fstatat (Depends-on): Likewise.
24739         * modules/mkfifoat (Depends-on): Likewise.
24740         * modules/readlinkat (Depends-on): Likewise.
24741         * modules/symlinkat (Depends-on): Likewise.
24742         * modules/unlinkat (Depends-on): Likewise.
24743         * modules/utimensat (Depends-on): Likewise.
24744         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
24745         * modules/linkat (Depends-on): Refine the conditions.
24746         * modules/renameat (Depends-on): Likewise.
24748 2011-11-08  Bruno Haible  <bruno@clisp.org>
24750         faccessat: Move AC_LIBOBJ invocation to module description.
24751         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
24752         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
24753         invocation from here...
24754         * modules/faccessat (configure.ac): ... to here. Invoke
24755         gl_PREREQ_FACCESSAT.
24757 2011-11-08  Bruno Haible  <bruno@clisp.org>
24759         faccessat: Simplify autoconf macro.
24760         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
24761         gl_FUNC_EUIDACCESS.
24763 2011-11-08  Bruno Haible  <bruno@clisp.org>
24765         renameat: Fix dependencies.
24766         * modules/renameat (Depends-on): Add stdbool.
24768 2011-11-08  Bruno Haible  <bruno@clisp.org>
24770         mkfifoat: Fix module description.
24771         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
24772         not gl_UNISTD_MODULE_INDICATOR.
24774 2011-11-08  Bruno Haible  <bruno@clisp.org>
24776         fstatat: Remove unused dependency.
24777         * modules/fstatat (Depends-on): Remove fstat.
24779 2011-11-08  Simon Josefsson  <simon@josefsson.org>
24781         GNUmakefile: behave when Makefile is missing.
24782         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
24784 2011-11-08  Bruno Haible  <bruno@clisp.org>
24786         openat: Conditionalize dependencies.
24787         * lib/openat.c: Reduce the scope of some #includes.
24788         * modules/openat (Depends-on): Add conditions.
24790 2011-11-07  Jim Meyering  <meyering@redhat.com>
24792         maint.mk: extract GPG key ID without using a temporary file
24793         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
24794         without using a temporary file.  Based on a suggestion from Werner Koch
24795         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
24797 2011-11-07  Eric Blake  <eblake@redhat.com>
24799         grantpt: fix typo
24800         * lib/stdlib.in.h (grantpt): Check correct function.
24802         maint.mk: silence new syntax check
24803         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
24805 2011-11-06  Bruno Haible  <bruno@clisp.org>
24807         Doc about floating-point and math API.
24808         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
24809         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
24811 2011-11-06  Bruno Haible  <bruno@clisp.org>
24813         stdalign tests: Skip the test when compiled by Sun C.
24814         * tests/test-stdalign.c (main): Skip the test on Sun C.
24816 2011-11-06  Bruno Haible  <bruno@clisp.org>
24818         ansi-c++-opt: Complete the 2011-06-05 change.
24819         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
24820         does not support namespaces, set the variable to "no", not to ":".
24822 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
24824         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
24826 2011-11-06  Bruno Haible  <bruno@clisp.org>
24828         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
24829         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
24830         (minus_zerol) [HP-UX]: New macro.
24831         (unary_minus) [HP-UX]: New function.
24832         (copysignl) [HP-UX]: Use unary_minus function.
24834 2011-11-06  Bruno Haible  <bruno@clisp.org>
24836         ldexp, ldexpf, ldexpl: Enhance tests.
24837         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
24838         and tests/test-ldexpl.c.
24839         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
24840         LDEXP, MIN_EXP, MAX_EXP): New macros.
24841         Include test-ldexp.h.
24842         (main): Just call test_function.
24843         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
24844         infinity.h, nan.h.
24845         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
24846         MAX_EXP): New macros.
24847         Include test-ldexp.h.
24848         (x, y): Remove variables.
24849         (main): Just call test_function.
24850         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
24851         infinity.h, nan.h.
24852         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
24853         MAX_EXP): New macros.
24854         Include test-ldexp.h.
24855         (x, y): Remove variables.
24856         (main): Just call test_function.
24857         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
24858         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
24859         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
24860         (Depends-on): Add isnand-nolibm, signbit, float.
24861         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
24862         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
24863         (Depends-on): Add isnanf-nolibm, signbit, float.
24865 2011-11-06  Bruno Haible  <bruno@clisp.org>
24867         math tests: Cosmetics.
24868         * tests/test-math-c++.cc: Reorder declarations.
24870 2011-11-05  Bruno Haible  <bruno@clisp.org>
24872         fma*: Simplify test.
24873         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
24874         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
24876         Tests for module 'fmal'.
24877         * modules/fmal-tests: New file.
24878         * tests/test-fmal1.c: New file.
24879         * tests/test-fmal2.c: New file.
24881         New module 'fmal'.
24882         * lib/math.in.h (fmal): New declaration.
24883         * lib/fmal.c: New file.
24884         * m4/fmal.m4: New file.
24885         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
24886         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
24887         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
24888         REPLACE_FMAL.
24889         * modules/fmal: New file.
24890         * doc/posix-functions/fmal.texi: Mention the new module and the various
24891         bugs.
24893         Tests for module 'fmaf'.
24894         * modules/fmaf-tests: New file.
24895         * tests/test-fmaf1.c: New file.
24896         * tests/test-fmaf2.c: New file.
24898         New module 'fmaf'.
24899         * lib/math.in.h (fmaf): New declaration.
24900         * lib/fmaf.c: New file.
24901         * m4/fmaf.m4: New file.
24902         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
24903         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
24904         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
24905         REPLACE_FMAF.
24906         * modules/fmaf: New file.
24907         * doc/posix-functions/fmaf.texi: Mention the new module and the various
24908         bugs.
24910         Tests for module 'fma'.
24911         * modules/fma-tests: New file.
24912         * tests/test-fma1.c: New file.
24913         * tests/test-fma1.h: New file.
24914         * tests/test-fma2.c: New file.
24915         * tests/test-fma2.h: New file.
24917         New module 'fma'.
24918         * lib/math.in.h (fma): New declaration.
24919         * lib/fma.c: New file.
24920         * m4/fma.m4: New file.
24921         * m4/fegetround.m4: New file.
24922         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
24923         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
24924         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
24925         REPLACE_FMA.
24926         * modules/fma: New file.
24927         * doc/posix-functions/fma.texi: Mention the new module and the various
24928         bugs.
24930         Extend gl_MATHFUNC.
24931         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
24932         Support 'void' as argument type.
24933         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
24935 2011-11-05  Jim Meyering  <meyering@redhat.com>
24937         maint.mk: also prohibit inclusion of dirent.h without use
24938         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
24940 2011-11-05  Bruno Haible  <bruno@clisp.org>
24942         ldexpl tests: Avoid test failure on MSVC 9.
24943         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
24944         value. Needed in order to enforce the conversion from a value greater
24945         than LDBL_MAX to Infinity.
24947 2011-11-05  Bruno Haible  <bruno@clisp.org>
24949         New modules 'at-internal', 'openat-h', split off from module 'openat'.
24950         * modules/at-internal: New file, extracted from modules/openat.
24951         * modules/openat-h: New file.
24952         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
24953         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
24954         * modules/openat (Description): Add reference to POSIX function.
24955         (Files): Remove lib/openat.h, lib/openat-proc.c.
24956         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
24957         intprops, unistd.
24958         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
24959         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
24960         gl_FCNTL_MODULE_INDICATOR.
24961         (Include): Remove unistd.h, openat.h.
24962         * modules/areadlinkat (Files): Add lib/at-func.c.
24963         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
24964         openat-die, openat-h, save-cwd.
24965         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
24966         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
24967         openat-die, openat-h, save-cwd, unistd.
24968         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
24969         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
24970         openat-h, save-cwd. Remove fcntl-h, openat.
24971         * modules/fchmodat (Files): Remove lib/openat.h.
24972         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
24973         openat, stdbool, unistd.
24974         * modules/fchownat (Files): Remove lib/openat.h.
24975         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
24976         openat, stdbool, sys_stat.
24977         * modules/fdopendir (Files): Remove lib/openat-priv.h,
24978         lib/openat-proc.c.
24979         (Depends-on): Add at-internal.
24980         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
24981         * modules/fstatat (Files): Remove lib/openat.h.
24982         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
24983         stdbool, unistd.
24984         * modules/fts (Depends-on): Add openat-h.
24985         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
24986         openat.
24987         * modules/mkdirat (Files): Remove lib/openat.h.
24988         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
24989         openat, stdbool, sys_stat.
24990         * modules/mkfifoat (Files): Add lib/at-func.c.
24991         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
24992         openat-h, save-cwd. Remove fcntl-h, openat.
24993         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
24994         * modules/readlinkat (Files): Add lib/at-func.c.
24995         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
24996         openat-h, save-cwd. Remove fcntl-h, openat.
24997         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
24998         openat.
24999         * modules/selinux-at (Files): Add lib/at-func.c.
25000         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
25001         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
25002         * modules/symlinkat (Files): Add lib/at-func.c.
25003         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
25004         openat-h, save-cwd. Remove fcntl-h, openat.
25005         * modules/unlinkat (Files): Remove lib/openat.h.
25006         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
25007         stdbool.
25008         * modules/utimensat (Files): Add lib/at-func.c.
25009         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
25010         openat-die, openat-h, save-cwd.
25011         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
25012         * modules/fdutimensat-tests (Depends-on): Add openat.
25013         * modules/fstatat-tests (Depends-on): Add openat-h.
25014         * modules/readlinkat-tests (Depends-on): Add openat.
25015         * modules/symlinkat-tests (Depends-on): Add openat.
25017 2011-11-05  Bruno Haible  <bruno@clisp.org>
25019         openat: Include <stdbool.h>.
25020         * lib/openat.c: Include <stdbool.h>.
25022 2011-11-04  Bruno Haible  <bruno@clisp.org>
25024         fchownat, renameat, unlinkat: Fix dependencies.
25025         * modules/fchownat (Depends-on): Add fstatat.
25026         * modules/renameat (Depends-on): Likewise.
25027         * modules/unlinkat (Depends-on): Likewise.
25029 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
25031         openat: remove direct dependency on dirent
25032         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
25033         and hasn't been needed ever since fdopendir was split into its own
25034         module on 2009-08-31.
25035         * modules/openat (Depends-on): Remove dirent.
25037 2011-11-04  Bruno Haible  <bruno@clisp.org>
25039         renameat: Optimize code size.
25040         * modules/renameat (configure.ac): Don't compile at-func2.c if
25041         REPLACE_RENAMEAT is 1.
25043 2011-11-04  Bruno Haible  <bruno@clisp.org>
25045         openat tests: Fix file list.
25046         * modules/openat-tests (Files): Add tests/test-open.h.
25048 2011-11-04  Bruno Haible  <bruno@clisp.org>
25050         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
25051         * modules/fchmodat (Depends-on): Add openat-die.
25052         * modules/fchownat (Depends-on): Likewise.
25053         * modules/linkat (Depends-on): Likewise.
25054         * modules/renameat (Depends-on): Likewise.
25055         * modules/openat (Depends-on): Add dirent.
25057 2011-11-04  Jim Meyering  <meyering@redhat.com>
25059         at-func*.c: fix comments
25060         * lib/at-func2.c: Correct/improve first-line comment.
25061         * lib/at-func.c: Correct grammar in first-line comment.
25063 2011-11-04  Bruno Haible  <bruno@clisp.org>
25065         New module 'mkdirat', split off from module 'openat'.
25066         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
25067         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
25068         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
25069         * modules/mkdirat: New file, extracted from modules/openat.
25070         * modules/openat (Files): Remove lib/mkdirat.c.
25071         (Depends-on): Remove mkdir.
25072         (configure.ac): Remove AC_LIBOBJ of mkdirat.
25073         (Include): Remove <sys/stat.h>.
25074         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
25075         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
25076         tests/test-mkdir.h.
25077         (Depends-on): Remove ignore-value.
25078         (Makefile.am): Remove rules for test-mkdirat.
25079         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
25080         of module 'openat'.
25081         * NEWS: Mention the change.
25083 2011-11-04  Bruno Haible  <bruno@clisp.org>
25085         closedir: Avoid warning on mingw.
25086         * lib/closedir.c: Include <unistd.h>.
25088 2011-11-04  Bruno Haible  <bruno@clisp.org>
25090         New module 'fstatat', split off from module 'openat'.
25091         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
25092         defined.
25093         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
25094         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
25095         gl_FUNC_FSTATAT.
25096         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
25097         * modules/fstatat: New file, extracted from modules/openat.
25098         * modules/openat (Files): Remove lib/fstatat.c.
25099         (Depends-on): Remove lstat.
25100         (configure.ac): Remove AC_LIBOBJ of fstatat.
25101         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
25102         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
25103         tests/test-lstat.h, tests/test-stat.h.
25104         (Depends-on): Remove getcwd-lgpl.
25105         (Makefile.am): Remove rules for test-fstatat.
25106         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
25107         of module 'openat'.
25108         * NEWS: Mention the change.
25109         * modules/getcwd (Depends-on): Add fstatat.
25110         * modules/linkat (Depends-on): Likewise.
25111         * modules/mkfifoat-tests (Depends-on): Likewise.
25112         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
25114 2011-11-03  Bruno Haible  <bruno@clisp.org>
25116         New module 'unlinkat', split off from module 'openat'.
25117         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
25118         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
25119         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
25120         * modules/unlinkat: New file, extracted from modules/openat. Correct
25121         the dependency conditions.
25122         * modules/openat (Files): Remove lib/unlinkat.c.
25123         (Depends-on): Remove rmdir, unlink.
25124         (configure.ac): Remove AC_LIBOBJ of unlinkat.
25125         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
25126         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
25127         tests/test-rmdir.h, tests/test-unlink.h.
25128         (Depends-on): Remove unlinkdir.
25129         (Makefile.am): Remove rules for test-unlinkat.
25130         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
25131         of module 'openat'.
25132         * NEWS: Mention the change.
25133         * modules/linkat-tests (Depends-on): Add unlinkat.
25134         * modules/mkfifoat-tests (Depends-on): Likewise.
25135         * modules/readlinkat-tests (Depends-on): Likewise.
25137 2011-11-02  Bruno Haible  <bruno@clisp.org>
25139         New module 'fchmodat', split off from module 'openat'.
25140         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
25141         defined.
25142         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
25143         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
25144         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
25145         * modules/fchmodat: New file, extracted from modules/openat.
25146         * modules/openat (Files): Remove lib/fchmodat.c.
25147         (configure.ac): Remove AC_LIBOBJ of fchmodat.
25148         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
25149         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
25150         (Makefile.am): Remove rules for test-fchmodat.
25151         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
25152         of module 'openat'.
25153         * NEWS: Mention the change.
25155 2011-11-02  Jim Meyering  <meyering@redhat.com>
25157         putenv: indent #definition of "environ" to placate cppi
25158         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
25160         gitlog-to-changelog: provide a ChangeLog-repair mechanism
25161         Git logs are often treated as immutable, because editing them
25162         changes the SHA1 checksums of all descendants.  Thus, errors in
25163         git logs tend to stay there forever.  However, when we generate
25164         a ChangeLog file -- typically for distribution -- from that git log,
25165         we can actually make corrections in the generated file.  The key
25166         lies in recording in machine-readable/applicable form the desired
25167         corrections.  See --help for description and an example.
25168         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
25169         (usage): Describe it; alphabetize option descriptions.
25170         (main): Honor the new option, carefully.
25172 2011-11-01  Jim Meyering  <meyering@redhat.com>
25174         gitlog-to-changelog: avoid an infloop
25175         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
25176         that ends up being empty.
25178 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
25180         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
25181         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
25182         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
25183         contains (possibly-quoted) backslashes.  This should avoid
25184         all-too-common shell bugs if COMPLICATED contains backslashes in
25185         the "wrong" places.  Reported by David Evans in
25186         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
25187         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
25188         because we want ASCII ranges.  Is there some reason we don't use
25189         the C locale everywhere in this script?
25190         (func_module, top level): Avoid unwanted pathname expansion when
25191         $repo_url_prefix or $repo_url_suffix_repl contain shell
25192         metacharacters like '?' and '*'.
25194 2011-11-01  Bruno Haible  <bruno@clisp.org>
25196         fchownat: Improve description.
25197         * modules/fchownat (Description): Add link to function.
25199 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
25201         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
25202         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
25203         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
25204         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
25206 2011-11-01  Bruno Haible  <bruno@clisp.org>
25208         alignof: Avoid collision with stdalign module.
25209         * lib/alignof.h (alignof): Remove macro.
25210         * NEWS: Mention the change.
25211         Reported by Paul Eggert.
25213 2011-11-01  Bruno Haible  <bruno@clisp.org>
25215         New module 'fchownat', split off from module 'openat'.
25216         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
25217         defined.
25218         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
25219         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
25220         invoke gl_FUNC_FCHOWNAT.
25221         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
25222         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
25223         * modules/fchownat: New file, extracted from modules/openat.
25224         * modules/openat (Files): Remove lib/fchownat.c.
25225         (Depends-on): Remove lchown.
25226         (configure.ac): Remove AC_LIBOBJ of fchownat.
25227         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
25228         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
25229         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
25230         (Depends-on): Remove mgetgroups, usleep, stat-time.
25231         (configure.ac): Remove test for getegid.
25232         (Makefile.am): Remove rules for test-fchownat.
25233         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
25234         of module 'openat'.
25235         * NEWS: Mention the change.
25237 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
25239         stdalign: port better to MSVC and to Sun C 5.11
25240         This fixes some of the problems reported by Bruno Haible in
25241         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
25242         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
25243         shortcomings of MSVC and of Sun C 5.11.
25244         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
25245         around __declspec arg.
25246         * modules/stdalign-tests (Files): Add tests/macros.h.
25247         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
25248         Include macros.h, for ASSERT.
25249         (DECLARE_ALIGNED): Remove.
25250         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
25251         to catch bug), and to 1 if not (simplifies the rest of the code).
25252         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
25253         (CHECK_AUTO): Remove.
25254         (CHECK_ALIGNED): Check only the alignment of the static vars,
25255         since auto var alignment isn't supported by Sun C 5.11.
25256         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
25257         ASSERT failures are easier to diagnose.
25259 2011-10-31  Bruno Haible  <bruno@clisp.org>
25261         doc about some IRIX 5.3 problems.
25262         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
25263         on IRIX 5.3.
25264         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
25265         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
25266         5.3.
25267         * doc/posix-functions/grantpt.texi: Likewise.
25268         * doc/posix-functions/unlockpt.texi: Likewise.
25269         * doc/posix-functions/lgamma.texi: Likewise.
25270         * doc/posix-functions/nextafter.texi: Likewise.
25271         * doc/posix-functions/remainder.texi: Likewise.
25272         * doc/posix-functions/select.texi: Mention misplaced declaration on
25273         IRIX 5.3.
25274         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25276 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
25278         gitlog-to-changelog: fix git-log invocation.
25279         git-log mishandles date strings before 1970-01-01 UTC, and there is
25280         no use to specify --since=1970-01-01 by default anyway.
25281         * build-aux/gitlog-to-changelog: By default, when no --since option
25282         was given, do not specify explicit --since option to git-log.
25284 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
25286         gitlog-to-changelog: new option --append-dot.
25287         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
25288         first non-blank line of each commit message terminated with a dot.
25290 2011-10-30  Bruno Haible  <bruno@clisp.org>
25292         ffsl, ffsll: Avoid compilation error due to 'restrict'.
25293         * lib/ffsl.h: Include <config.h>.
25294         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
25296 2011-10-30  Jim Meyering  <meyering@redhat.com>
25298         GNUmakefile: reenable "make syntax-check" for most projects
25299         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
25300         build-aux variable", "syntax-check" would do nothing but succeed with
25301         the "No version control files detected..." diagnostic (unless you
25302         happened to override _build-aux via cfg.mk).
25303         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
25304         to precede inclusion of maint.mk.  Otherwise, these variables would
25305         be used undefined in any project that does not override the default.
25307 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
25309         gitlog-to-changelog: treat a message with only blank lines as empty.
25310         * build-aux/gitlog-to-changelog: Move the code that removes leading and
25311         trailing blank lines before the code that issues a warning about an
25312         empty commit message.
25314 2011-10-30  Jim Meyering  <meyering@redhat.com>
25316         test-parse-datetime.c: avoid new DST-related false positive test failure
25317         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
25318         based on the time/date we'll convert, not the current time.
25319         Otherwise, the moment we cross a DST boundary like today's in
25320         Europe, (CEST to CET), that offset ends up being one hour off.
25322 2011-10-27  Bruno Haible  <bruno@clisp.org>
25324         fstat: Tweak documentation.
25325         * modules/fstat (Description): More precise description.
25327 2011-10-27  Bruno Haible  <bruno@clisp.org>
25329         Update documentation regarding 'largefile' module.
25330         * doc/posix-functions/fstat.texi: Tweak wording.
25331         * doc/posix-functions/opendir.texi: Mention that the module fixes the
25332         problems with huge directories and/or small ino_t types.
25333         * doc/posix-functions/readdir.texi: Likewise.
25334         * doc/posix-functions/rewinddir.texi: Likewise.
25336 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
25338         maint.mk: don't maintain a second build-aux variable.
25339         * maint.mk (build_aux): Removed.  The maintainer-makefile module
25340         depends on GNUmakefile, which already maintains a cfg.mk
25341         overridable $(_build-aux) for projects with a non-standard
25342         build-aux directory location, although without the $(srcdir)
25343         prefix.  Use that variable consistently instead of introducing a
25344         second one.  Adjust all call sites.
25346 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
25348         Add stdalign module and use it in other modules.
25349         This is based on a previous proposal by Bruno Haible
25350         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
25352         stdalign: new module
25353         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
25354         * modules/stdalign: New files.
25355         * MODULES.html.sh (c1x_core_properties): Add stdalign.
25356         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
25358         stdalign-tests: new module
25359         * modules/stdalign-tests, tests/test-stdalign.c: New files.
25361         argp: use stdalign
25362         * lib/argp-parse.c: Include <stdalign.h>.
25363         (alignof): Remove.
25364         * modules/argp (Depends-on): Add stdalign.
25366         crypto libraries: use stdalign
25367         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
25368         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
25369         Do not include <stdlib.h> twice, in md4.c.
25370         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
25371         because we are accessing a pointer's bit-pattern, not a size.
25372         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
25373         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
25374         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
25375         * modules/crypto/sha512: Likewise.
25377         sys_socket: use stdalign, not alignof
25378         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
25379         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
25381 2011-10-27  Bruno Haible  <bruno@clisp.org>
25383         raise test: Avoid a test failure on Linux/MIPS.
25384         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
25385         because 99 is a valid signal on Linux/MIPS.
25387 2011-10-27  Bruno Haible  <bruno@clisp.org>
25389         nonblocking tests: Fix test failure on Linux/MIPS.
25390         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
25391         Set to 270000.
25393 2011-10-27  Bruno Haible  <bruno@clisp.org>
25395         utimensat: Work around problem on Linux/hppa.
25396         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
25397         values.
25398         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
25400 2011-10-25  Jim Meyering  <meyering@redhat.com>
25402         maint.mk: fix a bug in sc_prohibit_stddef_without_use
25403         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
25404         after symbols like NULL, size_t, etc.
25405         Reported by Alfred M. Szmidt.
25407         maint.mk: exempt ENODATA from a syntax-check rule
25408         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
25409         from the sc_prohibit_always-defined_macros syntax-check rule.
25410         Add a comment.  See this for more details:
25411         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
25413 2011-10-23  Jim Meyering  <meyering@redhat.com>
25415         fts: close parent dir FD before returning from post-traversal fts_read
25416         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
25417         unlink A, even though an FD open on A remained.  This is suboptimal
25418         (holding a file descriptor open longer than needed), but otherwise not
25419         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
25420         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
25421         that represents a real problem: it causes the removal of A to fail
25422         with e.g., "rm: cannot remove `A': Device or resource busy"
25424         fts visits each directory twice and keeps a cache (fts_fd_ring) of
25425         directory file descriptors.  After completing the final, FTS_DP,
25426         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
25427         cache, but then proceeded to add a new FD to it via the subsequent
25428         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
25429         final file descriptor would be closed only via fts_close's call to
25430         fd_ring_clear.  Now, it is usually closed earlier, via the final
25431         FTS_DP-returning fts_read call.
25432         * lib/fts.c (restore_initial_cwd): New function, converted from
25433         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
25434         Update callers.
25435         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
25436         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
25438 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
25439             Bruno Haible  <bruno@clisp.org>
25440             Jim Meyering  <jim@meyering.net>
25442         readme-release: improve safety of release prep instructions.
25443         * README-release: Don't git pull all branches when only master
25444         is needed for the release process.
25445         Run make maintainer-clean before changing trees and merging.
25446         Don't try to run ./configure right after git pull in case files
25447         that influence the bootstrap process have changed, move the
25448         ./configure step to after running ./bootstrap.
25449         Don't bootstrap "one last time"... it's the first time!
25451 2011-10-22  Bruno Haible  <bruno@clisp.org>
25453         errno, strerror-override: Support for MSVC 10.
25454         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
25455         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
25456         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
25457         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
25458         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
25459         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
25460         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
25461         Assign values compatible with MSVC 10.
25462         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
25463         New macros.
25464         (GNULIB_defined_EWINSOCK): New macro.
25465         * lib/strerror-override.c (strerror_override): Update accordingly.
25466         * lib/strerror-override.h: Likewise.
25467         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
25468         longer equal to the corresponding errno value.
25469         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
25471 2011-10-22  Bruno Haible  <bruno@clisp.org>
25473         perror: Recognize when test program crashes.
25474         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
25475         strerror, set gl_cv_func_perror_works to no.
25476         Reported by Daniel Richard G. <skunk@iskunk.org>.
25478         perror: Fix indentation.
25479         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
25481 2011-10-22  Bruno Haible  <bruno@clisp.org>
25483         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
25484         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
25485         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
25486         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
25487         functions, not as a macro.
25488         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
25489         macros.
25490         (isfinite, isinf, isnan, signbit): Check overloaded functions and
25491         absence of macro.
25492         Suggested by Eric Blake.
25493         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
25495 2011-10-21  Bruno Haible  <bruno@clisp.org>
25497         relocatable-prog-wrapper: Don't leave object files behind.
25498         * build-aux/install-reloc: Re-synchronize list of .o files to be
25499         removed with list of compilation units.
25501 2011-10-20  Bruno Haible  <bruno@clisp.org>
25503         openpty, posix_openpt: Remove code duplication.
25504         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
25505         * lib/openpty.c: Include <stdlib.h>.
25506         (openpty): Use posix_openpt on all platforms except IRIX.
25507         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
25509 2011-10-20  Bruno Haible  <bruno@clisp.org>
25511         unlockpt: Detect invalid argument.
25512         * lib/unlockpt.c: Include <fcntl.h>.
25513         (unlockpt): Check whether fd is valid, using fcntl().
25514         * modules/unlockpt (Depends-on): Add fcntl-h.
25516 2011-10-20  Bruno Haible  <bruno@clisp.org>
25518         openpty: Avoid compilation error on AIX 6.1.
25519         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
25521 2011-10-20  Bruno Haible  <bruno@clisp.org>
25523         posix_openpt: Support for OpenBSD.
25524         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
25525         (posix_openpt) [OpenBSD]: New code.
25526         * lib/grantpt.c: Include <fcntl.h>.
25527         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
25528         * modules/grantpt (Depends-on): Add fcntl-h.
25530 2011-10-20  Bruno Haible  <bruno@clisp.org>
25532         posix_openpt test: Coding style.
25533         * tests/test-posix_openpt.c: Use GNU coding style.
25535 2011-10-20  Bruno Haible  <bruno@clisp.org>
25537         grantpt: Support --avoid=pt_chown.
25538         * modules/grantpt (Files): Add lib/pty-private.h.
25540 2011-10-20  Bruno Haible  <bruno@clisp.org>
25542         posix_openpt: Fix autoconf macro.
25543         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
25544         unneeded check for _getpty.
25546 2011-10-20  Bruno Haible  <bruno@clisp.org>
25548         openpty: Update comments.
25549         * lib/openpty.c: Add comments about Minix.
25551 2011-10-19  Eric Blake  <eblake@redhat.com>
25553         openpty: relax license
25554         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
25556         pt_chown: use configmake to simplify build
25557         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
25559         ptsname and others: relax license
25560         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
25561         * modules/unlockpt (License): Likewise.
25562         * modules/pt_chown (License): Likewise.
25563         * modules/ptsname (License): Likewise.
25564         * modules/ttyname_r (License): Likewise.
25566 2011-10-19  Jim Meyering  <meyering@redhat.com>
25568         posix_openpt: remove spurious #endif
25569         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
25571 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
25573         maint.mk: Respect $(build_aux) in web-manual rule.
25574         * top/maint.mk (web-manual): Find gen-announce script in user's
25575         $(build_aux) directory instead of hard-coding 'build-aux'.
25577 2011-10-19  Bruno Haible  <bruno@clisp.org>
25579         posix_openpt: Fix compilation error.
25580         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
25581         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
25582         Mention the openpty module as an alternative.
25584 2011-10-19  Bruno Haible  <bruno@clisp.org>
25586         Support for old NeXTstep 3.3 frexp().
25587         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
25588         execution time of the test to 5 seconds.
25589         Reported by Daniel Richard G. <skunk@iskunk.org>.
25591 2011-10-19  Bruno Haible  <bruno@clisp.org>
25593         Support for old NeXTstep 3.3 sed.
25594         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
25595         part, use /.../, not \|...|. Escape periods in the header file name.
25596         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
25597         Reported by Daniel Richard G. <skunk@iskunk.org>.
25599 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
25601         Support for old NeXTstep 3.3 gcc.
25602         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
25603         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
25604         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
25605         * lib/spawn.in.h (_Restrict_arr_): Likewise.
25606         * lib/regex.h (_Restrict_arr_): Likewise.
25607         * lib/regex_internal.h (re_token_t): Likewise.
25608         * lib/regexec.c (check_node_accept_bytes): Likewise.
25609         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
25611 2011-10-18  Eric Blake  <eblake@redhat.com>
25613         posix_openpt: new module
25614         * modules/posix_openpt: New module.
25615         * m4/posix_openpt.m4: New file.
25616         * lib/posix_openpt.c: Likewise.
25617         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
25618         (gl_STDLIB_H_DEFAULTS): Set defaults.
25619         * modules/stdlib (Makefile.am): Substitute macros.
25620         * lib/stdlib.in.h (posix_openpt): Declare.
25621         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
25622         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
25623         * modules/posix_openpt-tests: New test module.
25624         * tests/test-posix_openpt.c: New test.
25626 2011-10-15  Bruno Haible  <bruno@clisp.org>
25628         xstrtoll: Fix compilation failure.
25629         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
25630         from lib/strtol.c.
25631         * doc/posix-headers/limits.texi: Mention missing numerical limits on
25632         some platforms.
25633         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25635 2011-10-15  Bruno Haible  <bruno@clisp.org>
25637         vasnprintf: Optimize bit search operation.
25638         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
25639         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
25640         gl_DOUBLE_EXPONENT_LOCATION.
25641         * modules/vasnprintf (Files): Add m4/exponentd.m4.
25642         * modules/unistdio/u8-vasnprintf (Files): Likewise.
25643         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
25644         * modules/unistdio/u16-vasnprintf (Files): Likewise.
25645         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
25646         * modules/unistdio/u32-vasnprintf (Files): Likewise.
25647         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
25648         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
25649         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
25651 2011-10-15  Bruno Haible  <bruno@clisp.org>
25653         vasnprintf: Fix comments.
25654         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
25656 2011-10-14  Bruno Haible  <bruno@clisp.org>
25658         Tests for module 'integer_length_ll'.
25659         * modules/integer_length_ll-tests: New file.
25660         * tests/test-integer_length_ll.c: New file.
25662         New module 'integer_length_ll'.
25663         * lib/integer_length_ll.c: New file.
25664         * modules/integer_length_ll: New file.
25666 2011-10-14  Bruno Haible  <bruno@clisp.org>
25668         Tests for module 'integer_length_l'.
25669         * modules/integer_length_l-tests: New file.
25670         * tests/test-integer_length_l.c: New file.
25672         New module 'integer_length_l'.
25673         * lib/integer_length_l.c: New file.
25674         * modules/integer_length_l: New file.
25676 2011-10-14  Bruno Haible  <bruno@clisp.org>
25678         Tests for module 'integer_length'.
25679         * modules/integer_length-tests: New file.
25680         * tests/test-integer_length.c: New file.
25682         New module 'integer_length'.
25683         * lib/integer_length.h: New file.
25684         * lib/integer_length.c: New file.
25685         * modules/integer_length: New file.
25687 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
25689         popen: Fix dependency conditions.
25690         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
25692 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
25694         perror: Fix autoconf test.
25695         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
25696         <stdlib.h> and <string.h>.
25698 2011-10-14  Bruno Haible  <bruno@clisp.org>
25700         ffsl: Optimize on 64-bit platforms.
25701         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
25702         unrolling.
25704 2011-10-13  Bruno Haible  <bruno@clisp.org>
25706         ffsl: Optimize on 32-bit platforms.
25707         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
25708         use ffs() without a loop.
25710         ffsl, ffsll: Optimize for GCC.
25711         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
25712         * lib/ffsl.c (GCC_BUILTIN): New macro.
25713         * lib/ffsll.c (GCC_BUILTIN): Likewise.
25715 2011-10-13  Bruno Haible  <bruno@clisp.org>
25717         ffs, bcopy, memset: Support symbol renaming via config.h.
25718         * lib/ffs.c: Include <config.h>.
25719         * lib/bcopy.c: Likewise.
25720         * lib/memset.c: Likewise.
25722 2011-10-10  Bruno Haible  <bruno@clisp.org>
25724         atanl: Simplify for platforms where 'long double' == 'double'.
25725         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
25726         alternative implementation.
25727         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
25728         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
25729         * modules/atanl (Depends-on): Add atan. Update conditions.
25731 2011-10-10  Bruno Haible  <bruno@clisp.org>
25733         acosl: Simplify for platforms where 'long double' == 'double'.
25734         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
25735         alternative implementation.
25736         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
25737         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
25738         * modules/acosl (Depends-on): Add acos. Update conditions.
25740 2011-10-10  Bruno Haible  <bruno@clisp.org>
25742         asinl: Simplify for platforms where 'long double' == 'double'.
25743         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
25744         alternative implementation.
25745         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
25746         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
25747         * modules/asinl (Depends-on): Add asin. Update conditions.
25749 2011-10-10  Bruno Haible  <bruno@clisp.org>
25751         tanl: Simplify for platforms where 'long double' == 'double'.
25752         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
25753         implementation.
25754         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
25755         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
25756         * modules/tanl (Depends-on): Add tan. Update conditions.
25757         (configure.ac): Don't compile trigl.c if
25758         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
25760 2011-10-10  Bruno Haible  <bruno@clisp.org>
25762         cosl: Simplify for platforms where 'long double' == 'double'.
25763         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
25764         implementation.
25765         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
25766         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
25767         * modules/cosl (Depends-on): Add cos. Update conditions.
25768         (configure.ac): Don't compile sincosl.c and trigl.c if
25769         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
25771 2011-10-10  Bruno Haible  <bruno@clisp.org>
25773         sinl: Simplify for platforms where 'long double' == 'double'.
25774         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
25775         implementation.
25776         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
25777         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
25778         * modules/sinl (Depends-on): Add sin. Update conditions.
25779         (configure.ac): Don't compile sincosl.c and trigl.c if
25780         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
25782 2011-10-10  Bruno Haible  <bruno@clisp.org>
25784         logl: Simplify for platforms where 'long double' == 'double'.
25785         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
25786         implementation.
25787         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
25788         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
25789         * modules/logl (Depends-on): Add log. Update conditions.
25791 2011-10-10  Bruno Haible  <bruno@clisp.org>
25793         expl: Simplify for platforms where 'long double' == 'double'.
25794         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
25795         implementation.
25796         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
25797         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
25798         * modules/expl (Depends-on): Add exp. Update conditions.
25800 2011-10-10  Bruno Haible  <bruno@clisp.org>
25802         sqrtl: Simplify for platforms where 'long double' == 'double'.
25803         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
25804         alternative implementation.
25805         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
25806         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
25807         * modules/sqrtl (Depends-on): Update conditions.
25809 2011-10-10  Bruno Haible  <bruno@clisp.org>
25811         ldexpl: Simplify for platforms where 'long double' == 'double'.
25812         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
25813         alternative implementation.
25814         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
25815         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
25816         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
25818 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
25820         ffsll: set correct witness
25821         * modules/ffsll (configure.ac): Fix typo.
25823 2011-10-10  Bruno Haible  <bruno@clisp.org>
25825         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
25826         * lib/printf-frexpl.c: Include <config.h>.
25827         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
25828         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
25829         second time.
25830         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
25831         gl_LONG_DOUBLE_VS_DOUBLE.
25832         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
25833         conditions.
25835 2011-10-10  Bruno Haible  <bruno@clisp.org>
25837         frexpl: Simplify for platforms where 'long double' == 'double'.
25838         * lib/frexpl.c: Include <config.h>.
25839         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
25840         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
25841         time.
25842         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
25843         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
25844         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
25845         * modules/frexpl (Depends-on): Add frexp. Update conditions.
25846         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
25847         conditions.
25849 2011-10-10  Jim Meyering  <meyering@redhat.com>
25851         test-renameat: don't leave behind a temporary file
25852         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
25853           ERROR: files left in build directory after distclean:
25854           ./gltests/test-renameat.too
25855           make[1]: *** [distcleancheck] Error 1
25856         Reported by Tom G. Christensen.
25858 2011-10-09  Bruno Haible  <bruno@clisp.org>
25860         rint: Determine RINT_LIBM correctly on AIX 7.
25861         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
25862         directly, not only through a function pointer. Also accept an optional
25863         4th argument with extra code.
25864         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
25865         rintf() call by gcc when optimizing.
25867         mathfunc.m4: Refactor.
25868         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
25869         m4 variable.
25871 2011-10-09  Bruno Haible  <bruno@clisp.org>
25873         rintl: Simplify for platforms where 'long double' == 'double'.
25874         * lib/rintl.c: Include <config.h>.
25875         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
25876         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
25877         time.
25878         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
25879         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
25880         * modules/rintl (Depends-on): Add rint. Update conditions.
25882 2011-10-09  Bruno Haible  <bruno@clisp.org>
25884         roundl: Simplify for platforms where 'long double' == 'double'.
25885         * lib/roundl.c: Include <config.h>.
25886         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
25887         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
25888         time.
25889         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
25890         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
25891         * modules/roundl (Depends-on): Add round. Update conditions.
25893 2011-10-09  Bruno Haible  <bruno@clisp.org>
25895         truncl: Simplify for platforms where 'long double' == 'double'.
25896         * lib/truncl.c: Include <config.h>.
25897         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
25898         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
25899         time.
25900         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
25901         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
25902         * modules/truncl (Depends-on): Add trunc. Update conditions.
25904 2011-10-09  Bruno Haible  <bruno@clisp.org>
25906         ceill: Simplify for platforms where 'long double' == 'double'.
25907         * lib/ceill.c: Include <config.h>.
25908         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
25909         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
25910         time.
25911         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
25912         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
25913         * modules/ceill (Depends-on): Add ceil. Update conditions.
25915 2011-10-09  Bruno Haible  <bruno@clisp.org>
25917         floorl: Simplify for platforms where 'long double' == 'double'.
25918         * lib/floorl.c: Include <config.h>.
25919         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
25920         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
25921         time.
25922         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
25923         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
25924         * modules/floorl (Depends-on): Add floor. Update conditions.
25926 2011-10-09  Bruno Haible  <bruno@clisp.org>
25928         rint: Fix ordering constraints.
25929         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
25930         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
25931         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
25933 2011-10-09  Bruno Haible  <bruno@clisp.org>
25935         copysignl: Simplify for platforms where 'long double' == 'double'.
25936         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
25937         alternative.
25938         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
25939         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
25940         * modules/copysignl (Depends-on): Add copysign. Update conditions.
25942 2011-10-09  Bruno Haible  <bruno@clisp.org>
25944         Tests for module 'rintl'.
25945         * modules/rintl-tests: New file.
25946         * tests/test-rintl.c: New file.
25948         New module 'rintl'.
25949         * lib/math.in.h (rintl): New declaration.
25950         * lib/rintl.c: New file.
25951         * m4/rintl.m4: New file.
25952         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
25953         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
25954         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
25955         * modules/rintl: New file.
25956         * tests/test-math-c++.cc: Check the declaration of rintl.
25957         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
25958         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
25959         * doc/posix-functions/rintl.texi: Mention the new module.
25961 2011-10-09  Bruno Haible  <bruno@clisp.org>
25963         Tests for module 'rintf'.
25964         * modules/rintf-tests: New file.
25965         * tests/test-rintf.c: New file.
25967         New module 'rintf'.
25968         * lib/math.in.h (rintf): New declaration.
25969         * lib/rintf.c: New file.
25970         * m4/rintf.m4: New file.
25971         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
25972         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
25973         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
25974         * modules/rintf: New file.
25975         * tests/test-math-c++.cc: Check the declaration of rintf.
25976         * doc/posix-functions/rintf.texi: Mention the new module.
25978 2011-10-09  Bruno Haible  <bruno@clisp.org>
25980         rint: Support for MSVC.
25981         * lib/math.in.h (rint): New declaration.
25982         * lib/rint.c: New file.
25983         * m4/rint.m4: New file.
25984         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
25985         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
25986         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
25987         * modules/rint (Description): Fix.
25988         (Files): Add lib/rint.c, m4/rint.m4.
25989         (Depends-on): Add math.
25990         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
25991         gl_MATH_MODULE_INDICATOR.
25992         * tests/test-math-c++.cc: Check the declaration of rint.
25993         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
25994         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
25995         * doc/posix-functions/rint.texi: Mention the replacement provided by
25996         the module.
25998         rint tests: More tests.
25999         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
26000         minus-zero.h, infinity.h, nan.h.
26001         (main): Skip the test if the current rounding mode is not standard. Add
26002         tests for negative numbers, minus zero, infinity, NaN.
26003         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
26004         tests/nan.h.
26005         (Depends-on): Add isnand-nolibm.
26007 2011-10-09  Bruno Haible  <bruno@clisp.org>
26009         Tests for module 'copysignl'.
26010         * modules/copysignl-tests: New file.
26011         * tests/test-copysignl.c: New file.
26013         New module 'copysignl'.
26014         * lib/math.in.h (copysignl): New declaration.
26015         * lib/copysignl.c: New file.
26016         * m4/copysignl.m4: New file.
26017         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
26018         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
26019         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
26020         HAVE_COPYSIGNL.
26021         * modules/copysignl: New file.
26022         * tests/test-math-c++.cc: Check the declaration of copysignl.
26023         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
26024         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
26025         * doc/posix-functions/copysignl.texi: Mention the new module.
26027 2011-10-09  Bruno Haible  <bruno@clisp.org>
26029         Tests for module 'copysignf'.
26030         * modules/copysignf-tests: New file.
26031         * tests/test-copysignf.c: New file.
26033         New module 'copysignf'.
26034         * lib/math.in.h (copysignf): New declaration.
26035         * lib/copysignf.c: New file.
26036         * m4/copysignf.m4: New file.
26037         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
26038         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
26039         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
26040         HAVE_COPYSIGNF.
26041         * modules/copysignf: New file.
26042         * tests/test-math-c++.cc: Check the declaration of copysignf.
26043         * doc/posix-functions/copysignf.texi: Mention the new module.
26045 2011-10-09  Bruno Haible  <bruno@clisp.org>
26047         Ensure that HAVE_* variables are set to 1 before they are set to 0.
26048         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
26049         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
26050         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
26051         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
26052         gl_SIGNAL_H_DEFAULTS.
26054 2011-10-09  Bruno Haible  <bruno@clisp.org>
26056         poll: Make macro safer.
26057         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
26058         ac_cv_header_poll_h is not set.
26060 2011-10-09  Bruno Haible  <bruno@clisp.org>
26062         copysign: Provide replacement.
26063         * lib/math.in.h (copysign): New declaration.
26064         * lib/copysign.c: New file.
26065         * m4/copysign.m4: New file.
26066         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
26067         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
26068         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
26069         HAVE_COPYSIGN.
26070         * modules/copysign (Description): Clarify.
26071         (Files): Add lib/copysign.c, m4/copysign.m4.
26072         (Depends-on): Add math, signbit.
26073         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
26074         gl_MATH_MODULE_INDICATOR.
26075         * tests/test-math-c++.cc: Check the declaration of copysign.
26076         * doc/posix-functions/copysign.texi: Mention the effects of the module
26077         on Minix and MSVC.
26079 2011-10-09  Bruno Haible  <bruno@clisp.org>
26081         isinf: Ensure macro on AIX 5.1.
26082         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
26083         macro.
26084         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
26086 2011-10-09  Bruno Haible  <bruno@clisp.org>
26088         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
26089         * modules/snprintf-posix-tests (configure.ac): Require
26090         gl_LONG_DOUBLE_VS_DOUBLE.
26091         * modules/sprintf-posix-tests (configure.ac): Likewise.
26092         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
26093         * modules/vasprintf-posix-tests (configure.ac): Likewise.
26094         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
26095         * modules/vsprintf-posix-tests (configure.ac): Likewise.
26096         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
26097         tests on platforms where 'long double' is the same as 'double'.
26098         * tests/test-sprintf-posix.h (test_function): Likewise.
26099         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26100         * tests/test-vasprintf-posix.c (test_function): Likewise.
26102         *printf: Fix for platforms where 'long double' == 'double'.
26103         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
26104         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
26105         * modules/dprintf-posix (Files): Add m4/math_h.m4.
26106         * modules/fprintf-posix (Files): Likewise.
26107         * modules/obstack-printf-posix (Files): Likewise.
26108         * modules/snprintf-posix (Files): Likewise.
26109         * modules/sprintf-posix (Files): Likewise.
26110         * modules/vasnprintf (Files): Likewise.
26111         * modules/vasnprintf-posix (Files): Likewise.
26112         * modules/vasprintf-posix (Files): Likewise.
26113         * modules/vdprintf-posix (Files): Likewise.
26114         * modules/vfprintf-posix (Files): Likewise.
26115         * modules/vsnprintf-posix (Files): Likewise.
26116         * modules/vsprintf-posix (Files): Likewise.
26117         * modules/unistdio/u8-vasnprintf (Files): Likewise.
26118         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
26119         * modules/unistdio/u16-vasnprintf (Files): Likewise.
26120         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
26121         * modules/unistdio/u32-vasnprintf (Files): Likewise.
26122         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
26123         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
26125         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
26126         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
26127         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
26128         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
26129         'long double'.
26130         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
26132         isinf: Fix for platforms where 'long double' == 'double'.
26133         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
26134         Don't blindly assume 80-bit 'long double'.
26136         isfinite: Fix for platforms where 'long double' == 'double'.
26137         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
26138         Don't blindly assume 80-bit 'long double'.
26140         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
26141         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
26142         * modules/isfinite-tests (configure.ac): Require
26143         gl_LONG_DOUBLE_VS_DOUBLE.
26144         * modules/isinf-tests (configure.ac): Likewise.
26145         * modules/isnan-tests (configure.ac): Likewise.
26146         * modules/isnanl-tests (configure.ac): Likewise.
26147         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
26148         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
26149         tests on platforms where 'long double' is the same as 'double'.
26150         * tests/test-isinf.c (test_isinfl): Likewise.
26151         * tests/test-isnan.c (test_long_double): Likewise.
26152         * tests/test-isnanl.h (main): Likewise.
26154 2011-10-08  Bruno Haible  <bruno@clisp.org>
26156         Tests for module 'tanhf'.
26157         * modules/tanhf-tests: New file.
26158         * tests/test-tanhf.c: New file.
26160         New module 'tanhf'.
26161         * lib/math.in.h (tanhf): New declaration.
26162         * lib/tanhf.c: New file.
26163         * m4/tanhf.m4: New file.
26164         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
26165         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
26166         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
26167         * modules/tanhf: New file.
26168         * tests/test-math-c++.cc: Check the declaration of tanhf.
26169         * doc/posix-functions/tanhf.texi: Mention the new module.
26171         tanh: Use a .m4 file.
26172         * m4/tanh.m4: New file.
26173         * modules/tanh (Files): Add it.
26174         (configure.ac): Just invoke gl_FUNC_TANH.
26176 2011-10-08  Bruno Haible  <bruno@clisp.org>
26178         Tests for module 'coshf'.
26179         * modules/coshf-tests: New file.
26180         * tests/test-coshf.c: New file.
26182         New module 'coshf'.
26183         * lib/math.in.h (coshf): New declaration.
26184         * lib/coshf.c: New file.
26185         * m4/coshf.m4: New file.
26186         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
26187         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
26188         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
26189         * modules/coshf: New file.
26190         * tests/test-math-c++.cc: Check the declaration of coshf.
26191         * doc/posix-functions/coshf.texi: Mention the new module.
26193         cosh: Use a .m4 file.
26194         * m4/cosh.m4: New file.
26195         * modules/cosh (Files): Add it.
26196         (configure.ac): Just invoke gl_FUNC_COSH.
26198 2011-10-08  Bruno Haible  <bruno@clisp.org>
26200         Tests for module 'sinhf'.
26201         * modules/sinhf-tests: New file.
26202         * tests/test-sinhf.c: New file.
26204         New module 'sinhf'.
26205         * lib/math.in.h (sinhf): New declaration.
26206         * lib/sinhf.c: New file.
26207         * m4/sinhf.m4: New file.
26208         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
26209         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
26210         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
26211         * modules/sinhf: New file.
26212         * tests/test-math-c++.cc: Check the declaration of sinhf.
26213         * doc/posix-functions/sinhf.texi: Mention the new module.
26215         sinh: Use a .m4 file.
26216         * m4/sinh.m4: New file.
26217         * modules/sinh (Files): Add it.
26218         (configure.ac): Just invoke gl_FUNC_SINH.
26220 2011-10-08  Bruno Haible  <bruno@clisp.org>
26222         Tests for module 'atan2f'.
26223         * modules/atan2f-tests: New file.
26224         * tests/test-atan2f.c: New file.
26226         New module 'atan2f'.
26227         * lib/math.in.h (atan2f): New declaration.
26228         * lib/atan2f.c: New file.
26229         * m4/atan2f.m4: New file.
26230         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
26231         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
26232         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
26233         * modules/atan2f: New file.
26234         * tests/test-math-c++.cc: Check the declaration of atan2f.
26235         * doc/posix-functions/atan2f.texi: Mention the new module.
26237         atan2: Use a .m4 file.
26238         * m4/atan2.m4: New file.
26239         * modules/atan2 (Files): Add it.
26240         (configure.ac): Just invoke gl_FUNC_ATAN2.
26242 2011-10-08  Bruno Haible  <bruno@clisp.org>
26244         Tests for module 'atanf'.
26245         * modules/atanf-tests: New file.
26246         * tests/test-atanf.c: New file.
26248         New module 'atanf'.
26249         * lib/math.in.h (atanf): New declaration.
26250         * lib/atanf.c: New file.
26251         * m4/atanf.m4: New file.
26252         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
26253         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
26254         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
26255         * modules/atanf: New file.
26256         * tests/test-math-c++.cc: Check the declaration of atanf.
26257         * doc/posix-functions/atanf.texi: Mention the new module.
26259         atan: Use a .m4 file.
26260         * m4/atan.m4: New file.
26261         * modules/atan (Files): Add it.
26262         (configure.ac): Just invoke gl_FUNC_ATAN.
26264 2011-10-08  Bruno Haible  <bruno@clisp.org>
26266         Tests for module 'acosf'.
26267         * modules/acosf-tests: New file.
26268         * tests/test-acosf.c: New file.
26270         New module 'acosf'.
26271         * lib/math.in.h (acosf): New declaration.
26272         * lib/acosf.c: New file.
26273         * m4/acosf.m4: New file.
26274         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
26275         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
26276         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
26277         * modules/acosf: New file.
26278         * tests/test-math-c++.cc: Check the declaration of acosf.
26279         * doc/posix-functions/acosf.texi: Mention the new module.
26281         acos: Use a .m4 file.
26282         * m4/acos.m4: New file.
26283         * modules/acos (Files): Add it.
26284         (configure.ac): Just invoke gl_FUNC_ACOS.
26286 2011-10-08  Bruno Haible  <bruno@clisp.org>
26288         Tests for module 'asinf'.
26289         * modules/asinf-tests: New file.
26290         * tests/test-asinf.c: New file.
26292         New module 'asinf'.
26293         * lib/math.in.h (asinf): New declaration.
26294         * lib/asinf.c: New file.
26295         * m4/asinf.m4: New file.
26296         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
26297         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
26298         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
26299         * modules/asinf: New file.
26300         * tests/test-math-c++.cc: Check the declaration of asinf.
26301         * doc/posix-functions/asinf.texi: Mention the new module.
26303         asin: Use a .m4 file.
26304         * m4/asin.m4: New file.
26305         * modules/asin (Files): Add it.
26306         (configure.ac): Just invoke gl_FUNC_ASIN.
26308 2011-10-08  Bruno Haible  <bruno@clisp.org>
26310         Tests for module 'tanf'.
26311         * modules/tanf-tests: New file.
26312         * tests/test-tanf.c: New file.
26314         New module 'tanf'.
26315         * lib/math.in.h (tanf): New declaration.
26316         * lib/tanf.c: New file.
26317         * m4/tanf.m4: New file.
26318         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
26319         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
26320         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
26321         * modules/tanf: New file.
26322         * tests/test-math-c++.cc: Check the declaration of tanf.
26323         * doc/posix-functions/tanf.texi: Mention the new module.
26325         tan: Use a .m4 file.
26326         * m4/tan.m4: New file.
26327         * modules/tan (Files): Add it.
26328         (configure.ac): Just invoke gl_FUNC_TAN.
26330 2011-10-08  Bruno Haible  <bruno@clisp.org>
26332         Tests for module 'cosf'.
26333         * modules/cosf-tests: New file.
26334         * tests/test-cosf.c: New file.
26336         New module 'cosf'.
26337         * lib/math.in.h (cosf): New declaration.
26338         * lib/cosf.c: New file.
26339         * m4/cosf.m4: New file.
26340         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
26341         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
26342         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
26343         * modules/cosf: New file.
26344         * tests/test-math-c++.cc: Check the declaration of cosf.
26345         * doc/posix-functions/cosf.texi: Mention the new module.
26347         cos: Use a .m4 file.
26348         * m4/cos.m4: New file.
26349         * modules/cos (Files): Add it.
26350         (configure.ac): Just invoke gl_FUNC_COS.
26352 2011-10-08  Bruno Haible  <bruno@clisp.org>
26354         Tests for module 'sinf'.
26355         * modules/sinf-tests: New file.
26356         * tests/test-sinf.c: New file.
26358         New module 'sinf'.
26359         * lib/math.in.h (sinf): New declaration.
26360         * lib/sinf.c: New file.
26361         * m4/sinf.m4: New file.
26362         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
26363         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
26364         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
26365         * modules/sinf: New file.
26366         * tests/test-math-c++.cc: Check the declaration of sinf.
26367         * doc/posix-functions/sinf.texi: Mention the new module.
26369         sin: Use a .m4 file.
26370         * m4/sin.m4: New file.
26371         * modules/sin (Files): Add it.
26372         (configure.ac): Just invoke gl_FUNC_SIN.
26374 2011-10-08  Bruno Haible  <bruno@clisp.org>
26376         Tests for module 'powf'.
26377         * modules/powf-tests: New file.
26378         * tests/test-powf.c: New file.
26380         New module 'powf'.
26381         * lib/math.in.h (powf): New declaration.
26382         * lib/powf.c: New file.
26383         * m4/powf.m4: New file.
26384         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
26385         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
26386         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
26387         * modules/powf: New file.
26388         * tests/test-math-c++.cc: Check the declaration of powf.
26389         * doc/posix-functions/powf.texi: Mention the new module.
26391         pow: Use a .m4 file.
26392         * m4/pow.m4: New file.
26393         * modules/pow (Files): Add it.
26394         (configure.ac): Just invoke gl_FUNC_POW.
26396 2011-10-08  Bruno Haible  <bruno@clisp.org>
26398         Tests for module 'log10f'.
26399         * modules/log10f-tests: New file.
26400         * tests/test-log10f.c: New file.
26402         New module 'log10f'.
26403         * lib/math.in.h (log10f): New declaration.
26404         * lib/log10f.c: New file.
26405         * m4/log10f.m4: New file.
26406         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
26407         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
26408         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
26409         * modules/log10f: New file.
26410         * tests/test-math-c++.cc: Check the declaration of log10f.
26411         * doc/posix-functions/log10f.texi: Mention the new module.
26413         log10: Use a .m4 file.
26414         * m4/log10.m4: New file.
26415         * modules/log10 (Files): Add it.
26416         (configure.ac): Just invoke gl_FUNC_LOG10.
26418 2011-10-08  Bruno Haible  <bruno@clisp.org>
26420         Tests for module 'logf'.
26421         * modules/logf-tests: New file.
26422         * tests/test-logf.c: New file.
26424         New module 'logf'.
26425         * lib/math.in.h (logf): New declaration.
26426         * lib/logf.c: New file.
26427         * m4/logf.m4: New file.
26428         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
26429         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
26430         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
26431         * modules/logf: New file.
26432         * tests/test-math-c++.cc: Check the declaration of logf.
26433         * doc/posix-functions/logf.texi: Mention the new module.
26435         log: Use a .m4 file.
26436         * m4/log.m4: New file.
26437         * modules/log (Files): Add it.
26438         (configure.ac): Just invoke gl_FUNC_LOG.
26440 2011-10-08  Bruno Haible  <bruno@clisp.org>
26442         Tests for module 'expf'.
26443         * modules/expf-tests: New file.
26444         * tests/test-expf.c: New file.
26446         New module 'expf'.
26447         * lib/math.in.h (expf): New declaration.
26448         * lib/expf.c: New file.
26449         * m4/expf.m4: New file.
26450         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
26451         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
26452         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
26453         * modules/expf: New file.
26454         * tests/test-math-c++.cc: Check the declaration of expf.
26455         * doc/posix-functions/expf.texi: Mention the new module.
26457         exp: Use a .m4 file.
26458         * m4/exp.m4: New file.
26459         * modules/exp (Files): Add it.
26460         (configure.ac): Just invoke gl_FUNC_EXP.
26462 2011-10-08  Bruno Haible  <bruno@clisp.org>
26464         Tests for module 'sqrtf'.
26465         * modules/sqrtf-tests: New file.
26466         * tests/test-sqrtf.c: New file.
26468         New module 'sqrtf'.
26469         * lib/math.in.h (sqrtf): New declaration.
26470         * lib/sqrtf.c: New file.
26471         * m4/sqrtf.m4: New file.
26472         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
26473         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
26474         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
26475         * modules/sqrtf: New file.
26476         * tests/test-math-c++.cc: Check the declaration of sqrtf.
26477         * doc/posix-functions/sqrtf.texi: Mention the new module.
26479 2011-10-08  Bruno Haible  <bruno@clisp.org>
26481         Tests: Avoid link failures w.r.t. libintl.
26482         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
26483         $(LIBINTL).
26484         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
26485         $(LIBINTL).
26486         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
26487         against $(LIBINTL).
26488         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
26489         $(LIBINTL).
26490         * modules/openat-tests (Makefile.am): Link test-fchmodat against
26491         $(LIBINTL).
26492         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
26494 2011-10-08  Bruno Haible  <bruno@clisp.org>
26496         pow tests: Defeat compiler optimizations.
26497         * tests/test-pow.c (main): Assign arguments to x and y before use.
26499 2011-10-08  Bruno Haible  <bruno@clisp.org>
26501         gnulib-tool: Improve last commit.
26502         * gnulib-tool (func_modules_transitive_closure): Simplify code.
26503         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
26504         ignore dependencies that are not among the modules list.
26506 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
26508         gnulib-tool: don't follow dependencies to avoided modules
26509         This fixes a bug that is related to the previous one.
26510         * gnulib-tool (func_modules_transitive_closure)
26511         (func_emit_autoconf_snippets):
26512         Check whether a dependency is acceptable before using it.
26513         (--extract-dependencies): Report an error if --avoid is also used,
26514         since this combination of options is not yet supported.
26516         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
26517         Problem reported by Peter Dyballa in
26518         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
26519         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
26520         when echoing "$condition".
26522 2011-10-07  Bruno Haible  <bruno@clisp.org>
26524         Fix documentation about math functions on MacOS X.
26525         * doc/posix-functions/exp2.texi: Don't say the function is missing on
26526         MacOS X 10.5.
26527         * doc/posix-functions/fdim.texi: Likewise.
26528         * doc/posix-functions/feclearexcept.texi: Likewise.
26529         * doc/posix-functions/fegetenv.texi: Likewise.
26530         * doc/posix-functions/fegetround.texi: Likewise.
26531         * doc/posix-functions/feholdexcept.texi: Likewise.
26532         * doc/posix-functions/feraiseexcept.texi: Likewise.
26533         * doc/posix-functions/fesetenv.texi: Likewise.
26534         * doc/posix-functions/fesetround.texi: Likewise.
26535         * doc/posix-functions/fetestexcept.texi: Likewise.
26536         * doc/posix-functions/feupdateenv.texi: Likewise.
26537         * doc/posix-functions/fmax.texi: Likewise.
26538         * doc/posix-functions/fmin.texi: Likewise.
26539         * doc/posix-functions/log2.texi: Likewise.
26540         * doc/posix-functions/modff.texi: Likewise.
26541         * doc/posix-functions/nan.texi: Likewise.
26542         * doc/posix-functions/nanf.texi: Likewise.
26543         * doc/posix-functions/nextafterf.texi: Likewise.
26544         * doc/posix-functions/remquo.texi: Likewise.
26546 2011-10-07  Bruno Haible  <bruno@clisp.org>
26548         modff: Drop assumption about library that defines modff.
26549         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
26550         AC_CHECK_FUNCS.
26551         * modules/modff (Files): Add m4/mathfunc.m4.
26553 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
26555         raise tests: Avoid a GCC warning.
26556         * tests/test-raise.c (handler): Use _Noreturn.
26558 2011-10-07  Bruno Haible  <bruno@clisp.org>
26560         Tests for module 'ldexpf'.
26561         * modules/ldexpf-tests: New file.
26562         * tests/test-ldexpf.c: New file.
26564         New module 'ldexpf'.
26565         * lib/math.in.h (ldexpf): New declaration.
26566         * lib/ldexpf.c: New file.
26567         * m4/ldexpf.m4: New file.
26568         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
26569         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
26570         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
26571         * modules/ldexpf: New file.
26572         * tests/test-math-c++.cc: Check the declaration of ldexpf.
26573         * doc/posix-functions/ldexpf.texi: Mention the new module.
26575 2011-10-06  Bruno Haible  <bruno@clisp.org>
26577         frexpf: Work around problems on IRIX and mingw.
26578         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
26579         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
26580         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
26581         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
26582         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
26583         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
26584         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
26586 2011-10-06  Bruno Haible  <bruno@clisp.org>
26588         fabsf: Drop assumption about library that defines fabsf.
26589         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
26590         AC_CHECK_FUNCS.
26591         * modules/fabsf (Files): Add m4/mathfunc.m4.
26593 2011-10-06  Bruno Haible  <bruno@clisp.org>
26595         frexpf: Drop assumption about library that defines frexpf.
26596         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
26597         'int *', 'float *', 'long double *', 'float', 'long double'.
26598         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
26599         AC_CHECK_FUNCS.
26600         * modules/frexpf (Files): Add m4/mathfunc.m4.
26602         Tests for module 'frexpf'.
26603         * modules/frexpf-tests: New file.
26604         * tests/test-frexpf.c: New file.
26606         New module 'frexpf'.
26607         * lib/math.in.h (frexpf): New declaration.
26608         * lib/frexpf.c: New file.
26609         * m4/frexpf.m4: New file.
26610         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
26611         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
26612         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
26613         * modules/frexpf: New file.
26614         * tests/test-math-c++.cc: Check the declaration of frexpf.
26615         * doc/posix-functions/frexpf.texi: Mention the new module.
26617 2011-10-06  Bruno Haible  <bruno@clisp.org>
26619         math: Sort function declarations of math.in.h.
26620         * lib/math.in.h (frexp, logb): Move declarations.
26622 2011-10-05  Bruno Haible  <bruno@clisp.org>
26624         Tests for module 'modff'.
26625         * modules/modff-tests: New file.
26626         * tests/test-modff.c: New file.
26628         New module 'modff'.
26629         * lib/math.in.h (modff): New declaration.
26630         * lib/modff.c: New file.
26631         * m4/modff.m4: New file.
26632         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
26633         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
26634         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
26635         * modules/modff: New file.
26636         * tests/test-math-c++.cc: Check the declaration of modff.
26637         * doc/posix-functions/modff.texi: Mention the new module.
26639         modf tests: Make test sharper.
26640         * tests/test-modf.c (main): Strengthen upper bound.
26642         modf: Use a .m4 file.
26643         * m4/modf.m4: New file.
26644         * modules/modf (Files): Add it.
26645         (configure.ac): Just invoke gl_FUNC_MODF.
26647 2011-10-05  Bruno Haible  <bruno@clisp.org>
26649         Tests for module 'fmodf'.
26650         * modules/fmodf-tests: New file.
26651         * tests/test-fmodf.c: New file.
26653         New module 'fmodf'.
26654         * lib/math.in.h (fmodf): New declaration.
26655         * lib/fmodf.c: New file.
26656         * m4/fmodf.m4: New file.
26657         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
26658         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
26659         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
26660         * modules/fmodf: New file.
26661         * tests/test-math-c++.cc: Check the declaration of fmodf.
26662         * doc/posix-functions/fmodf.texi: Mention the new module.
26664         fmod: Use a .m4 file.
26665         * m4/fmod.m4: New file.
26666         * modules/fmod (Files): Add it.
26667         (configure.ac): Just invoke gl_FUNC_FMOD.
26669 2011-10-05  Bruno Haible  <bruno@clisp.org>
26671         Tests for module 'fabsf'.
26672         * modules/fabsf-tests: New file.
26673         * tests/test-fabsf.c: New file.
26675         New module 'fabsf'.
26676         * lib/math.in.h (fabsf): New declaration.
26677         * lib/fabsf.c: New file.
26678         * m4/fabsf.m4: New file.
26679         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
26680         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
26681         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
26682         * modules/fabsf: New file.
26683         * tests/test-math-c++.cc: Check the declaration of fabsf.
26684         * doc/posix-functions/fabsf.texi: Mention the new module.
26686         fabs: Use a .m4 file.
26687         * m4/fabs.m4: New file.
26688         * modules/fabs (Files): Add it.
26689         (configure.ac): Just invoke gl_FUNC_FABS.
26691 2011-10-05  Jim Meyering  <meyering@redhat.com>
26693         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
26694         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
26695         ls -lL regression introduced in coreutils-8.12, it does so at the
26696         cost of an additional stat call in the common case.  Besides, now
26697         that the kernel change that prompted commit 95f7c57f has been reverted
26698         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
26699         we have no use for commit 95f7c57f, "file-has-acl: use
26700         acl_extended_file_nofollow if available".
26702 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
26704         file-has-acl: revert unintended change in behavior of ls -L
26705         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
26706         derived from...
26707         (file_has_acl): ...code here.  Call it.
26708         This problem was introduced with 2011-07-22 commit 95f7c57f,
26709         "file-has-acl: use acl_extended_file_nofollow if available".
26710         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
26712 2011-10-03  Bruno Haible  <bruno@clisp.org>
26714         poll: Avoid link errors on MSVC.
26715         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
26716         * modules/poll (Depends-on): Add sockets.
26717         (Link): New section.
26718         * NEWS: Mention the change.
26719         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
26720         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
26721         $(LIB_POLL) instead of $(LIBSOCKET).
26723 2011-10-03  Bruno Haible  <bruno@clisp.org>
26725         sys_select tests: Fix link error on MSVC 9.
26726         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
26727         with $(LIB_SELECT) instead of $(LIBSOCKET).
26729 2011-10-03  Bruno Haible  <bruno@clisp.org>
26731         sys_select: Fix compilation error on mingw.
26732         * lib/sys_select.in.h: On native Windows, include <io.h>.
26734 2011-10-03  Bruno Haible  <bruno@clisp.org>
26736         wmemset: Support for MSVC.
26737         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
26738         whether wmemset() exists.
26740 2011-10-03  Bruno Haible  <bruno@clisp.org>
26742         wmemmove: Support for MSVC.
26743         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
26744         whether wmemmove() exists.
26746 2011-10-03  Bruno Haible  <bruno@clisp.org>
26748         wmemcpy: Support for MSVC.
26749         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
26750         whether wmemcpy() exists.
26752 2011-10-03  Bruno Haible  <bruno@clisp.org>
26754         wmemcmp: Support for MSVC.
26755         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
26756         whether wmemcmp() exists.
26758 2011-10-03  Bruno Haible  <bruno@clisp.org>
26760         wmemchr: Support for MSVC.
26761         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
26762         whether wmemchr() exists.
26764 2011-10-03  Bruno Haible  <bruno@clisp.org>
26766         glthread/*, strsignal: Support for MSVC.
26767         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
26768         including <winsock.h> on MSVC 9.
26769         * lib/glthread/lock.h: Likewise.
26770         * lib/glthread/thread.h: Likewise.
26771         * lib/glthread/tls.h: Likewise.
26772         * lib/glthread/yield.h: Likewise.
26773         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
26774         if HAVE_UNISTD_H is false.
26775         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
26777 2011-10-03  Bruno Haible  <bruno@clisp.org>
26779         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
26780         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
26781         Set to 100000.
26783 2011-10-03  Bruno Haible  <bruno@clisp.org>
26785         acl: Fix specification.
26786         * lib/file-has-acl.c (file_has_acl): Fix specification.
26788 2011-10-03  Bruno Haible  <bruno@clisp.org>
26790         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
26791         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
26792         (compute_curr_prefix, shared_library_fullname,
26793         find_shared_library_fullname, get_shared_library_fullname, relocate):
26794         Use it together with PIC && INSTALLDIR.
26795         Reported by <jojelino@gmail.com>
26796         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
26798 2011-10-01  Jim Meyering  <meyering@redhat.com>
26800         maint.mk: adjust a release-related rule not to require use of gzip
26801         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
26802         Instead, check each file in $(DIST_ARCHIVES).  This is better for
26803         projects that build only .tar.xz files.  Also fix an erroneous test.
26805         test-linkat: don't leave behind a temporary file
26806         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
26807         Otherwise, coreutils' "make distcheck" would fail with this:
26808           Only in /c/cu/tests/torture/coreutils/test/\
26809             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
26810           make[2]: *** [my-distcheck] Error 1
26812         float, math: add omitted file
26813         * lib/itold.c: Add file, required for yesterday's float change.
26815 2011-10-01  Bruno Haible  <bruno@clisp.org>
26817         isinf: Fix for OpenBSD/x86.
26818         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
26819         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
26820         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
26822 2011-10-01  Bruno Haible  <bruno@clisp.org>
26824         isfinite: Fix syntax error in configure test.
26825         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
26827         isfinite: Fix typo.
26828         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
26829         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
26831 2011-10-01  Bruno Haible  <bruno@clisp.org>
26833         nonblocking tests: Fix test failure on Linux/IA-64.
26834         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
26835         Set to 270000.
26837 2011-10-01  Bruno Haible  <bruno@clisp.org>
26839         mkfifoat tests: Fix a test failure on mingw.
26840         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
26841         with error ENOSYS.
26843 2011-09-30  Bruno Haible  <bruno@clisp.org>
26845         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
26846         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
26847         'long double'. Set REPLACE_ITOLD.
26848         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
26849         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
26850         * lib/itold.c: New file.
26851         * modules/float (Files): Add lib/itold.c.
26852         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
26853         (Makefile.am): Substitute REPLACE_ITOLD.
26854         * modules/math (Depends-on): Add float.
26855         (Makefile.am): Substitute REPLACE_ITOLD.
26856         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
26857         * doc/posix-headers/math.texi: Likewise.
26858         * doc/posix-functions/logl.texi: Likewise.
26860 2011-09-30  Bruno Haible  <bruno@clisp.org>
26862         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
26863         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
26864         Set to 140000.
26866 2011-09-30  Bruno Haible  <bruno@clisp.org>
26868         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
26869         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
26870         invocation, say "right after AC_PROG_CC_STDC", not "right after
26871         AC_PROG_CC".
26872         Reported by Gary V. Vaughan <gary@gnu.org>.
26874 2011-09-30  Bruno Haible  <bruno@clisp.org>
26876         Centralize C99 requirement.
26877         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
26878         * modules/stdarg (configure.ac-early): Invoke it instead of
26879         AC_PROG_CC_STDC.
26880         Reported by Gary V. Vaughan and Paul Eggert.
26882 2011-09-29  Bruno Haible  <bruno@clisp.org>
26884         float: Fix LDBL_MAX value on Linux/PowerPC.
26885         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
26886         on Linux/PowerPC.
26887         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
26888         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
26889         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
26890         platform.
26891         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
26893 2011-09-29  Bruno Haible  <bruno@clisp.org>
26895         doc: Improve doc about gl_EARLY.
26896         * doc/gnulib-tool.texi (Initial import): Mention where to place an
26897         AC_PROG_CC_STDC invocation.
26898         Reported by Gary V. Vaughan <gary@gnu.org>.
26900 2011-09-28  Bruno Haible  <bruno@clisp.org>
26902         fgetc, fputc, fread, fwrite tests: Fix link error.
26903         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
26904         on non-MSVC platforms.
26905         * tests/test-fputc.c (main): Likewise.
26906         * tests/test-fread.c (main): Likewise.
26907         * tests/test-fwrite.c (main): Likewise.
26908         Reported by Jim Meyering.
26910 2011-09-27  Bruno Haible  <bruno@clisp.org>
26912         fputc, fwrite tests: Avoid test failure on MSVC.
26913         * tests/test-fgetc.c: Include msvc-inval.h.
26914         (main): Invoke gl_msvc_inval_ensure_handler.
26915         * tests/test-fputc.c: Include msvc-inval.h.
26916         (main): Invoke gl_msvc_inval_ensure_handler.
26917         * tests/test-fread.c: Include msvc-inval.h.
26918         (main): Invoke gl_msvc_inval_ensure_handler.
26919         * tests/test-fwrite.c: Include msvc-inval.h.
26920         (main): Invoke gl_msvc_inval_ensure_handler.
26921         * modules/fgetc-tests (Depends-on): Add msvc-inval.
26922         * modules/fputc-tests (Depends-on): Likewise.
26923         * modules/fread-tests (Depends-on): Likewise.
26924         * modules/fwrite-tests (Depends-on): Likewise.
26926 2011-09-27  Bruno Haible  <bruno@clisp.org>
26928         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
26929         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
26930         (raise): Remove older, duplicated declaration.
26931         (_gl_raise_SIGPIPE): New declaration.
26932         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
26933         (rpl_raise): Remove function.
26934         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
26935         a gnulib-defined SIGPIPE here.
26936         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
26937         'sigprocmask' has detected missing signal-blocking and the module
26938         'sigpipe' is enabled.
26939         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
26941 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
26943         base64-tests: avoid memory leak
26944         * tests/test-base64.c (main): Plug memory leak.
26946         base32: new module
26947         * modules/base32: New module.
26948         * lib/base32.c: New file.
26949         * lib/base32.h: Likewise.
26950         * m4/base32.m4: Likewise.
26951         * modules/base32-tests: New test.
26952         * tests/test-base32.c: Likewise.
26953         * MODULES.html.sh (Misc): Mention it.
26955 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
26957         gnulib: use more-standard license notice wording
26958         * gnulib-tool (func_emit_copyright_notice): When emitting a
26959         license notice into a file, use the standard wording as suggested
26960         by the current information for GNU maintainers, except say "file"
26961         rather than "program".  The new wording gives a license version
26962         number, which addresses an issue raised by Glenn Morris in
26963         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
26964         * m4/onceonly.m4: Use that same wording here, too.
26966         dup2: minor simplification
26967         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
26968         as lib/dup2.c no longer uses 'inline'.
26970 2011-09-25  Bruno Haible  <bruno@clisp.org>
26972         strings: Fix compilation error on MSVC.
26973         * lib/strings.in.h: Include <stddef.h> for size_t.
26975 2011-09-25  Bruno Haible  <bruno@clisp.org>
26977         fflush et al.: Document limitation on MSVC.
26978         * doc/posix-functions/fflush.texi: Document possible crash in handling
26979         mode other than DEFAULT_HANDLING.
26980         * doc/posix-functions/fgetc.texi: Likewise.
26981         * doc/posix-functions/fputc.texi: Likewise.
26982         * doc/posix-functions/fread.texi: Likewise.
26983         * doc/posix-functions/fwrite.texi: Likewise.
26985 2011-09-25  Bruno Haible  <bruno@clisp.org>
26987         msvc-inval: Allow three invalid parameter handling modes.
26988         * lib/msvc-inval.h: Don't include <stdlib.h> here.
26989         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
26990         macros.
26991         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
26992         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
26993         SANE_LIBRARY_HANDLING as a no-op.
26994         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
26995         <stdlib.h>.
26996         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
26998 2011-09-25  Bruno Haible  <bruno@clisp.org>
27000         msvc-inval: Make handler multithread-safe.
27001         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
27002         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
27003         declarations.
27004         (gl_msvc_inval_current): New declaration.
27005         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
27006         Operate on the structure returned by gl_msvc_inval_current().
27007         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
27008         Remove varaiables.
27009         (tls_index, tls_initialized): New variables.
27010         (not_per_thread): New variable.
27011         (gl_msvc_inval_current): New function.
27012         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
27013         returned by gl_msvc_inval_current().
27015 2011-09-25  Bruno Haible  <bruno@clisp.org>
27017         msvc-inval: Install handler globally.
27018         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
27019         !_MSC_VER.
27020         (gl_msvc_invalid_parameter_handler): Remove declaration.
27021         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
27022         declarations.
27023         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
27024         Install the handler globally, don't uninstall it.
27025         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
27026         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
27027         currently valid, call RaiseException instead.
27028         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
27029         for !_MSC_VER.
27031 2011-09-25  Bruno Haible  <bruno@clisp.org>
27033         strerror_r-posix: Fix for MSVC 9.
27034         * lib/strerror_r.c (local_snprintf): New function.
27035         (snprintf): Define to local_snprintf, not to _snprintf.
27037 2011-09-25  Bruno Haible  <bruno@clisp.org>
27039         ftruncate: Support for MSVC 9.
27040         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
27041         (chsize_nothrow): New function.
27042         (chsize): Redefine as a macro.
27043         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
27044         * modules/ftruncate (Depends-on): Add msvc-inval.
27046 2011-09-25  Bruno Haible  <bruno@clisp.org>
27048         New module 'fstat'.
27049         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
27050         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
27051         * lib/fchdir.c (rpl_fstat): Remove function.
27052         * m4/fstat.m4: New file.
27053         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
27054         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
27055         declared.
27056         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
27057         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
27058         * modules/fstat: New file.
27059         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
27060         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
27061         is set.
27062         * doc/posix-functions/fstat.texi: Mention the new module and the
27063         problem on MSVC.
27064         * NEWS: Mention the change.
27065         * modules/acl (Depends-on): Add fstat.
27066         * modules/chdir-safer (Depends-on): Likewise.
27067         * modules/chown (Depends-on): Likewise.
27068         * modules/copy-file (Depends-on): Likewise.
27069         * modules/fchdir (Depends-on): Likewise.
27070         * modules/fdopendir (Depends-on): Likewise.
27071         * modules/fopen (Depends-on): Likewise.
27072         * modules/fts (Depends-on): Likewise.
27073         * modules/getcwd (Depends-on): Likewise.
27074         * modules/isapipe (Depends-on): Likewise.
27075         * modules/linkat (Depends-on): Likewise.
27076         * modules/lseek (Depends-on): Likewise.
27077         * modules/mkdir-p (Depends-on): Likewise.
27078         * modules/open (Depends-on): Likewise.
27079         * modules/openat (Depends-on): Likewise.
27080         * modules/read-file (Depends-on): Likewise.
27081         * modules/renameat (Depends-on): Likewise.
27082         * modules/utimens (Depends-on): Likewise.
27084 2011-09-25  Bruno Haible  <bruno@clisp.org>
27086         linkat: Fix compilation on MSVC 9.
27087         * lib/linkat.c: Don't include <stdint.h>.
27089 2011-09-25  Bruno Haible  <bruno@clisp.org>
27091         fclose: Support for MSVC 9.
27092         * lib/fclose.c: Include msvc-inval.h.
27093         (fclose_nothrow): New function.
27094         (rpl_fclose): Use it.
27095         * modules/fclose (Depends-on): Add msvc-inval.
27096         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
27098 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
27100         dup2: minor simplifications
27101         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
27102         that it's a performance win.
27103         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
27104         ! defined __CYGWIN__)" to "ifdef F_GETFL".
27106 2011-09-24  Jim Meyering  <meyering@redhat.com>
27108         test-futimens: avoid a warning from gcc -Wshadow
27109         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
27110         to avoid a shadowing warning.
27112 2011-09-24  Bruno Haible  <bruno@clisp.org>
27114         fdopen: Support for MSVC 9.
27115         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
27116         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
27117         * lib/fdopen.c: Include msvc-inval.h.
27118         (fdopen_nothrow): New function.
27119         (rpl_fdopen): Use it.
27120         * modules/fdopen (Depends-on): Add msvc-inval.
27121         * modules/fclose-tests (Depends-on): Add fdopen.
27122         * modules/fflush-tests (Depends-on): Likewise.
27123         * modules/fgetc-tests (Depends-on): Likewise.
27124         * modules/fputc-tests (Depends-on): Likewise.
27125         * modules/fread-tests (Depends-on): Likewise.
27126         * modules/freopen-tests (Depends-on): Likewise.
27127         * modules/fseeko-tests (Depends-on): Likewise.
27128         * modules/ftello-tests (Depends-on): Likewise.
27129         * modules/fwrite-tests  (Depends-on): Likewise.
27130         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
27132 2011-09-24  Bruno Haible  <bruno@clisp.org>
27134         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
27135         * modules/fgetc-tests (Depends-on): Add unistd.
27136         * modules/fputc-tests (Depends-on): Likewise.
27137         * modules/fread-tests (Depends-on): Likewise.
27138         * modules/fwrite-tests (Depends-on): Likewise.
27140 2011-09-24  Bruno Haible  <bruno@clisp.org>
27142         dup: Simplify autoconf test.
27143         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
27144         on gl_MSVC_INVAL's result.
27146 2011-09-24  Bruno Haible  <bruno@clisp.org>
27148         Tests for function fwrite().
27149         * modules/fwrite-tests: New file.
27150         * tests/test-fwrite.c: New file.
27151         * modules/stdio-tests (Depends-on): Add fwrite-tests.
27153         Tests for function fread().
27154         * modules/fread-tests: New file.
27155         * tests/test-fread.c: New file.
27156         * modules/stdio-tests (Depends-on): Add fread-tests.
27158         Activate fputc tests.
27159         * modules/stdio-tests (Depends-on): Add fputc-tests.
27161         Enhance fgetc, fputc tests.
27162         * tests/test-fgetc.c (main): Also test the stream's error indicator.
27163         * tests/test-fputc.c (main): Likewise.
27165 2011-09-24  Bruno Haible  <bruno@clisp.org>
27167         write: Support for MSVC 9.
27168         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
27169         is not 1.
27170         * lib/write.c (write_nothrow): New function.
27171         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
27172         not 1. Use write_nothrow.
27173         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
27174         invalid parameter handler.
27175         (gl_PREREQ_WRITE): New macro.
27176         * modules/write (Depends-on): Add msvc-inval.
27177         (configure.ac): Invoke gl_PREREQ_WRITE.
27178         * doc/posix-functions/write.texi: Mention the problem on MSVC.
27180 2011-09-24  Bruno Haible  <bruno@clisp.org>
27182         read: Fix last commit.
27183         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
27185 2011-09-24  Bruno Haible  <bruno@clisp.org>
27187         dup2: Fix last commit.
27188         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
27189         (rpl_dup2): Disable fcntl workaround on native Windows.
27191         sigprocmask: Make code safer.
27192         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
27193         section that changes macro definitions for this compilation unit.
27195 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
27197         dup2: clarify by coalescing Windows-specific material
27198         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
27199         "msvc-nothrow.h"' to the Windows-specific section, so that the
27200         Emacs source need not contain these include files.
27201         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
27202         Windows-specific fixes into this function rather than just the
27203         nothrow fix, as this shortens and clarifies the code.  Always
27204         define as a function, as that's a bit cleaner than having it be
27205         sometimes a function and sometimes a macro.
27206         (rpl_dup2): Move the Windows-specific stuff out of here and into
27207         ms_windows_dup2.  Don't protect the Haiku-related fix with
27208         "#if !defined __linux__", as the same code also works around
27209         a Linux kernel bug, and it doesn't add any system calls on any
27210         platform.  Add comment about FreeBSD 6.1.
27212         sigprocmask: move #include directive
27213         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
27214         Windows-specific section, so that the Emacs source need not
27215         contain msvc-inval.h.
27217 2011-09-23  Bruno Haible  <bruno@clisp.org>
27219         read: Support for MSVC 9.
27220         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
27221         is not 1.
27222         * lib/read.c (read_nothrow): New function.
27223         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
27224         read_nothrow.
27225         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
27226         invalid parameter handler.
27227         (gl_PREREQ_READ): New macro.
27228         * modules/read (Depends-on): Add msvc-inval.
27229         (configure.ac): Invoke gl_PREREQ_READ.
27230         * doc/posix-functions/read.texi: Mention the problem on MSVC.
27232 2011-09-23  Bruno Haible  <bruno@clisp.org>
27234         close: Support for MSVC 9.
27235         * lib/close.c: Include <errno.h>, msvc-inval.h.
27236         (close_nothrow): New function.
27237         (rpl_close): Use it.
27238         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
27239         invalid parameter handler.
27240         * modules/close (Depends-on): Add msvc-inval.
27241         * modules/dup2-tests (Depends-on): Add close.
27242         * modules/dup3-tests (Depends-on): Likewise.
27243         * modules/fcntl-tests (Depends-on): Likewise.
27244         * modules/spawn-pipe-tests (Depends-on): Likewise.
27245         * modules/unistd-safer-tests (Depends-on): Likewise.
27246         * doc/posix-functions/close.texi: Mention the problem on MSVC.
27248 2011-09-23  Bruno Haible  <bruno@clisp.org>
27250         New module 'dup'.
27251         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
27252         Allow replacement.
27253         * lib/dup.c: New file.
27254         * lib/fchdir.c (rpl_dup): Remove function.
27255         * m4/dup.m4: New file.
27256         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
27257         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
27258         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
27259         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
27260         * modules/dup: New file.
27261         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
27262         'dup' module is in use.
27263         * modules/fdopendir (Depends-on): Add dup.
27264         * modules/fdutimensat-tests (Depends-on): Likewise.
27265         * modules/fts (Depends-on): Likewise.
27266         * modules/futimens-tests (Depends-on): Likewise.
27267         * modules/posix_spawnp-tests (Depends-on): Likewise.
27268         * modules/unistd-safer-tests (Depends-on): Likewise.
27269         * modules/utimens-tests (Depends-on): Likewise.
27270         * doc/posix-functions/dup.texi: Mention the new module and the problem
27271         on MSVC.
27273 2011-09-23  Bruno Haible  <bruno@clisp.org>
27275         getdtablesize: Support for MSVC 9.
27276         * lib/getdtablesize.c: Include msvc-inval.h.
27277         (_setmaxstdio_nothrow): New function.
27278         (_setmaxstdio): Redefine it.
27279         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
27280         * modules/getdtablesize (Depends-on): Add msvc-inval.
27281         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
27283 2011-09-23  Bruno Haible  <bruno@clisp.org>
27285         signal-h: Rename from signal.
27286         * modules/signal-h: Renamed from modules/signal.
27287         * modules/pthread_sigmask (Depends-on): Update.
27288         * modules/raise (Depends-on): Likewise.
27289         * modules/sigaction (Depends-on): Likewise.
27290         * modules/sigpipe (Depends-on): Likewise.
27291         * modules/sigprocmask (Depends-on): Likewise.
27292         * modules/sys_select (Depends-on): Likewise.
27293         * modules/signal-h-tests: Renamed from modules/signal-tests.
27294         (Files, Depends-on, Makefile.am): Update.
27295         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
27296         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
27297         (Files, Makefile.am): Update.
27298         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
27299         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
27300         * modules/signal: New placeholder file.
27301         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
27302         * doc/posix-headers/signal.texi: Update.
27303         * NEWS: Mention the change.
27305 2011-09-23  Bruno Haible  <bruno@clisp.org>
27307         sigprocmask: Avoid crashes through signal() on MSVC 9.
27308         * lib/sigprocmask.c: Include msvc-inval.h.
27309         (signal_nothrow): New function.
27310         (signal): Redefine it.
27311         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
27312         * modules/sigprocmask (Depends-on): Add msvc-inval.
27313         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
27315 2011-09-23  Bruno Haible  <bruno@clisp.org>
27317         Tests for module 'raise'.
27318         * modules/raise-tests: New file.
27319         * tests/test-raise.c: New file.
27321         raise: Support for MSVC.
27322         * lib/signal.in.h (raise): New declaration.
27323         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
27324         for native Windows platforms.
27325         * m4/raise.m4: New file.
27326         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
27327         HAVE_RAISE, REPLACE_RAISE.
27328         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
27329         REPLACE_RAISE.
27330         * modules/raise (Status, Notice): Remove fields.
27331         (Files): Add m4/raise.m4.
27332         (Depends-on): Add signal, msvc-inval.
27333         (configure.ac): Use the common idioms.
27334         (Maintainer): Add me.
27335         * tests/test-signal-c++.cc: Check the signature of raise.
27336         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
27338 2011-09-23  Bruno Haible  <bruno@clisp.org>
27340         pipe2: Fix compilation on pre-C99 compilers.
27341         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
27343 2011-09-23  Bruno Haible  <bruno@clisp.org>
27345         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
27346         * lib/msvc-nothrow.h: New file.
27347         * lib/msvc-nothrow.c: New file.
27348         * m4/msvc-nothrow.m4: New file.
27349         * modules/msvc-nothrow: New file.
27350         * lib/dup2.c: Include msvc-nothrow.h.
27351         (rpl_dup2): No need to protect _get_osfhandle call here.
27352         * lib/accept4.c: Include msvc-nothrow.h.
27353         * lib/error.c: Likewise.
27354         * lib/fcntl.c: Likewise.
27355         * lib/lseek.c: Likewise.
27356         * lib/nonblocking.c: Likewise.
27357         * lib/poll.c: Likewise.
27358         * lib/read.c: Likewise.
27359         * lib/select.c: Likewise.
27360         * lib/sockets.h: Likewise.
27361         * lib/sockets.c: Likewise.
27362         * lib/stdio-read.c: Likewise.
27363         * lib/stdio-write.c: Likewise.
27364         * lib/write.c: Likewise.
27365         * lib/w32sock.h: Likewise.
27366         * lib/w32spawn.h: Likewise.
27367         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
27368         * lib/fsync.c: Likewise.
27369         * lib/isapipe.c: Likewise.
27370         * modules/dup2 (Depends-on): Add msvc-nothrow.
27371         * modules/accept4 (Depends-on): Likewise.
27372         * modules/error (Depends-on): Likewise.
27373         * modules/fcntl (Depends-on): Likewise.
27374         * modules/lseek (Depends-on): Likewise.
27375         * modules/nonblocking (Depends-on): Likewise.
27376         * modules/poll (Depends-on): Likewise.
27377         * modules/read (Depends-on): Likewise.
27378         * modules/select (Depends-on): Likewise.
27379         * modules/sockets (Depends-on): Likewise.
27380         * modules/sigpipe (Depends-on): Likewise.
27381         * modules/write (Depends-on): Likewise.
27382         * modules/accept (Depends-on): Likewise.
27383         * modules/bind (Depends-on): Likewise.
27384         * modules/connect (Depends-on): Likewise.
27385         * modules/gethostname (Depends-on): Likewise.
27386         * modules/getpeername (Depends-on): Likewise.
27387         * modules/getsockname (Depends-on): Likewise.
27388         * modules/getsockopt (Depends-on): Likewise.
27389         * modules/ioctl (Depends-on): Likewise.
27390         * modules/listen (Depends-on): Likewise.
27391         * modules/recv (Depends-on): Likewise.
27392         * modules/recvfrom (Depends-on): Likewise.
27393         * modules/send (Depends-on): Likewise.
27394         * modules/sendto (Depends-on): Likewise.
27395         * modules/setsockopt (Depends-on): Likewise.
27396         * modules/shutdown (Depends-on): Likewise.
27397         * modules/socket (Depends-on): Likewise.
27398         * modules/execute (Depends-on): Likewise.
27399         * modules/spawn-pipe (Depends-on): Likewise.
27400         * modules/flock (Depends-on): Likewise.
27401         * modules/fsync (Depends-on): Likewise.
27402         * modules/isapipe (Depends-on): Likewise.
27403         * tests/test-cloexec.c: Include msvc-nothrow.h.
27404         * tests/test-dup-safer.c: Likewise.
27405         * tests/test-dup2.c: Likewise.
27406         * tests/test-dup3.c: Likewise.
27407         * tests/test-fcntl.c: Likewise.
27408         * tests/test-pipe.c: Likewise.
27409         * tests/test-pipe2.c: Likewise.
27410         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
27411         * modules/unistd-safer-tests (Depends-on): Likewise.
27412         * modules/dup2-tests (Depends-on): Likewise.
27413         * modules/dup3-tests (Depends-on): Likewise.
27414         * modules/fcntl-tests (Depends-on): Likewise.
27415         * modules/pipe-posix-tests (Depends-on): Likewise.
27416         * modules/pipe2-tests (Depends-on): Likewise.
27418 2011-09-23  Bruno Haible  <bruno@clisp.org>
27420         dup2: Make code more maintainable.
27421         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
27422         (rpl_dup2): Use it.
27423         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
27424         * modules/dup2 (configure.ac): Invoke it.
27425         Reported by Paul Eggert.
27427 2011-09-23  Bruno Haible  <bruno@clisp.org>
27429         msvc-inval: Fix compilation error.
27430         * lib/msvc-inval.h: Include <excpt.h>.
27432 2011-09-23  Bruno Haible  <bruno@clisp.org>
27434         mkdir: Tweak for MSVC 9.
27435         * lib/sys_stat.in.h: Update comments.
27436         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
27438         Tests for module 'chdir'.
27439         * modules/chdir-tests: New file.
27440         * tests/test-chdir.c: New file.
27442         New module 'chdir'.
27443         * modules/chdir: New file.
27444         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
27445         (chdir): New declaration.
27446         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
27447         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
27448         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
27449         * tests/test-unistd-c++.cc: Check signature of chdir.
27450         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
27451         * modules/chdir-long (Depends-on): Add chdir.
27452         * modules/fchdir (Depends-on): Likewise.
27453         * modules/rename (Depends-on): Likewise.
27454         * modules/savewd (Depends-on): Likewise.
27456         rmdir: Support for mingw, MSVC 9.
27457         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
27458         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
27460         getcwd: Tweak for MSVC 9.
27461         * lib/unistd.in.h: Update comments.
27462         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
27464 2011-09-22  Bruno Haible  <bruno@clisp.org>
27466         strerror_r-posix: Avoid a link error on MSVC.
27467         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
27468         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
27470 2011-09-22  Bruno Haible  <bruno@clisp.org>
27472         select: Avoid link errors on MSVC.
27473         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
27474         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
27475         * modules/pselect (Link): Likewise.
27476         * NEWS: Mention the change.
27477         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
27478         test-select-stdin against $(LIB_SELECT).
27479         * modules/pselect-tests (Makefile.am): Link test-pselect against
27480         $(LIB_SELECT).
27482 2011-09-22  Bruno Haible  <bruno@clisp.org>
27484         select: Avoid compilation error on MSVC.
27485         * lib/select.c: Don't include <stdbool.h>.
27487 2011-09-21  Bruno Haible  <bruno@clisp.org>
27489         Consolidate all uses of PATH_MAX in *.m4 files.
27490         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
27491         macros.
27492         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
27493         and gl_PATHMAX_SNIPPET.
27494         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
27495         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
27496         * modules/chdir-long (Files): Add m4/pathmax.m4.
27497         * modules/getcwd (Files): Likewise.
27499 2011-09-21  Bruno Haible  <bruno@clisp.org>
27501         ftruncate: Un-deprecate, concentrate on Win32 support.
27502         * modules/ftruncate (Status, Notice): Remove sections.
27503         (Depends-on): Add largefile.
27504         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
27505         non-mingw platforms.
27506         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
27507         include <io.h>.
27508         * modules/perror-tests (Depends-on): Add ftruncate.
27509         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
27510         'ftruncate' module.
27512 2011-09-21  Bruno Haible  <bruno@clisp.org>
27514         Add dependencies to new dirent related modules.
27515         * modules/opendir (Depends-on): Add closedir.
27516         * modules/getcwd (Depends-on): Add opendir, closedir.
27517         * modules/dirent-safer-tests (Depends-on): Likewise.
27518         * modules/fdopendir-tests (Depends-on): Likewise.
27519         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
27520         * modules/renameat-tests (Depends-on): Likewise.
27522 2011-09-21  Bruno Haible  <bruno@clisp.org>
27524         opendir: Avoid compilation error on mingw.
27525         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
27526         * modules/opendir (Depends-on): Add unistd.
27528 2011-09-21  Bruno Haible  <bruno@clisp.org>
27530         ftruncate tests: Avoid a test failure on mingw.
27531         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
27533 2011-09-21  Bruno Haible  <bruno@clisp.org>
27535         select tests: Avoid test failures on OSF/1 5.1 and mingw.
27536         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
27537         native Windows.
27539 2011-09-21  Bruno Haible  <bruno@clisp.org>
27541         New module 'fdopen'.
27542         * lib/stdio.in.h (fdopen): New declaration.
27543         * lib/fdopen.c: New file.
27544         * m4/fdopen.m4: New file.
27545         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
27546         REPLACE_FDOPEN.
27547         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
27548         REPLACE_FDOPEN.
27549         * modules/fdopen: New file.
27550         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
27551         * tests/test-stdio-c++.cc: Check signature of fdopen.
27552         * doc/posix-functions/fdopen.texi: Mention the new module.
27554 2011-09-21  Bruno Haible  <bruno@clisp.org>
27556         unlockpt tests: Avoid test failure on NetBSD 5.1.
27557         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
27558         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
27560 2011-09-21  Bruno Haible  <bruno@clisp.org>
27562         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
27563         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
27564         * tests/test-getlogin_r.c (main): Likewise.
27566 2011-09-20  Bruno Haible  <bruno@clisp.org>
27568         time tests: Don't require pid_t.
27569         * doc/posix-headers/time.texi: Revert last change.
27570         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
27571         * tests/test-time.c: Comment out the check for pid_t.
27573 2011-09-20  Bruno Haible  <bruno@clisp.org>
27575         fsync tests: Avoid a test failure on mingw.
27576         * tests/test-fsync.c (main): Allow a failure with EIO.
27578 2011-09-20  Bruno Haible  <bruno@clisp.org>
27580         euidaccess: Update comments.
27581         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
27583 2011-09-20  Bruno Haible  <bruno@clisp.org>
27585         Ensure EBADF returns for socket functions on mingw.
27586         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
27587         descriptor is invalid.
27588         * lib/bind.c (rpl_bind): Likewise.
27589         * lib/connect.c (rpl_connect): Likewise.
27590         * lib/getpeername.c (rpl_getpeername): Likewise.
27591         * lib/getsockname.c (rpl_getsockname): Likewise.
27592         * lib/getsockopt.c (rpl_getsockopt): Likewise.
27593         * lib/listen.c (rpl_listen): Likewise.
27594         * lib/recv.c (rpl_recv): Likewise.
27595         * lib/recvfrom.c (rpl_recvfrom): Likewise.
27596         * lib/send.c (rpl_send): Likewise.
27597         * lib/sendto.c (rpl_sendto): Likewise.
27598         * lib/setsockopt.c (rpl_setsockopt): Likewise.
27599         * lib/shutdown.c (rpl_shutdown): Likewise.
27601 2011-09-20  Bruno Haible  <bruno@clisp.org>
27603         select tests: EBADF tests.
27604         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
27605         test_bad_fd): New functions.
27606         (test_function): Invoke also test_bad_fd.
27608 2011-09-20  Bruno Haible  <bruno@clisp.org>
27610         Tests for module 'posix_spawn_file_actions_addopen.
27611         * modules/posix_spawn_file_actions_addopen-tests: New file.
27612         * tests/test-posix_spawn_file_actions_addopen.c: New file.
27614         Tests for module 'posix_spawn_file_actions_adddup2'.
27615         * modules/posix_spawn_file_actions_adddup2-tests: New file.
27616         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
27618         Tests for module 'posix_spawn_file_actions_addclose'.
27619         * modules/posix_spawn_file_actions_addclose-tests: New file.
27620         * tests/test-posix_spawn_file_actions_addclose.c: New file.
27622 2011-09-20  Bruno Haible  <bruno@clisp.org>
27624         Tests for module 'unlockpt'.
27625         * modules/unlockpt-tests: New file.
27626         * tests/test-unlockpt.c: New file.
27627         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
27629         Tests for module 'grantpt'.
27630         * modules/grantpt-tests: New file.
27631         * tests/test-grantpt.c: New file.
27632         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
27634 2011-09-20  Bruno Haible  <bruno@clisp.org>
27636         freopen tests: EBADF tests.
27637         * tests/test-freopen.c: Include errno.h, unistd.h.
27638         (main): Add tests for EBADF, commented out for the moment.
27640         fclose tests: EBADF tests.
27641         * tests/test-fclose.c (main): Add tests for EBADF.
27643         fflush tests: EBADF tests.
27644         * tests/test-fflush.c: Include errno.h, macros.h.
27645         (main): Add tests for EBADF.
27647         ftello tests: EBADF tests.
27648         * tests/test-ftello4.sh: New file.
27649         * tests/test-ftello4.c: New file.
27650         * modules/ftello-tests (Files): Add them.
27651         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
27653         fseeko tests: EBADF tests.
27654         * tests/test-fseeko4.sh: New file.
27655         * tests/test-fseeko4.c: New file.
27656         * modules/fseeko-tests (Files): Add them.
27657         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
27659         Tests for function fputc().
27660         * modules/fputc-tests: New file.
27661         * tests/test-fputc.c: New file.
27662         * modules/stdio-tests (Depends-on): Add fputc-tests.
27664         Tests for function fgetc().
27665         * modules/fgetc-tests: New file.
27666         * tests/test-fgetc.c: New file.
27667         * modules/stdio-tests (Depends-on): Add fgetc-tests.
27669         Tests for function fdopen().
27670         * modules/fdopen-tests: New file.
27671         * tests/test-fdopen.c: New file.
27672         * modules/stdio-tests (Depends-on): Add fdopen-tests.
27674         Tests for module 'vdprintf'.
27675         * modules/vdprintf-tests: New file.
27676         * tests/test-vdprintf.c: New file.
27678         Tests for module 'dprintf'.
27679         * modules/dprintf-tests: New file.
27680         * tests/test-dprintf.c: New file.
27682 2011-09-20  Bruno Haible  <bruno@clisp.org>
27684         Tests for module 'ioctl'.
27685         * modules/ioctl-tests: New file.
27686         * tests/test-ioctl.c: New file.
27688 2011-09-20  Bruno Haible  <bruno@clisp.org>
27690         fcntl tests: EBADF tests.
27691         * tests/test-fcntl.c (main): Add more tests for EBADF.
27693 2011-09-20  Bruno Haible  <bruno@clisp.org>
27695         utimensat tests: EBADF tests.
27696         * tests/test-utimensat.c (main): Add tests for EBADF.
27698         renameat tests: EBADF tests.
27699         * tests/test-renameat.c (main): Add tests for EBADF.
27701         mkfifoat tests: EBADF tests.
27702         * tests/test-mkfifoat.c (main): Add tests for EBADF.
27704         readlinkat tests: EBADF tests.
27705         * tests/test-readlinkat.c (main): Add tests for EBADF.
27707         symlinkat tests: EBADF tests.
27708         * tests/test-symlinkat.c (main): Add tests for EBADF.
27710         linkat tests: EBADF tests.
27711         * tests/test-linkat.c (main): Add tests for EBADF.
27713         Tests for module 'faccessat'.
27714         * modules/faccessat-tests: New file.
27715         * tests/test-faccessat.c: New file.
27717         fdopendir tests: EBADF tests.
27718         * tests/test-fdopendir.c (main): Add more tests for EBADF.
27720         openat tests: EBADF tests.
27721         * tests/test-fchownat.c (main): Add tests for EBADF.
27722         * tests/test-fstatat.c (main): Likewise.
27723         * tests/test-mkdirat.c (main): Likewise.
27724         * tests/test-openat.c (main): Likewise.
27725         * tests/test-unlinkat.c (main): Likewise.
27726         * tests/test-fchmodat.c: New file.
27727         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
27728         (Makefile.am): Also run 'test-fchmodat'.
27730 2011-09-20  Bruno Haible  <bruno@clisp.org>
27732         utimens, futimens, fdutimensat tests: EBADF tests.
27733         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
27735         Tests for function fstat().
27736         * modules/fstat-tests: New file.
27737         * tests/test-fstat.c: New file.
27738         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
27740 2011-09-20  Bruno Haible  <bruno@clisp.org>
27742         test-ttyname_r tests: EBADF tests.
27743         * tests/test-ttyname_r.c (main): Add tests for EBADF.
27745         Tests for module 'isatty'.
27746         * modules/isatty-tests: New file.
27747         * tests/test-isatty.c: New file.
27749         Tests for module 'write'.
27750         * modules/write-tests: New file.
27751         * tests/test-write.c: New file.
27753         Tests for module 'read'.
27754         * modules/read-tests: New file.
27755         * tests/test-read.c: New file.
27757         pwrite tests: EBADF tests.
27758         * tests/test-pwrite.c (main): Add tests for EBADF.
27760         pread tests: EBADF tests.
27761         * tests/test-pread.c (main): Add tests for EBADF.
27763         lseek tests: EBADF tests.
27764         * tests/test-lseek.c (main): Add more tests for EBADF.
27766         Tests for module 'ftruncate'.
27767         * modules/ftruncate-tests: New file.
27768         * tests/test-ftruncate.sh: New file.
27769         * tests/test-ftruncate.c: New file.
27771         fsync tests: EBADF tests.
27772         * tests/test-fsync.c (main): Add more tests for EBADF.
27774         fdatasync tests: EBADF tests.
27775         * tests/test-fdatasync.c (main): Add more tests for EBADF.
27777         Tests for module 'fchown'.
27778         * modules/fchown-tests: New file.
27779         * tests/test-fchown.c: New file.
27781         Tests for module 'fchmod'.
27782         * modules/fchmod-tests: New file.
27783         * tests/test-fchmod.c: New file.
27785         fchdir tests: EBADF tests.
27786         * tests/test-fchdir.c (main): Add more tests for EBADF.
27788         dup2 tests: EBADF tests.
27789         * tests/test-dup2.c (main): Add more tests for EBADF.
27791         Tests for module 'dup'.
27792         * modules/dup-tests: New file.
27793         * tests/test-dup.c: New file.
27795         Tests for module 'close'.
27796         * modules/close-tests: New file.
27797         * tests/test-close.c: New file.
27799 2011-09-20  Bruno Haible  <bruno@clisp.org>
27801         Tests for module 'shutdown'.
27802         * modules/shutdown-tests: New file.
27803         * tests/test-shutdown.c: New file.
27805         Tests for module 'setsockopt'.
27806         * modules/setsockopt-tests: New file.
27807         * tests/test-setsockopt.c: New file.
27809         Tests for module 'sendto'.
27810         * modules/sendto-tests: New file.
27811         * tests/test-sendto.c: New file.
27813         Tests for module 'send'.
27814         * modules/send-tests: New file.
27815         * tests/test-send.c: New file.
27817         Tests for module 'recvfrom'.
27818         * modules/recvfrom-tests: New file.
27819         * tests/test-recvfrom.c: New file.
27821         Tests for module 'recv'.
27822         * modules/recv-tests: New file.
27823         * tests/test-recv.c: New file.
27825         Tests for module 'listen'.
27826         * modules/listen-tests: New file.
27827         * tests/test-listen.c: New file.
27829         Tests for module 'getsockopt'.
27830         * modules/getsockopt-tests: New file.
27831         * tests/test-getsockopt.c: New file.
27833         Tests for module 'getsockname'.
27834         * modules/getsockname-tests: New file.
27835         * tests/test-getsockname.c: New file.
27837         Tests for module 'getpeername'.
27838         * modules/getpeername-tests: New file.
27839         * tests/test-getpeername.c: New file.
27841         Tests for module 'connect'.
27842         * modules/connect-tests: New file.
27843         * tests/test-connect.c: New file.
27845         Tests for module 'bind'.
27846         * modules/bind-tests: New file.
27847         * tests/test-bind.c: New file.
27849         accept4 tests: Fix for native Windows.
27850         * tests/test-accept4.c: Include sockets.h.
27851         (main): Invoke gl_sockets_startup.
27852         * modules/accept4-tests (Depends-on): Add sockets.
27854         accept tests: Fix for native Windows.
27855         * tests/test-accept.c: Include sockets.h.
27856         (main): Invoke gl_sockets_startup.
27857         * modules/accept-tests (Depends-on): Add sockets.
27859 2011-09-19  Bruno Haible  <bruno@clisp.org>
27861         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
27862         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
27863         do...while(0).
27864         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
27865         Suggested by Paul Eggert.
27867 2011-09-19  Bruno Haible  <bruno@clisp.org>
27869         sched: Ensure pid_t is defined.
27870         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
27871         not define pid_t.
27872         * lib/sched.in.h: Include <sys/types.h>.
27873         * doc/posix-headers/sched.texi: Mention the pid_t problem.
27874         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27876 2011-09-19  Bruno Haible  <bruno@clisp.org>
27878         msvc-inval: Ensure the entire expansion is a single statement.
27879         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
27880         of braces.
27882 2011-09-19  Jim Meyering  <meyering@redhat.com>
27884         tests: use printf, not echo in init.sh's warn_ function
27885         * tests/init.sh (warn_): Use printf, not echo.  The latter would
27886         misbehave when given strings containing a backslash or starting
27887         with e.g., -n.  James Youngman suggested setting IFS.
27889 2011-09-19  Eric Blake  <eblake@redhat.com>
27891         futimens: enhance test
27892         * tests/test-futimens.h (test_futimens): Also check for EBADF on
27893         closed non-negative fd.
27895         date: accept 'hence' as opposite of 'ago'
27896         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
27897         * tests/test-parse-datetime.c (main): Enhance test.
27898         Suggested by Jesse Wilson.
27900 2011-09-19  Jim Meyering  <meyering@redhat.com>
27902         getcwd: don't fail in a deep directory on a system without openat
27903         Before this change, getcwd would fail when called from a directory
27904         of depth PATH_MAX / 3 or greater.  That was due to the fact that
27905         the non-openat implementation used "..", "../..", "../../..", etc.
27906         to access ancestor directories.  With too many, that string would
27907         be longer than PATH_MAX.
27908         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
27909         using gnulib's openat replacement.
27910         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
27911         we're using the replacement function.
27913 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
27915         maint.mk: avoid warnings from perl about missing files
27916         * top/maint.mk (def_sym_regex): Ignore files listed in
27917         $(gl_other_headers_) that do not exist, say because a project
27918         does not use a corresponding module.
27920 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
27922         stat: use pathmax.h only if needed
27923         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
27924         This is better for Emacs, which does not have a mingw port and
27925         therefore can avoid the pathmax module.
27927         utimens: remove dependency on dup2
27928         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
27929         to work around the Linux kernel bug.
27930         * modules/utimens (Depends-on): Remove dup2.
27932 2011-09-18  Bruno Haible  <bruno@clisp.org>
27934         inet_ntop, inet_pton: Look for it also in libresolv.
27935         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
27936         libnsl, search for it in libresolv.
27937         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
27938         Needed on Solaris 7.
27940 2011-09-18  Bruno Haible  <bruno@clisp.org>
27942         accept, accept4 tests: Avoid link error on Solaris.
27943         * modules/accept-tests (Makefile.am): Link test-accept against
27944         $(LIBSOCKET).
27945         * modules/accept4-tests (Makefile.am): Link test-accept4 against
27946         $(LIBSOCKET).
27948         accept4: Avoid link error on Solaris.
27949         * modules/accept4 (Link): New section.
27951         socket functions: Avoid link errors on Solaris.
27952         * modules/accept (Depends-on): Add socketlib.
27953         (Link): New section.
27954         * modules/bind (Depends-on): Add socketlib.
27955         (Link): New section.
27956         * modules/connect (Depends-on): Add socketlib.
27957         (Link): New section.
27958         * modules/getpeername (Depends-on): Add socketlib.
27959         (Link): New section.
27960         * modules/getsockname (Depends-on): Add socketlib.
27961         (Link): New section.
27962         * modules/getsockopt (Depends-on): Add socketlib.
27963         (Link): New section.
27964         * modules/listen (Depends-on): Add socketlib.
27965         (Link): New section.
27966         * modules/recv (Depends-on): Add socketlib.
27967         (Link): New section.
27968         * modules/recvfrom (Depends-on): Add socketlib.
27969         (Link): New section.
27970         * modules/send (Depends-on): Add socketlib.
27971         (Link): New section.
27972         * modules/sendto (Depends-on): Add socketlib.
27973         (Link): New section.
27974         * modules/setsockopt (Depends-on): Add socketlib.
27975         (Link): New section.
27976         * modules/shutdown (Depends-on): Add socketlib.
27977         (Link): New section.
27978         * modules/socket (Depends-on): Add socketlib.
27979         (Link): New section.
27981 2011-09-18  Bruno Haible  <bruno@clisp.org>
27983         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
27984         * tests/test-ptsname.c (main): Terminate the test if it takes longer
27985         than 5 seconds.
27986         * modules/ptsname-tests (configure.ac): Test for alarm.
27988 2011-09-18  Bruno Haible  <bruno@clisp.org>
27990         posix_spawn_file_actions_add*: Fix module dependencies.
27991         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
27992         posix_spawn_file_actions_init.
27993         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
27994         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
27996 2011-09-18  Bruno Haible  <bruno@clisp.org>
27998         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
27999         * tests/test-rename.h (test_rename): Allow error code EEXIST.
28000         * tests/test-renameat.c (main): Likewise.
28002 2011-09-18  Bruno Haible  <bruno@clisp.org>
28004         Tests for module 'accept4'.
28005         * modules/accept4-tests: New file.
28006         * tests/test-accept4.c: New file.
28008 2011-09-18  Bruno Haible  <bruno@clisp.org>
28010         Tests for module 'accept'.
28011         * modules/accept-tests: New file.
28012         * tests/test-accept.c: New file.
28014 2011-09-18  Bruno Haible  <bruno@clisp.org>
28016         dup2: Support for MSVC.
28017         * lib/dup2.c: Include msvc-inval.h.
28018         (rpl_dup2): Handle invalid parameter notifications during dup2 and
28019         _get_osfhandle calls.
28020         * modules/dup2 (Depends-on): Add msvc-inval.
28021         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
28023         New module 'msvc-inval'.
28024         * lib/msvc-inval.h: New file.
28025         * lib/msvc-inval.c: New file.
28026         * m4/msvc-inval.m4: New file.
28027         * modules/msvc-inval: New file.
28029 2011-09-17  Bruno Haible  <bruno@clisp.org>
28031         Tests for module 'pclose'.
28032         * modules/pclose-tests: New file.
28034         New module 'pclose'.
28035         * lib/stdio.in.h (pclose): New declaration.
28036         * lib/pclose.c: New file.
28037         * m4/pclose.m4: New file.
28038         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
28039         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
28040         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
28041         * modules/pclose: New file.
28042         * modules/popen-tests (Depends-on): Add pclose.
28043         * modules/popen-safer-tests (Depends-on): Likewise.
28044         * doc/posix-functions/pclose.texi: Mention the new module.
28046 2011-09-17  Bruno Haible  <bruno@clisp.org>
28048         popen: Support for MSVC.
28049         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
28050         * lib/popen.c (popen): Provide alternate definition for native Windows.
28051         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
28052         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
28053         * modules/popen (Depends-on, configure.ac): Update condition.
28054         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
28055         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
28056         fixed.
28058 2011-09-17  Bruno Haible  <bruno@clisp.org>
28060         isnanl, isnand, isnanf: Work around MSVC bug.
28061         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
28063 2011-09-17  Bruno Haible  <bruno@clisp.org>
28065         sys_socket tests: Fix recent mistake.
28066         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
28068 2011-09-17  Bruno Haible  <bruno@clisp.org>
28070         putenv: Support for MSVC.
28071         * modules/putenv (Depends-on): Add environ.
28072         * lib/putenv.c (environ): Disable declaration.
28073         * lib/unistd.in.h: Update comment.
28075 2011-09-17  Bruno Haible  <bruno@clisp.org>
28077         math: Avoid macro redefinition warnings on MSVC.
28078         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
28079         Undefine before redefining.
28081 2011-09-17  Bruno Haible  <bruno@clisp.org>
28083         doc: Mention functions which are declared as macros.
28084         * doc/posix-functions/*[fl].texi: Mention that some functions are
28085         defined as macros with arguments only.
28087 2011-09-17  Bruno Haible  <bruno@clisp.org>
28089         Add dependencies to new dirent related modules.
28090         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
28091         * modules/fts (Depends-on): Likewise.
28092         * modules/glob (Depends-on): Likewise.
28093         * modules/savedir (Depends-on): Likewise.
28094         * modules/scandir (Depends-on): Likewise.
28095         * modules/dirent-safer (Depends-on): Add opendir, closedir.
28096         * modules/fdopendir (Depends-on): Add opendir.
28098 2011-09-17  Bruno Haible  <bruno@clisp.org>
28100         inet_pton: Support for MSVC on Windows Vista or newer.
28101         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
28102         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
28103         HAVE_DECL_INET_PTON is defined.
28104         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
28105         On platforms with <winsock2.h>, test whether inet_pton is declared in
28106         <ws2tcpip.h>. If so, arrange to replace it.
28107         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
28108         REPLACE_INET_PTON.
28109         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
28110         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
28111         (Depends-on, configure.ac): Update condition.
28112         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
28114 2011-09-17  Bruno Haible  <bruno@clisp.org>
28116         inet_ntop: Support for MSVC on Windows Vista or newer.
28117         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
28118         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
28119         HAVE_DECL_INET_NTOP is defined.
28120         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
28121         On platforms with <winsock2.h>, test whether inet_ntop is declared in
28122         <ws2tcpip.h>. If so, arrange to replace it.
28123         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
28124         REPLACE_INET_NTOP.
28125         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
28126         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
28127         (Depends-on, configure.ac): Update condition.
28128         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
28130 2011-09-16  Eric Blake  <eblake@redhat.com>
28132         test-fsync: yet another enhancement
28133         * tests/test-fsync.c (main): Also test behavior on read-only text
28134         file.
28136 2011-09-16  Bruno Haible  <bruno@clisp.org>
28138         Enhance fsync, fdatasync tests.
28139         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
28140         * tests/test-fdatasync.c (main): Likewise.
28142 2011-09-16  Bruno Haible  <bruno@clisp.org>
28144         Support for MSVC compiler: Ensure mode_t gets defined.
28145         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
28146         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28147         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28148         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
28149         * tests/test-fcntl-h.c: Check that mode_t is defined.
28150         * tests/test-sys_stat.c: Likewise.
28151         * tests/test-sys_types.c: Likewise.
28152         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
28153         * doc/posix-headers/sys_stat.texi: Likewise.
28154         * doc/posix-headers/sys_types.texi: Likewise.
28156 2011-09-16  Bruno Haible  <bruno@clisp.org>
28158         sys_stat: Support for MSVC.
28159         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
28160         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
28161         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
28162         MSVC.
28164 2011-09-16  Bruno Haible  <bruno@clisp.org>
28166         Support for MSVC compiler: Ensure off_t gets defined.
28167         * lib/unistd.in.h: Include <sys/types.h>.
28168         * tests/test-fcntl-h.c: Check that off_t is defined.
28169         * tests/test-sys_stat.c: Likewise.
28170         * tests/test-sys_types.c: Likewise.
28172 2011-09-16  Eric Blake  <eblake@redhat.com>
28174         fdatasync: port to Solaris
28175         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
28176         * modules/fdatasync (Link): Document it.
28177         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
28179         fdatasync: port to MacOS X 10.7
28180         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
28181         declared.
28182         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
28183         * modules/unistd (Makefile.am): Substitute it.
28184         * lib/unistd.in.h (fdatasync): Declare on MacOS.
28185         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
28187         fdatasync: minor improvements
28188         * modules/fdatasync (Depends-on): Add condition for fsync.
28189         * lib/fdatasync.c (fdatasync): Add comment.
28190         * tests/test-unistd-c++.cc: Test fdatasync.
28192         unistd: update refs to newer POSIX
28193         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
28194         Suggested by Bruno Haible.
28196         fdatasync: new module
28197         * modules/fsync (Description): Document difference to fdatasync.
28198         * modules/fdatasync: New module.
28199         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
28200         * lib/fdatasync.c (fdatasync): Likewise.
28201         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
28202         defaults.
28203         * modules/unistd (Makefile.am): Set witnesses.
28204         * lib/unistd.in.h (fdatasync): Declare.
28205         * MODULES.html.sh: Document it.
28206         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
28207         * modules/fdatasync-tests: New test.
28208         * tests/test-fdatasync.c: Likewise.
28210 2011-09-16  Eric Blake  <eblake@redhat.com>
28212         test-fsync: enhance tests
28213         * modules/fsync-tests (Depends-on): Add errno, for mingw.
28214         * tests/test-fsync.c (main): Enhance test.
28216 2011-09-15  Bruno Haible  <bruno@clisp.org>
28218         Support for MSVC compiler: Ensure ssize_t gets defined.
28219         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
28220         * doc/posix-headers/stdio.texi: Likewise.
28221         * modules/stdio (Depends-on): Add ssize_t.
28222         * modules/sys_socket (Depends-on): Likewise.
28223         * modules/sys_types (Depends-on): Likewise.
28224         * modules/sys_uio (Depends-on): Likewise.
28225         * modules/unistd (Depends-on): Likewise.
28226         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
28227         * tests/test-sys_types.c: Check that ssize_t is defined.
28229 2011-09-14  Bruno Haible  <bruno@clisp.org>
28231         Avoid using #, the m4 comment starter character, near brackets.
28232         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
28233         delimiter character in sed expressions.
28234         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
28235         Suggested by Eric Blake.
28237         Properly quote AC_CHECK_DECLS' 4th argument.
28238         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
28239         argument.
28240         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
28241         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
28242         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
28243         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
28244         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
28245         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
28246         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
28247         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
28248         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
28249         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
28250         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
28251         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
28252         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
28253         * m4/isinf.m4 (gl_ISINF): Likewise.
28254         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
28255         * m4/readutmp.m4 (gl_READUTMP): Likewise.
28256         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28257         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
28258         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
28259         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
28260         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
28261         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
28262         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
28263         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
28264         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
28265         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28266         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
28267         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28268         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28269         Reported by Eric Blake.
28271         Properly quote AC_CHECK_DECL's 4th argument.
28272         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
28273         argument.
28274         * m4/argp.m4 (gl_ARGP): Likewise.
28275         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
28276         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28277         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
28278         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
28279         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
28280         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
28281         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
28282         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
28283         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28284         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
28285         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
28286         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
28287         Reported by Eric Blake.
28289 2011-09-14  Eric Blake  <eblake@redhat.com>
28291         opendir: avoid compile warning
28292         * lib/opendir.c (includes): Always include errno.h.
28293         Reported by Tatsuro MATSUOKA.
28295 2011-09-14  Jim Meyering  <meyering@redhat.com>
28297         maint.mk: sc_tight_scope: propagate failure from sub-make
28298         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
28299         Reported by Martin von Gagern.
28301 2011-09-13  Bruno Haible  <bruno@clisp.org>
28303         tempname: Support for MSVC.
28304         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
28305         MSVC.
28306         * modules/tempname (Depends-on): Add fcntl-h.
28308 2011-09-13  Bruno Haible  <bruno@clisp.org>
28310         sys_time: Support for MSVC.
28311         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
28312         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
28313         include <winsock2.h>.
28314         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
28315         function declarations that collide with POSIX.
28316         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
28317         (Makefile.am): Substitute HAVE_WINSOCK2_H.
28319 2011-09-13  Bruno Haible  <bruno@clisp.org>
28321         stat: Support for MSVC.
28322         * lib/stat.c: Include pathmax.h.
28323         * modules/stat (Depends-on): Add pathmax.
28325         pathmax: Support for native Windows.
28326         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
28328 2011-09-12  Bruno Haible  <bruno@clisp.org>
28330         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
28331         * lib/dirent.in.h (struct dirent): New type.
28332         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
28333         DT_WHT): New macros.
28334         (DIR): New type.
28335         (opendir, closedir): Declare only if the module 'opendir' is enabled.
28336         (readdir, rewinddir): New declarations.
28337         * lib/dirent-private.h: New file.
28338         * lib/opendir.c: New file.
28339         * lib/readdir.c: New file.
28340         * lib/rewinddir.c: New file.
28341         * lib/closedir.c: New file.
28342         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
28343         * m4/opendir.m4: New file.
28344         * m4/readdir.m4: New file.
28345         * m4/rewinddir.m4: New file.
28346         * m4/closedir.m4: New file.
28347         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
28348         REPLACE_CLOSEDIR here.
28349         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
28350         readdir, rewinddir are declared.
28351         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
28352         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
28353         HAVE_REWINDDIR, HAVE_CLOSEDIR.
28354         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
28355         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
28356         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
28357         * modules/opendir: New file.
28358         * modules/readdir: New file.
28359         * modules/rewinddir: New file.
28360         * modules/closedir: New file.
28361         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
28362         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
28363         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
28364         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
28365         * NEWS: Mention the 'fchdir' change.
28367 2011-09-11  Bruno Haible  <bruno@clisp.org>
28369         asm-underscore.m4: Support for MSVC.
28370         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
28371         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
28373 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
28375         Doc about crypt functions.
28376         * doc/posix-functions/crypt.texi: Expand range of glibc versions
28377         needing for _GNU_SOURCE to get crypt.
28378         * doc/posix-functions/encrypt.texi: Likewise.
28379         * doc/posix-functions/setkey.texi: Likewise.
28381 2011-09-11  Bruno Haible  <bruno@clisp.org>
28383         doc: Update regarding MSVC 9.
28384         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
28385         tested".
28386         * doc/posix-functions/*.texi: Update with info about MSVC 9.
28387         * doc/posix-headers/*.texi: Likewise.
28388         * doc/pastposix-functions/*.texi: Likewise.
28389         * doc/glibc-functions/*.texi: Likewise.
28390         * doc/glibc-headers/*.texi: Likewise.
28392 2011-09-11  Bruno Haible  <bruno@clisp.org>
28394         unistd et al.: Don't assume <unistd.h> exists.
28395         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
28396         does not exist.
28397         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
28398         exist. But include <stdlib.h>.
28399         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
28400         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
28401         symlink() does not exist.
28402         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
28403         include <io.h> instead.
28404         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
28405         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
28406         include <direct.h> instead.
28407         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
28408         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
28409         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
28410         <io.h> instead.
28411         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
28412         correctly if the system does not have hard links.
28413         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
28414         <direct.h> instead.
28415         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
28416         it when looking for function declarations.
28417         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
28418         <direct.h> and <io.h> instead.
28419         * doc/posix-headers/unistd.texi: More details about MSVC problem.
28421 2011-09-11  Bruno Haible  <bruno@clisp.org>
28423         strcase: Support for MSVC.
28424         * modules/strcase (Status, Notice): Remove obsoletion mark.
28425         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
28426         * doc/posix-functions/strncasecmp.texi: Likewise.
28428         strings: Don't assume <strings.h> exists.
28429         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
28430         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
28431         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
28432         * doc/posix-headers/strings.texi: Mention the MSVC problem.
28434 2011-09-11  Bruno Haible  <bruno@clisp.org>
28436         dirent: Don't assume <dirent.h> exists.
28437         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
28438         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
28439         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
28440         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
28442 2011-09-11  Bruno Haible  <bruno@clisp.org>
28444         Fix wint_t on MSVC.
28445         * lib/wchar.in.h (wint_t): On MSVC, override it.
28446         * lib/wctype.in.h (wint_t): Likewise.
28447         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
28448         MSVC.
28449         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
28450         * doc/posix-headers/wctype.texi: Likewise.
28452 2011-09-11  Bruno Haible  <bruno@clisp.org>
28454         sys_types: Fix typo.
28455         * lib/sys_types.in.h: Fix typo in comment.
28456         Reported by Paul Eggert.
28458         Support for MSVC compiler: Ensure size_t gets defined.
28459         * modules/strings (Depends-on): Add 'sys_types'.
28460         * modules/sys_uio (Depends-on): Likewise.
28461         * lib/sys_uio.in.h: Update comment.
28463         C++ tests for module 'sys_types'.
28464         * modules/sys_types-c++-tests: New file.
28465         * tests/test-sys_types-c++.cc: New file.
28467         Tests for module 'sys_types'.
28468         * modules/sys_types-tests: New file.
28469         * tests/test-sys_types.c: New file.
28471         New module 'sys_types'.
28472         * lib/sys_types.in.h: New file.
28473         * m4/sys_types_h.m4: New file.
28474         * modules/sys_types: New file.
28475         * doc/posix-headers/sys_types.texi: Mention the new module and the
28476         size_t problem on MSVC 9.
28478 2011-09-11  Bruno Haible  <bruno@clisp.org>
28480         Support for MSVC compiler: Avoid division by a literal 0.
28481         * lib/math.in.h (NAN): Define through a function call also on MSVC.
28482         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
28483         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
28484         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
28485         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
28486         * tests/infinity.h: New file.
28487         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
28488         on MSVC.
28489         * tests/test-ceilf1.c: Include infinity.h.
28490         (main): Use Infinityf.
28491         * tests/test-ceil1.c: Include infinity.h.
28492         (main): Use Infinityd.
28493         * tests/test-ceill.c: Include infinity.h.
28494         (main): Use Infinityl.
28495         * tests/test-dprintf-posix.c: Include infinity.h.
28496         (test_function): Use Infinityd.
28497         * tests/test-floorf1.c: Include infinity.h.
28498         (main): Use Infinityf.
28499         * tests/test-floor1.c: Include infinity.h.
28500         (main): Use Infinityd.
28501         * tests/test-floorl.c: Include infinity.h.
28502         (main): Use Infinityl.
28503         * tests/test-fprintf-posix.c: Include infinity.h.
28504         (test_function): Use Infinityd.
28505         * tests/test-frexp.c: Include infinity.h.
28506         (main): Use Infinityd.
28507         * tests/test-frexpl.c: Include infinity.h.
28508         (main): Use Infinityl.
28509         * tests/test-isfinite.c: Include infinity.h.
28510         (test_isfinitef): Use Infinityf.
28511         (test_isfinited): Use Infinityd.
28512         (test_isfinitel): Use Infinityl.
28513         * tests/test-isinf.c: Include infinity.h.
28514         (test_isinff): Use Infinityf.
28515         (test_isinfd): Use Infinityd.
28516         (test_isinfl): Use Infinityl.
28517         * tests/test-isnan.c: Include infinity.h.
28518         (test_float): Use Infinityf.
28519         (test_double): Use Infinityd.
28520         (test_long_double): Use Infinityl.
28521         * tests/test-isnanf.h: Include infinity.h.
28522         (main): Use Infinityf.
28523         * tests/test-isnand.h: Include infinity.h.
28524         (main): Use Infinityd.
28525         * tests/test-isnanl.h: Include infinity.h.
28526         (main): Use Infinityl.
28527         * tests/test-ldexpl.c: Include infinity.h.
28528         (main): Use Infinityl.
28529         * tests/test-printf-posix.h: Include infinity.h.
28530         (test_function): Use Infinityd.
28531         * tests/test-roundf1.c: Include infinity.h.
28532         (main): Use Infinityf.
28533         * tests/test-round1.c: Include infinity.h.
28534         (main): Use Infinityd.
28535         * tests/test-roundl.c: Include infinity.h.
28536         (main): Use Infinityl.
28537         * tests/test-signbit.c: Include infinity.h.
28538         (test_signbitf): Use Infinityf.
28539         (test_signbitd): Use Infinityd.
28540         (test_signbitl): Use Infinityl.
28541         * tests/test-snprintf-posix.h: Include infinity.h.
28542         (test_function): Use Infinityd, Infinityl.
28543         * tests/test-sprintf-posix.h: Include infinity.h.
28544         (test_function): Use Infinityd, Infinityl.
28545         * tests/test-truncf1.c: Include infinity.h.
28546         (main): Use Infinityf.
28547         * tests/test-trunc1.c: Include infinity.h.
28548         (main): Use Infinityd.
28549         * tests/test-truncl.c: Include infinity.h.
28550         (main): Use Infinityl.
28551         * tests/test-vasnprintf-posix.c: Include infinity.h.
28552         (test_function): Use Infinityd, Infinityl.
28553         * tests/test-vasprintf-posix.c: Include infinity.h.
28554         (test_function): Use Infinityd, Infinityl.
28555         * modules/ceilf-tests (Files): Add tests/infinity.h.
28556         * modules/ceil-tests (Files): Likewise.
28557         * modules/ceill-tests (Files): Likewise.
28558         * modules/dprintf-posix-tests (Files): Likewise.
28559         * modules/floorf-tests (Files): Likewise.
28560         * modules/floor-tests (Files): Likewise.
28561         * modules/floorl-tests (Files): Likewise.
28562         * modules/fprintf-posix-tests (Files): Likewise.
28563         * modules/frexp-tests (Files): Likewise.
28564         * modules/frexp-nolibm-tests (Files): Likewise.
28565         * modules/frexpl-tests (Files): Likewise.
28566         * modules/frexpl-nolibm-tests (Files): Likewise.
28567         * modules/isfinite-tests (Files): Likewise.
28568         * modules/isinf-tests (Files): Likewise.
28569         * modules/isnan-tests (Files): Likewise.
28570         * modules/isnanf-tests (Files): Likewise.
28571         * modules/isnanf-nolibm-tests (Files): Likewise.
28572         * modules/isnand-tests (Files): Likewise.
28573         * modules/isnand-nolibm-tests (Files): Likewise.
28574         * modules/isnanl-tests (Files): Likewise.
28575         * modules/isnanl-nolibm-tests (Files): Likewise.
28576         * modules/ldexpl-tests (Files): Likewise.
28577         * modules/printf-posix-tests (Files): Likewise.
28578         * modules/roundf-tests (Files): Likewise.
28579         * modules/round-tests (Files): Likewise.
28580         * modules/roundl-tests (Files): Likewise.
28581         * modules/signbit-tests (Files): Likewise.
28582         * modules/snprintf-posix-tests (Files): Likewise.
28583         * modules/sprintf-posix-tests (Files): Likewise.
28584         * modules/truncf-tests (Files): Likewise.
28585         * modules/trunc-tests (Files): Likewise.
28586         * modules/truncl-tests (Files): Likewise.
28587         * modules/vasnprintf-posix-tests (Files): Likewise.
28588         * modules/vasprintf-posix-tests (Files): Likewise.
28589         * modules/vdprintf-posix-tests (Files): Likewise.
28590         * modules/vfprintf-posix-tests (Files): Likewise.
28591         * modules/vprintf-posix-tests (Files): Likewise.
28592         * modules/vsnprintf-posix-tests (Files): Likewise.
28593         * modules/vsprintf-posix-tests (Files): Likewise.
28594         * modules/xprintf-posix-tests (Files): Likewise.
28596 2011-09-11  Bruno Haible  <bruno@clisp.org>
28598         Ensure pid_t gets defined.
28599         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
28600         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
28601         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
28602         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28603         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
28604         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
28605         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
28606         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28607         * tests/test-fcntl-h.c: Check that pid_t is defined.
28608         * tests/test-sched.c: Likewise.
28609         * tests/test-termios.c: Likewise.
28610         * tests/test-time.c: Likewise.
28611         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
28612         * doc/posix-headers/signal.texi: Likewise.
28613         * doc/posix-headers/sys_types.texi: Likewise.
28614         * doc/posix-headers/time.texi: Likewise.
28616 2011-09-11  Bruno Haible  <bruno@clisp.org>
28618         acl: Fix compilation on Solaris 10 (older version).
28619         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
28620         of ACE_EVERYONE.
28621         * lib/set-mode-acl.c (qset_acl): Likewise.
28622         Reported by Christian Jullien <eligis@orange.fr>.
28624 2011-09-10  Bruno Haible  <bruno@clisp.org>
28626         iconv, unsetenv: Add support for MSVC compiler.
28627         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
28628         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
28630 2011-09-10  Bruno Haible  <bruno@clisp.org>
28632         *printf: Add support for MSVC compiler.
28633         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
28634         handles the exception caused by the %n directive. When cross-compiling,
28635         guess no on native Windows.
28636         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
28637         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
28638         emulate it through vsnprintf.
28639         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
28640         * doc/posix-functions/dprintf.texi: Update documentation regarding
28641         MSVC 9.
28642         * doc/posix-functions/fprintf.texi: Likewise.
28643         * doc/posix-functions/printf.texi: Likewise.
28644         * doc/posix-functions/snprintf.texi: Likewise.
28645         * doc/posix-functions/sprintf.texi: Likewise.
28646         * doc/posix-functions/swprintf.texi: Likewise.
28647         * doc/posix-functions/vdprintf.texi: Likewise.
28648         * doc/posix-functions/vfprintf.texi: Likewise.
28649         * doc/posix-functions/vprintf.texi: Likewise.
28650         * doc/posix-functions/vsnprintf.texi: Likewise.
28651         * doc/posix-functions/vsprintf.texi: Likewise.
28652         * doc/glibc-functions/asprintf.texi: Likewise.
28653         * doc/glibc-functions/obstack_printf.texi: Likewise.
28654         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
28655         * doc/glibc-functions/vasprintf.texi: Likewise.
28657 2011-09-10  Bruno Haible  <bruno@clisp.org>
28659         nocrash: Add support for native Windows.
28660         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
28662 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
28663             Bruno Haible  <bruno@clisp.org>
28665         absolute-header, include-next: Add support for MSVC compiler.
28666         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
28667         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
28668         directory separator in #line directives.
28669         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
28670         recognize also backslash as directory separator in #line directives.
28672 2011-09-08  Jim Meyering  <meyering@redhat.com>
28674         maint.mk: mark the post-release commit log with "maint: " prefix
28675         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
28676         one-line commit-log summary.
28678 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
28679             Bruno Haible  <bruno@clisp.org>
28681         Doc about crypt functions.
28682         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
28683         systems.
28684         * doc/posix-functions/encrypt.texi: Likewise.
28685         * doc/posix-functions/setkey.texi: Likewise.
28687 2011-09-08  Simon Josefsson  <simon@josefsson.org>
28689         * lib/gc.h: Fix copyright header.
28691 2011-09-07  Bruno Haible  <bruno@clisp.org>
28693         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
28694         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
28695         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
28697 2011-09-07  Bruno Haible  <bruno@clisp.org>
28699         openat: Work around compilation error with OSF/1 5.1 DTK cc.
28700         * lib/fopen.c: Use different syntax for include of <stdio.h>.
28701         * lib/freopen.c: Likewise.
28702         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
28703         * lib/lstat.c: Likewise.
28704         * lib/stat.c: Likewise.
28705         * lib/open.c: Use different syntax for include of <fcntl.h>.
28706         * lib/openat.c: Include fcntl.h again, explicitly.
28708 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
28710         parse-datetime: document the newly accepted format
28711         * doc/parse-datetime.texi (Combined date and time of day items):
28712         New section.
28714 2011-09-06  Bruno Haible  <bruno@clisp.org>
28716         acl: Fix a test failure on newer Solaris 10 with ZFS.
28717         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
28718         ENOSYS as no ACL.
28719         Reported by Jim Meyering.
28721 2011-09-06  Bruno Haible  <bruno@clisp.org>
28723         acl: Update for AIX >= 5.3 with NFS.
28724         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
28725         ENOSYS as no ACL.
28727         acl: Fix a test failure on AIX >= 5.3 with NFS.
28728         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
28729         as no ACL.
28731 2011-09-06  Bruno Haible  <bruno@clisp.org>
28733         acl: Fix a test failure on IRIX 6.5 with NFS.
28734         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
28735         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
28736         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
28737         * lib/copy-acl.c (qcopy_acl): Likewise.
28739 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
28741         openat: port to AIX 7.1 with large files
28742         AIX 7.1 does a "#define openat open64at" if large files are in use,
28743         so we can't simply #undef openat.  Use the orig_openat trick (similar
28744         to orig_open in lib/open.c) to work around the problem.  Problem
28745         reported by Kevin Brott for GNU tar, in the thread containing
28746         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
28747         * lib/openat.c (__need_system_fcntl_h): Define first.
28748         Include <fcntl.h> and <sys/types.h> before undefining.
28749         (orig_openat) [HAVE_OPENAT]: New inline function.
28750         (openat) [HAVE_OPENAT]: Do not undef.
28751         (rpl_openat): Use orig_openat, not openat.
28753 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
28754             Bruno Haible  <bruno@clisp.org>
28756         acl: Avoid errors on NonStop Kernel.
28757         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
28758         ENOTSUP errors.
28760 2011-09-05  Bruno Haible  <bruno@clisp.org>
28762         acl: Clean up Solaris code.
28763         * lib/acl-internal.h: Remove no-op #if.
28764         * lib/file-has-acl.c: Likewise.
28765         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
28766         * lib/copy-acl.c (qcopy_acl): Likewise.
28768 2011-09-05  Bruno Haible  <bruno@clisp.org>
28770         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
28771         binaries built on the original Solaris 10.
28772         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
28773         trivial.
28775 2011-09-05  Bruno Haible  <bruno@clisp.org>
28777         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
28778         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
28779         10.
28780         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
28781         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
28782         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
28783         instead of acl_get, facl_get, acl_set, facl_set.
28785 2011-09-05  Bruno Haible  <bruno@clisp.org>
28787         copy-file: Try unit tests on more file systems.
28788         * tests/test-copy-file-1.sh: New file.
28789         * tests/test-copy-file-2.sh: New file.
28790         * modules/copy-file-tests (Files): Add them.
28791         (Makefile.am): Add them to TESTS.
28793         acl: Try unit tests on more file systems.
28794         * tests/test-file-has-acl-1.sh: New file.
28795         * tests/test-file-has-acl-2.sh: New file.
28796         * tests/test-set-mode-acl-1.sh: New file.
28797         * tests/test-set-mode-acl-2.sh: New file.
28798         * tests/test-copy-acl-1.sh: New file.
28799         * tests/test-copy-acl-2.sh: New file.
28800         * modules/acl-tests (Files): Add them.
28801         (Makefile.am): Add them to TESTS.
28803 2011-09-04  Bruno Haible  <bruno@clisp.org>
28805         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
28806         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
28807         10.
28808         (OLD_ALLOW, OLD_DENY): New macros.
28809         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
28810         ACE_ACCESS_ALLOWED_ACE_TYPE.
28811         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
28812         ACE_ACCESS_DENIED_ACE_TYPE.
28813         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
28814         (NEW_ACE_EXECUTE): Fix value.
28815         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
28816         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
28817         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
28818         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
28819         NEW_ACE_SYNCHRONIZE): New macros.
28820         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
28821         instead of acl_fromtext, acl_set, facl_set.
28822         Fixes a coreutils/tests/cp/perm failure.
28824 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
28826         openat: test for fstatat (..., 0) bug
28827         Further testing with tar suggests that fstatat (..., 0)
28828         does not work in general, on AIX 7.1; see
28829         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
28830         So, give up entirely on AIX 7.1's fstatat, and fall back on our
28831         replacement fstatat (which is what older AIX releases were using
28832         anyway).
28833         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
28834         use is now changed to orig_fstatat.  This was probably the right
28835         thing to do anyway.
28836         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
28837         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
28838         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
28839         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
28840         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
28841         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
28842         if the bug is found.
28844         openat: test for fstatat (AT_FDCWD, ..., 0) bug
28845         This tests for another fstatat bug on AIX 7.1:
28846         fstatat (AT_FDCWD, ..., 0) does not work.  See
28847         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
28848         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
28849         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
28850         (rpl_fstatat): Adjust so that it works around either (or both)
28851         bugs if present.
28852         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
28854 2011-09-03  Karl Berry  <karl@gnu.org>
28856         * doc/regex.texi (Character Class Operators): Avoid literal ":"
28857         in index entries.
28859 2011-09-02  Bruno Haible  <bruno@clisp.org>
28861         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
28862         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
28863         values of AR, ARFLAGS, RANLIB.
28864         Reported by John W. Eaton <jwe@gnu.org> for Octave.
28866 2011-09-02  Bruno Haible  <bruno@clisp.org>
28868         Find 'ar' program that fits with --host argument.
28869         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
28871 2011-09-02  Bruno Haible  <bruno@clisp.org>
28873         tests: init.sh: Support any non-GNU diff.
28874         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
28875         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
28876         Solaris 8.
28878 2011-09-02  Bruno Haible  <bruno@clisp.org>
28880         tests: init.sh: work also with any non-GNU diff that supports -u
28881         * tests/init.sh: Relax check for diff -u support.
28882         Rather than checking for GNU diff via --version, simply check
28883         for support for -u itself.  Useful at least on OpenBSD 4.9,
28884         AIX 7.1, IRIX 6.5, and Solaris 10.
28886 2011-09-01  Bruno Haible  <bruno@clisp.org>
28888         strtoimax, strtoumax: Document problem on HP-UX 11.
28889         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
28890         * doc/posix-functions/strtoumax.texi: Likewise.
28892 2011-09-01  Bruno Haible  <bruno@clisp.org>
28894         strtoumax: Avoid link error on OSF/1 with DTK cc.
28895         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
28896         defined as a function.
28897         * modules/strtoumax (Depends-on, configure.ac): Test only whether
28898         strtoumax is defined, not whether it is declared.
28900 2011-09-01  Bruno Haible  <bruno@clisp.org>
28902         strtoimax: Avoid link error on OSF/1 with DTK cc.
28903         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
28904         defined as a function.
28905         * modules/strtoimax (Depends-on, configure.ac): Test only whether
28906         strtoimax is defined, not whether it is declared.
28908 2011-09-01  Bruno Haible  <bruno@clisp.org>
28910         imaxdiv: Avoid link error on OSF/1 with DTK cc.
28911         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
28912         as a function.
28913         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
28914         whether it is declared.
28916 2011-09-01  Bruno Haible  <bruno@clisp.org>
28918         imaxabs: Avoid link error on OSF/1 with DTK cc.
28919         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
28920         as a function.
28921         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
28922         whether it is declared.
28924 2011-09-01  Bruno Haible  <bruno@clisp.org>
28926         Tests for module 'strtoumax'.
28927         * modules/strtoumax-tests: New file.
28928         * tests/test-strtoumax.c: New file.
28930         Tests for module 'strtoimax'.
28931         * modules/strtoimax-tests: New file.
28932         * tests/test-strtoimax.c: New file.
28934         Tests for module 'imaxdiv'.
28935         * modules/imaxdiv-tests: New file.
28936         * tests/test-imaxdiv.c: New file.
28938         Tests for module 'imaxabs'.
28939         * modules/imaxabs-tests: New file.
28940         * tests/test-imaxabs.c: New file.
28942 2011-09-01  Bruno Haible  <bruno@clisp.org>
28944         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
28945         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
28946         pthread_create.
28948 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28950         openat: work around AIX 7.1 fstatat issue
28951         This should fix the problem that was not properly fixed
28952         in the previous change, dated 2011-08-30.
28953         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
28954         __need_system_stat_h defined.
28955         (orig_fstatat) [HAVE_FSTATAT]: New function.
28956         (rpl_fstatat): Go back to the old way of doing things,
28957         except call orig_fstatat instead of fstatat.
28958         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
28959         Remove unnecessary check whether fstatat fills in st_size etc.
28961 2011-09-01  Bruno Haible  <bruno@clisp.org>
28963         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
28964         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
28965         just include the system's header.
28967 2011-08-31  Jim Meyering  <meyering@redhat.com>
28969         tests: avoid spurious assertion failure in test-float.c on ppc64
28970         * tests/test-float.c (test_long_double): Comment out an assertion,
28971         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
28972         with gcc-4.4.4.
28974         maint: indent with spaces, not TABs
28975         I need to get in the habit of running gnulib's "make check".
28976         Both of these would have been caught.
28977         * m4/largefile.m4: Indent with spaces, not TABs.
28978         * lib/parse-datetime.y (iso_8601_time): Likewise.
28979         Spotted by Pádraig Brady.
28981         test-parse-datetime.c: accommodate a relatively strict gcc warning
28982         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
28983         to avoid a warning from gcc's -Werror=missing-declarations.
28984         Insert a few spaces-before-funcall-parenthesis.
28986 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
28988         parse-datetime: accept ISO 8601 date and time rep with "T" separator
28989         The parser now accepts ISO 8601 date-time strings with "T" as the
28990         separator.  It has long parsed dates like "2004-02-29 16:21:42"
28991         with a space between the date and time strings.  Now it also parses
28992         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
28993         variants like "2004-02-29T16:21:42.333-07:00"
28994         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
28995         of day representation using the 'T' separator character.
28996         * doc/parse-datetime.texi (General date syntax): replace use of
28997         deprecated --iso-8601 option with --rfc-3339 in example of date
28998         command output formats that can be parsed.
28999         * tests/test-parse-datetime.c (tm_diff): New function, taken from
29000         lib/parse-datetime.y.
29001         (gmt_offset): New function.
29002         (main): Add additional test cases to validate ISO8601 extended
29003         date and time of day parsing.
29005 2011-08-31  Bruno Haible  <bruno@clisp.org>
29007         freopen: Documentation.
29008         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
29009         name.
29010         Reported by Claudio Bley <claudio.bley@gmail.com>.
29012 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
29014         freopen: Don't crash if the filename argument is NULL.
29015         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
29016         NULL.
29018 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
29020         openat: work around AIX 7.1 fstatat bug
29021         Problem reported by Kevin Brott for GNU tar, in the thread containing
29022         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
29023         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
29024         FSTATAT_ST_SIZE_ETC_BROKEN.
29025         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
29026         rpl_fstatat.
29027         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
29028         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
29029         AC_CHECK_FUNCS_ONCE for fstatat.
29030         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
29031         fchmodat, mkdirat, openat and unlinkat.
29033 2011-08-30  Bruno Haible  <bruno@clisp.org>
29035         Avoid endless recursions if config.h includes some header files.
29036         * lib/fopen.c (__need_FILE): Define already before including config.h.
29037         * lib/freopen.c (__need_FILE): Likewise.
29038         * lib/open.c (__need_system_fcntl_h): Likewise.
29039         * lib/stat.c (__need_system_sys_stat_h): Likewise.
29040         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
29041         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
29043 2011-08-25  Karl Berry  <karl@gnu.org>
29045         * config/srclist.txt (ylwrap): new try.
29046         * build-aux/ylwrap: new file.
29048 2011-08-23  Bruno Haible  <bruno@clisp.org>
29050         tmpdir: Use a good default directory on native Windows.
29051         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
29052         (P_tmpdir): Default to _P_tmpdir on native Windows.
29053         (path_search): On native Windows, try the value returned by GetTempPath
29054         before trying P_tmpdir.
29055         * modules/tmpdir (Depends-on): Add pathmax.
29056         Suggested by John Darrington <john@darrington.wattle.id.au>.
29058 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
29060         doc: fix typo in README-release
29061         * top/README-release: Capitalize first word of a sentence.
29063 2011-08-19  Jim Meyering  <meyering@redhat.com>
29065         fts: do not exhaust memory when processing million-entry directories
29066         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
29067         directory would require about 256*N bytes of memory.  Thus, it was
29068         easy to construct a directory too large to be processed by any of
29069         those tools.  With this change, fts' maximum memory utilization is
29070         now limited to around 30MB.
29071         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
29072         (fts_read): When we've processed the final entry (i.e., when
29073         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
29074         using the parent entry to read any remaining entries.  Dispatch
29075         depending on what fts_build returns:
29076         - NULL+stop, aka failure: stop
29077         - NULL otherwise: move up in the dir hierarchy
29078         - non-NULL: handle this new entry
29079         (fts_build): Declare and use new local, continue_readdir.
29080         Prepare to be called from fts_read, when the entries
29081         from a partially-read directory have just been exhausted.
29082         In that case, we'll skip the opendir and instead use the parent's
29083         fts_dirp and derive dir_fd from that.
29084         Finally, in the readdir loop, if we read max_entries entries,
29085         exit the loop ensuring *not* to call closedir.  This is required
29086         so that fts_dirp can be reused on a subsequent call.
29087         Prompted by Ben England's report of memory exhaustion in find
29088         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
29090         maint: fts: move decl of `dp' down into while loop; split a long line
29091         * lib/fts.c (fts_build): No semantic change.
29093         fts: add/use new struct member, fts_dirp
29094         We are about to use this to manage any directory with
29095         too many entries to read all of them into memory at once.
29096         To do that, we'll need to save the DIR* pointer in each
29097         affected FTSENT struct.
29098         * lib/fts_.h: Include <dirent.h>.
29099         (struct FTSENT) [fts_dirp]: New member.
29100         * lib/fts.c (closedir_and_clear): Define.
29101         Use it in place of closedir so that we are sure to
29102         clear the new fts_dirp member when done with it.
29103         (fts_alloc): Initialize the new member.
29104         (fts_lfree): Free, if needed.
29106         maint: fts: give __opendir2 a new parameter and rename
29107         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
29108         than surreptitiously using sole caller's "dir_fd".
29109         (fts_opendir): Rename from __opendir2.
29111         maint: fts.c: remove __opendir2's now-unused parameter, oflag
29112         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
29114         maint: fts.c: correct off-by-one indentation
29115         * lib/fts.c (fts_build): Correct indentation, change style
29116         of a couple of block comments, and bracing style.
29118         maint: fts.c: move __opendir2 #define "up" out of function body
29119         * lib/fts.c (__opendir2): Move "up".  No semantic change.
29121         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
29122         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
29123         out for a long time and besides was useful only on BSD systems.
29125 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
29127         regex: port to Stratus OpenVOS
29128         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
29129         define to empty, rather than attempting nonportable optimizations.
29130         Problem reported by Paul Green in:
29131         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
29132         and fix suggested by Eric Blake in:
29133         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
29135 2011-08-17  Eric Blake  <eblake@redhat.com>
29137         getcwd: fix test failures on mingw
29138         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
29139         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
29140         test if long directory cannot be created, and allow mingw errno.
29142         getcwd-lgpl: fix m4 to match relaxed test for BSD
29143         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
29144         (gl_FUNC_GETCWD_SIGNATURE): New macro.
29145         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
29146         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
29147         signature problem.
29149         getcwd: fix compilation on mingw64
29150         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
29151         getcwd.
29152         Reported by Marc-André Lureau.
29154         pipe2: silence compiler warning
29155         * lib/pipe2.c (pipe2): Hide label if it is not used.
29157 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
29159         relocatable-prog: fix link error
29160         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
29161         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
29162         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
29163         into modules/relocatable-lib without noticing that
29164         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
29165         also needs to build relocatable.c.
29167 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
29169         getaddrinfo: fix sh typo in gai_strerrorA decl checking
29170         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
29171         shell code: it contained a 'break' that was not in a loop.
29172         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
29173         via a shell-language loop; this may have been true in old Autoconf
29174         versions, but it's not true in Autoconf 2.68.  I found this bug
29175         when testing coreutils git on Solaris 8, whose shell complains
29176         about the syntax error.
29178 2011-08-12  Simon Josefsson  <simon@josefsson.org>
29180         * lib/base64.c: Fix comment to reference RFC 4648.
29181         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
29182         <gvtulder@gmail.com>.
29184 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
29186         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
29188         po/Makefile.in.in: fix make -q problem
29189         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
29190         rule, since there's no file named 'check-macro-version' and its
29191         use as a file breaks make -q.
29192         (all): Don't depend on check-macro-version.
29193         (CHECK_MACRO_VERSION): New macro.
29194         (stamp-po): Use it.
29196         configmake: fix make -q problem
29197         * modules/configmake (configmake.h): Update configmake.h's time stamp
29198         even if the file does not change.  Otherwise, 'make -q' fails.
29199         Problem reported by Simon Josefsson in
29200         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
29202 2011-08-11  Jim Meyering  <meyering@redhat.com>
29204         git-version-gen: correct the advice in a comment
29205         * build-aux/git-version-gen: Correct comment.
29206         Don't recommend to list .tarball-version in .gitignore.
29208 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
29210         base64: fix off-by-one buffer size bug
29211         Problem and (trivial) fix reported by Gijs van Tulder in
29212         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
29213         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
29214         * tests/test-base64.c (main): Catch the bug.
29216 2011-08-10  Eric Blake  <eblake@redhat.com>
29218         closein: correct comments
29219         * lib/closein.c (close_stdin): Improve comments.
29221 2011-08-09  Bruno Haible  <bruno@clisp.org>
29223         More tests for 'fseeko'.
29224         * tests/test-fseeko3.c: New file, from Eric Blake.
29225         * tests/test-fseeko3.sh: New file.
29226         * modules/fseeko-tests (Files): Add them.
29227         (TESTS): Add test-fseeko3.sh.
29228         (check_PROGRAMS): Add test-fseeko3.
29230 2011-08-09  Eric Blake  <eblake@redhat.com>
29232         fseeko: remove unneeded hack
29233         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
29235         fseeko: fix bug on glibc
29236         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
29237         Reported by John W. Eaton.
29239 2011-08-08  Bruno Haible  <bruno@clisp.org>
29241         unictype/base: Fix interoperability with preinstalled libunistring.
29242         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
29243         Reported by Simon Josefsson.
29245 2011-08-08  Bruno Haible  <bruno@clisp.org>
29247         iswblank: Detect declaration correctly.
29248         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
29249         AC_CHECK_DECLS invocation.
29251 2011-08-08  Bruno Haible  <bruno@clisp.org>
29253         tcgetsid: Detect declaration correctly.
29254         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
29255         AC_CHECK_DECLS invocation.
29256         Reported by Simon Josefsson.
29258 2011-08-08  Eric Blake  <eblake@redhat.com>
29260         largefile: fix typo that regressed large file support
29261         * modules/largefile (configure.ac-early): Fix section name.
29263 2011-08-06  Karl Berry  <karl@gnu.org>
29265         * MODULES.html.sh (func_all_files): _Noreturn is no longer
29266         a separate module.
29268 2011-08-05  Simon Josefsson  <simon@josefsson.org>
29270         openat: Fix warnings and commens when building unlinkat.c on Hurd.
29271         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
29272         get prototype for free.
29274 2011-08-04  Bruno Haible  <bruno@clisp.org>
29276         Tests for module 'pathmax'.
29277         * modules/pathmax-tests: New file.
29278         * tests/test-pathmax.c: New file.
29280         canonicalize-lgpl: Support larger filenames on the Hurd.
29281         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
29282         Reported by Paul Eggert.
29284         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
29285         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
29286         * lib/chdir-long.h: Include pathmax.h.
29287         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
29288         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
29289         (PATH_MAX): Remove code that is done by pathmax.h.
29290         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
29291         * lib/tmpfile.c: Add a comment.
29292         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
29293         * modules/chdir-long (Depends-on): Add pathmax.
29294         * modules/getcwd (Depends-on): Add pathmax.
29295         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
29296         is not defined.
29297         * doc/posix-headers/limits.texi: Mention the pathmax module.
29298         * NEWS: Mention the change.
29300 2011-08-02  Bruno Haible  <bruno@clisp.org>
29302         pthread_sigmask: Actually use results of gl_THREADLIB.
29303         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
29304         gl_THREADLIB, not gl_[]THREADLIB.
29305         Reported by Eric Blake.
29307 2011-08-02  Jim Meyering  <meyering@redhat.com>
29309         maint.mk: relax the default _gl_TS_function_match regexp
29310         * top/maint.mk (_gl_TS_function_match): Don't require at least one
29311         space between function name and "(" in an "extern" declaration.
29312         That would fail to match a decl with no space there: extern void foo();
29314 2011-07-31  Iain Nicol  <iain@thenicols.net>
29316         git-version-gen: document that EXTRA_DIST must include .version
29317         * build-aux/git-version-gen: In the how-to-use comment, document
29318         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
29319         will fail when run from an unpacked distribution tarball.
29321 2011-08-01  Bruno Haible  <bruno@clisp.org>
29323         wctype-h: Fix last change.
29324         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
29325         REPLACE_TOWLOWER to 0.
29326         Reported by Sam Steingold <sds@gnu.org>.
29328 2011-07-31  Bruno Haible  <bruno@clisp.org>
29330         frexpl: Update autoconf test.
29331         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
29332         according to changes of 2011-06-20.
29334 2011-07-31  Bruno Haible  <bruno@clisp.org>
29336         sys_utsname: Add support for Minix.
29337         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
29338         <sys/utsname.h>.
29339         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
29340         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
29342 2011-07-31  Bruno Haible  <bruno@clisp.org>
29344         strings: Add support for Minix.
29345         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
29346         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
29347         * doc/posix-headers/strings.texi: Document the Minix problem.
29349 2011-07-31  Bruno Haible  <bruno@clisp.org>
29351         wctype-h: Add support for Minix.
29352         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
29353         REPLACE_TOWLOWER.
29354         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
29355         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
29356         REPLACE_ISWCNTRL.
29358 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
29360         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
29361         This is a performance improvement for 64-bit hosts: it causes the
29362         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
29364 2011-07-31  Bruno Haible  <bruno@clisp.org>
29366         stdioext: Add support for Minix.
29367         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
29368         * lib/fpurge.c (fpurge): Likewise.
29369         * lib/freadahead.c (freadahead): Likewise.
29370         * lib/freadable.c (freadable): Likewise.
29371         * lib/freading.c (freading): Likewise.
29372         * lib/freadptr.c (freadptr): Likewise.
29373         * lib/freadseek.c (freadptrinc): Likewise.
29374         * lib/fseeko.c (rpl_fseeko): Likewise.
29375         * lib/fseterr.c (fseterr): Likewise.
29376         * lib/fwritable.c (fwritable): Likewise.
29377         * lib/fwriting.c (fwriting): Likewise.
29378         * lib/fflush.c (clear_ungetc_buffer): Update comment.
29379         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
29381 2011-07-31  Bruno Haible  <bruno@clisp.org>
29383         errno: Port to Minix.
29384         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
29385         ECONNABORTED are defined.
29386         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
29387         GNULIB_defined_ECONNABORTED): New macros.
29388         * lib/strerror-override.h (strerror_override): Test also
29389         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
29390         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
29391         ECONNABORTED.
29392         * doc/posix-headers/errno.texi: Mention the Minix problem.
29394 2011-07-31  Bruno Haible  <bruno@clisp.org>
29396         Work around declaration collisions on Minix.
29397         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
29398         defined, set REPLACE_MBSINIT.
29399         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
29400         defined, set REPLACE_MBRTOWC.
29401         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
29402         set REPLACE_MBRLEN.
29403         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
29404         defined, set REPLACE_MBSRTOWCS.
29405         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
29406         defined, set REPLACE_WCRTOMB.
29407         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
29408         defined, set REPLACE_WCSRTOMBS.
29410 2011-07-31  Bruno Haible  <bruno@clisp.org>
29412         Add support for Minix with ACK compiler.
29413         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
29414         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
29415         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
29417 2011-07-31  Bruno Haible  <bruno@clisp.org>
29419         Documentation about Minix.
29420         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
29421         * doc/glibc-headers/*.texi: Likewise.
29422         * doc/posix-functions/*.texi: Likewise.
29423         * doc/glibc-functions/*.texi: Likewise.
29425 2011-07-31  Bruno Haible  <bruno@clisp.org>
29427         snippet/warn-on-use: Fix indentation.
29428         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
29430 2011-07-25  Jim Meyering  <meyering@redhat.com>
29432         tests: test-update-copyright.sh: remove unnecessary "rm" commands
29433         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
29434         commands.
29436 2011-07-27  Jim Meyering  <meyering@redhat.com>
29438         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
29439         * top/maint.mk (gl_extract_significant_defines_): Now that
29440         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
29441         gnulib/lib/signal.in.h, and now that we recommend to
29442         define-if-undefined those two symbols in application code,
29443         we must filter them out of the "significant" list.
29444         This avoids a "make syntax-check" failure in coreutils.
29446 2011-07-26  Eric Blake  <eblake@redhat.com>
29448         warnings: add comments about previous patch
29449         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
29450         * m4/include_next.m4: Likewise.
29451         * m4/warn-on-use.m4: Likewise.
29452         * m4/warnings.m4: Likewise, and simplify use.
29453         Suggested by Stefano Lattarini.
29455         include-next, warnings: support older autoconf
29456         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
29457         AS_VAR_PUSHDEF in a way that works with older autoconf.
29458         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
29459         Reported by Daniel P. Berrange.
29461 2011-07-25  Bruno Haible  <bruno@clisp.org>
29463         fseek, ftell: Fix doc.
29464         * doc/posix-functions/fseek.texi: Reword statement about
29465         AC_SYS_LARGEFILE.
29466         * doc/posix-functions/ftell.texi: Likewise.
29468 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
29469             Bruno Haible  <bruno@clisp.org>
29471         Add dependencies to the 'largefile' module.
29472         * modules/fopen (Depends-on): Add 'largefile'.
29473         * modules/freopen (Depends-on): Likewise.
29474         * modules/fseeko (Depends-on): Likewise.
29475         * modules/ftello (Depends-on): Likewise.
29476         * modules/glob (Depends-on): Likewise.
29477         * modules/lseek (Depends-on): Likewise.
29478         * modules/lstat (Depends-on): Likewise.
29479         * modules/mkostemp (Depends-on): Likewise.
29480         * modules/mkostemps (Depends-on): Likewise.
29481         * modules/mkstemp (Depends-on): Likewise.
29482         * modules/mkstemps (Depends-on): Likewise.
29483         * modules/open (Depends-on): Likewise.
29484         * modules/openat (Depends-on): Likewise.
29485         * modules/pread (Depends-on): Likewise.
29486         * modules/pwrite (Depends-on): Likewise.
29487         * modules/scandir (Depends-on): Likewise.
29488         * modules/stat (Depends-on): Likewise.
29489         * modules/tmpfile (Depends-on): Likewise.
29490         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
29491         since the containing module now depends on the largefile module.
29492         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
29493         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
29494         off_t is fixed by gnulib.
29495         * doc/posix-functions/freopen.texi: Likewise.
29496         * doc/posix-functions/fseeko.texi: Likewise.
29497         * doc/posix-functions/fstatat.texi: Likewise.
29498         * doc/posix-functions/ftello.texi: Likewise.
29499         * doc/posix-functions/glob.texi: Likewise.
29500         * doc/posix-functions/lseek.texi: Likewise.
29501         * doc/posix-functions/lstat.texi: Likewise.
29502         * doc/posix-functions/mkstemp.texi: Likewise.
29503         * doc/posix-functions/open.texi: Likewise.
29504         * doc/posix-functions/openat.texi: Likewise.
29505         * doc/posix-functions/pread.texi: Likewise.
29506         * doc/posix-functions/pwrite.texi: Likewise.
29507         * doc/posix-functions/scandir.texi: Likewise.
29508         * doc/posix-functions/stat.texi: Likewise.
29509         * doc/posix-functions/tmpfile.texi: Likewise.
29510         * doc/glibc-functions/mkostemp.texi: Likewise.
29511         * doc/glibc-functions/mkostemps.texi: Likewise.
29512         * doc/glibc-functions/mkstemps.texi: Likewise.
29514 2011-07-25  Bruno Haible  <bruno@clisp.org>
29516         fcntl: Move AC_LIBOBJ invocation to module description.
29517         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
29518         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
29520         fcntl: Remove call-in from fchdir.m4.
29521         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
29522         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
29524         dup3: Remove potential call-in from fchdir.m4.
29525         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
29526         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
29528         dup2: Move AC_LIBOBJ invocation to module description.
29529         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
29530         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
29531         Don't invoke AC_LIBOBJ.
29532         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
29534         dup2: Remove call-in from fchdir.m4.
29535         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
29536         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
29538         fclose: Move AC_LIBOBJ invocation to module description.
29539         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
29540         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
29541         to 1.
29542         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
29544         fclose: Remove call-in from close.m4.
29545         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
29546         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
29548         close: Move AC_LIBOBJ invocation to module description.
29549         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
29550         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
29551         1.
29552         * modules/close (configure.ac): Invoke AC_LIBOBJ.
29554         close: Remove call-in from fchdir.m4.
29555         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
29556         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
29558         open: Move AC_LIBOBJ invocation to module description.
29559         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
29560         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
29561         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
29563         open: Remove call-in from fchdir.m4.
29564         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
29565         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
29567         fchdir: Start to remove gl_REPLACE_* idiom.
29568         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
29569         (gl_FUNC_FCHDIR): Invoke it.
29571 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
29573         * lib/ftell.c (ftell): Comment out cast.
29575         close: use gl_REPLACE_FCLOSE only if defined
29576         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
29577         is defined.  The close module doesn't depend on the fclose module
29578         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
29579         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
29580         I reproduced the problem with "./gnulib-tool --test close sys_socket".
29582 2011-07-24  Jim Meyering  <meyering@redhat.com>
29584         test-select.h: avoid warning when using gcc's -Wmissing-declarations
29585         * tests/test-select.h (test_function): Declare as "static".
29587 2011-07-24  Bruno Haible  <bruno@clisp.org>
29589         doc: Mention the effects of AC_SYS_LARGEFILE.
29590         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
29591         on this function.
29592         * doc/posix-functions/aio_error.texi: Likewise.
29593         * doc/posix-functions/aio_fsync.texi: Likewise.
29594         * doc/posix-functions/aio_read.texi: Likewise.
29595         * doc/posix-functions/aio_return.texi: Likewise.
29596         * doc/posix-functions/aio_suspend.texi: Likewise.
29597         * doc/posix-functions/aio_write.texi: Likewise.
29598         * doc/posix-functions/fgetpos.texi: Likewise.
29599         * doc/posix-functions/fopen.texi: Likewise.
29600         * doc/posix-functions/freopen.texi: Likewise.
29601         * doc/posix-functions/fsetpos.texi: Likewise.
29602         * doc/posix-functions/fstatvfs.texi: Likewise.
29603         * doc/posix-functions/ftruncate.texi: Likewise.
29604         * doc/posix-functions/ftw.texi: Likewise.
29605         * doc/posix-functions/getrlimit.texi: Likewise.
29606         * doc/posix-functions/glob.texi: Likewise.
29607         * doc/posix-functions/lio_listio.texi: Likewise.
29608         * doc/posix-functions/lockf.texi: Likewise.
29609         * doc/posix-functions/mkstemp.texi: Likewise.
29610         * doc/posix-functions/mmap.texi: Likewise.
29611         * doc/posix-functions/nftw.texi: Likewise.
29612         * doc/posix-functions/openat.texi: Likewise.
29613         * doc/posix-functions/opendir.texi: Likewise.
29614         * doc/posix-functions/posix_fadvise.texi: Likewise.
29615         * doc/posix-functions/posix_fallocate.texi: Likewise.
29616         * doc/posix-functions/pread.texi: Likewise.
29617         * doc/posix-functions/pwrite.texi: Likewise.
29618         * doc/posix-functions/readdir.texi: Likewise.
29619         * doc/posix-functions/readdir_r.texi: Likewise.
29620         * doc/posix-functions/rewinddir.texi: Likewise.
29621         * doc/posix-functions/scandir.texi: Likewise.
29622         * doc/posix-functions/seekdir.texi: Likewise.
29623         * doc/posix-functions/setrlimit.texi: Likewise.
29624         * doc/posix-functions/statvfs.texi: Likewise.
29625         * doc/posix-functions/telldir.texi: Likewise.
29626         * doc/posix-functions/tmpfile.texi: Likewise.
29627         * doc/posix-functions/truncate.texi: Likewise.
29628         * doc/glibc-functions/fallocate.texi: Likewise.
29629         * doc/glibc-functions/fstatfs.texi: Likewise.
29630         * doc/glibc-functions/fts_children.texi: Likewise.
29631         * doc/glibc-functions/fts_read.texi: Likewise.
29632         * doc/glibc-functions/getdirentries.texi: Likewise.
29633         * doc/glibc-functions/mkostemp.texi: Likewise.
29634         * doc/glibc-functions/mkostemps.texi: Likewise.
29635         * doc/glibc-functions/mkstemps.texi: Likewise.
29636         * doc/glibc-functions/preadv.texi: Likewise.
29637         * doc/glibc-functions/pwritev.texi: Likewise.
29638         * doc/glibc-functions/sendfile.texi: Likewise.
29639         * doc/glibc-functions/statfs.texi: Likewise.
29641 2011-07-24  Bruno Haible  <bruno@clisp.org>
29643         doc: Fix typo.
29644         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
29646 2011-07-24  Bruno Haible  <bruno@clisp.org>
29648         doc: Mention fsusage.
29649         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
29651 2011-07-24  Bruno Haible  <bruno@clisp.org>
29653         doc: Mention new glibc headers and functions.
29654         * doc/glibc-headers/gshadow.texi: New file.
29655         * doc/glibc-functions/endsgent.texi: New file.
29656         * doc/glibc-functions/fgetsgent.texi: New file.
29657         * doc/glibc-functions/fgetsgent_r.texi: New file.
29658         * doc/glibc-functions/getsgent.texi: New file.
29659         * doc/glibc-functions/getsgent_r.texi: New file.
29660         * doc/glibc-functions/getsgnam.texi: New file.
29661         * doc/glibc-functions/getsgnam_r.texi: New file.
29662         * doc/glibc-functions/putsgent.texi: New file.
29663         * doc/glibc-functions/setsgent.texi: New file.
29664         * doc/glibc-functions/sgetsgent.texi: New file.
29665         * doc/glibc-functions/sgetsgent_r.texi: New file.
29666         * doc/glibc-functions/malloc_info.texi: New file.
29667         * doc/glibc-functions/preadv.texi: New file.
29668         * doc/glibc-functions/pwritev.texi: New file.
29669         * doc/glibc-functions/register_printf_modifier.texi: New file.
29670         * doc/glibc-functions/register_printf_specifier.texi: New file.
29671         * doc/glibc-functions/register_printf_type.texi: New file.
29672         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
29673         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
29674         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
29675         * doc/glibc-functions/pthread_getname_np.texi: New file.
29676         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
29677         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
29678         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
29679         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
29680         * doc/glibc-functions/pthread_setname_np.texi: New file.
29681         * doc/glibc-functions/pthread_sigqueue.texi: New file.
29682         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
29683         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
29684         * doc/glibc-functions/qsort_r.texi: New file.
29685         * doc/glibc-functions/quick_exit.texi: New file.
29686         * doc/glibc-functions/syncfs.texi: New file.
29687         * doc/gnulib.texi: Include them.
29688         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
29689         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
29690         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
29691         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
29692         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
29693         * doc/glibc-functions/execvpe.texi: Likewise.
29695 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
29697         ftell: don't include <unistd.h>
29698         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
29699         guaranteed to define off_t, and the ftell module depends on the
29700         stdio module.
29702         ftell: do not assume wraparound signed arithmetic
29703         * lib/ftell.c: Include <limits.h>.
29704         (ftell): Don't assume wraparound signed arithmetic.
29706 2011-07-24  Bruno Haible  <bruno@clisp.org>
29708         close: No longer depend on module 'fclose'.
29709         * modules/close (Depends-on): Remove fclose.
29710         * NEWS: Mention the change.
29711         Suggested by Sam Steingold <sds@gnu.org>.
29713 2011-07-24  Bruno Haible  <bruno@clisp.org>
29715         fsusage: Enable large volume support on AIX >= 5.2.
29716         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
29717         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
29718         instead of STAT_STATVFS.
29719         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
29721         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
29722         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
29723         f_blocks field only on MacOS X.
29725         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
29726         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
29727         * modules/fsusage (Depends-on): Add largefile.
29729 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
29731         * README: Modernize discussion of signed integers.
29732         Assuming overflow wraparound is no longer safe.
29733         Mention ones' complement and signed magnitude.
29735 2011-07-22  Bruno Haible  <bruno@clisp.org>
29737         select tests, pselect tests: Refactor.
29738         * tests/test-select.h: New file, extracted from tests/test-select.c.
29739         (select_fn): New type.
29740         (test, do_select, do_select_nowait, do_select_wait, test_tty,
29741         test_connect_first, test_accept_first, test_pair, test_socket_pair,
29742         test_pipe): Add my_select argument.
29743         (test_function): Renamed from main. Add my_select argument.
29744         * tests/test-select.c: Move most code to tests/test-select.h. Include
29745         test-select.h.
29746         * modules/select-tests (Files): Add tests/test-select.h.
29747         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
29748         (my_select, main): New functions.
29749         * modules/pselect-tests (Files): Add tests/test-select.h,
29750         tests/macros.h, tests/signature.h.
29751         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
29752         (configure.ac): Check for <sys/wait.h>.
29754 2011-07-22  Bruno Haible  <bruno@clisp.org>
29756         sys_select tests: Check the signature of FD_*.
29757         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
29758         signature tests from here...
29759         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
29760         here.
29761         * modules/sys_select-tests (Files): Add tests/signature.h.
29763 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
29765         largefile: new module, replacing large-inode
29766         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
29767         * MODULES.html.sh: Add largefile, remove large-inode.
29768         * modules/largefile, m4/largefile.m4: New files.
29769         * modules/large-inode, m4/large-inode.m4: Remove.
29771         fsusage: port to MacOS X 10.7 with 4 TiB file systems
29772         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
29773         implementations that use only 32 bits to count blocks.
29774         On typical hosts with 1024-byte blocks, this fails with file
29775         systems as small as 4 TiB.  Problem reported by Herb Wartens
29776         <http://debbugs.gnu.org/9140> and this should also fix a similar
29777         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
29779         large-inode: New module
29780         * MODULES.html.sh: Add it.
29781         * modules/large-inode, m4/large-inode.m4: New files.
29783         extensions: Enable extensions on MacOS X 10.5 and later.
29784         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
29786 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
29788         file-has-acl: use acl_extended_file_nofollow if available
29789         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
29790         (acl_extended_file): New macro.
29791         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
29792         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
29794 2011-07-21  Bruno Haible  <bruno@clisp.org>
29796         Declare system functions in a way that works with C++.
29797         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
29798         declare fdopendir as extern "C".
29799         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
29800         declare frexpl as extern "C".
29801         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
29802         declare gai_strerror as extern "C".
29803         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
29804         programs, declare gai_strerror as extern "C".
29805         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
29806         declare getlogin_r as extern "C".
29807         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
29808         as extern "C".
29809         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
29810         declare ldexpl as extern "C".
29811         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
29812         as extern "C".
29813         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
29814         program, declare getmntinfo as extern "C".
29815         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
29816         stpncpy as extern "C".
29817         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
29818         program, declare __xpg_strerror_r as extern "C".
29819         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
29820         strndup as extern "C".
29821         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
29822         declare memset and bzero as extern "C".
29823         Reported by Sam Steingold <sds@gnu.org>.
29825 2011-07-12  Jim Meyering  <meyering@redhat.com>
29827         maint.mk: prohibit inclusion of "verify.h" without use
29828         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
29830 2011-07-19  Pádraig Brady  <P@draigBrady.com>
29832         timer-time: A new module to check for timer_settime()
29833         * m4/timer_time.m4: Check for the posix function.
29834         * modules/timer-time: Add the new module.
29835         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
29836         Mention it.
29838 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
29839             Bruno Haible  <bruno@clisp.org>
29841         pthread_sigmask: assume POSIX threads if --avoid=threadlib
29842         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
29843         not defined, assume POSIX threads and look for pthread_sigmask in
29844         $LIBS, without changing $CPPFLAGS.
29846 2011-07-19  Bruno Haible  <bruno@clisp.org>
29848         strstr: Update cross-compilation guess.
29849         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
29850         CPUs, guess no, in view of glibc
29851         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
29852         Suggested by Eric Blake. Reported by Reuben Thomas.
29854 2011-07-19  Pádraig Brady  <P@draigBrady.com>
29856         getopt-gnu: suppress core dumps from detection code
29857         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
29858         to suppress core dumps that may well occur on glibc systems.
29859         * modules/getopt-gnu: Depend on nocrash.
29861 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
29863         pthread_sigmask: ensure usleep is declared
29864         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
29865         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
29867 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
29869         doc: Document NonStop portability issues.
29870         * doc/posix-functions/sigaction.texi (sigaction):
29871         * doc/posix-headers/signal.texi (signal.h):
29872         Document NonStop.  See Joachim Schmitz in
29873         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
29875 2011-07-15  Bruno Haible  <bruno@clisp.org>
29877         ffsl, ffsll: Avoid unportable behaviour.
29878         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
29880 2011-07-15  Bruno Haible  <bruno@clisp.org>
29882         ffs: More tests.
29883         * tests/test-ffs.c (NBITS): New macro.
29884         (main): Add more tests.
29885         * tests/test-ffsl.c (NBITS): New macro.
29886         (main): Add more tests.
29887         * tests/test-ffsll.c (NBITS): New macro.
29888         (main): Add more tests.
29890 2011-07-15  Eric Blake  <eblake@redhat.com>
29892         ffsl, ffsll: new modules
29893         * modules/ffsl: New file.
29894         * modules/ffsll: Likewise.
29895         * m4/ffsl.m4: Likewise.
29896         * m4/ffsll.m4: Likewise.
29897         * lib/ffsl.c: Likewise.
29898         * lib/ffsl.h: Likewise.
29899         * lib/ffsll.c: Likewise.
29900         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
29901         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
29902         * modules/string (Makefile.am): Substitute witnesses.
29903         * lib/strings.in.h (ffsl, ffsll): Declare.
29904         * modules/ffsl-tests: New test file.
29905         * modules/ffsll-tests: Likewise.
29906         * tests/test-ffsl.c: Likewise.
29907         * tests/test-ffsll.c: Likewise.
29908         * MODULES.html.sh (Integer arithmetic functions): Mention it.
29909         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
29910         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
29912         ffs: fix m4 prerequisite
29913         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
29915         ffs: avoid undefined behavior
29916         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
29917         * tests/test-ffs.c (naive, main): Avoid signed shifts.
29918         Reported by Bruno Haible.
29920 2011-07-12  Bruno Haible  <bruno@clisp.org>
29922         pthread_sigmask: Rely on module 'threadlib'.
29923         * modules/pthread_sigmask (Depends-on): Add threadlib.
29924         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
29925         is defined.
29927 2011-07-12  Bruno Haible  <bruno@clisp.org>
29929         regex: Depend on module 'strcase'.
29930         * modules/regex (Depends-on): Add strcase, for strcasecmp().
29932 2011-07-12  Jim Meyering  <meyering@redhat.com>
29934         warn-on-use: fix typo in file name
29935         * modules/snippet/warn-on-use (Files): Correct file name:
29936         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
29938 2011-07-12  Bruno Haible  <bruno@clisp.org>
29940         strings: Document module.
29941         * doc/posix-headers/strings.texi: Mention module 'strings'.
29943 2011-07-12  Bruno Haible  <bruno@clisp.org>
29945         Rename module '_Noreturn' to 'snippet/_Noreturn'.
29946         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
29947         (Files, Makefile.am): Update.
29948         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
29949         * modules/stdlib (Depends-on): Update.
29951 2011-07-12  Bruno Haible  <bruno@clisp.org>
29953         * NEWS: Mention the changes.
29955         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
29956         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
29957         (Files, Makefile.am): Update.
29958         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
29959         * modules/arpa_inet (Depends-on): Update.
29960         * modules/ctype (Depends-on): Update.
29961         * modules/dirent (Depends-on): Update.
29962         * modules/fcntl-h (Depends-on): Update.
29963         * modules/glob (Depends-on): Update.
29964         * modules/iconv-h (Depends-on): Update.
29965         * modules/inttypes-incomplete (Depends-on): Update.
29966         * modules/langinfo (Depends-on): Update.
29967         * modules/locale (Depends-on): Update.
29968         * modules/math (Depends-on): Update.
29969         * modules/netdb (Depends-on): Update.
29970         * modules/poll-h (Depends-on): Update.
29971         * modules/pty (Depends-on): Update.
29972         * modules/search (Depends-on): Update.
29973         * modules/signal (Depends-on): Update.
29974         * modules/spawn (Depends-on): Update.
29975         * modules/stdio (Depends-on): Update.
29976         * modules/stdlib (Depends-on): Update.
29977         * modules/string (Depends-on): Update.
29978         * modules/strings (Depends-on): Update.
29979         * modules/sys_file (Depends-on): Update.
29980         * modules/sys_ioctl (Depends-on): Update.
29981         * modules/sys_select (Depends-on): Update.
29982         * modules/sys_socket (Depends-on): Update.
29983         * modules/sys_stat (Depends-on): Update.
29984         * modules/sys_time (Depends-on): Update.
29985         * modules/sys_times (Depends-on): Update.
29986         * modules/sys_utsname (Depends-on): Update.
29987         * modules/sys_wait (Depends-on): Update.
29988         * modules/termios (Depends-on): Update.
29989         * modules/time (Depends-on): Update.
29990         * modules/unistd (Depends-on): Update.
29991         * modules/wchar (Depends-on): Update.
29992         * modules/wctype-h (Depends-on): Update.
29993         * MODULES.html.sh (Support for building libraries and executables):
29994         Update.
29996         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
29997         * modules/snippet/unused-parameter: Renamed from
29998         modules/unused-parameter.
29999         (Files, Makefile.am): Update.
30000         * build-aux/snippet/unused-parameter.h: Renamed from
30001         build-aux/unused-parameter.h.
30002         * modules/selinux-h (Depends-on): Update.
30003         * modules/unistr/base (Depends-on): Update.
30004         * MODULES.html.sh (Core language properties): Update.
30006         Rename module 'link-warning' to 'snippet/link-warning'.
30007         * modules/snippet/link-warning: Renamed from modules/link-warning.
30008         (Files, Makefile.am): Update.
30009         * build-aux/snippet/link-warning.h: Renamed from
30010         build-aux/link-warning.h.
30011         * MODULES.html.sh (Support for building libraries and executables):
30012         Update.
30014         Rename module 'c++defs' to 'snippet/c++defs'.
30015         * modules/snippet/c++defs: Renamed from modules/c++defs.
30016         (Files, Makefile.am): Update.
30017         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
30018         * modules/arpa_inet (Depends-on): Update.
30019         * modules/ctype (Depends-on): Update.
30020         * modules/dirent (Depends-on): Update.
30021         * modules/fcntl-h (Depends-on): Update.
30022         * modules/glob (Depends-on): Update.
30023         * modules/iconv-h (Depends-on): Update.
30024         * modules/langinfo (Depends-on): Update.
30025         * modules/locale (Depends-on): Update.
30026         * modules/math (Depends-on): Update.
30027         * modules/netdb (Depends-on): Update.
30028         * modules/poll-h (Depends-on): Update.
30029         * modules/pty (Depends-on): Update.
30030         * modules/search (Depends-on): Update.
30031         * modules/signal (Depends-on): Update.
30032         * modules/spawn (Depends-on): Update.
30033         * modules/stdio (Depends-on): Update.
30034         * modules/stdlib (Depends-on): Update.
30035         * modules/string (Depends-on): Update.
30036         * modules/strings (Depends-on): Update.
30037         * modules/sys_ioctl (Depends-on): Update.
30038         * modules/sys_select (Depends-on): Update.
30039         * modules/sys_socket (Depends-on): Update.
30040         * modules/sys_stat (Depends-on): Update.
30041         * modules/sys_time (Depends-on): Update.
30042         * modules/sys_wait (Depends-on): Update.
30043         * modules/termios (Depends-on): Update.
30044         * modules/time (Depends-on): Update.
30045         * modules/unistd (Depends-on): Update.
30046         * modules/wchar (Depends-on): Update.
30047         * modules/wctype-h (Depends-on): Update.
30049         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
30050         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
30051         (Files, Makefile.am): Update.
30052         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
30053         * modules/argv-iter (Depends-on): Update.
30054         * modules/arpa_inet (Depends-on): Update.
30055         * modules/dirent (Depends-on): Update.
30056         * modules/fcntl-h (Depends-on): Update.
30057         * modules/fnmatch (Depends-on): Update.
30058         * modules/getopt-posix (Depends-on): Update.
30059         * modules/glob (Depends-on): Update.
30060         * modules/iconv-h (Depends-on): Update.
30061         * modules/inttypes-incomplete (Depends-on): Update.
30062         * modules/locale (Depends-on): Update.
30063         * modules/math (Depends-on): Update.
30064         * modules/netdb (Depends-on): Update.
30065         * modules/search (Depends-on): Update.
30066         * modules/signal (Depends-on): Update.
30067         * modules/spawn (Depends-on): Update.
30068         * modules/stdio (Depends-on): Update.
30069         * modules/stdlib (Depends-on): Update.
30070         * modules/string (Depends-on): Update.
30071         * modules/strings (Depends-on): Update.
30072         * modules/sys_socket (Depends-on): Update.
30073         * modules/sys_stat (Depends-on): Update.
30074         * modules/sys_time (Depends-on): Update.
30075         * modules/sys_times (Depends-on): Update.
30076         * modules/sys_utsname (Depends-on): Update.
30077         * modules/time (Depends-on): Update.
30078         * modules/unistd (Depends-on): Update.
30079         * modules/wchar (Depends-on): Update.
30080         * MODULES.html.sh (Support for building libraries and executables):
30081         Update.
30083 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
30085         Improvements on _Noreturn and related modules.
30087         modules/_Exit-tests: test _Noreturn too
30088         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
30089         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
30090         (main): Use them.
30092         stdnoreturn, stdnoreturn-tests: remove modules
30093         They're not needed here and a bit premature for use elsewhere.  See
30094         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
30095         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
30096         * tests/test-stdnoreturn.c: Remove files.
30097         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
30098         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
30099         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
30100         and using noreturn.
30101         * modules/openat, modules/sigpipe-die, modules/xalloc:
30102         * modules/xmemdup0, modules/xstrtol:
30103         Remove dependency on stdnoreturn.
30105         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
30106         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
30107         Reparenthesize to avoid GCC warning.
30108         Support Microsoft's syntax.
30109         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
30111         _Noreturn-tests: remove module
30112         * modules/_Noreturn-tests: Remove.
30113         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
30114         * tests/test-_Noreturn.c: Remove.
30115         * tests/test-stdnoreturn.c: Merge from the old
30116         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
30118 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
30120         _Noreturn, stdnoreturn, and related modules.
30122         * top/maint.mk: Adjust to new noreturn support.
30123         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
30124         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
30126         xalloc: use stdnoreturn.h
30127         * lib/xalloc.h: Include <stdnoreturn.h>.
30128         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
30129         * modules/xalloc (Depends-on): Add stdnoreturn.
30131         xstrtol: use stdnoreturn.h
30132         * lib/xstrtol.h: Include <stdnoreturn.h>.
30133         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
30134         * modules/xstrtol (Depends-on): Add stdnoreturn.
30136         xmemdup0: use stdnoreturn.h
30137         * lib/xmemdup0.h: Include <stdnoreturn.h>.
30138         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
30139         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
30141         sigpipe-die: use stdnoreturn.h
30142         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
30143         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
30144         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
30146         openat: use stdnoreturn.h
30147         * lib/openat.h: Include <stdnoreturn.h>.
30148         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
30149         * modules/openat (Depends-on): Add stdnoreturn.
30151         * lib/openat-die.c (openat_save_fail): Modernize comment.
30153         * lib/xalloc-die.c (xalloc_die): Modernize comment.
30155         * lib/glthread/thread.h: Modernize comment.
30157         obstack: use _Noreturn
30158         * lib/obstack.c (__attribute__): Remove macro.
30159         (print_and_abort): Use _Noreturn.
30161         c-stack: use _Noreturn
30162         * lib/c-stack.c (die, overflow_handler, segv_handler):
30163         Use _Noreturn rather than __attribute__((noreturn)).
30165         argmatch-tests, exclude_tests: use _Noreturn
30166         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
30167         Remove.
30168         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
30170         stdlib: use _Noreturn
30171         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
30172         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
30173         * modules/stdlib (Depends-on): Add _Noreturn.
30174         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
30176         stdnoreturn-tests: new module
30177         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
30179         stdnoreturn: new module
30180         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
30181         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
30183         _Noreturn-tests: new module
30184         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
30186         _Noreturn: new module
30187         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
30188         New section, mentioning it.
30189         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
30191         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
30193 2011-07-11  Eric Blake  <eblake@redhat.com>
30195         ffs: new module
30196         * modules/ffs: New file.
30197         * m4/ffs.m4: Likewise.
30198         * lib/ffs.c: Likewise.
30199         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
30200         * modules/strings (Makefile.am): Substitute witness.
30201         (Depends-on): Add c++defs.
30202         * lib/strings.in.h (ffs): Declare.
30203         * modules/ffs-tests: New test file.
30204         * tests/test-ffs.c: Test new module.
30205         * MODULES.html.sh (Integer arithmetic functions): Mention it.
30206         * doc/posix-functions/ffs.texi (ffs): Likewise.
30208         regex: avoid compiler warning
30209         * lib/regex.c (includes): Include <strings.h>, for use of
30210         strcasecmp in regcomp.c.
30211         Reported by Joachim Schmitz.
30213 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
30215         stdint: respect system's intmax_t if INTMAX_MAX
30216         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
30217         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
30218         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
30219         long but int64_t is long long, and where we will clash with the
30220         system intmax_t if we override it.  See
30221         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
30222         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
30223         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
30224         similarly for UINTMAX_C.
30226 2011-07-08  Bruno Haible  <bruno@clisp.org>
30228         pthread_sigmask tests: Avoid a compiler warning.
30229         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
30230         non-zero.
30232         sigprocmask tests: A better way to avoid a compiler warning.
30233         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
30234         (main): Complain if system() returns non-zero.
30235         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
30237 2011-07-08  Bruno Haible  <bruno@clisp.org>
30239         pthread_sigmask: Work around IRIX bug.
30240         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
30241         bug.
30242         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
30243         there may be unblocked pending signals.
30244         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
30246 2011-07-08  Bruno Haible  <bruno@clisp.org>
30248         pthread_sigmask: Work around Cygwin bug.
30249         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
30250         bug.
30251         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
30252         the system's pthread_sigmask function.
30253         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
30255 2011-07-08  Bruno Haible  <bruno@clisp.org>
30257         pthread_sigmask: Work around bug in single-threaded implementation.
30258         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
30259         FreeBSD, HP-UX, Solaris bug.
30260         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
30261         * lib/pthread_sigmask.c: Include <stddef.h>.
30262         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
30263         the system's pthread_sigmask function.
30264         * modules/pthread_sigmask (configure.ac): Invoke
30265         gl_PREREQ_PTHREAD_SIGMASK.
30266         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
30267         HP-UX, Solaris.
30269 2011-07-08  Eric Blake  <eblake@redhat.com>
30271         test-sigprocmask: avoid compiler warning
30272         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
30273         * tests/test-sigprocmask.c (main): Use it to silence warning.
30274         Reported by Jim Meyering.
30276         test-snprintf: avoid compiler warning
30277         * tests/test-snprintf.c (main): Avoid shadowed declaration.
30278         * tests/test-vsnprintf.c (main): Likewise.
30279         Reported by Jim Meyering.
30281 2011-07-08  Bruno Haible  <bruno@clisp.org>
30283         Tests for module 'pthread_sigmask'.
30284         * modules/pthread_sigmask-tests: New file.
30285         * tests/test-pthread_sigmask1.c: New file, based on
30286         tests/test-sigprocmask.c.
30287         * tests/test-pthread_sigmask2.c: New file.
30289 2011-07-08  Jim Meyering  <meyering@redhat.com>
30291         test-getopt.h: avoid warning about an unused variable
30292         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
30294 2011-07-07  Jim Meyering  <meyering@redhat.com>
30296         maint: reduce list of files exempt from sc_prohibit_leading_TABs
30297         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
30298         now that it no longer contains leading TABs.
30299         Remove unused "url=FIXME" statement.
30301 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
30303         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
30304         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
30305         When gl_THREADLIB is not in use, assume that the POSIX sematics
30306         are desired.  This is better for Emacs, which uses POSIX semantics
30307         on GNUish and/or POSIXish platforms, and does not use threads at
30308         all otherwise.
30310         pthread_sigmask: fix typo when testing for libraries
30311         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
30312         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
30314 2011-07-08  Eric Blake  <eblake@redhat.com>
30316         fts: introduce FTS_NOATIME
30317         * lib/fts_.h (FTS_NOATIME): New bit flag.
30318         (FTS_OPTIONMASK): Adjust.
30319         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
30320         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
30322 2011-07-08  Bruno Haible  <bruno@clisp.org>
30324         Tests for module 'thread'.
30325         * modules/thread-tests: New file.
30326         * tests/test-thread_self.c: New file.
30327         * tests/test-thread_create.cc: New file.
30329 2011-07-08  Bruno Haible  <bruno@clisp.org>
30331         thread: Avoid gcc warnings when using gl_thread_self().
30332         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
30333         'void *'.
30334         (gl_thread_self_pointer): Update.
30336 2011-07-07  Bruno Haible  <bruno@clisp.org>
30338         signal-c++-tests: Check declaration of pthread_sigmask.
30339         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
30340         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
30341         $(LIB_PTHREAD_SIGMASK).
30343 2011-07-07  Bruno Haible  <bruno@clisp.org>
30345         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
30346         * lib/signal.in.h (pthread_sigmask): Override if
30347         REPLACE_PTHREAD_SIGMASK is 1.
30348         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
30349         REPLACE_PTHREAD_SIGMASK.
30350         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
30351         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
30352         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
30353         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
30354         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
30356 2011-07-07  Bruno Haible  <bruno@clisp.org>
30358         pthread_sigmask: Ensure declaration in <signal.h>.
30359         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
30360         include <pthread.h>.
30361         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
30362         problem.
30364 2011-07-07  Bruno Haible  <bruno@clisp.org>
30366         pthread_sigmask: Document the module.
30367         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
30369 2011-07-07  Bruno Haible  <bruno@clisp.org>
30371         pthread_sigmask: Follow gnulib conventions.
30372         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
30373         gl_PTHREAD_SIGMASK.
30374         * modules/pthread_sigmask (configure.ac): Update.
30376 2011-07-07  Bruno Haible  <bruno@clisp.org>
30378         pthread_sigmask: Make declaration C++ safe.
30379         * lib/signal.in.h: In two special conditions, just do an #include_next.
30380         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
30381         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
30382         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
30383         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
30384         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
30385         not REPLACE_PTHREAD_MASK.
30386         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
30387         not REPLACE_PTHREAD_MASK.
30388         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
30390 2011-07-07  Bruno Haible  <bruno@clisp.org>
30392         pthread_sigmask: Fix return value.
30393         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
30394         * lib/pthread_sigmask.c: New file.
30395         * modules/pthread_sigmask (Files): Add it.
30396         (configure.ac): Invoke AC_LIBOBJ.
30398 2011-07-07  Eric Blake  <eblake@redhat.com>
30400         getopt: more portable argv creation
30401         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
30402         const, use char arrays rather than strings.
30403         Suggested by Paul Eggert.
30405 2011-07-07  Bruno Haible  <bruno@clisp.org>
30407         Tests for module 'sigprocmask'.
30408         * modules/sigprocmask-tests: New file.
30409         * tests/test-sigprocmask.c: New file.
30411 2011-07-07  Bruno Haible  <bruno@clisp.org>
30413         float tests: Tweak.
30414         * tests/test-float.c (main): Tweak skip message.
30416 2011-07-07  Eric Blake  <eblake@redhat.com>
30418         getopt: avoid compiler warning during configure
30419         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
30420         assigning string literals to non-const pointer.
30422         getopt-gnu: avoid crash in glibc getopt
30423         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
30424         * tests/test-getopt.h (test_getopt): Enhance test.
30425         * tests/test-getopt_long.h (test_getopt_long): Likewise.
30426         * doc/posix-functions/getopt.texi (getopt): Document it.
30427         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30428         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30429         Likewise.
30431 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
30433         getopt: handle W; without long options in getopt [BZ #12922]
30434         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
30435         but no long options are defined, just return 'W'.
30437 2011-07-07  Bruno Haible  <bruno@clisp.org>
30439         Avoid literal tabs.
30440         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
30441         variable containing a tab instead of a literal tab.
30442         Reported by Jim Meyering.
30444 2011-07-07  Bruno Haible  <bruno@clisp.org>
30446         Comments.
30447         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
30449 2011-07-06  Bruno Haible  <bruno@clisp.org>
30451         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
30452         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
30453         <winsock2.h>.
30454         (rpl_fd_isset, FD_ISSET): New definitions, copied from
30455         lib/sys_socket.in.h.
30456         (close, gethostname): Hide declarations from <winsock2.h>.
30457         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
30458         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
30459         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
30460         (select): Don't override if gnulib's <sys/select.h> was already
30461         included.
30462         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
30463         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
30464         setsockopt, shutdown, select): Tweak indentation.
30466 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
30468         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
30469         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
30470         in an application that does not use the sys_select module.
30472 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
30474         poll: do not return 0 on timeout=-1
30475         * lib/poll.c: Loop with yield if no events occurred.
30477 2011-07-06  Eric Blake  <eblake@redhat.com>
30479         pthread_sigmask: always replace when not using pthread
30480         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
30481         replacement when using some threading other than pthread.  Fix
30482         logic bug.
30484 2011-07-06  Bruno Haible  <bruno@clisp.org>
30486         Comments.
30487         * m4/printf.m4: Update comments about mingw.
30489 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
30491         sys_select: define sigset_t more portably
30492         * lib/sys_select.in.h: Always include <sys/types.h>, since
30493         we now need sigset_t and mingw defines it there.
30494         Include <signal.h> before split inclusion guard, to avoid
30495         mishaps on Solaris, whose <signal.h> eventually includes us.
30496         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
30497         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
30498         which come from ...
30499         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
30500         gl_CHECK_TYPE_SIGSET_T.
30501         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
30502         does the real work.
30503         * modules/sys_select (Depends-on): Add 'signal'.
30505         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
30506         Suggested by Bruno Haible.
30508         pselect: Use pthread_sigmask, not sigprocmask.
30509         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
30510         multithreaded apps better than sigprocmask does.
30511         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
30512         sigprocmask directly.
30514 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
30516         * lib/pselect.c (pselect): Use plain name, without "rpl_".
30517         Don't #undef,  since we don't need any underlying pselect.
30518         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
30519         (Depends-on): Add select.
30520         (Link): Add $(LIBSOCKET).
30521         These changes suggested by Bruno Haible.
30523         pselect: document better
30524         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
30525         * doc/posix-functions/pselect.texi (pselect): Document new module.
30527         pthread_sigmask: new module
30528         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
30529         * doc/posix-functions/pthread_sigmask.texi: Document new module.
30530         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
30531         This is done only as a macro; I don't know how well that'll
30532         work for C++.  Move <sys/types.h> include before the include_next,
30533         to avoid mishap on Solaris.
30534         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
30535         * modules/signal (Makefile.am): Substitute the check's results.
30536         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
30538         test-pselect: new module
30539         * modules/pselect-tests, tests/test-pselect.c: New files.
30540         * tests/test-select.c, tests/test-sys_select-c++.cc:
30541         If TEST_PSELECT is defined, test pselect instead of testing select.
30543         * tests/test-sys_select.c (sigset_t): Test for it, too.
30544         Suggested by Bruno Haible.
30546 2011-07-05  Eric Blake  <eblake@redhat.com>
30548         snprintf: guarantee %1$d, for libintl
30549         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
30550         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
30551         * doc/posix-functions/snprintf.texi (snprintf): Update.
30552         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
30553         * tests/test-snprintf.c (main): Enhance test.
30554         * tests/test-vsnprintf.c (main): Likewise.
30556 2011-07-05  Jim Meyering  <meyering@redhat.com>
30558         maint: exempt stdio-read.c and stdio-write.c from the cppi check
30559         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
30560         per Bruno's request, to accommodate this idiom (no space after "#")
30561         even when the function is inside an #if block:
30562         char *
30563         gets (char *s)
30564         #undef gets
30565         {
30566           ...
30567         }
30569 2011-07-04  Jim Meyering  <meyering@redhat.com>
30571         maint: indent with spaces, not TABs, and add a rule to check this
30572         * tests/test-userspec.c: Indent with spaces, not TABs.
30573         * tests/test-argp.c: Likewise.
30574         * tests/test-c-stack2.sh: Likewise.
30575         * tests/test-parse-duration.sh: Likewise
30576         * m4/strtod.m4: Likewise.
30577         * m4/alloca.m4: Likewise.
30578         * m4/pselect.m4: Likewise.
30579         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
30581 2011-07-03  Jim Meyering  <meyering@redhat.com>
30583         maint.mk: correct omissions in prohibit_argmatch_without_use check
30584         This rule would mistakenly report that argmatch.h is included without
30585         use even when both the argmatch and invalid_arg macro were used.
30586         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
30587         of argmatch and invalid_arg.
30589 2011-07-03  Bruno Haible  <bruno@clisp.org>
30591         Comments about EINTR.
30592         * lib/safe-read.h: Explain the purpose of this module.
30593         * lib/safe-write.h: Likewise.
30594         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
30595         module.
30596         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
30597         module.
30598         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30600 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
30602         xnanosleep: Rewrite to use new dtotimespec module.
30603         It has the conversion code that used to be in xnanosleep.
30604         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
30605         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
30606         (TIME_T_MAX): Remove.
30607         (xnanosleep): Rewrite in terms of dtotimespec.
30608         * modules/xnanosleep (Depends-on): Add dtotimespec.
30609         Remove intprops, stdbool.
30611         timespec-add, timespec-sub: new modules
30612         * lib/timespec.h (timespec_add, timespec_sub): New decls.
30613         * lib/timespec-add.c, lib/timespec-sub.c:
30614         * modules/timespec-add, modules/timespec-sub: New files.
30616         dtotimespec: new module
30617         * lib/timespec.h (dtotimespec): New decl.
30618         * lib/dtotimespec.c, modules/dtotimespec: New files.
30620         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
30622         pselect: new module
30623         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
30624         (pselect): New decls.
30625         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
30626         since the standard pselect decl uses 'restrict'.
30627         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
30628         HAVE_PSELECT, REPLACE_PSELECT.
30629         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
30630         HAVE_PSELECT, REPLACE_PSELECT.
30631         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
30633         sys_select: don't depend on sys_socket
30634         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
30635         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
30636         This fix works on GNU and GNU-like platforms, but has not been tested
30637         on native Windows.
30638         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
30639         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
30640         gl_HEADER_SYS_SOCKET.
30641         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
30642         gl_PREREQ_SYS_H_WINSOCK2.
30644 2011-06-29  Eric Blake  <eblake@redhat.com>
30646         pipe2: fix C89 compile problem
30647         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
30648         Reported by Bruno Haible.
30650         pipe, pipe2: don't corrupt fd on error
30651         * lib/pipe.c (pipe): Leave fd unchanged on error.
30652         * lib/pipe2.c (pipe2): Likewise.
30653         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
30654         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
30656 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
30658         mmap-anon: do not use regular expressions inadvertently
30659         * m4/mmap-anon.m4: Remove trailing period from strings sought
30660         in the output.
30662 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
30664         nanosleep: fix integer overflow problem
30665         * lib/nanosleep.c (my_usleep): Don't assume signed integer
30666         arithmetic wraps around on overflow.
30668         nanosleep: simplify carrying
30669         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
30670         first call to the underyling nanosleep, not for the last one.
30671         This doesn't fix any bugs, but it simplifies the computation of
30672         the remaining delay.  Found while auditing integer overflow issues.
30674         dup2: remove test for existence of fcntl
30675         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
30676         "#if HAVE_FCNTL", in the configure-time test program.
30677         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
30678         and therefore speeds up "configure" a bit.  Found while
30679         adding the dup2 module to Emacs.
30681 2011-06-24  Eric Blake  <eblake@redhat.com>
30683         maint.mk: enhance useless header checks
30684         * top/maint.mk (_sc_header_without_use): Check both include
30685         styles.
30686         (sc_prohibit_assert_without_use)
30687         (sc_prohibit_close_stream_without_use)
30688         (sc_prohibit_getopt_without_use)
30689         (sc_prohibit_quotearg_without_use)
30690         (sc_prohibit_quote_without_use)
30691         (sc_prohibit_long_options_without_use)
30692         (sc_prohibit_inttostr_without_use)
30693         (sc_prohibit_ignore_value_without_use)
30694         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
30695         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
30696         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
30697         (sc_prohibit_hash_pjw_without_use)
30698         (sc_prohibit_safe_read_without_use)
30699         (sc_prohibit_argmatch_without_use)
30700         (sc_prohibit_canonicalize_without_use)
30701         (sc_prohibit_root_dev_ino_without_use)
30702         (sc_prohibit_openat_without_use)
30703         (sc_prohibit_c_ctype_without_use)
30704         (sc_prohibit_signal_without_use)
30705         (sc_prohibit_stdio--_without_use)
30706         (sc_prohibit_stdio-safer_without_use)
30707         (sc_prohibit_strings_without_use)
30708         (sc_prohibit_intprops_without_use)
30709         (sc_prohibit_stddef_without_use)
30710         (sc_prohibit_xfreopen_without_use): Update clients.
30712 2011-06-24  Jim Meyering  <meyering@redhat.com>
30714         syntax-check: keep one maint.mk rule in sync with its header
30715         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
30716         of the bug Eric has just fixed, with today's commit 25e4c2ec.
30717         I prefer to avoid temporary files here, so use <(...), but that
30718         is not supported by /bin/sh, so...
30719         (SHELL): Define to /bin/bash.
30721 2011-06-24  Eric Blake  <eblake@redhat.com>
30723         maint.mk: update sc_prohibit_intprops_without_use
30724         * top/maint.mk (_intprops_names): Match recent changes.
30726 2011-06-24  Bruno Haible  <bruno@clisp.org>
30728         strerror-override: No-op tweak.
30729         * lib/strerror-override.h (strerror_override): Reorder conditions,
30730         for consistency with lib/strerror-override.c.
30732 2011-06-23  Eric Blake  <eblake@redhat.com>
30734         maint.mk: test further PATH_MAX issues
30735         * top/maint.mk (sc_prohibit_path_max_array): Rename...
30736         (sc_prohibit_path_max_allocation): ...and also test alloca.
30737         Suggested by Jim Meyering.
30739 2011-06-22  Eric Blake  <eblake@redhat.com>
30741         maint.mk: add syntax-check to avoid char[PATH_MAX]
30742         * top/maint.mk (sc_prohibit_path_max_array): New rule.
30744         stat: be robust to PATH_MAX definition
30745         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
30746         * modules/stat (Depends-on): Add verify.
30748         link: work around IRIX bug
30749         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
30750         * lib/link.c (rpl_link): Work around it.
30751         * tests/test-link.h (test_link): Enhance test.
30752         * doc/posix-functions/link.texi (link): Document the bug.
30754         getopt: silence clang warning
30755         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
30756         dereference.
30757         Reported by Gustavo Martin Domato.
30759 2011-06-22  Jim Meyering  <meyering@redhat.com>
30761         bootstrap: do not insert a blank line into each .gitignore file
30762         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
30764 2011-06-21  Eric Blake  <eblake@redhat.com>
30766         perror: test for output mismatch
30767         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
30768         perror on IRIX.
30770         strerror_r: fix OpenBSD behavior on out-of-range
30771         * lib/strerror_r.c (strerror_r): Always use maximal string.
30772         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
30774         strerror_r: fix OpenBSD behavior on 0
30775         * lib/strerror-override.c (strerror_override): Also override 0
30776         when needed.
30777         * lib/strerror-override.h (strerror_override): Likewise.
30778         * lib/strerror.c (strerror): Simplify, now that 0 override is done
30779         earlier.
30780         * lib/strerror_r.c (strerror_r): Likewise.
30781         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
30782         behavior...
30783         (gl_FUNC_STRERROR_0): ...into new macro.
30784         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
30785         is overridden.
30786         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
30787         * modules/strerror-override (Files): Add strerror.m4.
30788         (configure.ac): Also provide override for 0 when needed.
30789         * doc/posix-functions/strerror.texi (strerror): Document this.
30790         * doc/posix-functions/perror.texi (perror): Likewise.
30792         perror: adjust array size
30793         * modules/perror (Depends-on): Add strerror-override.
30794         * lib/perror.c (perror): Use it to avoid magic number.
30796         strerror-override: reduce size
30797         * lib/strerror-override.c (strerror_override): Use fewer lines.
30799 2011-06-20  Bruno Haible  <bruno@clisp.org>
30801         pathmax: Ensure correct value for PATH_MAX on HP-UX.
30802         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
30804 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
30806         alloca: port to compilers that can optimize like GCC 4.6.0
30807         * lib/alloca.c (find_stack_direction): New signature, taken from
30808         Autoconf git.  This works with GCC 4.6.0.  This code should never
30809         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
30810         be used with other compilers that optimize as well as GCC 4.6.0 does.
30811         (alloca): Adjust to new signature.
30812         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
30813         New macro, which patches Autoconf in a similar way.
30815         c-stack: stop worrying about stack direction
30816         * lib/c-stack.c (find_stack_direction): Remove.
30817         (segv_handler): Don't worry about stack direction growth, as it's
30818         too much of a pain to configure this correctly, given how compilers
30819         are optimizing-away our stack-growth detection code.  Instead, assume
30820         that any access to just before or just after the stack is OK.
30821         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
30822         Don't require AC_FUNC_ALLOCA; no longer needed.
30824 2011-06-20  Eric Blake  <eblake@redhat.com>
30826         test-stat: don't allocate PATH_MAX bytes
30827         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
30828         PATH_MAX-sized buffer.
30829         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
30830         * modules/stat-tests (Depends-on): Likewise.
30831         * tests/test-fstatat.c (includes): Drop pathmax.h.
30832         * tests/test-stat.c (includes): Likewise.
30833         Reported by Bruno Haible.
30835 2011-06-20  Bruno Haible  <bruno@clisp.org>
30837         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
30838         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
30839         * lib/float.c: New file.
30840         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
30841         REPLACE_FLOAT_LDBL.
30842         * modules/float (Files): Add lib/float.c.
30843         (configure.ac): Invoke AC_LIBOBJ.
30844         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
30846 2011-06-20  Bruno Haible  <bruno@clisp.org>
30848         Tests for module 'float'.
30849         * modules/float-tests: New file.
30850         * tests/test-float.c: New file.
30852 2011-06-19  Bruno Haible  <bruno@clisp.org>
30854         isinf: Coding style.
30855         * lib/isinf.c: Use GNU coding style.
30857 2011-06-19  Bruno Haible  <bruno@clisp.org>
30859         linkat test: Avoid test failure on AIX 7.1.
30860         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
30861         * tests/test-link.h (test_link): Likewise.
30863 2011-06-19  Bruno Haible  <bruno@clisp.org>
30865         pread test: Avoid test failure on OpenBSD 4.9.
30866         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
30868 2011-06-19  Bruno Haible  <bruno@clisp.org>
30870         sprintf-posix: Fix test failure on AIX 7.1.
30871         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
30872         * doc/posix-functions/dprintf.texi: Mention limited precision problem
30873         on AIX.
30874         * doc/posix-functions/fprintf.texi: Likewise.
30875         * doc/posix-functions/printf.texi: Likewise.
30876         * doc/posix-functions/snprintf.texi: Likewise.
30877         * doc/posix-functions/sprintf.texi: Likewise.
30878         * doc/posix-functions/vdprintf.texi: Likewise.
30879         * doc/posix-functions/vfprintf.texi: Likewise.
30880         * doc/posix-functions/vprintf.texi: Likewise.
30881         * doc/posix-functions/vsnprintf.texi: Likewise.
30882         * doc/posix-functions/vsprintf.texi: Likewise.
30884 2011-06-19  Bruno Haible  <bruno@clisp.org>
30886         roundl-ieee: Fix test failure on AIX 7.1.
30887         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
30888         * doc/posix-functions/roundl.texi: Mention problem with negative
30889         arguments.
30891 2011-06-19  Bruno Haible  <bruno@clisp.org>
30893         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
30894         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
30895         * doc/posix-functions/round.texi: Mention problem with negative
30896         arguments.
30897         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
30899 2011-06-19  Bruno Haible  <bruno@clisp.org>
30901         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
30902         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
30903         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
30904         * doc/posix-functions/roundf.texi: Mention problem with negative
30905         arguments.
30906         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
30908 2011-06-19  Bruno Haible  <bruno@clisp.org>
30910         ceilf-ieee: Work around bug on MacOS X 10.5.
30911         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
30913         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
30914         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
30915         IEEE compliant, avoid compiler optimizations.
30916         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
30917         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
30918         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
30919         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30920         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30921         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
30922         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30923         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
30924         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
30925         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
30927 2011-06-19  Bruno Haible  <bruno@clisp.org>
30929         ceilf-ieee: Work around bug on AIX 7.1.
30930         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
30931         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
30933 2011-06-19  Bruno Haible  <bruno@clisp.org>
30935         ceil-ieee: Work around bug on AIX 7.1.
30936         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
30937         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
30939 2011-06-18  Bruno Haible  <bruno@clisp.org>
30941         fsync test: Avoid test failure on MacOS X and AIX.
30942         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
30943         EINVAL.
30945 2011-06-18  Bruno Haible  <bruno@clisp.org>
30947         openat, fdopendir tests: Fix link errors.
30948         * modules/openat-tests (Depends-on): Add progname.
30949         * modules/fdopendir-tests (Depends-on): Likewise.
30950         * tests/test-fchownat.c: Include progname.h.
30951         (main): Call set_program_name.
30952         * tests/test-fstatat.c: Include progname.h.
30953         (main): Call set_program_name.
30954         * tests/test-mkdirat.c: Include progname.h.
30955         (main): Call set_program_name.
30956         * tests/test-openat.c: Include progname.h.
30957         (main): Call set_program_name.
30958         * tests/test-unlinkat.c: Include progname.h.
30959         (main): Call set_program_name.
30960         * tests/test-fdopendir.c: Include progname.h.
30961         (main): Call set_program_name.
30963 2011-06-18  Bruno Haible  <bruno@clisp.org>
30965         Doc update.
30966         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
30967         HP-UX.
30968         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
30970 2011-06-18  Bruno Haible  <bruno@clisp.org>
30972         getcwd tests: Avoid compilation error on HP-UX 11.31.
30973         * modules/getcwd-tests (Depends-on): Add pathmax.
30974         * tests/test-getcwd.c: Include pathmax.h.
30976 2011-06-18  Bruno Haible  <bruno@clisp.org>
30978         isfinite, isinf: Fix link error on AIX 6 and 7.
30979         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
30980         needed, also test the macro with a 'float' argument.
30981         * m4/isinf.m4 (gl_ISINF): Likewise.
30983 2011-06-18  Bruno Haible  <bruno@clisp.org>
30985         getloadavg: Don't clobber LIBS. Regression from previous commit.
30986         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
30987         AC_CHECK_LIB from here...
30988         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
30989         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
30990         gl_func_getloadavg_done.
30991         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30993 2011-06-18  Bruno Haible  <bruno@clisp.org>
30995         clean-temp: Improve documentation.
30996         * lib/clean-temp.h: Explain better how to use this module.
30997         Reported by John Darrington <john@darrington.wattle.id.au>.
30999 2011-06-17  Bruno Haible  <bruno@clisp.org>
31001         pread, pwrite: Avoid cc warning on AIX.
31002         * lib/unistd.in.h (pread): Undefine before defining as a macro.
31003         (pwrite): Likewise.
31005 2011-06-17  Bruno Haible  <bruno@clisp.org>
31007         spawn-pipe tests: Fix link error.
31008         * tests/test-spawn-pipe-child.c: Undefine fprintf.
31009         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31011 2011-06-17  Bruno Haible  <bruno@clisp.org>
31013         Tests: Remove unnecessary dependency.
31014         * modules/canonicalize-tests (Depends-on): Remove progname.
31015         * modules/chown-tests (Depends-on): Likewise.
31016         * modules/dirname-tests (Depends-on): Likewise.
31017         * modules/fdopendir-tests (Depends-on): Likewise.
31018         * modules/fdutimensat-tests (Depends-on): Likewise.
31019         * modules/hash-tests (Depends-on): Likewise.
31020         * modules/lchown-tests (Depends-on): Likewise.
31021         * modules/linkat-tests (Depends-on): Likewise.
31022         * modules/renameat-tests (Depends-on): Likewise.
31023         * modules/spawn-pipe-tests (Depends-on): Likewise.
31024         * modules/utimensat-tests (Depends-on): Likewise.
31026 2011-06-17  Bruno Haible  <bruno@clisp.org>
31028         spawn-pipe tests: Fix link error.
31029         * tests/test-spawn-pipe-child.c: Undefine fflush.
31031 2011-06-17  Bruno Haible  <bruno@clisp.org>
31033         Fix tests link errors.
31034         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
31035         * modules/chown-tests (Makefile.am): Don't link test-chown with
31036         LIBINTL.
31037         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
31038         LIBINTL.
31039         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
31040         LIBINTL.
31041         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
31042         LIBINTL.
31044 2011-06-16  Bruno Haible  <bruno@clisp.org>
31046         crypto/gc-sha1: Fix recent regression.
31047         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
31048         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
31050         crypto/gc-md5: Fix recent regression.
31051         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
31053         crypto/gc-md4: Fix recent regression.
31054         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
31055         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
31057         crypto/gc-arctwo: Fix recent regression.
31058         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
31059         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
31061         crypto/gc-rijndael: Fix recent regression.
31062         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
31063         (configure.ac): Invoke AC_LIBOBJ here.
31064         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
31065         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31067         crypto/gc-hmac-sha1: Fix recent regression.
31068         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
31069         (configure.ac): Invoke AC_LIBOBJ here.
31070         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
31071         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31073         crypto/gc-hmac-md5: Fix recent regression.
31074         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
31075         (configure.ac): Invoke AC_LIBOBJ here.
31076         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
31077         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31079         crypto/gc-des: Fix recent regression.
31080         * modules/crypto/gc-des (Files): Remove m4/des.m4.
31081         (configure.ac): Invoke AC_LIBOBJ here.
31082         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
31083         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31085         crypto/gc-arcfour: Fix recent regression.
31086         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
31087         (configure.ac): Invoke AC_LIBOBJ here.
31088         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
31089         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31091 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
31093         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
31094         After the 2011-05-21 change, this macro requires
31095         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
31096         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
31098 2011-06-16  Bruno Haible  <bruno@clisp.org>
31100         fprintftime: Move AC_LIBOBJ invocations to module description.
31101         * m4/fprintftime.m4: Remove file.
31102         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
31103         (configure.ac): Remove gl_FPRINTFTIME call.
31104         (Makefile.am): Augment lib_SOURCES.
31105         Reported by Jim Meyering.
31107 2011-06-16  Bruno Haible  <bruno@clisp.org>
31109         tmpfile-safer: Finish 2011-05-23 commit.
31110         * m4/stdio-safer.m4: Really remove file.
31111         Reported by Jim Meyering.
31113 2011-06-16  Bruno Haible  <bruno@clisp.org>
31115         syntax-check: Fix typo.
31116         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
31117         printf-posix.m4.
31118         Reported by Jim Meyering.
31120 2011-06-13  Jim Meyering  <meyering@redhat.com>
31122         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
31123         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
31125 2011-05-23  Bruno Haible  <bruno@clisp.org>
31127         yesno: Move AC_LIBOBJ invocations to module description.
31128         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
31129         * modules/yesno (Makefile.am): Augment lib_SOURCES.
31131 2011-05-23  Bruno Haible  <bruno@clisp.org>
31133         xstrtol: Move AC_LIBOBJ invocations to module description.
31134         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
31135         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
31137 2011-05-23  Bruno Haible  <bruno@clisp.org>
31139         xstrtold: Move AC_LIBOBJ invocations to module description.
31140         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
31141         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
31143 2011-05-23  Bruno Haible  <bruno@clisp.org>
31145         xstrtod: Move AC_LIBOBJ invocations to module description.
31146         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
31147         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
31149 2011-05-23  Bruno Haible  <bruno@clisp.org>
31151         xnanosleep: Move AC_LIBOBJ invocations to module description.
31152         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
31153         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
31155 2011-05-23  Bruno Haible  <bruno@clisp.org>
31157         xgetcwd: Move AC_LIBOBJ invocations to module description.
31158         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
31159         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
31161 2011-05-23  Bruno Haible  <bruno@clisp.org>
31163         xalloc: Move AC_LIBOBJ invocations to module description.
31164         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
31165         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
31167 2011-05-23  Bruno Haible  <bruno@clisp.org>
31169         write-any-file: Move AC_LIBOBJ invocations to module description.
31170         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
31171         invocation.
31172         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
31174 2011-05-23  Bruno Haible  <bruno@clisp.org>
31176         utimens: Move AC_LIBOBJ invocations to module description.
31177         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
31178         * modules/utimens (Makefile.am): Augment lib_SOURCES.
31180 2011-05-23  Bruno Haible  <bruno@clisp.org>
31182         utimecmp: Move AC_LIBOBJ invocations to module description.
31183         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
31184         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
31186 2011-05-23  Bruno Haible  <bruno@clisp.org>
31188         userspec: Move AC_LIBOBJ invocations to module description.
31189         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
31190         * modules/userspec (Makefile.am): Augment lib_SOURCES.
31192 2011-05-23  Bruno Haible  <bruno@clisp.org>
31194         unlinkdir: Move AC_LIBOBJ invocations to module description.
31195         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
31196         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
31198 2011-05-23  Bruno Haible  <bruno@clisp.org>
31200         unistd-safer: Move AC_LIBOBJ invocations to module description.
31201         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
31202         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
31204 2011-05-23  Bruno Haible  <bruno@clisp.org>
31206         tempname: Move AC_LIBOBJ invocations to module description.
31207         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
31208         * modules/tempname (Makefile.am): Augment lib_SOURCES.
31210 2011-05-23  Bruno Haible  <bruno@clisp.org>
31212         strftime: Move AC_LIBOBJ invocations to module description.
31213         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
31214         * modules/strftime (Makefile.am): Augment lib_SOURCES.
31216 2011-05-23  Bruno Haible  <bruno@clisp.org>
31218         stdlib-safer: Move AC_LIBOBJ invocations to module description.
31219         * m4/stdlib-safer.m4: Remove file.
31220         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
31221         (configure.ac): Remove gl_STDLIB_SAFER call.
31222         (Makefile.am): Augment lib_SOURCES.
31224 2011-05-23  Bruno Haible  <bruno@clisp.org>
31226         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
31227         * m4/stdio-safer.m4: Remove file.
31228         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
31229         (configure.ac): Remove gl_TMPFILE_SAFER call.
31230         (Makefile.am): Augment lib_SOURCES.
31232 2011-05-23  Bruno Haible  <bruno@clisp.org>
31234         popen-safer: Move AC_LIBOBJ invocations to module description.
31235         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
31236         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
31237         (configure.ac): Remove gl_POPEN_SAFER call.
31238         (Makefile.am): Augment lib_SOURCES.
31240 2011-05-23  Bruno Haible  <bruno@clisp.org>
31242         freopen-safer: Move AC_LIBOBJ invocations to module description.
31243         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
31244         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
31245         (configure.ac): Remove gl_FREOPEN_SAFER call.
31246         (Makefile.am): Augment lib_SOURCES.
31248 2011-05-23  Bruno Haible  <bruno@clisp.org>
31250         fopen-safer: Move AC_LIBOBJ invocations to module description.
31251         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
31252         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
31253         (configure.ac): Remove gl_FOPEN_SAFER call.
31254         (Makefile.am): Augment lib_SOURCES.
31256 2011-05-23  Bruno Haible  <bruno@clisp.org>
31258         crypto/sha512: Move AC_LIBOBJ invocations to module description.
31259         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
31260         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
31262 2011-05-23  Bruno Haible  <bruno@clisp.org>
31264         crypto/sha256: Move AC_LIBOBJ invocations to module description.
31265         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
31266         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
31268 2011-05-23  Bruno Haible  <bruno@clisp.org>
31270         crypto/sha1: Move AC_LIBOBJ invocations to module description.
31271         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
31272         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
31274 2011-05-23  Bruno Haible  <bruno@clisp.org>
31276         settime: Move AC_LIBOBJ invocations to module description.
31277         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
31278         * modules/settime (Makefile.am): Augment lib_SOURCES.
31280 2011-05-23  Bruno Haible  <bruno@clisp.org>
31282         savedir: Move AC_LIBOBJ invocations to module description.
31283         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
31284         * modules/savedir (Makefile.am): Augment lib_SOURCES.
31286 2011-05-23  Bruno Haible  <bruno@clisp.org>
31288         save-cwd: Move AC_LIBOBJ invocations to module description.
31289         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
31290         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
31292 2011-05-23  Bruno Haible  <bruno@clisp.org>
31294         same: Move AC_LIBOBJ invocations to module description.
31295         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
31296         * modules/same (Makefile.am): Augment lib_SOURCES.
31298 2011-05-23  Bruno Haible  <bruno@clisp.org>
31300         safe-write: Move AC_LIBOBJ invocations to module description.
31301         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
31302         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
31303         instead of gl_SAFE_WRITE.
31304         (Makefile.am): Augment lib_SOURCES.
31306 2011-05-23  Bruno Haible  <bruno@clisp.org>
31308         safe-read: Move AC_LIBOBJ invocations to module description.
31309         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
31310         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
31311         of gl_SAFE_READ.
31312         (Makefile.am): Augment lib_SOURCES.
31314 2011-05-23  Bruno Haible  <bruno@clisp.org>
31316         safe-alloc: Move AC_LIBOBJ invocations to module description.
31317         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
31318         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
31320 2011-05-23  Bruno Haible  <bruno@clisp.org>
31322         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
31323         * m4/rijndael.m4: Remove file.
31324         * modules/crypto/rijndael (Files): Remove it.
31325         (configure.ac): Remove gl_RIJNDAEL call.
31326         (Makefile.am): Augment lib_SOURCES.
31328 2011-05-23  Bruno Haible  <bruno@clisp.org>
31330         readtokens: Move AC_LIBOBJ invocations to module description.
31331         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
31332         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
31334 2011-05-23  Bruno Haible  <bruno@clisp.org>
31336         read-file: Move AC_LIBOBJ invocations to module description.
31337         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
31338         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
31339         of gl_FUNC_READ_FILE.
31340         (Makefile.am): Augment lib_SOURCES.
31342 2011-05-23  Bruno Haible  <bruno@clisp.org>
31344         quotearg: Move AC_LIBOBJ invocations to module description.
31345         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
31346         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
31348 2011-05-23  Bruno Haible  <bruno@clisp.org>
31350         quote: Move AC_LIBOBJ invocations to module description.
31351         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
31352         * modules/quote (Makefile.am): Augment lib_SOURCES.
31354 2011-05-23  Bruno Haible  <bruno@clisp.org>
31356         posixver: Move AC_LIBOBJ invocations to module description.
31357         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
31358         * modules/posixver (Makefile.am): Augment lib_SOURCES.
31360 2011-05-23  Bruno Haible  <bruno@clisp.org>
31362         posixtm: Move AC_LIBOBJ invocations to module description.
31363         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
31364         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
31366 2011-05-23  Bruno Haible  <bruno@clisp.org>
31368         physmem: Move AC_LIBOBJ invocations to module description.
31369         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
31370         * modules/physmem (Makefile.am): Augment lib_SOURCES.
31372 2011-05-23  Bruno Haible  <bruno@clisp.org>
31374         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
31375         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
31376         invocation.
31377         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
31379 2011-05-23  Bruno Haible  <bruno@clisp.org>
31381         mpsort: Move AC_LIBOBJ invocations to module description.
31382         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
31383         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
31385 2011-05-23  Bruno Haible  <bruno@clisp.org>
31387         modechange: Move AC_LIBOBJ invocations to module description.
31388         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
31389         * modules/modechange (Makefile.am): Augment lib_SOURCES.
31391 2011-05-23  Bruno Haible  <bruno@clisp.org>
31393         mkdir-p: Move AC_LIBOBJ invocations to module description.
31394         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
31395         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
31397 2011-05-23  Bruno Haible  <bruno@clisp.org>
31399         mkancesdirs: Move AC_LIBOBJ invocations to module description.
31400         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
31401         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
31403 2011-05-23  Bruno Haible  <bruno@clisp.org>
31405         mgetgroups: Move AC_LIBOBJ invocations to module description.
31406         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
31407         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
31409 2011-05-23  Bruno Haible  <bruno@clisp.org>
31411         memxor: Move AC_LIBOBJ invocations to module description.
31412         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
31413         * modules/memxor (Makefile.am): Augment lib_SOURCES.
31415 2011-05-23  Bruno Haible  <bruno@clisp.org>
31417         memcoll: Move AC_LIBOBJ invocations to module description.
31418         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
31419         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
31421 2011-05-23  Bruno Haible  <bruno@clisp.org>
31423         memcasecmp: Move AC_LIBOBJ invocations to module description.
31424         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
31425         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
31427 2011-05-23  Bruno Haible  <bruno@clisp.org>
31429         crypto/md5: Move AC_LIBOBJ invocations to module description.
31430         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
31431         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
31433 2011-05-23  Bruno Haible  <bruno@clisp.org>
31435         crypto/md4: Move AC_LIBOBJ invocations to module description.
31436         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
31437         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
31439 2011-05-23  Bruno Haible  <bruno@clisp.org>
31441         crypto/md2: Move AC_LIBOBJ invocations to module description.
31442         * m4/md2.m4: Remove file.
31443         * modules/crypto/md2 (Files): Remove it.
31444         (configure.ac): Remove gl_MD2 call.
31445         (Makefile.am): Augment lib_SOURCES.
31447 2011-05-23  Bruno Haible  <bruno@clisp.org>
31449         long-options: Move AC_LIBOBJ invocations to module description.
31450         * m4/long-options.m4: Remove file.
31451         * modules/long-options (Files): Remove it.
31452         (configure.ac): Remove gl_LONG_OPTIONS call.
31453         (Makefile.am): Augment lib_SOURCES.
31455 2011-05-23  Bruno Haible  <bruno@clisp.org>
31457         i-ring: Move AC_LIBOBJ invocations to module description.
31458         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
31459         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
31461 2011-05-23  Bruno Haible  <bruno@clisp.org>
31463         idcache: Move AC_LIBOBJ invocations to module description.
31464         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
31465         * modules/idcache (Makefile.am): Augment lib_SOURCES.
31467 2011-05-23  Bruno Haible  <bruno@clisp.org>
31469         human: Move AC_LIBOBJ invocations to module description.
31470         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
31471         * modules/human (Makefile.am): Augment lib_SOURCES.
31473 2011-05-23  Bruno Haible  <bruno@clisp.org>
31475         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
31476         * m4/hmac-sha1.m4: Remove file.
31477         * modules/crypto/hmac-sha1 (Files): Remove it.
31478         (configure.ac): Remove gl_HMAC_SHA1 call.
31479         (Makefile.am): Augment lib_SOURCES.
31481 2011-05-23  Bruno Haible  <bruno@clisp.org>
31483         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
31484         * m4/hmac-md5.m4: Remove file.
31485         * modules/crypto/hmac-md5 (Files): Remove it.
31486         (configure.ac): Remove gl_HMAC_MD5 call.
31487         (Makefile.am): Augment lib_SOURCES.
31489 2011-05-23  Bruno Haible  <bruno@clisp.org>
31491         hash: Move AC_LIBOBJ invocations to module description.
31492         * m4/hash.m4: Remove file.
31493         * modules/hash (Files): Remove it.
31494         (configure.ac): Remove gl_HASH call.
31495         (Makefile.am): Augment lib_SOURCES.
31497 2011-05-23  Bruno Haible  <bruno@clisp.org>
31499         hard-locale: Move AC_LIBOBJ invocations to module description.
31500         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
31501         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
31503 2011-05-23  Bruno Haible  <bruno@clisp.org>
31505         getugroups: Move AC_LIBOBJ invocations to module description.
31506         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
31507         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
31509 2011-05-23  Bruno Haible  <bruno@clisp.org>
31511         gettime: Move AC_LIBOBJ invocations to module description.
31512         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
31513         * modules/gettime (Makefile.am): Augment lib_SOURCES.
31515 2011-05-23  Bruno Haible  <bruno@clisp.org>
31517         getndelim2: Move AC_LIBOBJ invocations to module description.
31518         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
31519         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
31521 2011-05-23  Bruno Haible  <bruno@clisp.org>
31523         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
31524         * m4/gc-pbkdf2-sha1.m4: Remove file.
31525         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
31526         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
31527         (Makefile.am): Augment lib_SOURCES.
31529 2011-05-23  Bruno Haible  <bruno@clisp.org>
31531         fts: Move AC_LIBOBJ invocations to module description.
31532         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
31533         * modules/fts (configure.ac): ... to here.
31535 2011-05-23  Bruno Haible  <bruno@clisp.org>
31537         file-type: Move AC_LIBOBJ invocations to module description.
31538         * m4/file-type.m4: Remove file.
31539         * modules/file-type (Files): Remove it.
31540         (configure.ac): Remove gl_FILE_TYPE call.
31541         (Makefile.am): Augment lib_SOURCES.
31543 2011-05-23  Bruno Haible  <bruno@clisp.org>
31545         filenamecat*: Respect rules for use of AC_LIBOBJ.
31546         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
31547         Remove AC_LIBOBJ invocation.
31548         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
31549         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
31551 2011-05-23  Bruno Haible  <bruno@clisp.org>
31553         filemode: Move AC_LIBOBJ invocations to module description.
31554         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
31555         * modules/filemode (Makefile.am): Augment lib_SOURCES.
31557 2011-05-23  Bruno Haible  <bruno@clisp.org>
31559         openat-safer: Move AC_LIBOBJ invocations to module description.
31560         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
31561         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
31563 2011-05-23  Bruno Haible  <bruno@clisp.org>
31565         fcntl-safer: Move AC_LIBOBJ invocations to module description.
31566         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
31567         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
31569 2011-05-23  Bruno Haible  <bruno@clisp.org>
31571         exclude: Move AC_LIBOBJ invocations to module description.
31572         * m4/exclude.m4: Remove file.
31573         * modules/exclude (Files): Remove it.
31574         (configure.ac): Remove gl_EXCLUDE call.
31575         (Makefile.am): Augment lib_SOURCES.
31577 2011-05-23  Bruno Haible  <bruno@clisp.org>
31579         dirname*: Respect rules for use of AC_LIBOBJ.
31580         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
31581         invocations.
31582         * modules/dirname (Makefile.am): Augment lib_SOURCES.
31583         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
31585 2011-05-23  Bruno Haible  <bruno@clisp.org>
31587         dirent-safer: Move AC_LIBOBJ invocations to module description.
31588         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
31589         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
31591 2011-05-23  Bruno Haible  <bruno@clisp.org>
31593         crypto/des: Move AC_LIBOBJ invocations to module description.
31594         * m4/des.m4: Remove file.
31595         * modules/crypto/des (Files): Remove it.
31596         (configure.ac): Remove gl_DES call.
31597         (Makefile.am): Augment lib_SOURCES.
31599 2011-05-23  Bruno Haible  <bruno@clisp.org>
31601         cycle-check: Move AC_LIBOBJ invocations to module description.
31602         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
31603         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
31605 2011-05-23  Bruno Haible  <bruno@clisp.org>
31607         c-strtold: Move AC_LIBOBJ invocations to module description.
31608         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
31609         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
31611 2011-05-23  Bruno Haible  <bruno@clisp.org>
31613         c-strtod: Move AC_LIBOBJ invocations to module description.
31614         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
31615         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
31617 2011-05-23  Bruno Haible  <bruno@clisp.org>
31619         crc: Move AC_LIBOBJ invocations to module description.
31620         * m4/crc.m4: Remove file.
31621         * modules/crc (Files): Remove it.
31622         (configure.ac): Remove gl_CRC call.
31623         (Makefile.am): Augment lib_SOURCES.
31625 2011-05-23  Bruno Haible  <bruno@clisp.org>
31627         close-stream: Move AC_LIBOBJ invocations to module description.
31628         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
31629         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
31631 2011-05-23  Bruno Haible  <bruno@clisp.org>
31633         closeout: Move AC_LIBOBJ invocations to module description.
31634         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
31635         * modules/closeout (Makefile.am): Augment lib_SOURCES.
31637 2011-05-23  Bruno Haible  <bruno@clisp.org>
31639         closein: Move AC_LIBOBJ invocations to module description.
31640         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
31641         * modules/closein (Makefile.am): Augment lib_SOURCES.
31643 2011-05-23  Bruno Haible  <bruno@clisp.org>
31645         cloexec: Move AC_LIBOBJ invocations to module description.
31646         * m4/cloexec.m4: Remove file.
31647         * modules/cloexec (Files): Remove it.
31648         (configure.ac): Remove gl_CLOEXEC call.
31649         (Makefile.am): Augment lib_SOURCES.
31651 2011-05-23  Bruno Haible  <bruno@clisp.org>
31653         check-version: Move AC_LIBOBJ invocations to module description.
31654         * m4/check-version.m4: Remove file.
31655         * modules/check-version (Files): Remove it.
31656         (configure.ac): Remove gl_CHECK_VERSION call.
31657         (Makefile.am): Augment lib_SOURCES.
31659 2011-05-23  Bruno Haible  <bruno@clisp.org>
31661         chdir-safer: Move AC_LIBOBJ invocations to module description.
31662         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
31663         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
31665 2011-05-23  Bruno Haible  <bruno@clisp.org>
31667         canonicalize: Move AC_LIBOBJ invocations to module description.
31668         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
31669         AC_LIBOBJ invocation.
31670         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
31672 2011-05-23  Bruno Haible  <bruno@clisp.org>
31674         canon-host: Move AC_LIBOBJ invocations to module description.
31675         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
31676         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
31677         instead of gl_CANON_HOST.
31678         (Makefile.am): Augment lib_SOURCES.
31680 2011-05-23  Bruno Haible  <bruno@clisp.org>
31682         backupfile: Move AC_LIBOBJ invocations to module description.
31683         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
31684         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
31686 2011-05-23  Bruno Haible  <bruno@clisp.org>
31688         argmatch: Move AC_LIBOBJ invocations to module description.
31689         * m4/argmatch.m4: Remove file.
31690         * modules/argmatch (Files): Remove it.
31691         (configure.ac): Remove gl_ARGMATCH call.
31692         (Makefile.am): Augment lib_SOURCES.
31694 2011-05-23  Bruno Haible  <bruno@clisp.org>
31696         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
31697         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
31698         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
31700 2011-05-23  Bruno Haible  <bruno@clisp.org>
31702         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
31703         * m4/arcfour.m4: Remove file.
31704         * modules/crypto/arcfour (Files): Remove it.
31705         (configure.ac): Remove gl_ARCFOUR call.
31706         (Makefile.am): Augment lib_SOURCES.
31708 2011-05-22  Bruno Haible  <bruno@clisp.org>
31710         write: Move AC_LIBOBJ invocations to module description.
31711         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
31712         * modules/write (configure.ac): ... to here.
31714 2011-05-22  Bruno Haible  <bruno@clisp.org>
31716         wmemset: Move AC_LIBOBJ invocations to module description.
31717         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
31718         here...
31719         * modules/wmemset (configure.ac): ... to here.
31721 2011-05-22  Bruno Haible  <bruno@clisp.org>
31723         wmemmove: Move AC_LIBOBJ invocations to module description.
31724         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
31725         here...
31726         * modules/wmemmove (configure.ac): ... to here.
31728 2011-05-22  Bruno Haible  <bruno@clisp.org>
31730         wmemcpy: Move AC_LIBOBJ invocations to module description.
31731         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
31732         here...
31733         * modules/wmemcpy (configure.ac): ... to here.
31735 2011-05-22  Bruno Haible  <bruno@clisp.org>
31737         wmemcmp: Move AC_LIBOBJ invocations to module description.
31738         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
31739         here...
31740         * modules/wmemcmp (configure.ac): ... to here.
31742 2011-05-22  Bruno Haible  <bruno@clisp.org>
31744         wmemchr: Move AC_LIBOBJ invocations to module description.
31745         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
31746         here...
31747         * modules/wmemchr (configure.ac): ... to here.
31749 2011-05-22  Bruno Haible  <bruno@clisp.org>
31751         wcswidth: Move AC_LIBOBJ invocations to module description.
31752         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
31753         here...
31754         * modules/wcswidth (configure.ac): ... to here.
31756 2011-05-22  Bruno Haible  <bruno@clisp.org>
31758         wcwidth: Respect rules for use of AC_LIBOBJ.
31759         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
31760         invocation from here...
31761         * modules/wcwidth (configure.ac): ... to here.
31762         (Depends-on): Update conditions.
31764 2011-05-22  Bruno Haible  <bruno@clisp.org>
31766         wctype: Move AC_LIBOBJ invocations to module description.
31767         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
31768         invocation from here...
31769         * modules/wctype (configure.ac): ... to here.
31770         (Depends-on): Update conditions.
31772 2011-05-22  Bruno Haible  <bruno@clisp.org>
31774         wctrans: Move AC_LIBOBJ invocations to module description.
31775         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
31776         invocation from here...
31777         * modules/wctrans (configure.ac): ... to here.
31779 2011-05-22  Bruno Haible  <bruno@clisp.org>
31781         wctomb: Move AC_LIBOBJ invocations to module description.
31782         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
31783         invocations from here...
31784         * modules/wctomb (configure.ac): ... to here.
31786 2011-05-22  Bruno Haible  <bruno@clisp.org>
31788         wctob: Move AC_LIBOBJ invocations to module description.
31789         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
31790         gl_PREREQ_WCTOB invocations from here...
31791         * modules/wctob (configure.ac): ... to here.
31792         (Depends-on): Update conditions.
31794 2011-05-22  Bruno Haible  <bruno@clisp.org>
31796         wcsxfrm: Move AC_LIBOBJ invocations to module description.
31797         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
31798         here...
31799         * modules/wcsxfrm (configure.ac): ... to here.
31801 2011-05-22  Bruno Haible  <bruno@clisp.org>
31803         wcstok: Move AC_LIBOBJ invocations to module description.
31804         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
31805         * modules/wcstok (configure.ac): ... to here.
31807 2011-05-22  Bruno Haible  <bruno@clisp.org>
31809         wcsstr: Move AC_LIBOBJ invocations to module description.
31810         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
31811         * modules/wcsstr (configure.ac): ... to here.
31813 2011-05-22  Bruno Haible  <bruno@clisp.org>
31815         wcsspn: Move AC_LIBOBJ invocations to module description.
31816         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
31817         * modules/wcsspn (configure.ac): ... to here.
31819 2011-05-22  Bruno Haible  <bruno@clisp.org>
31821         wcsrtombs: Move AC_LIBOBJ invocations to module description.
31822         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
31823         gl_PREREQ_WCSRTOMBS invocations from here...
31824         * modules/wcsrtombs (configure.ac): ... to here.
31826 2011-05-22  Bruno Haible  <bruno@clisp.org>
31828         wcsrchr: Move AC_LIBOBJ invocations to module description.
31829         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
31830         here...
31831         * modules/wcsrchr (configure.ac): ... to here.
31833 2011-05-22  Bruno Haible  <bruno@clisp.org>
31835         wcspbrk: Move AC_LIBOBJ invocations to module description.
31836         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
31837         here...
31838         * modules/wcspbrk (configure.ac): ... to here.
31840 2011-05-22  Bruno Haible  <bruno@clisp.org>
31842         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
31843         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
31844         gl_PREREQ_WCSNRTOMBS invocations from here...
31845         * modules/wcsnrtombs (configure.ac): ... to here.
31847 2011-05-22  Bruno Haible  <bruno@clisp.org>
31849         wcsnlen: Move AC_LIBOBJ invocations to module description.
31850         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
31851         here...
31852         * modules/wcsnlen (configure.ac): ... to here.
31854 2011-05-22  Bruno Haible  <bruno@clisp.org>
31856         wcsncpy: Move AC_LIBOBJ invocations to module description.
31857         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
31858         here...
31859         * modules/wcsncpy (configure.ac): ... to here.
31861 2011-05-22  Bruno Haible  <bruno@clisp.org>
31863         wcsncmp: Move AC_LIBOBJ invocations to module description.
31864         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
31865         here...
31866         * modules/wcsncmp (configure.ac): ... to here.
31868 2011-05-22  Bruno Haible  <bruno@clisp.org>
31870         wcsncat: Move AC_LIBOBJ invocations to module description.
31871         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
31872         here...
31873         * modules/wcsncat (configure.ac): ... to here.
31875 2011-05-22  Bruno Haible  <bruno@clisp.org>
31877         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
31878         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
31879         from here...
31880         * modules/wcsncasecmp (configure.ac): ... to here.
31882 2011-05-22  Bruno Haible  <bruno@clisp.org>
31884         wcslen: Move AC_LIBOBJ invocations to module description.
31885         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
31886         * modules/wcslen (configure.ac): ... to here.
31888 2011-05-22  Bruno Haible  <bruno@clisp.org>
31890         wcsdup: Move AC_LIBOBJ invocations to module description.
31891         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
31892         * modules/wcsdup (configure.ac): ... to here.
31894 2011-05-22  Bruno Haible  <bruno@clisp.org>
31896         wcscspn: Move AC_LIBOBJ invocations to module description.
31897         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
31898         here...
31899         * modules/wcscspn (configure.ac): ... to here.
31901 2011-05-22  Bruno Haible  <bruno@clisp.org>
31903         wcscpy: Move AC_LIBOBJ invocations to module description.
31904         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
31905         * modules/wcscpy (configure.ac): ... to here.
31907 2011-05-22  Bruno Haible  <bruno@clisp.org>
31909         wcscoll: Move AC_LIBOBJ invocations to module description.
31910         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
31911         here...
31912         * modules/wcscoll (configure.ac): ... to here.
31914 2011-05-22  Bruno Haible  <bruno@clisp.org>
31916         wcscmp: Move AC_LIBOBJ invocations to module description.
31917         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
31918         * modules/wcscmp (configure.ac): ... to here.
31920 2011-05-22  Bruno Haible  <bruno@clisp.org>
31922         wcschr: Move AC_LIBOBJ invocations to module description.
31923         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
31924         * modules/wcschr (configure.ac): ... to here.
31926 2011-05-22  Bruno Haible  <bruno@clisp.org>
31928         wcscat: Move AC_LIBOBJ invocations to module description.
31929         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
31930         * modules/wcscat (configure.ac): ... to here.
31932 2011-05-22  Bruno Haible  <bruno@clisp.org>
31934         wcscasecmp: Move AC_LIBOBJ invocations to module description.
31935         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
31936         here...
31937         * modules/wcscasecmp (configure.ac): ... to here.
31939 2011-05-22  Bruno Haible  <bruno@clisp.org>
31941         wcrtomb: Move AC_LIBOBJ invocations to module description.
31942         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
31943         invocations from here...
31944         * modules/wcrtomb (configure.ac): ... to here.
31946 2011-05-22  Bruno Haible  <bruno@clisp.org>
31948         wcpncpy: Move AC_LIBOBJ invocations to module description.
31949         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
31950         here...
31951         * modules/wcpncpy (configure.ac): ... to here.
31953 2011-05-22  Bruno Haible  <bruno@clisp.org>
31955         wcpcpy: Move AC_LIBOBJ invocations to module description.
31956         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
31957         * modules/wcpcpy (configure.ac): ... to here.
31959 2011-05-22  Bruno Haible  <bruno@clisp.org>
31961         waitpid: Move AC_LIBOBJ invocations to module description.
31962         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
31963         invocation from here...
31964         * modules/waitpid (configure.ac): ... to here.
31966 2011-05-22  Bruno Haible  <bruno@clisp.org>
31968         utimensat: Move AC_LIBOBJ invocations to module description.
31969         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
31970         here...
31971         * modules/utimensat (configure.ac): ... to here.
31973 2011-05-22  Bruno Haible  <bruno@clisp.org>
31975         usleep: Move AC_LIBOBJ invocations to module description.
31976         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
31977         here...
31978         * modules/usleep (configure.ac): ... to here.
31980 2011-05-22  Bruno Haible  <bruno@clisp.org>
31982         unlockpt: Move AC_LIBOBJ invocations to module description.
31983         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
31984         gl_PREREQ_UNLOCKPT invocations from here...
31985         * modules/unlockpt (configure.ac): ... to here.
31987 2011-05-22  Bruno Haible  <bruno@clisp.org>
31989         unlink: Respect rules for use of AC_LIBOBJ.
31990         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
31991         * modules/unlink (configure.ac): ... to here.
31993 2011-05-22  Bruno Haible  <bruno@clisp.org>
31995         uname: Move AC_LIBOBJ invocations to module description.
31996         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
31997         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
31998         here...
31999         * modules/uname (configure.ac): ... to here.
32001 2011-05-22  Bruno Haible  <bruno@clisp.org>
32003         ttyname_r: Move AC_LIBOBJ invocations to module description.
32004         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
32005         gl_PREREQ_TTYNAME_R invocations from here...
32006         * modules/ttyname_r (configure.ac): ... to here.
32008 2011-05-22  Bruno Haible  <bruno@clisp.org>
32010         tsearch: Move AC_LIBOBJ invocations to module description.
32011         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
32012         invocations from here...
32013         * modules/tsearch (configure.ac): ... to here.
32015 2011-05-22  Bruno Haible  <bruno@clisp.org>
32017         towctrans: Move AC_LIBOBJ invocations to module description.
32018         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
32019         AC_LIBOBJ invocation from here...
32020         * modules/towctrans (configure.ac): ... to here.
32022 2011-05-22  Bruno Haible  <bruno@clisp.org>
32024         tmpfile: Move AC_LIBOBJ invocations to module description.
32025         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
32026         invocations from here...
32027         * modules/tmpfile (configure.ac): ... to here.
32029 2011-05-22  Bruno Haible  <bruno@clisp.org>
32031         times: Move AC_LIBOBJ invocations to module description.
32032         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
32033         * modules/times (configure.ac): ... to here.
32035 2011-05-22  Bruno Haible  <bruno@clisp.org>
32037         time_r: Move AC_LIBOBJ invocations to module description.
32038         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
32039         invocations from here...
32040         * modules/time_r (configure.ac): ... to here.
32042 2011-05-22  Bruno Haible  <bruno@clisp.org>
32044         timegm: Move AC_LIBOBJ invocations to module description.
32045         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
32046         invocations from here...
32047         * modules/timegm (configure.ac): ... to here.
32049 2011-05-22  Bruno Haible  <bruno@clisp.org>
32051         tcgetsid: Move AC_LIBOBJ invocations to module description.
32052         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
32053         and gl_PREREQ_TCGETSID invocations from here...
32054         * modules/tcgetsid (configure.ac): ... to here.
32055         (Depends-on): Update conditions.
32057 2011-05-22  Bruno Haible  <bruno@clisp.org>
32059         symlinkat: Move AC_LIBOBJ invocations to module description.
32060         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
32061         here...
32062         * modules/symlinkat (configure.ac): ... to here.
32064 2011-05-22  Bruno Haible  <bruno@clisp.org>
32066         symlink: Move AC_LIBOBJ invocations to module description.
32067         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
32068         here...
32069         * modules/symlink (configure.ac): ... to here.
32071 2011-05-22  Bruno Haible  <bruno@clisp.org>
32073         strverscmp: Move AC_LIBOBJ invocations to module description.
32074         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
32075         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
32076         from here...
32077         * modules/strverscmp (configure.ac): ... to here.
32079 2011-05-22  Bruno Haible  <bruno@clisp.org>
32081         strtok_r: Move AC_LIBOBJ invocations to module description.
32082         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
32083         and gl_PREREQ_STRTOK_R invocations from here...
32084         * modules/strtok_r (configure.ac): ... to here.
32085         (Depends-on): Update conditions.
32087 2011-05-22  Bruno Haible  <bruno@clisp.org>
32089         strtoumax: Move AC_LIBOBJ invocations to module description.
32090         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
32091         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
32092         from here...
32093         * modules/strtoumax (configure.ac): ... to here.
32095 2011-05-22  Bruno Haible  <bruno@clisp.org>
32097         strtoimax: Move AC_LIBOBJ invocations to module description.
32098         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
32099         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
32100         from here...
32101         * modules/strtoimax (configure.ac): ... to here.
32103 2011-05-22  Bruno Haible  <bruno@clisp.org>
32105         strtoull: Move AC_LIBOBJ invocations to module description.
32106         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
32107         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
32108         from here...
32109         * modules/strtoull (configure.ac): ... to here.
32111 2011-05-22  Bruno Haible  <bruno@clisp.org>
32113         strtoll: Move AC_LIBOBJ invocations to module description.
32114         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
32115         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
32116         here...
32117         * modules/strtoll (configure.ac): ... to here.
32119 2011-05-22  Bruno Haible  <bruno@clisp.org>
32121         strtoul: Move AC_LIBOBJ invocations to module description.
32122         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
32123         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
32124         * modules/strtoul (configure.ac): ... to here.
32126 2011-05-22  Bruno Haible  <bruno@clisp.org>
32128         strtol: Move AC_LIBOBJ invocations to module description.
32129         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
32130         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
32131         * modules/strtol (configure.ac): ... to here.
32133 2011-05-22  Bruno Haible  <bruno@clisp.org>
32135         strtod: Move AC_LIBOBJ invocations to module description.
32136         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
32137         invocations from here...
32138         * modules/strtod (configure.ac): ... to here.
32140 2011-05-22  Bruno Haible  <bruno@clisp.org>
32142         strstr*: Move AC_LIBOBJ invocations to module description.
32143         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
32144         invocations from here...
32145         * modules/strstr-simple (configure.ac): ... to here.
32146         * modules/strstr (configure.ac): ... and here.
32148 2011-05-22  Bruno Haible  <bruno@clisp.org>
32150         strsignal: Move AC_LIBOBJ invocations to module description.
32151         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
32152         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
32153         * modules/strsignal (configure.ac): ... to here.
32154         (Depends-on): Update conditions.
32156 2011-05-22  Bruno Haible  <bruno@clisp.org>
32158         strsep: Move AC_LIBOBJ invocations to module description.
32159         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
32160         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
32161         here...
32162         * modules/strsep (configure.ac): ... to here.
32164 2011-05-22  Bruno Haible  <bruno@clisp.org>
32166         strptime: Move AC_LIBOBJ invocations to module description.
32167         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
32168         gl_PREREQ_STRPTIME invocations from here...
32169         * modules/strptime (configure.ac): ... to here.
32171 2011-05-22  Bruno Haible  <bruno@clisp.org>
32173         strpbrk: Move AC_LIBOBJ invocations to module description.
32174         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
32175         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
32176         here...
32177         * modules/strpbrk (configure.ac): ... to here.
32179 2011-05-22  Bruno Haible  <bruno@clisp.org>
32181         strnlen: Move AC_LIBOBJ invocations to module description.
32182         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
32183         invocations from here...
32184         * modules/strnlen (configure.ac): ... to here.
32186 2011-05-22  Bruno Haible  <bruno@clisp.org>
32188         strndup: Move AC_LIBOBJ invocations to module description.
32189         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
32190         invocations from here...
32191         * modules/strndup (configure.ac): ... to here.
32192         (Depends-on): Update conditions.
32194 2011-05-22  Bruno Haible  <bruno@clisp.org>
32196         strncat: Move AC_LIBOBJ invocations to module description.
32197         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
32198         invocations from here...
32199         * modules/strncat (configure.ac): ... to here.
32201 2011-05-22  Bruno Haible  <bruno@clisp.org>
32203         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
32204         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
32205         invocations from here...
32206         * modules/strdup (configure.ac): ... to here.
32207         * modules/strdup-posix (configure.ac): ... and here.
32209 2011-05-22  Bruno Haible  <bruno@clisp.org>
32211         strcspn: Move AC_LIBOBJ invocations to module description.
32212         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
32213         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
32214         here...
32215         * modules/strcspn (configure.ac): ... to here.
32217 2011-05-22  Bruno Haible  <bruno@clisp.org>
32219         strchrnul: Move AC_LIBOBJ invocations to module description.
32220         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
32221         gl_PREREQ_STRCHRNUL invocations from here...
32222         * modules/strchrnul (configure.ac): ... to here.
32224 2011-05-22  Bruno Haible  <bruno@clisp.org>
32226         strcasestr*: Move AC_LIBOBJ invocations to module description.
32227         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
32228         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
32229         * modules/strcasestr-simple (configure.ac): ... to here.
32230         * modules/strcasestr (configure.ac): ... and here.
32232 2011-05-22  Bruno Haible  <bruno@clisp.org>
32234         strcase: Move AC_LIBOBJ invocations to module description.
32235         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
32236         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
32237         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
32238         gl_PREREQ_STRNCASECMP invocations from here...
32239         * modules/strcase (configure.ac): ... to here.
32241 2011-05-22  Bruno Haible  <bruno@clisp.org>
32243         stpncpy: Move AC_LIBOBJ invocations to module description.
32244         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
32245         here...
32246         * modules/stpncpy (configure.ac): ... to here.
32248 2011-05-22  Bruno Haible  <bruno@clisp.org>
32250         stpcpy: Move AC_LIBOBJ invocations to module description.
32251         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
32252         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
32253         here...
32254         * modules/stpcpy (configure.ac): ... to here.
32256 2011-05-21  Bruno Haible  <bruno@clisp.org>
32258         stat: Move AC_LIBOBJ invocations to module description.
32259         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
32260         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
32261         here...
32262         * modules/stat (configure.ac): ... to here.
32264 2011-05-21  Bruno Haible  <bruno@clisp.org>
32266         sleep: Move AC_LIBOBJ invocations to module description.
32267         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
32268         * modules/sleep (configure.ac): ... to here.
32270 2011-05-21  Bruno Haible  <bruno@clisp.org>
32272         signbit: Move AC_LIBOBJ invocations to module description.
32273         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
32274         * modules/signbit (configure.ac): ... to here.
32276 2011-05-21  Bruno Haible  <bruno@clisp.org>
32278         sigprocmask: Move AC_LIBOBJ invocations to module description.
32279         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
32280         gl_PREREQ_SIGPROMASK invocations from here...
32281         * modules/sigprocmask (configure.ac): ... to here.
32283 2011-05-21  Bruno Haible  <bruno@clisp.org>
32285         sigaction: Move AC_LIBOBJ invocations to module description.
32286         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
32287         gl_PREREQ_SIGACTION invocations from here...
32288         * modules/sigaction (configure.ac): ... to here.
32290 2011-05-21  Bruno Haible  <bruno@clisp.org>
32292         sig2str: Move AC_LIBOBJ invocations to module description.
32293         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
32294         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
32295         here...
32296         * modules/sig2str (configure.ac): ... to here.
32298 2011-05-21  Bruno Haible  <bruno@clisp.org>
32300         setlocale: Move AC_LIBOBJ invocations to module description.
32301         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
32302         gl_PREREQ_SETLOCALE invocations from here...
32303         * modules/setlocale (configure.ac): ... to here.
32305 2011-05-21  Bruno Haible  <bruno@clisp.org>
32307         unsetenv: Move AC_LIBOBJ invocations to module description.
32308         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
32309         and gl_PREREQ_UNSETENV invocations from here...
32310         * modules/unsetenv (configure.ac): ... to here.
32311         (Depends-on): Update.
32313 2011-05-21  Bruno Haible  <bruno@clisp.org>
32315         setenv: Move AC_LIBOBJ invocations to module description.
32316         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
32317         here...
32318         * modules/setenv (configure.ac): ... to here.
32320 2011-05-21  Bruno Haible  <bruno@clisp.org>
32322         selinux-h: Move AC_LIBOBJ invocations to module description.
32323         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
32324         AC_LIBOBJ invocation from here...
32325         * modules/selinux-h (configure.ac): ... to here.
32327 2011-05-21  Bruno Haible  <bruno@clisp.org>
32329         select: Respect rules for use of AC_LIBOBJ.
32330         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
32331         here...
32332         * modules/select (configure.ac): ... to here.
32334 2011-05-21  Bruno Haible  <bruno@clisp.org>
32336         scandir: Move AC_LIBOBJ invocations to module description.
32337         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
32338         invocations from here...
32339         * modules/scandir (configure.ac): ... to here.
32341 2011-05-21  Bruno Haible  <bruno@clisp.org>
32343         rpmatch: Move AC_LIBOBJ invocations to module description.
32344         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
32345         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
32346         here...
32347         * modules/rpmatch (configure.ac): ... to here.
32349 2011-05-21  Bruno Haible  <bruno@clisp.org>
32351         rmdir: Respect rules for use of AC_LIBOBJ.
32352         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
32353         * modules/rmdir (configure.ac): ... to here.
32355 2011-05-21  Bruno Haible  <bruno@clisp.org>
32357         renameat: Move AC_LIBOBJ invocations to module description.
32358         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
32359         here...
32360         * modules/renameat (configure.ac): ... to here.
32362 2011-05-21  Bruno Haible  <bruno@clisp.org>
32364         rename: Respect rules for use of AC_LIBOBJ.
32365         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
32366         here...
32367         * modules/rename (configure.ac): ... to here.
32369 2011-05-21  Bruno Haible  <bruno@clisp.org>
32371         remove: Move AC_LIBOBJ invocations to module description.
32372         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
32373         here...
32374         * modules/remove (configure.ac): ... to here.
32376 2011-05-21  Bruno Haible  <bruno@clisp.org>
32378         relocatable-lib: Move AC_LIBOBJ invocations to module description.
32379         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
32380         macro.
32381         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
32382         * modules/relocatable-lib (configure.ac): ... to here.
32383         * modules/relocatable-prog-wrapper (configure.ac): Invoke
32384         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
32386 2011-05-21  Bruno Haible  <bruno@clisp.org>
32388         relocatable-prog: Move AC_LIBOBJ invocations to module description.
32389         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
32390         here...
32391         * modules/relocatable-prog (configure.ac): ... to here.
32393 2011-05-21  Bruno Haible  <bruno@clisp.org>
32395         regex: Move AC_LIBOBJ invocations to module description.
32396         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
32397         invocations from here...
32398         * modules/regex (configure.ac): ... to here.
32400 2011-05-21  Bruno Haible  <bruno@clisp.org>
32402         realloc-*: Move AC_LIBOBJ invocations to module description.
32403         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
32404         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
32405         AC_LIBOBJ invocations from here...
32406         * modules/realloc-gnu (configure.ac): ... to here.
32407         * modules/realloc-posix (configure.ac): ... and here.
32409 2011-05-21  Bruno Haible  <bruno@clisp.org>
32411         readutmp: Move AC_LIBOBJ invocations to module description.
32412         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
32413         * modules/readutmp (configure.ac): ... to here.
32415 2011-05-21  Bruno Haible  <bruno@clisp.org>
32417         readlinkat: Move AC_LIBOBJ invocations to module description.
32418         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
32419         here...
32420         * modules/readlinkat (configure.ac): ... to here.
32422 2011-05-21  Bruno Haible  <bruno@clisp.org>
32424         readlink: Move AC_LIBOBJ invocations to module description.
32425         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
32426         gl_PREREQ_READLINK invocations from here...
32427         * modules/readlink (configure.ac): ... to here.
32429 2011-05-21  Bruno Haible  <bruno@clisp.org>
32431         readline: Move AC_LIBOBJ invocations to module description.
32432         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
32433         gl_PREREQ_READLINE invocations from here...
32434         * modules/readline (configure.ac): ... to here.
32436 2011-05-21  Bruno Haible  <bruno@clisp.org>
32438         read: Move AC_LIBOBJ invocations to module description.
32439         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
32440         * modules/read (configure.ac): ... to here.
32442 2011-05-21  Bruno Haible  <bruno@clisp.org>
32444         rawmemchr: Move AC_LIBOBJ invocations to module description.
32445         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
32446         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
32447         from here...
32448         * modules/rawmemchr (configure.ac): ... to here.
32450 2011-05-21  Bruno Haible  <bruno@clisp.org>
32452         random_r: Move AC_LIBOBJ invocations to module description.
32453         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
32454         gl_PREREQ_RANDOM_R invocations from here...
32455         * modules/random_r (configure.ac): ... to here.
32457 2011-05-21  Bruno Haible  <bruno@clisp.org>
32459         pwrite: Move AC_LIBOBJ invocations to module description.
32460         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
32461         * modules/pwrite (configure.ac): ... to here.
32463 2011-05-21  Bruno Haible  <bruno@clisp.org>
32465         putenv: Move AC_LIBOBJ invocations to module description.
32466         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
32467         * modules/putenv (configure.ac): ... to here.
32469 2011-05-21  Bruno Haible  <bruno@clisp.org>
32471         login_tty: Move AC_LIBOBJ invocations to module description.
32472         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
32473         * modules/login_tty (configure.ac): ... to here.
32475 2011-05-21  Bruno Haible  <bruno@clisp.org>
32477         openpty: Move AC_LIBOBJ invocations to module description.
32478         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
32479         * modules/openpty (configure.ac): ... to here.
32481 2011-05-21  Bruno Haible  <bruno@clisp.org>
32483         forkpty: Move AC_LIBOBJ invocations to module description.
32484         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
32485         * modules/forkpty (configure.ac): ... to here.
32487 2011-05-21  Bruno Haible  <bruno@clisp.org>
32489         ptsname: Move AC_LIBOBJ invocations to module description.
32490         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
32491         invocations from here...
32492         * modules/ptsname (configure.ac): ... to here.
32494 2011-05-21  Bruno Haible  <bruno@clisp.org>
32496         pread: Move AC_LIBOBJ invocations to module description.
32497         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
32498         * modules/pread (configure.ac): ... to here.
32500 2011-05-21  Bruno Haible  <bruno@clisp.org>
32502         posix_spawn*: Move AC_LIBOBJ invocations to module description.
32503         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
32504         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
32505         * modules/posix_spawn (configure.ac): ... to here.
32506         * modules/posix_spawnp (configure.ac): ... and here.
32508 2011-05-21  Bruno Haible  <bruno@clisp.org>
32510         popen: Move AC_LIBOBJ invocations to module description.
32511         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
32512         invocations from here...
32513         * modules/popen (configure.ac): ... to here.
32515 2011-05-21  Bruno Haible  <bruno@clisp.org>
32517         poll: Move AC_LIBOBJ invocations to module description.
32518         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
32519         invocations from here...
32520         * modules/poll (configure.ac): ... to here.
32522 2011-05-21  Bruno Haible  <bruno@clisp.org>
32524         pipe-posix: Move AC_LIBOBJ invocations to module description.
32525         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
32526         * modules/pipe-posix (configure.ac): ... to here.
32528 2011-05-21  Bruno Haible  <bruno@clisp.org>
32530         openat: Respect rules for use of AC_LIBOBJ.
32531         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
32532         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
32533         * modules/openat (configure.ac): ... to here.
32535 2011-05-21  Bruno Haible  <bruno@clisp.org>
32537         obstack-printf*: Move AC_LIBOBJ invocations to module description.
32538         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
32539         invocation from here...
32540         * modules/obstack-printf (configure.ac): ... to here.
32541         * modules/obstack-printf-posix (configure.ac): ... and here.
32543 2011-05-21  Bruno Haible  <bruno@clisp.org>
32545         nl_langinfo: Move AC_LIBOBJ invocations to module description.
32546         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
32547         from here...
32548         * modules/nl_langinfo (configure.ac): ... to here.
32550 2011-05-21  Bruno Haible  <bruno@clisp.org>
32552         nanosleep: Move AC_LIBOBJ invocations to module description.
32553         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
32554         gl_PREREQ_NANOSLEEP invocations from here...
32555         * modules/nanosleep (configure.ac): ... to here.
32557 2011-05-21  Bruno Haible  <bruno@clisp.org>
32559         mountlist: Move AC_LIBOBJ invocations to module description.
32560         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
32561         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
32562         * modules/mountlist (configure.ac): ... to here.
32564 2011-05-21  Bruno Haible  <bruno@clisp.org>
32566         mktime: Respect rules for use of AC_LIBOBJ.
32567         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
32568         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
32569         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
32570         (gl_FUNC_MKTIME_INTERNAL): ... and here...
32571         * modules/mktime (configure.ac): ... to here.
32572         * modules/mktime-internal (configure.ac): ... and here.
32573         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
32575 2011-05-21  Bruno Haible  <bruno@clisp.org>
32577         mkstemps: Move AC_LIBOBJ invocations to module description.
32578         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
32579         here...
32580         * modules/mkstemps (configure.ac): ... to here.
32582 2011-05-21  Bruno Haible  <bruno@clisp.org>
32584         mkstemp: Move AC_LIBOBJ invocations to module description.
32585         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
32586         gl_PREREQ_MKSTEMP invocations from here...
32587         * modules/mkstemp (configure.ac): ... to here.
32589 2011-05-21  Bruno Haible  <bruno@clisp.org>
32591         mkostemps: Move AC_LIBOBJ invocations to module description.
32592         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
32593         here...
32594         * modules/mkostemps (configure.ac): ... to here.
32596 2011-05-21  Bruno Haible  <bruno@clisp.org>
32598         mkostemp: Move AC_LIBOBJ invocations to module description.
32599         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
32600         gl_PREREQ_MKOSTEMP invocations from here...
32601         * modules/mkostemp (configure.ac): ... to here.
32603 2011-05-21  Bruno Haible  <bruno@clisp.org>
32605         mknod: Move AC_LIBOBJ invocations to module description.
32606         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
32607         * modules/mknod (configure.ac): ... to here.
32609 2011-05-21  Bruno Haible  <bruno@clisp.org>
32611         mkfifoat: Move AC_LIBOBJ invocations to module description.
32612         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
32613         here...
32614         * modules/mkfifoat (configure.ac): ... to here.
32616 2011-05-21  Bruno Haible  <bruno@clisp.org>
32618         mkfifo: Respect rules for use of AC_LIBOBJ.
32619         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
32620         here...
32621         * modules/mkfifo (configure.ac): ... to here.
32623 2011-05-21  Bruno Haible  <bruno@clisp.org>
32625         mkdtemp: Move AC_LIBOBJ invocations to module description.
32626         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
32627         invocations from here...
32628         * modules/mkdtemp (configure.ac): ... to here.
32630 2011-05-21  Bruno Haible  <bruno@clisp.org>
32632         mkdir: Move AC_LIBOBJ invocations to module description.
32633         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
32634         * modules/mkdir (configure.ac): ... to here.
32636 2011-05-21  Bruno Haible  <bruno@clisp.org>
32638         memset: Move AC_LIBOBJ invocations to module description.
32639         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
32640         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
32641         here...
32642         * modules/memset (configure.ac): ... to here.
32644 2011-05-21  Bruno Haible  <bruno@clisp.org>
32646         memrchr: Move AC_LIBOBJ invocations to module description.
32647         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
32648         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
32649         here...
32650         * modules/memrchr (configure.ac): ... to here.
32652 2011-05-21  Bruno Haible  <bruno@clisp.org>
32654         mempcpy: Move AC_LIBOBJ invocations to module description.
32655         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
32656         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
32657         here...
32658         * modules/mempcpy (configure.ac): ... to here.
32660 2011-05-21  Bruno Haible  <bruno@clisp.org>
32662         memmove: Move AC_LIBOBJ invocations to module description.
32663         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
32664         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
32665         here...
32666         * modules/memmove (configure.ac): ... to here.
32668 2011-05-21  Bruno Haible  <bruno@clisp.org>
32670         memmem*: Move AC_LIBOBJ invocations to module description.
32671         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
32672         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
32673         here...
32674         (gl_FUNC_MEMMEM): ... and here...
32675         * modules/memmem-simple (configure.ac): ... to here.
32676         * modules/memmem (configure.ac): ... and here.
32678 2011-05-21  Bruno Haible  <bruno@clisp.org>
32680         memcpy: Move AC_LIBOBJ invocations to module description.
32681         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
32682         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
32683         here...
32684         * modules/memcpy (configure.ac): ... to here.
32686 2011-05-21  Bruno Haible  <bruno@clisp.org>
32688         memcmp: Simplify autoconf macro.
32689         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
32690         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
32691         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
32693 2011-05-21  Bruno Haible  <bruno@clisp.org>
32695         memcmp: Move AC_LIBOBJ invocations to module description.
32696         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
32697         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
32698         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
32699         * modules/memcmp (configure.ac): ... to here.
32700         (Depends-on): Update conditions.
32702 2011-05-21  Bruno Haible  <bruno@clisp.org>
32704         memchr: Respect rules for use of AC_LIBOBJ.
32705         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
32706         invocations from here...
32707         * modules/memchr (configure.ac): ... to here.
32709 2011-05-21  Bruno Haible  <bruno@clisp.org>
32711         mbtowc: Move AC_LIBOBJ invocations to module description.
32712         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
32713         invocations from here...
32714         * modules/mbtowc (configure.ac): ... to here.
32716 2011-05-21  Bruno Haible  <bruno@clisp.org>
32718         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
32719         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
32720         gl_PREREQ_MBSRTOWCS invocations from here...
32721         * modules/mbsrtowcs (configure.ac): ... to here.
32723 2011-05-21  Bruno Haible  <bruno@clisp.org>
32725         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
32726         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
32727         gl_PREREQ_MBSNRTOWCS invocations from here...
32728         * modules/mbsnrtowcs (configure.ac): ... to here.
32730 2011-05-21  Bruno Haible  <bruno@clisp.org>
32732         mbsinit: Move AC_LIBOBJ invocations to module description.
32733         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
32734         invocations from here...
32735         * modules/mbsinit (configure.ac): ... to here.
32737 2011-05-21  Bruno Haible  <bruno@clisp.org>
32739         mbrlen: Move AC_LIBOBJ invocations to module description.
32740         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
32741         invocations from here...
32742         * modules/mbrlen (configure.ac): ... to here.
32744 2011-05-21  Bruno Haible  <bruno@clisp.org>
32746         mbrtowc: Respect rules for use of AC_LIBOBJ.
32747         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
32748         invocations from here...
32749         * modules/mbrtowc (configure.ac): ... to here.
32751 2011-05-21  Bruno Haible  <bruno@clisp.org>
32753         malloc-*: Move AC_LIBOBJ invocations to module description.
32754         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
32755         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
32756         AC_LIBOBJ invocations from here...
32757         * modules/malloc-gnu (configure.ac): ... to here.
32758         * modules/malloc-posix (configure.ac): ... and here.
32760 2011-05-21  Bruno Haible  <bruno@clisp.org>
32762         lstat, openat: Respect rules for use of AC_LIBOBJ.
32763         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
32764         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
32765         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
32766         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
32767         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
32768         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
32769         here.
32770         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
32772 2011-05-21  Bruno Haible  <bruno@clisp.org>
32774         lseek: Move AC_LIBOBJ invocations to module description.
32775         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
32776         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
32777         * modules/lseek (configure.ac): ... to here.
32779 2011-05-21  Bruno Haible  <bruno@clisp.org>
32781         linkat: Move AC_LIBOBJ invocations to module description.
32782         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
32783         here...
32784         * modules/linkat (configure.ac): ... to here.
32786 2011-05-21  Bruno Haible  <bruno@clisp.org>
32788         link: Respect rules for use of AC_LIBOBJ.
32789         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
32790         * modules/link (configure.ac): ... to here.
32792 2011-05-21  Bruno Haible  <bruno@clisp.org>
32794         lchown: Move AC_LIBOBJ invocations to module description.
32795         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
32796         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
32797         * modules/lchown (configure.ac): ... to here.
32799 2011-05-21  Bruno Haible  <bruno@clisp.org>
32801         iswctype: Move AC_LIBOBJ invocations to module description.
32802         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
32803         here...
32804         * modules/iswctype (configure.ac): ... to here.
32806 2011-05-21  Bruno Haible  <bruno@clisp.org>
32808         iswblank: Move AC_LIBOBJ invocations to module description.
32809         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
32810         here...
32811         * modules/iswblank (configure.ac): ... to here.
32813 2011-05-21  Bruno Haible  <bruno@clisp.org>
32815         atanl: Move AC_LIBOBJ invocations to module description.
32816         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
32817         * modules/atanl (configure.ac): ... to here.
32819 2011-05-21  Bruno Haible  <bruno@clisp.org>
32821         acosl: Move AC_LIBOBJ invocations to module description.
32822         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
32823         * modules/acosl (configure.ac): ... to here.
32825 2011-05-21  Bruno Haible  <bruno@clisp.org>
32827         asinl: Respect rules for use of AC_LIBOBJ.
32828         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
32829         * modules/asinl (configure.ac): ... to here.
32831 2011-05-21  Bruno Haible  <bruno@clisp.org>
32833         tanl: Move AC_LIBOBJ invocations to module description.
32834         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
32835         * modules/tanl (configure.ac): ... to here.
32837 2011-05-21  Bruno Haible  <bruno@clisp.org>
32839         cosl: Move AC_LIBOBJ invocations to module description.
32840         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
32841         * modules/cosl (configure.ac): ... to here.
32843 2011-05-21  Bruno Haible  <bruno@clisp.org>
32845         sinl: Move AC_LIBOBJ invocations to module description.
32846         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
32847         * modules/sinl (configure.ac): ... to here.
32849 2011-05-21  Bruno Haible  <bruno@clisp.org>
32851         logl: Move AC_LIBOBJ invocations to module description.
32852         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
32853         * modules/logl (configure.ac): ... to here.
32855 2011-05-21  Bruno Haible  <bruno@clisp.org>
32857         expl: Move AC_LIBOBJ invocations to module description.
32858         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
32859         * modules/expl (configure.ac): ... to here.
32861 2011-05-21  Bruno Haible  <bruno@clisp.org>
32863         roundl: Move AC_LIBOBJ invocations to module description.
32864         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
32865         * modules/roundl (configure.ac): ... to here.
32867 2011-05-21  Bruno Haible  <bruno@clisp.org>
32869         round: Move AC_LIBOBJ invocations to module description.
32870         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
32871         * modules/round (configure.ac): ... to here.
32873 2011-05-21  Bruno Haible  <bruno@clisp.org>
32875         roundf: Move AC_LIBOBJ invocations to module description.
32876         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
32877         * modules/roundf (configure.ac): ... to here.
32879 2011-05-21  Bruno Haible  <bruno@clisp.org>
32881         truncl: Move AC_LIBOBJ invocations to module description.
32882         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
32883         * modules/truncl (configure.ac): ... to here.
32885 2011-05-21  Bruno Haible  <bruno@clisp.org>
32887         trunc: Move AC_LIBOBJ invocations to module description.
32888         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
32889         * modules/trunc (configure.ac): ... to here.
32891 2011-05-21  Bruno Haible  <bruno@clisp.org>
32893         truncf: Move AC_LIBOBJ invocations to module description.
32894         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
32895         * modules/truncf (configure.ac): ... to here.
32897 2011-05-21  Bruno Haible  <bruno@clisp.org>
32899         ceill: Move AC_LIBOBJ invocations to module description.
32900         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
32901         * modules/ceill (configure.ac): ... to here.
32903 2011-05-21  Bruno Haible  <bruno@clisp.org>
32905         ceil: Move AC_LIBOBJ invocations to module description.
32906         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
32907         * modules/ceil (configure.ac): ... to here.
32909 2011-05-21  Bruno Haible  <bruno@clisp.org>
32911         ceilf: Move AC_LIBOBJ invocations to module description.
32912         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
32913         * modules/ceilf (configure.ac): ... to here.
32915 2011-05-21  Bruno Haible  <bruno@clisp.org>
32917         floorl: Respect rules for use of AC_LIBOBJ.
32918         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
32919         * modules/floorl (configure.ac): ... to here.
32921 2011-05-21  Bruno Haible  <bruno@clisp.org>
32923         floor: Respect rules for use of AC_LIBOBJ.
32924         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
32925         * modules/floor (configure.ac): ... to here.
32927 2011-05-21  Bruno Haible  <bruno@clisp.org>
32929         floorf: Move AC_LIBOBJ invocations to module description.
32930         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
32931         * modules/floorf (configure.ac): ... to here.
32933 2011-05-20  Bruno Haible  <bruno@clisp.org>
32935         sqrtl: Respect rules for use of AC_LIBOBJ.
32936         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
32937         * modules/sqrtl (configure.ac): ... to here.
32939 2011-05-20  Bruno Haible  <bruno@clisp.org>
32941         ldexpl: Respect rules for use of AC_LIBOBJ.
32942         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
32943         * modules/ldexpl (configure.ac): ... to here.
32945 2011-05-20  Bruno Haible  <bruno@clisp.org>
32947         frexpl*: Respect rules for use of AC_LIBOBJ.
32948         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
32949         invocation from here...
32950         * modules/frexpl (configure.ac): ... to here.
32951         * modules/frexpl-nolibm (configure.ac): ... and here.
32953 2011-05-20  Bruno Haible  <bruno@clisp.org>
32955         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
32956         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
32957         invocation from here...
32958         * modules/frexp (configure.ac): ... to here.
32959         * modules/frexp-nolibm (configure.ac): ... and here.
32961 2011-05-20  Bruno Haible  <bruno@clisp.org>
32963         isnan: Respect rules for use of AC_LIBOBJ.
32964         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
32965         invocations here.
32966         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
32967         REPLACE_ISNAN.
32968         * modules/isnand (configure.ac): Likewise.
32969         * modules/isnanl (configure.ac): Likewise.
32971 2011-05-20  Bruno Haible  <bruno@clisp.org>
32973         isnanl*: Respect rules for use of AC_LIBOBJ.
32974         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
32975         invocation from here...
32976         * modules/isnanl (configure.ac): ... to here.
32977         * modules/isnanl-nolibm (configure.ac): ... and here.
32979 2011-05-20  Bruno Haible  <bruno@clisp.org>
32981         isnand*: Move AC_LIBOBJ invocations to module description.
32982         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
32983         invocation from here...
32984         * modules/isnand (configure.ac): ... to here.
32985         * modules/isnand-nolibm (configure.ac): ... and here.
32987 2011-05-20  Bruno Haible  <bruno@clisp.org>
32989         isnanf*: Move AC_LIBOBJ invocations to module description.
32990         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
32991         invocation from here...
32992         * modules/isnanf (configure.ac): ... to here.
32993         * modules/isnanf-nolibm (configure.ac): ... and here.
32995 2011-05-20  Bruno Haible  <bruno@clisp.org>
32997         isnan*: Separate the AC_LIBOBJ invocations.
32998         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
32999         AC_LIBOBJ invocation.
33000         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
33001         here.
33002         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
33003         AC_LIBOBJ invocation.
33004         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
33005         here.
33006         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
33007         AC_LIBOBJ invocation.
33008         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
33009         here.
33010         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
33012 2011-05-08  Bruno Haible  <bruno@clisp.org>
33014         isinf: Move AC_LIBOBJ invocations to module description.
33015         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
33016         * modules/isinf (configure.ac): ... to here.
33018 2011-05-08  Bruno Haible  <bruno@clisp.org>
33020         isfinite: Move AC_LIBOBJ invocations to module description.
33021         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
33022         * modules/isfinite (configure.ac): ... to here.
33024 2011-05-08  Bruno Haible  <bruno@clisp.org>
33026         isblank: Move AC_LIBOBJ invocations to module description.
33027         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
33028         here...
33029         * modules/isblank (configure.ac): ... to here.
33031 2011-05-08  Bruno Haible  <bruno@clisp.org>
33033         isapipe: Move AC_LIBOBJ invocations to module description.
33034         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
33035         gl_PREREQ_ISAPIPE invocations from here...
33036         * modules/isapipe (configure.ac): ... to here.
33037         (Depends-on): Update condition.
33039 2011-05-08  Bruno Haible  <bruno@clisp.org>
33041         ioctl: Move AC_LIBOBJ invocations to module description.
33042         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
33043         invocations from here...
33044         * modules/ioctl (configure.ac): ... to here.
33045         (Depends-on): Update condition.
33047 2011-05-08  Bruno Haible  <bruno@clisp.org>
33049         imaxdiv: Move AC_LIBOBJ invocations to module description.
33050         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
33051         invocations from here...
33052         * modules/imaxdiv (configure.ac): ... to here.
33054 2011-05-08  Bruno Haible  <bruno@clisp.org>
33056         imaxabs: Move AC_LIBOBJ invocations to module description.
33057         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
33058         invocations from here...
33059         * modules/imaxabs (configure.ac): ... to here.
33061 2011-05-08  Bruno Haible  <bruno@clisp.org>
33063         getaddrinfo: Move AC_LIBOBJ invocations to module description.
33064         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
33065         AC_LIBOBJ invocations from here...
33066         * modules/getaddrinfo (configure.ac): ... to here.
33067         (Depends-on): Add conditions.
33069 2011-05-08  Bruno Haible  <bruno@clisp.org>
33071         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
33072         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
33073         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
33074         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
33075         (gl_PREREQ_INET_PTON): ... from here.
33076         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
33077         gl_PREREQ_INET_PTON here.
33078         (Depends-on): Update condition.
33080 2011-05-08  Bruno Haible  <bruno@clisp.org>
33082         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
33083         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
33084         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
33085         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
33086         (gl_PREREQ_INET_NTOP): ... from here.
33087         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
33088         gl_PREREQ_INET_NTOP here.
33089         (Depends-on): Update condition.
33091 2011-05-08  Bruno Haible  <bruno@clisp.org>
33093         iconv_open: Move AC_LIBOBJ invocations to module description.
33094         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
33095         AC_LIBOBJ invocations from here...
33096         * modules/iconv_open (configure.ac): ... to here.
33098 2011-05-08  Bruno Haible  <bruno@clisp.org>
33100         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
33101         If module 'iconv_open' is among the main modules and module
33102         'iconv_open-utf' is among the tests dependencies, then
33103         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
33104         return the special iconv_t values. Therefore iconv() and iconv_close()
33105         must support these special iconv_t values, already in lib, not only in
33106         tests.
33107         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
33108         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
33109         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
33110         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
33111         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
33112         (Depends-on): Add the dependencies of iconv_open-utf.
33113         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
33114         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
33115         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
33117 2011-05-08  Bruno Haible  <bruno@clisp.org>
33119         group-member: Move AC_LIBOBJ invocations to module description.
33120         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
33121         gl_PREREQ_GROUP_MEMBER invocations from here...
33122         * modules/group-member (configure.ac): ... to here.
33124 2011-05-08  Bruno Haible  <bruno@clisp.org>
33126         grantpt: Move AC_LIBOBJ invocations to module description.
33127         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
33128         invocations from here...
33129         * modules/grantpt (configure.ac): ... to here.
33131 2011-05-08  Bruno Haible  <bruno@clisp.org>
33133         glob: Move AC_LIBOBJ invocations to module description.
33134         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
33135         from here...
33136         * modules/glob (configure.ac): ... to here.
33138 2011-05-08  Bruno Haible  <bruno@clisp.org>
33140         getusershell: Move AC_LIBOBJ invocations to module description.
33141         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
33142         Move AC_LIBOBJ invocation from here...
33143         * modules/getusershell (configure.ac): ... to here.
33144         (Depends-on): Update condition.
33146 2011-05-08  Bruno Haible  <bruno@clisp.org>
33148         gettimeofday: Move AC_LIBOBJ invocations to module description.
33149         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
33150         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
33151         gl_PREREQ_GETTIMEOFDAY invocations from here...
33152         * modules/gettimeofday (configure.ac): ... to here.
33154 2011-05-08  Bruno Haible  <bruno@clisp.org>
33156         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
33157         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
33158         just gl_FUNC_TZSET.
33159         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
33160         (gl_FUNC_TZSET_CLOBBER): Remove actions.
33161         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
33162         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
33164 2011-05-08  Bruno Haible  <bruno@clisp.org>
33166         getsubopt: Move AC_LIBOBJ invocations to module description.
33167         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
33168         gl_PREREQ_GETSUBOPT invocations from here...
33169         * modules/getsubopt (configure.ac): ... to here.
33171 2011-05-08  Bruno Haible  <bruno@clisp.org>
33173         getpass-gnu: Move AC_LIBOBJ invocations to module description.
33174         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
33175         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
33176         * modules/getpass-gnu (configure.ac): ... to here.
33178 2011-05-08  Bruno Haible  <bruno@clisp.org>
33180         getpass: Move AC_LIBOBJ invocations to module description.
33181         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
33182         gl_PREREQ_GETPASS invocations from here...
33183         * modules/getpass (configure.ac): ... to here.
33185 2011-05-08  Bruno Haible  <bruno@clisp.org>
33187         getpagesize: Move AC_LIBOBJ invocations to module description.
33188         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
33189         from here...
33190         * modules/getpagesize (configure.ac): ... to here.
33192 2011-05-08  Bruno Haible  <bruno@clisp.org>
33194         getopt: Move AC_LIBOBJ invocations to module description.
33195         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
33196         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
33197         invocations from here...
33198         * modules/getopt-gnu (configure.ac): ... to here.
33199         * modules/getopt-posix (configure.ac): ... and here.
33200         (Depends-on): Update condition.
33202 2011-05-08  Bruno Haible  <bruno@clisp.org>
33204         getopt, argp: Respect rules for use of AC_LIBOBJ.
33205         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
33206         (gl_REPLACE_GETOPT_ALWAYS): New macro.
33207         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
33208         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
33210 2011-05-08  Bruno Haible  <bruno@clisp.org>
33212         getlogin_r: Move AC_LIBOBJ invocations to module description.
33213         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
33214         gl_PREREQ_GETLOGIN_R invocations from here...
33215         * modules/getlogin_r (configure.ac): ... to here.
33217 2011-05-08  Bruno Haible  <bruno@clisp.org>
33219         getlogin: Move AC_LIBOBJ invocations to module description.
33220         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
33221         here...
33222         * modules/getlogin (configure.ac): ... to here.
33224 2011-05-08  Bruno Haible  <bruno@clisp.org>
33226         getloadavg: Move AC_LIBOBJ invocations to module description.
33227         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
33228         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
33229         * modules/getloadavg (configure.ac): ... to here.
33231 2011-05-08  Bruno Haible  <bruno@clisp.org>
33233         gethrxtime: Move AC_LIBOBJ invocations to module description.
33234         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
33235         LIB_GETHRXTIME from here...
33236         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
33237         invocations from here...
33238         * modules/gethrxtime (configure.ac): ... to here.
33240 2011-05-08  Bruno Haible  <bruno@clisp.org>
33242         gethostname: Move AC_LIBOBJ invocations to module description.
33243         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
33244         gl_PREREQ_GETHOSTNAME invocations from here...
33245         * modules/gethostname (configure.ac): ... to here.
33247 2011-05-08  Bruno Haible  <bruno@clisp.org>
33249         getgroups: Move AC_LIBOBJ invocations to module description.
33250         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
33251         here...
33252         * modules/getgroups (configure.ac): ... to here.
33254 2011-05-08  Bruno Haible  <bruno@clisp.org>
33256         getdtablesize: Move AC_LIBOBJ invocations to module description.
33257         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
33258         invocation from here...
33259         * modules/getdtablesize (configure.ac): ... to here.
33261 2011-05-08  Bruno Haible  <bruno@clisp.org>
33263         getdomainname: Move AC_LIBOBJ invocations to module description.
33264         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
33265         gl_PREREQ_GETDOMAINNAME invocations from here...
33266         * modules/getdomainname (configure.ac): ... to here.
33268 2011-05-08  Bruno Haible  <bruno@clisp.org>
33270         getline: Move AC_LIBOBJ invocations to module description.
33271         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
33272         invocations from here...
33273         * modules/getline (configure.ac): ... to here.
33275 2011-05-08  Bruno Haible  <bruno@clisp.org>
33277         getline: Simplify.
33278         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
33279         It's already handled through the module dependency.
33281 2011-05-08  Bruno Haible  <bruno@clisp.org>
33283         getdelim: Move AC_LIBOBJ invocations to module description.
33284         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
33285         and gl_PREREQ_GETDELIM invocations from here...
33286         * modules/getdelim (configure.ac): ... to here.
33287         (Depends-on): Fix condition.
33289 2011-05-08  Bruno Haible  <bruno@clisp.org>
33291         getcwd: Move AC_LIBOBJ invocations to module description.
33292         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
33293         invocations from here...
33294         * modules/getcwd (configure.ac): ... to here.
33296 2011-05-08  Bruno Haible  <bruno@clisp.org>
33298         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
33299         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
33300         here...
33301         * modules/getcwd-lgpl (configure.ac): ... to here.
33303 2011-05-07  Bruno Haible  <bruno@clisp.org>
33305         crypto/gc: Move AC_LIBOBJ invocations to module description.
33306         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
33307         * modules/crypto/gc (configure.ac): ... to here.
33309 2011-05-07  Bruno Haible  <bruno@clisp.org>
33311         fwriting: Move AC_LIBOBJ invocations to module description.
33312         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
33313         here...
33314         * modules/fwriting (configure.ac): ... to here.
33316 2011-05-07  Bruno Haible  <bruno@clisp.org>
33318         fwritable: Move AC_LIBOBJ invocations to module description.
33319         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
33320         here...
33321         * modules/fwritable (configure.ac): ... to here.
33323 2011-05-07  Bruno Haible  <bruno@clisp.org>
33325         futimens: Move AC_LIBOBJ invocations to module description.
33326         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
33327         here...
33328         * modules/futimens (configure.ac): ... to here.
33330 2011-05-07  Bruno Haible  <bruno@clisp.org>
33332         ftruncate: Move AC_LIBOBJ invocations to module description.
33333         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
33334         gl_PREREQ_FTRUNCATE invocations from here...
33335         * modules/ftruncate (configure.ac): ... to here.
33337 2011-05-07  Bruno Haible  <bruno@clisp.org>
33339         fsync: Move AC_LIBOBJ invocations to module description.
33340         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
33341         invocations from here...
33342         * modules/fsync (configure.ac): ... to here.
33344 2011-05-07  Bruno Haible  <bruno@clisp.org>
33346         fsusage: Move AC_LIBOBJ invocations to module description.
33347         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
33348         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
33349         * modules/fsusage (configure.ac): ... to here.
33351 2011-05-07  Bruno Haible  <bruno@clisp.org>
33353         freopen: Move AC_LIBOBJ invocations to module description.
33354         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
33355         invocations from here...
33356         * modules/freopen (configure.ac): ... to here.
33358 2011-05-07  Bruno Haible  <bruno@clisp.org>
33360         free: Move AC_LIBOBJ invocations to module description.
33361         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
33362         invocations from here...
33363         * modules/free (configure.ac): ... to here.
33365 2011-05-07  Bruno Haible  <bruno@clisp.org>
33367         freadable: Move AC_LIBOBJ invocations to module description.
33368         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
33369         here...
33370         * modules/freadable (configure.ac): ... to here.
33372 2011-05-07  Bruno Haible  <bruno@clisp.org>
33374         fpurge: Move AC_LIBOBJ invocations to module description.
33375         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
33376         invocations from here...
33377         * modules/fpurge (configure.ac): ... to here.
33379 2011-05-07  Bruno Haible  <bruno@clisp.org>
33381         fpending: Move AC_LIBOBJ invocations to module description.
33382         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
33383         gl_FUNC_FPENDING.
33384         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
33385         invocations from here...
33386         * modules/fpending (configure.ac): ... to here.
33388 2011-05-07  Bruno Haible  <bruno@clisp.org>
33390         fopen: Move AC_LIBOBJ invocations to module description.
33391         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
33392         invocations from here...
33393         * modules/fopen (configure.ac): ... to here.
33395 2011-05-07  Bruno Haible  <bruno@clisp.org>
33397         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
33398         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
33399         gl_FUNC_FNMATCH_POSIX.
33400         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
33401         invocations from here...
33402         * modules/fnmatch (configure.ac): ... to here.
33403         * modules/fnmatch-gnu (configure.ac): ... and here.
33405 2011-05-07  Bruno Haible  <bruno@clisp.org>
33407         flock: Move AC_LIBOBJ invocations to module description.
33408         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
33409         invocations from here...
33410         * modules/flock (configure.ac): ... to here.
33412 2011-05-07  Bruno Haible  <bruno@clisp.org>
33414         fileblocks: Move AC_LIBOBJ invocations to module description.
33415         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
33416         gl_PREREQ_FILEBLOCKS invocations from here...
33417         * modules/fileblocks (configure.ac): ... to here.
33419 2011-05-06  Bruno Haible  <bruno@clisp.org>
33421         fflush: Move AC_LIBOBJ invocations to module description.
33422         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
33423         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
33424         invocations from here...
33425         * modules/fflush (configure.ac): ... to here.
33427 2011-05-06  Bruno Haible  <bruno@clisp.org>
33429         fdopendir: Move AC_LIBOBJ invocations to module description.
33430         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
33431         here...
33432         * modules/fdopendir (configure.ac): ... to here.
33433         (Depends-on): Improve conditions.
33435 2011-05-06  Bruno Haible  <bruno@clisp.org>
33437         _Exit: Move AC_LIBOBJ invocations to module description.
33438         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
33439         invocations from here...
33440         * modules/_Exit (configure.ac): ... to here.
33442 2011-05-21  Bruno Haible  <bruno@clisp.org>
33444         euidaccess: Respect rules for use of AC_LIBOBJ.
33445         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
33446         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
33447         from here...
33448         * modules/euidaccess (configure.ac): ... to here.
33450 2011-05-06  Bruno Haible  <bruno@clisp.org>
33452         error: Move AC_LIBOBJ invocations to module description.
33453         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
33454         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
33455         invocations from here...
33456         * modules/error (configure.ac): ... to here.
33458 2011-05-06  Bruno Haible  <bruno@clisp.org>
33460         duplocale: Move AC_LIBOBJ invocations to module description.
33461         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
33462         gl_PREREQ_DUPLOCALE invocations from here...
33463         * modules/duplocale (configure.ac): ... to here.
33465 2011-05-05  Bruno Haible  <bruno@clisp.org>
33467         dirfd: Move AC_LIBOBJ invocations to module description.
33468         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
33469         gl_FUNC_DIRFD.
33470         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
33471         here...
33472         * modules/dirfd (configure.ac): ... to here.
33473         (Depends-on): Fix condition.
33475 2011-05-05  Bruno Haible  <bruno@clisp.org>
33477         chown: Respect rules for use of AC_LIBOBJ.
33478         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
33479         * modules/chown (configure.ac): ... to here.
33481 2011-05-05  Bruno Haible  <bruno@clisp.org>
33483         chdir-long: Move AC_LIBOBJ invocations to module description.
33484         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
33485         gl_PREREQ_CHDIR_LONG invocations from here...
33486         * modules/chdir-long (configure.ac): ... to here.
33488 2011-05-05  Bruno Haible  <bruno@clisp.org>
33490         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
33491         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
33492         from here...
33493         * modules/canonicalize-lgpl (configure.ac): ... to here.
33495 2011-05-05  Bruno Haible  <bruno@clisp.org>
33497         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
33498         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
33499         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
33500         REPLACE_CALLOC.
33501         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
33502         * modules/calloc-gnu (configure.ac): Likewise.
33504 2011-05-05  Bruno Haible  <bruno@clisp.org>
33506         btowc: Move AC_LIBOBJ invocations to module description.
33507         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
33508         invocations from here...
33509         * modules/btowc (configure.ac): ... to here.
33511 2011-05-21  Bruno Haible  <bruno@clisp.org>
33513         atexit: Move AC_LIBOBJ invocations to module description.
33514         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
33515         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
33516         here...
33517         * modules/atexit (configure.ac): ... to here.
33519 2011-05-05  Bruno Haible  <bruno@clisp.org>
33521         atoll: Move AC_LIBOBJ invocations to module description.
33522         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
33523         invocations from here...
33524         * modules/atoll (configure.ac): ... to here.
33526 2011-05-05  Bruno Haible  <bruno@clisp.org>
33528         argz: Move AC_LIBOBJ invocations to module description.
33529         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
33530         * modules/argz (configure.ac): ... to here.
33532 2011-05-05  Bruno Haible  <bruno@clisp.org>
33534         alphasort: Move AC_LIBOBJ invocations to module description.
33535         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
33536         gl_PREREQ_ALPHASORT invocations from here...
33537         * modules/alphasort (configure.ac): ... to here.
33539 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
33541         verify: new macro verify_expr; verify_true deprecated
33542         * NEWS: Mention this.
33543         * doc/verify.texi (Compile-time Assertions): Document this.
33544         * lib/verify.h (verify_true): Deprecate.
33545         (verify_expr): New macro.
33546         * tests/test-verify.c (function): Test verify_expr.
33548 2011-06-14  Jim Meyering  <meyering@redhat.com>
33550         init.sh: give more portable redirection-related advice in a comment
33551         * tests/init.sh (stderr_fileno_): Update the advice in comments.
33552         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
33553         for lots of discussion.  Stefano Lattarini suggested the solution
33554         of putting "9>&2" after the command.  Reported by Bruno Haible.
33556 2011-06-13  Bruno Haible  <bruno@clisp.org>
33558         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
33559         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
33560         'none'.
33562 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
33564         ftoastr: use strtof only if HAVE_STRTOF
33565         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
33566         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
33567         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
33568         * modules/ftoastr (configure.ac): Check for strtof.
33570 2011-06-13  Bruno Haible  <bruno@clisp.org>
33572         gnulib-tool: Addendum to 2011-06-08 commit.
33573         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
33574         and --witness-c-macro have been given, augment AM_CPPFLAGS.
33576 2011-06-13  Bruno Haible  <bruno@clisp.org>
33578         fseeko: Provide a non-inline replacement of fseek().
33579         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
33580         * modules/fseeko (Depends-on): Add fseek.
33581         * modules/fseek (License): Change to LGPLv2+.
33583 2011-06-13  Bruno Haible  <bruno@clisp.org>
33585         ftello: Provide a non-inline replacement of ftell().
33586         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
33587         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
33588         not have ftello() (such as on mingw).
33589         * modules/ftello (Depends-on): Add ftell.
33590         * modules/ftell (License): Change to LGPLv2+.
33592 2011-05-07  Bruno Haible  <bruno@clisp.org>
33594         ftell: Move AC_LIBOBJ invocations to module description.
33595         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
33596         * modules/ftell (configure.ac): ... to here.
33598 2011-05-07  Bruno Haible  <bruno@clisp.org>
33600         ftello: Respect rules for use of AC_LIBOBJ.
33601         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
33602         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
33603         here...
33604         * modules/ftello (configure.ac): ... to here.
33606 2011-05-07  Bruno Haible  <bruno@clisp.org>
33608         fseeko: Simplify.
33609         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
33610         (gl_FUNC_FSEEKO): Inline it here.
33612 2011-05-07  Bruno Haible  <bruno@clisp.org>
33614         fseek: Move AC_LIBOBJ invocations to module description.
33615         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
33616         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
33617         * modules/fseek (configure.ac): ... to here.
33619 2011-05-07  Bruno Haible  <bruno@clisp.org>
33621         fseek: Respect rules for use of AC_LIBOBJ.
33622         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
33623         here...
33624         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
33626 2011-05-07  Bruno Haible  <bruno@clisp.org>
33628         fseeko: Respect rules for use of AC_LIBOBJ.
33629         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
33630         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
33631         here...
33632         * modules/fseeko (configure.ac): ... to here.
33634 2011-06-13  Bruno Haible  <bruno@clisp.org>
33636         gnulib-tool: Allow comments in the 'Depends-on' section.
33637         * doc/gnulib.texi (Module description): Mention comment syntax in the
33638         Depends-on section.
33639         * gnulib-tool (func_get_dependencies): Filter out comment lines.
33641 2011-06-13  Bruno Haible  <bruno@clisp.org>
33643         file-set.h: guard __attibute__ use, now that it's not always defined
33644         * lib/file-set.h (record_file): Use __attribute__ only with compiler
33645         versions that support it.  This fixes a coreutils build failure with
33646         the vendor cc on HP-UX 11.31.
33648 2011-06-12  Bruno Haible  <bruno@clisp.org>
33650         acl: Add support for HP-UX >= 11.11 JFS ACLs.
33651         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
33652         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
33653         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
33654         (acl, aclsort): New declarations.
33655         (aclv_nontrivial): New declaration.
33656         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
33657         (file_has_acl): Read also the second kind of HP-UX ACLs.
33658         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
33659         kind of HP-UX ACLs if the first kind fails.
33660         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
33661         second kind of HP-UX ACLs.
33662         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
33663         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
33664         agree.
33665         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
33666         hpuxjfs.
33667         Handle hpuxjfs.
33668         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
33669         hpuxjfs.
33670         Handle hpuxjfs.
33671         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
33672         (func_test_same_acls): Use both lsacl and getacl.
33673         Handle hpuxjfs.
33674         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
33675         (func_test_same_acls): Use both lsacl and getacl.
33676         Handle hpuxjfs.
33678 2011-06-12  Bruno Haible  <bruno@clisp.org>
33680         acl: Complete the 2010-08-10 fix.
33681         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
33682         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
33683         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
33684         explicitly.
33685         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
33686         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
33688 2011-06-12  Bruno Haible  <bruno@clisp.org>
33690         spawn-pipe tests: Comments.
33691         * tests/test-spawn-pipe-child.c (main): Update comment.
33692         Reported by James Youngman <jay@gnu.org>.
33694 2011-06-11  James Youngman  <jay@gnu.org>
33696         New module 'stat-size'.
33697         * modules/stat-size: New module.  Provides macros for accessing
33698         file size information in instances of struct stat.  Depends on the
33699         fileblocks module because it calls st_blocks.
33700         * lib/stat-size.h: New file, adapted from coreutils' system.h.
33701         * doc/gnulib.texi: Include stat-size.texi.
33702         * doc/stat-size.texi: Documentation for this module.
33703         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
33704         * m4/fileblocks.m4: Mention that stat-size depends on the call to
33705         AC_STRUCT_ST_BLOCKS.
33707 2011-06-09  Bruno Haible  <bruno@clisp.org>
33709         thread: Support pthreads-win32.
33710         * lib/glthread/thread.h (gl_thread_self): Define differently on
33711         pthreads-win32.
33712         (gl_null_thread): New declaration.
33713         (gl_thread_self_pointer): New macro.
33714         * lib/glthread/thread.c (gl_null_thread): New constant.
33715         * tests/test-lock.c: Use gl_thread_self_pointer instead of
33716         gl_thread_self.
33717         * tests/test-tls.c: Likewise.
33718         Suggested by Paul Eggert. Reported by Eric Blake.
33720 2011-06-09  Bruno Haible  <bruno@clisp.org>
33722         thread: Fix confusion between NULL and 0.
33723         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
33724         Reported by Paul Eggert.
33726 2011-06-09  Bruno Haible  <bruno@clisp.org>
33728         spawn-pipe tests: Avoid test failure on HP-UX 11.
33729         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
33730         is closed.
33732 2011-06-09  Bruno Haible  <bruno@clisp.org>
33734         acl tests: Fix compilation error on HP-UX 11.
33735         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
33737 2011-06-09  Bruno Haible  <bruno@clisp.org>
33739         rmdir: Avoid test failure on HP-UX 10.20.
33740         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
33741         EEXIST.
33743 2011-06-08  Eric Blake  <eblake@redhat.com>
33745         perror: fix test on mingw
33746         * modules/perror-tests (Depends-on): Add dup2.
33748         strerror_r-posix: fix on MacOS
33749         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
33750         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
33751         logic bug.
33752         * lib/strerror_r.c (strerror_r): Fix the bug.
33753         * lib/strerror.c (strerror): Likewise.
33754         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
33755         problem.
33756         * doc/posix-functions/strerror.texi (strerror): Likewise.
33757         * doc/posix-functions/perror.texi (perror): Likewise.
33758         * tests/test-strerror.c (main): Enhance test.
33759         * tests/test-strerror_r.c (main): Likewise.
33761 2011-06-08  Bruno Haible  <bruno@clisp.org>
33763         gnulib-tool: Better isolation between different gnulib-tool invocations.
33764         * gnulib-tool: New option --witness-c-macro.
33765         (witness_c_macro): New variable.
33766         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
33767         AM_CPPFLAGS define it as a C macro.
33768         (func_emit_tests_Makefile_am): Likewise.
33769         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
33770         read it from there.
33771         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
33772         m4_define, not AC_DEFUN.
33773         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
33774         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
33775         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
33776         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
33777         s|...|...|, to substitute the values of the GNULIB_* module indicator
33778         variables.
33779         * modules/dirent (Makefile.am): Likewise.
33780         * modules/fcntl-h (Makefile.am): Likewise.
33781         * modules/iconv-h (Makefile.am): Likewise.
33782         * modules/langinfo (Makefile.am): Likewise.
33783         * modules/locale (Makefile.am): Likewise.
33784         * modules/math (Makefile.am): Likewise.
33785         * modules/netdb (Makefile.am): Likewise.
33786         * modules/poll-h (Makefile.am): Likewise.
33787         * modules/pty (Makefile.am): Likewise.
33788         * modules/search (Makefile.am): Likewise.
33789         * modules/signal (Makefile.am): Likewise.
33790         * modules/spawn (Makefile.am): Likewise.
33791         * modules/stdio (Makefile.am): Likewise.
33792         * modules/stdlib (Makefile.am): Likewise.
33793         * modules/string (Makefile.am): Likewise.
33794         * modules/sys_ioctl (Makefile.am): Likewise.
33795         * modules/sys_select (Makefile.am): Likewise.
33796         * modules/sys_socket (Makefile.am): Likewise.
33797         * modules/sys_stat (Makefile.am): Likewise.
33798         * modules/sys_times (Makefile.am): Likewise.
33799         * modules/sys_utsname (Makefile.am): Likewise.
33800         * modules/sys_wait (Makefile.am): Likewise.
33801         * modules/termios (Makefile.am): Likewise.
33802         * modules/time (Makefile.am): Likewise.
33803         * modules/unistd (Makefile.am): Likewise.
33804         * modules/wchar (Makefile.am): Likewise.
33806 2011-06-08  Eric Blake  <eblake@redhat.com>
33808         strerror: simplify replacement
33809         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
33810         * modules/strerror (configure.ac): No prereqs needed here...
33811         * modules/strerror-override (configure.ac): ...but this needs it.
33812         (Files): Add file for needed prereq macro.
33814 2011-06-08  Bruno Haible  <bruno@clisp.org>
33816         strerror_r-posix: Tweaks.
33817         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
33818         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
33819         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
33820         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
33821         (gl_FUNC_STRERROR_R): ... to here.
33822         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
33824 2011-06-07  Eric Blake  <eblake@redhat.com>
33826         perror: document fixed bugs
33827         * doc/posix-functions/perror.texi (perror): Document recent
33828         patches.
33830 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
33832         stat-time: get_stat_birthtime failure is better-defined
33833         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
33834         return a timestamp whose tv_sec and tv_nsec values are both -1.
33835         Previously, the spec said only that the tv_nsec value was negative.
33836         This upward-compatible change simplifies GNU tar a bit.
33838 2011-06-07  Eric Blake  <eblake@redhat.com>
33840         strerror_r-posix: work around cygwin 1.7.9
33841         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
33842         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
33843         bug without replacing strerror_r.
33844         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
33845         strerror_r is buggy, but without requiring strerror_r compilation.
33846         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
33848         test-perror: relax test to ignore cygwin bug
33849         * tests/test-perror2.c (main): Relax test on requiring detection
33850         of stream errors, and use unbuffered stream.
33851         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
33852         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
33853         * doc/posix-functions/fputc.texi (fputc): Likewise.
33854         * doc/posix-functions/fputs.texi (fputs): Likewise.
33855         * doc/posix-functions/fputws.texi (fputws): Likewise.
33856         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
33857         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
33858         * doc/posix-functions/getopt.texi (getopt): Likewise.
33859         * doc/posix-functions/perror.texi (perror): Likewise.
33860         * doc/posix-functions/printf.texi (printf): Likewise.
33861         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
33862         * doc/posix-functions/psignal.texi (psignal): Likewise.
33863         * doc/posix-functions/putc.texi (putc): Likewise.
33864         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
33865         Likewise.
33866         * doc/posix-functions/putchar.texi (putchar): Likewise.
33867         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
33868         Likewise.
33869         * doc/posix-functions/puts.texi (puts): Likewise.
33870         * doc/posix-functions/putwc.texi (putwc): Likewise.
33871         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
33872         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
33873         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
33874         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
33875         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
33876         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
33877         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
33878         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
33880 2011-05-22  Bruno Haible  <bruno@clisp.org>
33882         strerror: Move AC_LIBOBJ invocations to module description.
33883         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
33884         gl_PREREQ_STRERROR invocations from here...
33885         * modules/strerror (configure.ac): ... to here.
33887 2011-05-21  Bruno Haible  <bruno@clisp.org>
33889         perror: Use common idiom.
33890         * modules/perror (configure.ac): Reorder statements.
33892 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
33894         tests: fix usage message in 'mktempd_'
33895         * tests/init.sh (mktempd_): In the usage message, use literal
33896         'mktempd_', not '$ME' (which is even undefined), as the name of
33897         the subroutine.
33899 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
33901         tests init: new function 'fatal_', for hard errors
33902         Before this patch, the only way offered by tests/init.sh to
33903         properly signal a hard error was the `framework_failure_'
33904         function.  But the error message issued by that function,
33905         as its name would suggest, refers to a set-up failure in the
33906         testsuite, while hard errors can obviously also be due to
33907         other reasons.  The best way to fix this inconsistency is to
33908         introduce a new function with a more general error message.
33909         * tests/init.sh (fatal_): New function.
33911 2011-06-06  Eric Blake  <eblake@redhat.com>
33913         canonicalize-lgpl: use common idiom
33914         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
33915         over newer POSIX -Rf.
33916         Reported by Bruno Haible.
33918         canonicalize-lgpl: work around AIX realpath bug
33919         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
33920         * doc/posix-functions/realpath.texi (realpath): Document it.
33921         Reported by Bruno Haible.
33923         strerror: work around FreeBSD bug
33924         * lib/strerror.c (strerror): Special case 0.
33925         Reported by Bruno Haible.
33927         strerror-override: avoid bloating errno module
33928         * modules/errno (Files, configure.ac): Move replacement strings...
33929         * modules/strerror-override: ...to new module.
33930         * modules/strerror (Depends-on): Add strerror-override.
33931         * modules/strerror_r-posix (Depends-on): Likewise.
33932         * MODULES.html.sh: Document new module.
33933         Reported by Bruno Haible.
33935 2011-06-06  Bruno Haible  <bruno@clisp.org>
33937         spawn-pipe tests: Rename program.
33938         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
33939         * tests/test-spawn-pipe-child.c: Update comment.
33940         * tests/test-spawn-pipe.sh: Update.
33941         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
33943         spawn-pipe tests: Link the child program only against libc.
33944         * tests/test-spawn-pipe-child.c: New file, extracted from
33945         tests/test-spawn-pipe.c.
33946         (main): Expect only one argument.
33947         (is_open): New function, copied from tests/test-pipe.c.
33948         * tests/test-spawn-pipe.c: Don't include <errno.h>.
33949         (child_main): Remove function.
33950         (test_pipe): Pass only one argument to the child program.
33951         (main): Remove child process code. Expect the child program's name as
33952         first argument.
33953         * tests/test-spawn-pipe.sh: Pass the child program's name as first
33954         argument.
33955         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
33956         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
33957         test-spawn-pipe-child against no libraries.
33959 2011-06-06  Bruno Haible  <bruno@clisp.org>
33961         careadlinkat: Avoid mismatch between ssize_t and int.
33962         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
33963         * lib/careadlinkat.c (careadlinkatcwd): Define always.
33965 2011-06-06  Jim Meyering  <meyering@redhat.com>
33967         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
33968         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
33969         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
33971 2011-06-05  Bruno Haible  <bruno@clisp.org>
33973         ansi-c++-opt: Interoperability with libtool.
33974         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
33975         set the variable to "no", not to ":".
33976         * NEWS: Mention the change.
33978 2011-06-05  Bruno Haible  <bruno@clisp.org>
33980         acl: Fix test failure on AIX 7.
33981         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
33982         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
33984 2011-06-05  Bruno Haible  <bruno@clisp.org>
33986         pipe-filter-ii: Fix test failure on AIX and IRIX.
33987         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
33988         with EAGAIN, retry with a smaller buffer size.
33990 2011-06-05  Bruno Haible  <bruno@clisp.org>
33992         localename: Fix link dependencies.
33993         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
33994         * modules/localename-tests (Makefile.am): Link test-localename with
33995         $(LIBTHREAD).
33997 2011-06-05  Bruno Haible  <bruno@clisp.org>
33999         error: Avoid gcc warning.
34000         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
34002 2011-06-05  Bruno Haible  <bruno@clisp.org>
34004         unsetenv: Avoid gcc warning.
34005         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
34007 2011-06-05  Bruno Haible  <bruno@clisp.org>
34009         setenv: Avoid gcc warning.
34010         * lib/setenv.c (setenv): Provide declaration if system lacks it.
34012 2011-06-05  Bruno Haible  <bruno@clisp.org>
34014         sys_select: Ensure memset is declared also on AIX 7.
34015         * lib/sys_select.in.h: Include <string.h> also on AIX.
34016         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
34017         self-contained also on AIX 7.1.
34019 2011-06-04  Jim Meyering  <meyering@redhat.com>
34021         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
34022         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
34023         function name, "error".
34024         (_gl_translatable_diag_func_re): New configurable variable.
34026 2011-06-04  Bruno Haible  <bruno@clisp.org>
34028         getopt: Avoid gcc warning.
34029         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
34031 2011-06-04  Bruno Haible  <bruno@clisp.org>
34033         strerror_r: Fix comments.
34034         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
34035         commit.
34037 2011-06-04  Bruno Haible  <bruno@clisp.org>
34039         perror: Fix compilation error.
34040         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
34041         Undefine fprintf, not sprintf.
34042         * modules/perror (Depends-on): Remove intprops, verify.
34044 2011-06-04  Bruno Haible  <bruno@clisp.org>
34046         setlocale: Enable replacement on Cygwin 1.5.
34047         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
34048         Cygwin 1.5.x.
34049         * doc/posix-functions/setlocale.texi: Mention that the problem with the
34050         LC_CTYPE category also exists on Cygwin 1.5.x.
34052 2011-06-04  Bruno Haible  <bruno@clisp.org>
34054         strerror-override: Don't disable symbol renamings.
34055         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
34056         * lib/strerror-override.c: Include config.h.
34057         (strerror_override): Don't undefine.
34059 2011-06-03  Bruno Haible  <bruno@clisp.org>
34061         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
34062         * lib/localename.h: Update copyright header.
34063         * lib/localename.c: Likewise.
34064         * lib/relocatable.h: Likewise.
34065         * lib/relocatable.c: Likewise.
34067 2011-06-02  Bruno Haible  <bruno@clisp.org>
34069         doc: Fix a module name.
34070         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
34072 2011-06-02  Bruno Haible  <bruno@clisp.org>
34074         pipe2: Remove dependency on 'nonblocking' module.
34075         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
34076         O_NONBLOCK is defined by gnulib.
34077         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
34078         is zero.
34079         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
34080         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
34081         defined by gnulib.
34082         (get_nonblocking_flag): New function.
34083         (main): Test O_NONBLOCK flag only if it is nonzero.
34084         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
34086 2011-06-03  Jim Meyering  <meyering@redhat.com>
34088         maint: three new prohibit-header-without-use rules
34089         Prohibit use of cloexec.h, posixver.h, same.h without use.
34090         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
34091         (sc_prohibit_posixver_without_use): Likewise.
34092         (sc_prohibit_same_without_use): Likewise.
34094 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
34096         allocator: 'die' routine is now given requested size
34097         * lib/allocator.h (struct allocator.die): New size arg.
34098         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
34099         If the actual problem is an ssize_t limitation, not a size_t or
34100         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
34102 2011-06-01  Eric Blake  <eblake@redhat.com>
34104         strerror: drop strerror_r dependency
34105         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
34106         * lib/strerror-override.c (strerror_override): ...to new file.
34107         * lib/strerror-override.h: Add prototype.
34108         * lib/strerror-impl.h: Delete.
34109         * lib/strerror.c (strerror): New implementation.
34110         * modules/errno (Files): Add new files.
34111         (configure.ac): Compile new file as appropriate.
34112         * modules/strerror (Files): Drop unused file.
34113         (Depends-on): Drop strerror_r-posix.
34114         * MODULES.html.sh: Document strerror_r-posix.
34115         Requested by Sam Steingold.
34117         perror: call strerror_r directly
34118         * modules/perror (Files): Drop strerror-impl.h.
34119         * lib/perror.c (perror): Use our own stack buffer, rather than
34120         calling a wrapper that uses static storage.
34121         * doc/posix-functions/perror.texi (perror): Document a limitation
34122         of our replacement.
34124         strerror_r: fix includes for FreeBSD
34125         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
34126         since we use abort on some platforms.
34127         Reported by Matthias Bolte.
34129 2011-05-31  Bruno Haible  <bruno@clisp.org>
34131         Fix link errors in tests: openat-die uses gettext-h.
34132         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
34133         against $(LIBINTL).
34134         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
34135         against $(LIBINTL).
34136         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
34137         $(LIBINTL).
34138         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
34139         against $(LIBINTL).
34140         * modules/linkat-tests (Makefile.am): Link test-linkat against
34141         $(LIBINTL).
34142         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
34143         $(LIBINTL).
34144         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
34145         against $(LIBINTL).
34146         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
34147         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
34148         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
34149         $(LIBINTL).
34150         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
34151         $(LIBINTL).
34152         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
34153         $(LIBINTL).
34154         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34156 2011-05-31  Bruno Haible  <bruno@clisp.org>
34158         Fix link errors in tests: wait-process uses gettext-h.
34159         * modules/nonblocking-pipe-tests (Makefile.am): Set
34160         test_nonblocking_pipe_main_LDADD.
34161         * modules/nonblocking-socket-tests (Makefile.am): Link
34162         test-nonblocking-socket-main against $(LIBINTL).
34163         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34165 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
34167         assert-h: work around 'verify' incompatibility
34168         * lib/verify.h: Use @...@ directives, not ifdef.
34169         * modules/assert-h (assert.h): Implement the directives.
34170         (assert.h): Substitute the symbol-prefix more consistently.
34172 2011-05-29  Jim Meyering  <meyering@redhat.com>
34174         trim: remove three superfluous assignments
34175         * lib/trim.c (trim2): Remove three superfluous assignments
34176         and correct brace positioning.
34178 2011-05-29  Bruno Haible  <bruno@clisp.org>
34180         wctype-h: Avoid namespace pollution on Solaris 2.6.
34181         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
34182         identifiers.
34183         * doc/posix-headers/wctype.texi: Mention the problem.
34184         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34186 2011-05-28  Jim Meyering  <meyering@redhat.com>
34188         parse-datetime.y: accommodate -Wstrict-overflow
34189         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
34190         placate -Wstrict-overflow.
34192         trim: avoid a warning from -O2 -Wstrict-overflow
34193         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
34195 2011-05-29  Bruno Haible  <bruno@clisp.org>
34197         gnulib-tool: Fix bug in yesterday's commit.
34198         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
34199         twice.
34201 2011-05-29  Bruno Haible  <bruno@clisp.org>
34203         Allow multiple gnulib generated include files to be combined.
34204         * gnulib-tool (func_compute_include_guard_prefix): New function.
34205         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
34206         ${gl_include_guard_prefix} references.
34207         (func_import, func_create_testdir): Invoke
34208         func_compute_include_guard_prefix.
34209         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
34210         * lib/ctype.in.h: Likewise.
34211         * lib/dirent.in.h: Likewise.
34212         * lib/errno.in.h: Likewise.
34213         * lib/fcntl.in.h: Likewise.
34214         * lib/float.in.h: Likewise.
34215         * lib/getopt.in.h: Likewise.
34216         * lib/iconv.in.h: Likewise.
34217         * lib/langinfo.in.h: Likewise.
34218         * lib/locale.in.h: Likewise.
34219         * lib/math.in.h: Likewise.
34220         * lib/netdb.in.h: Likewise.
34221         * lib/netinet_in.in.h: Likewise.
34222         * lib/poll.in.h: Likewise.
34223         * lib/pthread.in.h: Likewise.
34224         * lib/pty.in.h: Likewise.
34225         * lib/sched.in.h: Likewise.
34226         * lib/se-selinux.in.h: Likewise.
34227         * lib/search.in.h: Likewise.
34228         * lib/signal.in.h: Likewise.
34229         * lib/spawn.in.h: Likewise.
34230         * lib/stdarg.in.h: Likewise.
34231         * lib/stddef.in.h: Likewise.
34232         * lib/stdint.in.h: Likewise.
34233         * lib/stdio.in.h: Likewise.
34234         * lib/stdlib.in.h: Likewise.
34235         * lib/string.in.h: Likewise.
34236         * lib/strings.in.h: Likewise.
34237         * lib/sys_file.in.h: Likewise.
34238         * lib/sys_ioctl.in.h: Likewise.
34239         * lib/sys_select.in.h: Likewise.
34240         * lib/sys_socket.in.h: Likewise.
34241         * lib/sys_stat.in.h: Likewise.
34242         * lib/sys_time.in.h: Likewise.
34243         * lib/sys_times.in.h: Likewise.
34244         * lib/sys_uio.in.h: Likewise.
34245         * lib/sys_utsname.in.h: Likewise.
34246         * lib/sys_wait.in.h: Likewise.
34247         * lib/sysexits.in.h: Likewise.
34248         * lib/termios.in.h: Likewise.
34249         * lib/time.in.h: Likewise.
34250         * lib/unistd.in.h: Likewise.
34251         * lib/wchar.in.h: Likewise.
34252         * lib/wctype.in.h: Likewise.
34253         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
34254         * modules/ctype (Makefile.am): Likewise.
34255         * modules/dirent (Makefile.am): Likewise.
34256         * modules/errno (Makefile.am): Likewise.
34257         * modules/fcntl-h (Makefile.am): Likewise.
34258         * modules/float (Makefile.am): Likewise.
34259         * modules/getopt-posix (Makefile.am): Likewise.
34260         * modules/iconv-h (Makefile.am): Likewise.
34261         * modules/langinfo (Makefile.am): Likewise.
34262         * modules/locale (Makefile.am): Likewise.
34263         * modules/math (Makefile.am): Likewise.
34264         * modules/netdb (Makefile.am): Likewise.
34265         * modules/netinet_in (Makefile.am): Likewise.
34266         * modules/poll-h (Makefile.am): Likewise.
34267         * modules/pthread (Makefile.am): Likewise.
34268         * modules/pty (Makefile.am): Likewise.
34269         * modules/sched (Makefile.am): Likewise.
34270         * modules/search (Makefile.am): Likewise.
34271         * modules/selinux-h (Makefile.am): Likewise.
34272         * modules/signal (Makefile.am): Likewise.
34273         * modules/spawn (Makefile.am): Likewise.
34274         * modules/stdarg (Makefile.am): Likewise.
34275         * modules/stddef (Makefile.am): Likewise.
34276         * modules/stdint (Makefile.am): Likewise.
34277         * modules/stdio (Makefile.am): Likewise.
34278         * modules/stdlib (Makefile.am): Likewise.
34279         * modules/string (Makefile.am): Likewise.
34280         * modules/strings (Makefile.am): Likewise.
34281         * modules/sys_file (Makefile.am): Likewise.
34282         * modules/sys_ioctl (Makefile.am): Likewise.
34283         * modules/sys_select (Makefile.am): Likewise.
34284         * modules/sys_socket (Makefile.am): Likewise.
34285         * modules/sys_stat (Makefile.am): Likewise.
34286         * modules/sys_time (Makefile.am): Likewise.
34287         * modules/sys_times (Makefile.am): Likewise.
34288         * modules/sys_uio (Makefile.am): Likewise.
34289         * modules/sys_utsname (Makefile.am): Likewise.
34290         * modules/sys_wait (Makefile.am): Likewise.
34291         * modules/sysexits (Makefile.am): Likewise.
34292         * modules/termios (Makefile.am): Likewise.
34293         * modules/time (Makefile.am): Likewise.
34294         * modules/unistd (Makefile.am): Likewise.
34295         * modules/wchar (Makefile.am): Likewise.
34296         * modules/wctype-h (Makefile.am): Likewise.
34297         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
34299 2011-05-29  Bruno Haible  <bruno@clisp.org>
34301         assert-h: Allow multiple gnulib generated replacements to coexist.
34302         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
34304 2011-05-29  Bruno Haible  <bruno@clisp.org>
34306         argp: Allow coexistence with strerror_r-posix module.
34307         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
34308         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
34309         by gnulib's <string.h> replacement), assume it has the POSIX signature,
34310         not the glibc signature.
34312 2011-05-28  Bruno Haible  <bruno@clisp.org>
34314         gnulib-tool: Alternative structure of testdirs, similar to --import.
34315         * gnulib-tool: New option --single-configure.
34316         (func_usage): Document it.
34317         (single_configure): New variable.
34318         (func_modules_transitive_closure_separately,
34319         func_modules_transitive_closure_separately,
34320         func_determine_use_libtests, func_modules_add_dummy_separately,
34321         func_modules_to_filelist_separately): New functions, extracted from
34322         func_import.
34323         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
34324         (func_import): Use the new functions.
34325         (func_create_testdir): Set final_modules. Handle $single_configure =
34326         true case.
34328 2011-05-28  Bruno Haible  <bruno@clisp.org>
34330         getloadavg: Remove an unreliable safety check.
34331         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
34332         getloadavg.c is in place.
34333         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
34334         Reported by Sam Steingold <sds@gnu.org>.
34336 2011-05-28  Bruno Haible  <bruno@clisp.org>
34338         doc: Cleanup yet another file produced by texinfo.tex.
34339         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
34341 2011-05-28  Bruno Haible  <bruno@clisp.org>
34343         Finish the conditional dependencies mechanism.
34344         * gnulib-tool: New option --no-conditional-dependencies.
34345         (func_usage): Document it. Don't mark --conditional-dependencies as
34346         experimental.
34347         (cond_dependencies): The possible values can now be true, false, empty.
34348         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
34349         (func_import): Store setting in gnulib-cache.m4 and read it from there.
34350         * doc/gnulib-tool.texi (Conditional dependencies): New section.
34352 2011-05-28  Bruno Haible  <bruno@clisp.org>
34354         doc: Use a recent texinfo.tex.
34355         * doc/Makefile (tex_opts): New variable.
34356         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
34358 2011-05-28  Jim Meyering  <meyering@redhat.com>
34360         intprops.h: adjust comment to match code change
34361         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
34362         only once, it *may* have side effects.  Also fix an unrelated typo.
34363         (_GL_INT_SIGNED): Likewise.
34365 2011-05-26  Simon Josefsson  <simon@josefsson.org>
34367         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
34369 2011-05-26  Bruno Haible  <bruno@clisp.org>
34371         mbsrchr: Avoid collision with system function on Interix.
34372         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
34373         Reported by Markus Duft <mduft@gentoo.org>.
34375 2011-05-15  James Youngman  <jay@gnu.org>
34377         getopt: for ambiguous options, enumerate the possibilities.
34378         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
34379         the ambiguous options when an ambiguous prefix is given. This was
34380         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
34381         glibc change was
34382         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
34384 2011-05-25  Eric Blake  <eblake@redhat.com>
34386         getcwd: work around mingw bug
34387         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
34388         * doc/posix-functions/getcwd.texi (getcwd): Document it.
34389         Reported by Matthias Bolte.
34391 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
34393         test-intprops: disable -Wtype-limits diagnostics
34394         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
34395         diagnostics.  Otherwise, the integer overflow macros generate many
34396         diagnostics.  Reported by Jim Meyering in
34397         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
34399         intprops: shorten, to pacify gcc -Woverlength-strings
34400         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
34401         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
34402         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
34403         likely to run afoul of C compiler limits for string constant lengths.
34404         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
34406 2011-05-24  Eric Blake  <eblake@redhat.com>
34408         docs: document recently fixed glibc printf bug
34409         * doc/posix-functions/fprintf.texi (fprintf): Document it.
34410         * doc/posix-functions/printf.texi (printf): Likewise.
34411         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
34412         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
34414         closein-tests: convert to init.sh
34415         * modules/closein-tests (Files): Add init.sh
34416         * tests/test-closein.sh Use it.
34418         yesno-tests: convert to init.sh
34419         * modules/yesno-tests (Files): Add init.sh.
34420         * tests/test-yesno.sh: Use it.
34422         atexit-tests: ensure reliable exit status
34423         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
34424         Reported by Bruno Haible.
34426 2011-05-24  Bruno Haible  <bruno@clisp.org>
34428         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
34429         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
34430         gl_PREREQ_STRERROR_R invocations from here...
34431         * modules/strerror_r-posix (configure.ac): ... to here.
34433 2011-05-24  Eric Blake  <eblake@redhat.com>
34435         strerror_r: fix missing header
34436         * lib/strerror_r.c: Avoid compiler warning about snprintf.
34438         strerror_r: fix AIX test failures
34439         * lib/strerror_r.c (strerror_r): Convert silent truncation to
34440         ERANGE failure.
34442         strerror_r: fix Solaris test failures
34443         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
34444         failures.
34445         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
34447         strerror_r: enforce POSIX recommendations
34448         * lib/strerror_r.c (safe_copy): New helper method.
34449         (strerror_r): Guarantee a non-empty string.
34450         * tests/test-strerror_r.c (main): Enhance tests to incorporate
34451         recent POSIX rulings and to match our strerror guarantees.
34452         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
34454 2011-05-24  Jim Meyering  <meyering@redhat.com>
34456         test-perror2.c: avoid warning about unused variable
34457         * tests/test-perror2.c (main): Remove declaration of unused "fp".
34459 2011-05-24  Eric Blake  <eblake@redhat.com>
34461         perror: avoid spurious test failure on HP-UX
34462         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
34464         tests: fix logic bug in init.sh
34465         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
34466         shell.
34468 2011-05-24  Jim Meyering  <meyering@redhat.com>
34470         utimensat: do not reference an out-of-scope buffer
34471         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
34472         declared in an inner scope, yet "times" would be dereferenced outside
34473         the scope in which "ts" was valid.
34474         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
34475         of ts[2] "out/up", so that the use of aliased "times" (via
34476         "times = ts;") does not end up referencing an out-of-scope "ts"
34478         opendir-safer.c: don't clobber errno; don't close negative FD
34479         * lib/opendir-safer.c (opendir_safer):
34480         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
34481         file descriptor, and more importantly, don't clobber the
34482         offending errno value with EINVAL.  Before, upon failure
34483         of dup_safer, we would pass the negative file descriptor to
34484         fdopendir, which would clobber errno.
34486 2011-05-23  Bruno Haible  <bruno@clisp.org>
34488         idcache: Fix module description.
34489         * modules/idcache (Include): Set to "idcache.h".
34491 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
34493         gnulib-tool: fix portability problem with MacOS sed
34494         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
34495         before the "}".  Problem reported by Leo in
34496         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
34497         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
34498         sed_extract_condition1, sed_extract_condition2.
34500 2011-05-23  Bruno Haible  <bruno@clisp.org>
34502         hash: Simplify autoconf macro.
34503         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
34505 2011-05-23  Bruno Haible  <bruno@clisp.org>
34507         getugroups: Fix module description.
34508         * modules/getugroups (Include): Set to "getugroups.h".
34510 2011-05-23  Bruno Haible  <bruno@clisp.org>
34512         linkat: Simplify autoconf macro.
34513         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
34515 2011-05-23  Bruno Haible  <bruno@clisp.org>
34516             Eric Blake  <eblake@redhat.com>
34518         linkat, renameat: Update dependencies.
34519         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
34520         * modules/linkat (Depends-on): Likewise. Remove also readlink,
34521         symlinkat.
34523 2011-05-23  Jim Meyering  <meyering@redhat.com>
34525         maint.mk: more tight_scope improvements
34526         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
34527         (_gl_TS_headers): Define only in if-0'd block.
34528         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
34529         sometimes we must *not* use it.  Adjust uses accordingly.
34530         (sc_tight_scope): Use much simpler grep-based test to determine
34531         whether we skip this rule.
34533         maint.mk: generalize/improve the tight-scope rule
34534         * top/maint.mk: Emit a warning when the test is skipped.
34535         (_gl_TS_dir): Add $(srcdir)/ prefix.
34536         (_gl_TS_function_match): Simplify, rather than trying
34537         to enumerate common types.  Otherwise, it would fail to match an
34538         "extern unsigned char const *" declaration in idutils.
34539         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
34540         a way to support use of that type of macro.
34541         (_gl_TS_var_match): Simplify regexp.
34542         (_gl_TS_obj_files): New configurable variable.
34543         (_gl_TS_headers): Likewise.
34545 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
34547         verify: fix bug when gnulib <assert.h> is also included
34548         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
34549         is defined, not if _GL_STATIC_ASSERT_H is not defined.
34550         Perhaps there's a better way, but this fixes the immediate problem.
34551         Problem reported by Bruno Haible in
34552         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
34554 2011-05-22  Bruno Haible  <bruno@clisp.org>
34556         xgetcwd: Simplify autoconf macro.
34557         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
34559 2011-05-22  Bruno Haible  <bruno@clisp.org>
34561         New module 'mktime-internal'.
34562         * modules/mktime-internal: New file.
34563         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
34564         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
34565         mktime_internal as a C macro if libc has __mktime_internal.
34566         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
34567         conditions.
34568         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
34570 2011-05-22  Bruno Haible  <bruno@clisp.org>
34572         timegm: Correct mktime replacement statements.
34573         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
34574         defining mktime as a C macro. This completes a 2009-07-28 commit.
34576 2011-05-22  Bruno Haible  <bruno@clisp.org>
34578         timegm: Simplify autoconf macro.
34579         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
34581 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
34583         clock-time: change to LGPLv2+.
34584         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
34585         BSD-like but we have no mark for that; this is good enough for now.
34587 2011-05-21  Bruno Haible  <bruno@clisp.org>
34589         strerror_r: Fix comments.
34590         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
34592 2011-05-21  Bruno Haible  <bruno@clisp.org>
34594         relocatable-prog-wrapper: Fix possible link error.
34595         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
34596         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
34597         (gl_FUNC_SETENV): ... to here.
34598         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
34599         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
34601 2011-05-21  Bruno Haible  <bruno@clisp.org>
34603         relocatable-prog-wrapper: Assume strerror() exists.
34604         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
34605         m4/strerror.m4.
34606         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
34607         * lib/relocwrapper.c: Remove mention of strerror module.
34608         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
34609         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
34610         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
34611         C macro.
34613 2011-05-21  Bruno Haible  <bruno@clisp.org>
34615         select: Simplify replacement idiom.
34616         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
34617         Win32 platforms.
34618         * lib/sys_select.in.h (select): Simplify accordingly.
34619         * modules/select (Depends-on): Likewise.
34621 2011-05-21  Bruno Haible  <bruno@clisp.org>
34623         mkdir-p: Simplify autoconf macro.
34624         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
34625         gl_FUNC_LCHOWN.
34627 2011-05-21  Eric Blake  <eblake@redhat.com>
34629         strerror_r: avoid clobbering strerror on cygwin
34630         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
34631         fall back instead to sys_errlist.
34632         * modules/strerror (configure.ac): Add witness.
34633         * tests/test-strerror_r.c (main): Enhance test.
34634         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
34635         * tests/test-perror2.c (main): Free memory before exit.
34637 2011-05-21  Bruno Haible  <bruno@clisp.org>
34639         mkdtemp: Use gnulib naming conventions.
34640         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
34641         * modules/mkdtemp (configure.ac): Update.
34643 2011-05-20  Eric Blake  <eblake@redhat.com>
34645         strerror_r: avoid corrupting errno on Solaris
34646         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
34647         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
34649         strerror_r: avoid compiler warning
34650         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
34652         strerror_r: simplify AIX code
34653         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
34655         test-perror: avoid spurious failure on FreeBSD
34656         * modules/perror-tests (Depends-on): Add strerror, now that
34657         strerror_r no longer pulls it in.
34659 2011-05-20  Bruno Haible  <bruno@clisp.org>
34661         strerror_r-posix: Remove unused dependencies.
34662         * modules/strerror_r-posix (Depends-on): Remove strerror.
34663         Reported by Eric Blake.
34665 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
34667         intprops: remove assumption about A|B representation
34668         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
34669         is a valid integer if both A and B are.  Although this is true for
34670         all known practical hosts, the C standard doesn't guarantee it,
34671         and the code need not assume it.  Also, this change may work around
34672         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
34673         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
34675 2011-05-20  Eric Blake  <eblake@redhat.com>
34677         perror: work around FreeBSD bug
34678         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
34679         is broken.  Move AC_LIBOBJ...
34680         * modules/perror (configure.ac): Here.
34681         * doc/posix-functions/perror.texi (perror): Document this.
34682         * tests/test-perror2.c (main): Enhance test.
34684         test-perror: check for strerror interactions
34685         * tests/macros.h (STREQ): Add macro.
34686         * modules/perror-tests (Files): Add second test.
34687         * tests/test-perror2.c (main): New file.
34688         * doc/posix-functions/perror.texi (perror): Document glibc bug.
34690         test-perror: rewrite to use init script
34691         * modules/perror-tests (Files): Add init.sh.
34692         * tests/test-perror.sh: Use temporary directory.
34694 2011-05-20  Jim Meyering  <meyering@redhat.com>
34696         maint: replace misused "a" with "an"
34697         * doc/intprops.texi: "a integer"
34698         * doc/regex.texi: "a explanation"
34699         * lib/alignof.h: "a object"
34700         * lib/argmatch.h: "a explanation"
34701         * lib/argp-help.c: "a option" and "a OPTION_DOC"
34702         * lib/stdint.in.h: "a integer"
34703         * lib/userspec.c: "a owner"
34704         * doc/gnulib.texi: Fix "a idea", and reword.
34706 2011-05-19  Jim Meyering  <meyering@redhat.com>
34708         maint: correct misuse of "a" and "an"
34709         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
34710         * lib/argp-help.c: "an docum...": s/an/a/
34711         * lib/argp-parse.c: "An vector": s/An/A/
34712         * lib/execute.c: "an native": s/an/a/
34713         * lib/spawn-pipe.c: Likewise.
34714         * lib/gc.h: "an Gc_rc": s/an/a/
34715         * lib/unigbrk.in.h: "an grapheme": s/an/a/
34716         * lib/fts.c: "an stat.st_dev": s/an/a/
34718 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
34720         intprops-tests: work around HP-UX 11.23 cc bug with constants
34721         * tests/test-intprops.c (VERIFY): New macro.
34722         (main): Use it, instead of verify, to work around the compiler bug; see
34723         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
34725         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
34726         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
34727         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
34728         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
34729         (_GL_REMAINDER_OVERFLOW): Use it.
34731         intprops-tests: revert unsigned part of previous change
34732         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
34733         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
34734         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
34735         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
34737 2011-05-19  Bruno Haible  <bruno@clisp.org>
34739         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
34740         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
34741         strerror_r() returned without filling the buffer.
34742         Reported by Eric Blake.
34744 2011-05-19  Eric Blake  <eblake@redhat.com>
34746         strerror_r: guarantee unchanged errno
34747         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
34748         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
34749         failure.
34750         * tests/test-strerror_r.c (main): Enhance test.
34752 2011-05-19  Bruno Haible  <bruno@clisp.org>
34754         strerror_r: Reorder #if blocks.
34755         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
34756         for consistency with the previous commit.
34758 2011-05-19  Bruno Haible  <bruno@clisp.org>
34760         perror: Avoid clobbering the strerror buffer when possible.
34761         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
34762         * lib/strerror.c: Include it.
34763         * modules/strerror (Files): Add lib/strerror-impl.h.
34764         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
34765         (my_strerror): New function, defined through lib/strerror-impl.h.
34766         (perror): Use it instead of strerror.
34767         * modules/perror (Files): Add lib/strerror-impl.h.
34768         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
34770 2011-05-19  Eric Blake  <eblake@redhat.com>
34772         strerror_r: fix on newer cygwin
34773         * lib/strerror_r.c (strerror_r): Cygwin now has
34774         __xpg_strerror_r, use it.
34776 2011-05-19  Bruno Haible  <bruno@clisp.org>
34778         strerror_r: Avoid clobbering the strerror buffer when possible.
34779         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
34780         (sys_nerr, sys_errlist): New declarations.
34781         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
34782         HP-UX, native Win32, IRIX, and 32-bit Solaris.
34783         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
34785 2011-05-19  Bruno Haible  <bruno@clisp.org>
34787         strerror_r: Fix test failure on mingw.
34788         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
34789         EXTEND_STRERROR_R.
34790         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
34791         macros from errno.in.h instead.
34793 2011-05-19  Eric Blake  <eblake@redhat.com>
34795         strerror: relax test for Solaris
34796         * tests/test-strerror.c (main): Permit Solaris behavior.
34797         * tests/test-strerror_r.c (main): Likewise.
34799         strerror: enforce POSIX ruling on strerror(0)
34800         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
34801         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
34802         * lib/strerror_r.c (rpl_strerror_r): Work around it.
34803         * doc/posix-functions/strerror.texi (strerror): Document it.
34804         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
34805         * tests/test-strerror.c (main): Strengthen test.
34806         * tests/test-strerror_r.c (main): Likewise.
34808 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
34810         intprop-tests: port to older and more-pedantic compilers
34811         * modules/intprops-tests (Files): Add tests/macros.h.
34812         * tests/test-intprops.c: Include macros.h.
34813         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
34814         it's no longer documented to expand to an integer constant expression.
34815         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
34816         argument is floating point, as it's no longer documented to expand
34817         to an integer constant expression in that case.
34818         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
34819         compiler bugs reported by Bruno Haible.  See
34820         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
34821         (U0, U1): New constants, to work around the same bugs.  Also,
34822         in tests, use e.g., "(unsigned int) 39" rather than "39u".
34824         intprops: work around C compiler bugs
34825         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
34826         bug in Sun C 5.11 2010/08/13 and other compilers; see
34827         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
34829         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
34830         * doc/intprops.texi (Integer Type Determination): Fix
34831         documentation for TYPE_IS_INTEGER: it returns an constant
34832         expression, not an integer constant expression.  Fix doc for
34833         TYPE_SIGNED: it returns an integer constant expression only if its
34834         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
34835         hardly worth documented that way....)
34837 2011-05-18  Bruno Haible  <bruno@clisp.org>
34839         strerror_r: Avoid clobbering the strerror buffer when possible.
34840         * lib/strerror_r.c (strerror_r): Merge the three implementations.
34841         Handle gnulib defined errno values here. When strerror() returns NULL
34842         or an empty string, return EINVAL.
34843         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
34844         gnulib defined errno values here.
34845         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
34847 2011-05-18  Eric Blake  <eblake@redhat.com>
34849         fnmatch: avoid compiler warning
34850         * lib/fnmatch_loop.c (FCT): Use correct type.
34851         Reported by Matthias Bolte.
34853 2011-05-13  Jim Meyering  <meyering@redhat.com>
34855         maint.mk: three new prohibit_<HDR>_without_use rules
34856         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
34857         (sc_prohibit_stdio-safer_without_use): Likewise.
34858         (sc_prohibit_xfreopen_without_use): Likewise.
34860 2011-05-17  Jim Meyering  <meyering@redhat.com>
34862         announce-gen: fail if the NEWS delta is empty
34863         If there's nothing noteworthy in NEWS, then either you forgot
34864         or you shouldn't be releasing.
34865         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
34867 2011-05-17  Pádraig Brady  <P@draigBrady.com>
34869         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
34870         reserved symbols starting with double underscore from the check.
34872 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
34874         intprops: add doc
34875         * doc/intprops.texi: New file, documenting intprops.
34876         * doc/gnulib.texi (Particular Modules): Include it.
34878         verify: add doc to gnulib manual and fix example
34879         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
34880         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
34881         (Compile-time Assertions): Fix example so it can't overflow.
34883 2011-05-17  Jim Meyering  <meyering@redhat.com>
34885         warnings.m4: don't usurp save_CPPFLAGS variable name
34886         * m4/warnings.m4: Prefix local temporary variable name with gl_.
34888         doc: fix typo
34889         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
34891 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34892             Bruno Haible  <bruno@clisp.org>
34894         doc: Tweak recent change.
34895         * README (Portability guidelines): Tweak new text.
34896         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
34897         Interix 6.1.
34899 2011-05-16  Eric Blake  <eblake@redhat.com>
34901         inttypes: avoid autoconf warning
34902         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
34903         * m4/stdint.m4 (gl_STDINT_H): Likewise.
34905 2011-05-16  Sam Steingold  <sds@gnu.org>
34906         and Eric Blake  <eblake@redhat.com>
34908         vc-list-files: accept multiple directory operands
34909         * build-aux/vc-list-files: Iterate over all remaining operands.
34911 2011-05-16  Bruno Haible  <bruno@clisp.org>
34913         Fix confusion regarding deprecated modules.
34914         * modules/calloc (Status, Notice): Mark module as deprecated, not
34915         obsolete.
34916         * modules/fnmatch-posix (Status, Notice): Likewise.
34917         * modules/getdate (Status, Notice): Likewise.
34918         * modules/getopt (Status, Notice): Likewise.
34919         * modules/malloc (Status, Notice): Likewise.
34920         * modules/pipe (Status, Notice): Likewise.
34921         * modules/realloc (Status, Notice): Likewise.
34922         * modules/rename-dest-slash (Status, Notice): Likewise.
34923         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
34924         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
34925         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
34926         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
34927         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
34929 2011-05-16  Bruno Haible  <bruno@clisp.org>
34931         doc: List the target platforms.
34932         * doc/gnulib-intro.texi (Target Platforms): New section.
34933         * doc/gnulib.texi (Introduction): Update menu.
34934         * README (Portability guidelines): Refer to the new section. Update
34935         statement about oldest supported environment. Remove rationale why
34936         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
34937         unportable C89 function.
34938         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
34939         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
34941 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
34943         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
34945 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
34947         intprops-tests: new module
34948         * modules/intprops-tests, tests/test-intprops.c: New files.
34950         intprops: add safe, portable integer overflow checking
34951         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
34952         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
34953         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
34954         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
34955         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
34956         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
34957         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
34958         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
34959         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
34960         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
34961         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
34963 2011-05-12  James Youngman  <jay@gnu.org>
34965         Add a test for glibc's Bugzilla bug #12378.
34966         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
34967         doesn't allow the literal matching of a lone "[" (which is
34968         required by POSIX).
34969         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
34971 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
34973         Sync glibc change fixing Bugzilla bug #12378.
34974         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
34975         beginning and fall back to matching as normal character if the
34976         string ends before the matching ']' is found.  This is what POSIX
34977         requires.
34979 2011-05-13  Eric Blake  <eblake@redhat.com>
34981         getcwd-lgpl: relax test for FreeBSD
34982         * doc/posix-functions/getcwd.texi (getcwd): Document portability
34983         issue.
34984         * tests/test-getcwd-lgpl.c (main): Relax test.
34985         Reported by Matthias Bolte.
34987 2011-05-11  Eric Blake  <eblake@redhat.com>
34989         test-fflush: silence compiler warning
34990         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
34992 2011-05-11  Bruno Haible  <bruno@clisp.org>
34994         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
34995         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
34996         * modules/canonicalize (Depends-on): Add 'nocrash'.
34997         * modules/canonicalize-lgpl (Depends-on): Likewise.
34998         * doc/posix-functions/realpath.texi: Update platforms list.
34999         Reported by Ryan Schmidt <ryandesign@macports.org>.
35001 2011-05-11  Bruno Haible  <bruno@clisp.org>
35003         group-member: Declare function in <unistd.h>.
35004         * lib/unistd.in.h (group_member): New declaration.
35005         * lib/group-member.h: Remove file.
35006         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
35007         * tests/test-unistd-c++.cc: Check signature of group_member.
35008         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
35009         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
35010         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
35011         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
35012         HAVE_GROUP_MEMBER.
35013         * modules/group-member (Files): Remove lib/group-member.h.
35014         (Depends-on): Add unistd. Specify conditions.
35015         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35016         (Include): Change to <unistd.h>.
35017         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
35018         HAVE_GROUP_MEMBER.
35019         * NEWS: Mention the change.
35020         * lib/euidaccess.c: Don't include group-member.h.
35022 2011-05-11  Bruno Haible  <bruno@clisp.org>
35024         group-member: Document module.
35025         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
35026         module.
35028 2011-05-11  Bruno Haible  <bruno@clisp.org>
35030         fclose: Fix mistake earlier today.
35031         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
35033 2011-05-11  Eric Blake  <eblake@redhat.com>
35035         fclose: preserve fflush errors
35036         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
35037         Reported by Jim Meyering.
35039         bootstrap: support a prereq of 'rpcgen -' on RHEL5
35040         * build-aux/bootstrap (check_versions): When no specific version
35041         is required, merely check that the app produces an exit status
35042         that indicates its existence.
35044         maint.mk: drop redundant check
35045         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
35046         the same but better.
35048 2011-05-11  Bruno Haible  <bruno@clisp.org>
35050         fclose: Fix possible link error.
35051         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
35052         unregister_shadow_fd. Improve comments.
35053         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
35054         Eric Blake.
35056 2011-05-11  Jim Meyering  <meyering@redhat.com>
35058         maint.mk: improve "can not" detection and generalize rule name
35059         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
35060         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
35061         Use the same technique as in sc_prohibit_doubled_word, so that
35062         we recognize "can not" also when the words are separated by a newline.
35063         Suggested by Eric Blake.
35064         (perl_filename_lineno_text_): Define.  Factored out of...
35065         (prohibit_doubled_word_): ...here.  Use the new definition.
35066         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
35067         (prohibit_undesirable_word_seq_RE_): New overridable variable.
35068         (ignore_undesirable_word_sequence_RE_): New overridable variable.
35070 2011-05-10  Eric Blake  <eblake@redhat.com>
35072         fclose: avoid double close race when possible
35073         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
35074         all but WINDOWS_SOCKETS.
35076 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
35078         openat: correct new comment
35079         * lib/openat-proc.c (openat_proc_name): Correct the comment.
35081 2011-05-10  Jim Meyering  <meyering@redhat.com>
35083         openat: add comments
35084         * lib/openat-proc.c (openat_proc_name): Add comments,
35085         mostly from Eric Blake.
35087 2011-05-09  Eric Blake  <eblake@redhat.com>
35089         openat: reduce syscalls in first probe of /proc
35090         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
35091         be a directory.  Simplify the probe for .. bugs.
35092         * modules/openat (Depends-on): Drop same-inode.
35093         Reported by Bastien ROUCARIES.
35095 2011-05-09  Jim Meyering  <meyering@redhat.com>
35097         maint.mk: change semantics/name of tight_scope variables
35098         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
35099         Rename variables to align with semantics that make them more useful.
35101         maint.mk: tweak new rule's name not to impinge
35102         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
35103         (sc_tight_scope): Use new rule name rather than $@-0.
35105         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
35106         * top/maint.mk (sc_tight_scope): New rule.
35107         (sc_tight_scope-0): New rule, ifdef'd out.
35108         (_gl_TS_dir): Default.
35109         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
35110         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
35112 2011-05-09  Simon Josefsson  <simon@josefsson.org>
35114         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
35115         Haible <bruno@clisp.org>.
35117 2011-05-08  Bruno Haible  <bruno@clisp.org>
35119         Comments.
35120         * m4/isnanf.m4: Add comment.
35121         * m4/isnanl.m4: Likewise.
35123 2011-05-08  Bruno Haible  <bruno@clisp.org>
35125         glob: Remove obsolete macro.
35126         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
35128 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
35130         intprops: Sun C 5.11 supports __typeof__
35131         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
35132         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
35133         which is new.
35134         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
35136         intprops: switch to usual gnulib indenting and naming
35137         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
35138         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
35140         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
35142 2011-05-08  Jim Meyering  <meyering@redhat.com>
35144         maint.mk: suppress "Entering/Leaving directory" diag in announcement
35145         * top/maint.mk (release-prep): Use make's --no-print-directory
35146         option when generating the announcement.  This eliminates the
35147         pesky "make[2]: Entering/Leaving directory" diagnostics in the
35148         generated announcement template.
35150 2011-05-08  Bruno Haible  <bruno@clisp.org>
35152         tzset: Fix gettimeofday wrapper on Solaris 2.6.
35153         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
35154         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
35156 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
35158         ignore-value, verify: Omit include files from lib_SOURCES.
35159         * modules/ignore-value, modules/verify (Makefile.am):
35160         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
35161         that leads Automake to duplicate use of am__objects_... variables
35162         in Makefile.in.  See
35163         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
35165 2011-05-07  Bruno Haible  <bruno@clisp.org>
35167         fclose: Simplify autoconf macro.
35168         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
35169         defined.
35171 2011-05-07  Bruno Haible  <bruno@clisp.org>
35173         canonicalize-lgpl: Fix autoconf macro ordering bug.
35174         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
35175         gl_STDLIB_H_DEFAULTS.
35177 2011-05-06  Eric Blake  <eblake@redhat.com>
35179         maintainer-makefile: make sc_po_check easier to tune
35180         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
35181         to probe for strings, such as an alternate location for gnulib.
35183         fclose: guarantee behavior on seekable stdin
35184         * modules/fclose (Depends-on): Add fflush.
35185         * doc/posix-functions/fclose.texi (fclose): Document this.
35186         * tests/test-fclose.c (main): Make test for this unconditional.
35188 2011-05-06  Bruno Haible  <bruno@clisp.org>
35190         fflush, fpurge: Relicense under LGPLv2+.
35191         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
35192         * modules/fpurge (License): Likewise.
35193         With permission from Eric Blake and Jim Meyering.
35194         Suggested by Eric Blake.
35196 2011-05-06  Karl Berry  <karl@gnu.org>
35198         * MODULES.html.sh (func_all_modules): remove exit.
35200 2011-05-06  Jim Meyering  <meyering@redhat.com>
35202         maint.mk: use info-gnu@ as the default only for a stable release
35203         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
35204         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
35205         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
35206         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
35208 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
35210         assert-h: new module, which supports C1X-style static_assert
35211         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
35212         * lib/verify.h: Revamp so that this can be copied into assert.h,
35213         while retaining the ability to use it standalone as before.
35214         Rename private identifiers so as not to encroach on the
35215         standard C namespace, since this is now used by assert.h.
35216         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
35217         the old verify_true.
35218         (_GL_VERIFY_TRUE): New macro, with much of the contents of
35219         the old verify_true.  Use _GL_VERIFY_TYPE.
35220         (_GL_VERIFY): New macro, with much of the contents of the old verify.
35221         (static_assert): New macro, if _GL_STATIC_ASSERT_H
35222         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
35223         defined when this file is copied into the replacement assert.h.
35224         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
35225         and _Static_assert is not built in.
35226         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
35227         defined, and use the new macros mentioned above.
35228         * doc/posix-headers/assert.texi: Document this.
35230 2011-05-05  Bruno Haible  <bruno@clisp.org>
35232         fclose, fflush: Respect rules for use of AC_LIBOBJ.
35233         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
35234         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
35235         gl_REPLACE_FCLOSE here.
35236         * modules/fflush (Depends-on): Remove fclose.
35237         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
35238         combination with module 'fclose'.
35240 2011-05-05  Bruno Haible  <bruno@clisp.org>
35242         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
35243         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
35244         gl_FUNC_FFLUSH.
35245         (gl_FUNC_FFLUSH): Use it.
35246         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
35247         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
35248         gl_REPLACE_FSEEKO here.
35250 2011-05-05  Bruno Haible  <bruno@clisp.org>
35252         tzset: Relicense under LGPL.
35253         * modules/tzset (License): Change to LGPL.
35254         No agreement needed; it's a no-op.
35256         strtoimax, strtoumax: Relicense under LGPL.
35257         * modules/strtoimax (License): Change to LGPL.
35258         * modules/strtoumax (License): Likewise.
35259         With permission from Jim Meyering, Paul Eggert:
35260         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
35261         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
35263         getgroups: Relicense under LGPL.
35264         * modules/getgroups (License): Change to LGPL.
35265         With permission from Jim Meyering, Paul Eggert, Eric Blake:
35266         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
35267         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
35268         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
35270         nanosleep: Relicense under LGPL.
35271         * modules/nanosleep (License): Change to LGPL.
35272         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
35273         Haible:
35274         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
35275         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
35276         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
35277         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
35279         futimens: Relicense under LGPL.
35280         * modules/futimens (License): Change to LGPL.
35281         With permission from Eric Blake:
35282         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
35284         fflush: Relicense under LGPL.
35285         * modules/fflush (License): Change to LGPL.
35286         With permission from Eric Blake, Bruno Haible, Jim Meyering:
35287         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
35288         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
35289         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
35291         tmpfile: Relicense under LGPL.
35292         * modules/tmpfile (License): Change to LGPL.
35293         With permission from Ben Pfaff:
35294         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
35296         isfinite: Relicense under LGPL.
35297         * modules/isfinite (License): Change to LGPL.
35298         With permission from Ben Pfaff, Bruno Haible:
35299         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
35300         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
35302         acosl..tanl: Relicense under LGPL.
35303         * modules/acosl (License): Change to LGPL.
35304         * modules/asinl (License): Likewise.
35305         * modules/atanl (License): Likewise.
35306         * modules/cosl (License): Likewise.
35307         * modules/expl (License): Likewise.
35308         * modules/logl (License): Likewise.
35309         * modules/sinl (License): Likewise.
35310         * modules/sqrtl (License): Likewise.
35311         * modules/tanl (License): Likewise.
35312         Source code originally from glibc and Paolo Bonzini. Agreements:
35313         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
35314         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
35316 2011-05-05  Bruno Haible  <bruno@clisp.org>
35318         signal: Define sighandler_t.
35319         * lib/signal.in.h (sighandler_t): New type.
35320         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
35321         whether sighandler_t is defined.
35322         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
35323         * modules/signal (Depends-on): Add extensions.
35324         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
35325         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
35326         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
35328 2011-05-05  Eric Blake  <eblake@redhat.com>
35330         maint: remove useless REPLACE_*_H macros
35331         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
35332         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
35333         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
35334         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
35335         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
35336         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
35337         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
35338         * m4/btowc.m4: Update callers.
35339         * m4/dirfd.m4: Likewise.
35340         * m4/duplocale.m4: Likewise.
35341         * m4/fchdir.m4: Likewise.
35342         * m4/fdopendir.m4: Likewise.
35343         * m4/inet_ntop.m4: Likewise.
35344         * m4/inet_pton.m4: Likewise.
35345         * m4/ioctl.m4: Likewise.
35346         * m4/mbrlen.m4: Likewise.
35347         * m4/mbrtowc.m4: Likewise.
35348         * m4/mbsinit.m4: Likewise.
35349         * m4/mbsnrtowcs.m4: Likewise.
35350         * m4/mbsrtowcs.m4: Likewise.
35351         * m4/poll.m4: Likewise.
35352         * m4/setlocale.m4: Likewise.
35353         * m4/wcrtomb.m4: Likewise.
35354         * m4/wcsnrtombs.m4: Likewise.
35355         * m4/wcsrtombs.m4: Likewise.
35356         * m4/wctob.m4: Likewise.
35357         * m4/wcwidth.m4: Likewise.
35358         * modules/posix_spawn: Likewise.
35359         * modules/posix_spawn_file_actions_addclose: Likewise.
35360         * modules/posix_spawn_file_actions_adddup2: Likewise.
35361         * modules/posix_spawn_file_actions_addopen: Likewise.
35362         * modules/posix_spawn_file_actions_destroy: Likewise.
35363         * modules/posix_spawn_file_actions_init: Likewise.
35364         * modules/posix_spawnattr_destroy: Likewise.
35365         * modules/posix_spawnattr_getflags: Likewise.
35366         * modules/posix_spawnattr_getpgroup: Likewise.
35367         * modules/posix_spawnattr_getschedparam: Likewise.
35368         * modules/posix_spawnattr_getschedpolicy: Likewise.
35369         * modules/posix_spawnattr_getsigdefault: Likewise.
35370         * modules/posix_spawnattr_getsigmask: Likewise.
35371         * modules/posix_spawnattr_init: Likewise.
35372         * modules/posix_spawnattr_setflags: Likewise.
35373         * modules/posix_spawnattr_setpgroup: Likewise.
35374         * modules/posix_spawnattr_setschedparam: Likewise.
35375         * modules/posix_spawnattr_setschedpolicy: Likewise.
35376         * modules/posix_spawnattr_setsigdefault: Likewise.
35377         * modules/posix_spawnattr_setsigmask: Likewise.
35378         * modules/posix_spawnp: Likewise.
35380 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
35382         Add option to do-release-commit-and-tag to specify branch.
35383         * build-aux/do-release-commit-and-tag: Add --branch.
35385 2011-05-03  Bruno Haible  <bruno@clisp.org>
35387         Avoid unnecessary compilation units, through conditional dependencies.
35388         * modules/accept (Depends-on): Add conditions to the dependencies.
35389         * modules/acosl (Depends-on): Likewise.
35390         * modules/argz (Depends-on): Likewise.
35391         * modules/asinl (Depends-on): Likewise.
35392         * modules/atanl (Depends-on): Likewise.
35393         * modules/atoll (Depends-on): Likewise.
35394         * modules/bind (Depends-on): Likewise.
35395         * modules/btowc (Depends-on): Likewise.
35396         * modules/canonicalize-lgpl (Depends-on): Likewise.
35397         * modules/ceil (Depends-on): Likewise.
35398         * modules/ceilf (Depends-on): Likewise.
35399         * modules/ceill (Depends-on): Likewise.
35400         * modules/chdir-long (Depends-on): Likewise.
35401         * modules/chown (Depends-on): Likewise.
35402         * modules/close (Depends-on): Likewise.
35403         * modules/connect (Depends-on): Likewise.
35404         * modules/cosl (Depends-on): Likewise.
35405         * modules/dirfd (Depends-on): Likewise.
35406         * modules/dprintf (Depends-on): Likewise.
35407         * modules/dprintf-posix (Depends-on): Likewise.
35408         * modules/error (Depends-on): Likewise.
35409         * modules/euidaccess (Depends-on): Likewise.
35410         * modules/expl (Depends-on): Likewise.
35411         * modules/faccessat (Depends-on): Likewise.
35412         * modules/fchdir (Depends-on): Likewise.
35413         * modules/fclose (Depends-on): Likewise.
35414         * modules/fcntl (Depends-on): Likewise.
35415         * modules/fdopendir (Depends-on): Likewise.
35416         * modules/fflush (Depends-on): Likewise.
35417         * modules/floor (Depends-on): Likewise.
35418         * modules/floorf (Depends-on): Likewise.
35419         * modules/floorl (Depends-on): Likewise.
35420         * modules/fnmatch (Depends-on): Likewise.
35421         * modules/fopen (Depends-on): Likewise.
35422         * modules/fprintf-posix (Depends-on): Likewise.
35423         * modules/frexp (Depends-on): Likewise.
35424         * modules/frexp-nolibm (Depends-on): Likewise.
35425         * modules/frexpl (Depends-on): Likewise.
35426         * modules/frexpl-nolibm (Depends-on): Likewise.
35427         * modules/fseek (Depends-on): Likewise.
35428         * modules/fsusage (Depends-on): Likewise.
35429         * modules/ftell (Depends-on): Likewise.
35430         * modules/ftello (Depends-on): Likewise.
35431         * modules/futimens (Depends-on): Likewise.
35432         * modules/getcwd (Depends-on): Likewise.
35433         * modules/getcwd-lgpl (Depends-on): Likewise.
35434         * modules/getdelim (Depends-on): Likewise.
35435         * modules/getdomainname (Depends-on): Likewise.
35436         * modules/getgroups (Depends-on): Likewise.
35437         * modules/gethostname (Depends-on): Likewise.
35438         * modules/getline (Depends-on): Likewise.
35439         * modules/getlogin_r (Depends-on): Likewise.
35440         * modules/getopt-posix (Depends-on): Likewise.
35441         * modules/getpeername (Depends-on): Likewise.
35442         * modules/getsockname (Depends-on): Likewise.
35443         * modules/getsockopt (Depends-on): Likewise.
35444         * modules/getsubopt (Depends-on): Likewise.
35445         * modules/getusershell (Depends-on): Likewise.
35446         * modules/glob (Depends-on): Likewise.
35447         * modules/grantpt (Depends-on): Likewise.
35448         * modules/iconv_open (Depends-on): Likewise.
35449         * modules/iconv_open-utf (Depends-on): Likewise.
35450         * modules/inet_ntop (Depends-on): Likewise.
35451         * modules/inet_pton (Depends-on): Likewise.
35452         * modules/ioctl (Depends-on): Likewise.
35453         * modules/isapipe (Depends-on): Likewise.
35454         * modules/isfinite (Depends-on): Likewise.
35455         * modules/isinf (Depends-on): Likewise.
35456         * modules/lchown (Depends-on): Likewise.
35457         * modules/ldexpl (Depends-on): Likewise.
35458         * modules/link (Depends-on): Likewise.
35459         * modules/linkat (Depends-on): Likewise.
35460         * modules/listen (Depends-on): Likewise.
35461         * modules/logl (Depends-on): Likewise.
35462         * modules/lstat (Depends-on): Likewise.
35463         * modules/mbrlen (Depends-on): Likewise.
35464         * modules/mbrtowc (Depends-on): Likewise.
35465         * modules/mbsinit (Depends-on): Likewise.
35466         * modules/mbsnrtowcs (Depends-on): Likewise.
35467         * modules/mbsrtowcs (Depends-on): Likewise.
35468         * modules/mbtowc (Depends-on): Likewise.
35469         * modules/memcmp (Depends-on): Likewise.
35470         * modules/mkdir (Depends-on): Likewise.
35471         * modules/mkdtemp (Depends-on): Likewise.
35472         * modules/mkfifo (Depends-on): Likewise.
35473         * modules/mkfifoat (Depends-on): Likewise.
35474         * modules/mknod (Depends-on): Likewise.
35475         * modules/mkostemp (Depends-on): Likewise.
35476         * modules/mkostemps (Depends-on): Likewise.
35477         * modules/mkstemp (Depends-on): Likewise.
35478         * modules/mkstemps (Depends-on): Likewise.
35479         * modules/mktime (Depends-on): Likewise.
35480         * modules/nanosleep (Depends-on): Likewise.
35481         * modules/open (Depends-on): Likewise.
35482         * modules/openat (Depends-on): Likewise.
35483         * modules/perror (Depends-on): Likewise.
35484         * modules/poll (Depends-on): Likewise.
35485         * modules/popen (Depends-on): Likewise.
35486         * modules/posix_spawn (Depends-on): Likewise.
35487         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
35488         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
35489         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
35490         * modules/posix_spawnp (Depends-on): Likewise.
35491         * modules/pread (Depends-on): Likewise.
35492         * modules/printf-posix (Depends-on): Likewise.
35493         * modules/ptsname (Depends-on): Likewise.
35494         * modules/putenv (Depends-on): Likewise.
35495         * modules/pwrite (Depends-on): Likewise.
35496         * modules/readline (Depends-on): Likewise.
35497         * modules/readlink (Depends-on): Likewise.
35498         * modules/readlinkat (Depends-on): Likewise.
35499         * modules/recv (Depends-on): Likewise.
35500         * modules/recvfrom (Depends-on): Likewise.
35501         * modules/regex (Depends-on): Likewise.
35502         * modules/remove (Depends-on): Likewise.
35503         * modules/rename (Depends-on): Likewise.
35504         * modules/renameat (Depends-on): Likewise.
35505         * modules/rmdir (Depends-on): Likewise.
35506         * modules/round (Depends-on): Likewise.
35507         * modules/roundf (Depends-on): Likewise.
35508         * modules/roundl (Depends-on): Likewise.
35509         * modules/rpmatch (Depends-on): Likewise.
35510         * modules/select (Depends-on): Likewise.
35511         * modules/send (Depends-on): Likewise.
35512         * modules/sendto (Depends-on): Likewise.
35513         * modules/setenv (Depends-on): Likewise.
35514         * modules/setlocale (Depends-on): Likewise.
35515         * modules/setsockopt (Depends-on): Likewise.
35516         * modules/shutdown (Depends-on): Likewise.
35517         * modules/sigaction (Depends-on): Likewise.
35518         * modules/signbit (Depends-on): Likewise.
35519         * modules/sigprocmask (Depends-on): Likewise.
35520         * modules/sinl (Depends-on): Likewise.
35521         * modules/sleep (Depends-on): Likewise.
35522         * modules/snprintf (Depends-on): Likewise.
35523         * modules/snprintf-posix (Depends-on): Likewise.
35524         * modules/socket (Depends-on): Likewise.
35525         * modules/sprintf-posix (Depends-on): Likewise.
35526         * modules/sqrtl (Depends-on): Likewise.
35527         * modules/stat (Depends-on): Likewise.
35528         * modules/strchrnul (Depends-on): Likewise.
35529         * modules/strdup-posix (Depends-on): Likewise.
35530         * modules/strerror (Depends-on): Likewise.
35531         * modules/strerror_r-posix (Depends-on): Likewise.
35532         * modules/strndup (Depends-on): Likewise.
35533         * modules/strnlen (Depends-on): Likewise.
35534         * modules/strptime (Depends-on): Likewise.
35535         * modules/strsep (Depends-on): Likewise.
35536         * modules/strsignal (Depends-on): Likewise.
35537         * modules/strstr-simple (Depends-on): Likewise.
35538         * modules/strtod (Depends-on): Likewise.
35539         * modules/strtoimax (Depends-on): Likewise.
35540         * modules/strtok_r (Depends-on): Likewise.
35541         * modules/strtoumax (Depends-on): Likewise.
35542         * modules/symlink (Depends-on): Likewise.
35543         * modules/symlinkat (Depends-on): Likewise.
35544         * modules/tanl (Depends-on): Likewise.
35545         * modules/tcgetsid (Depends-on): Likewise.
35546         * modules/tmpfile (Depends-on): Likewise.
35547         * modules/trunc (Depends-on): Likewise.
35548         * modules/truncf (Depends-on): Likewise.
35549         * modules/truncl (Depends-on): Likewise.
35550         * modules/uname (Depends-on): Likewise.
35551         * modules/unlink (Depends-on): Likewise.
35552         * modules/unlockpt (Depends-on): Likewise.
35553         * modules/unsetenv (Depends-on): Likewise.
35554         * modules/usleep (Depends-on): Likewise.
35555         * modules/utimensat (Depends-on): Likewise.
35556         * modules/vasprintf (Depends-on): Likewise.
35557         * modules/vdprintf (Depends-on): Likewise.
35558         * modules/vdprintf-posix (Depends-on): Likewise.
35559         * modules/vfprintf-posix (Depends-on): Likewise.
35560         * modules/vprintf-posix (Depends-on): Likewise.
35561         * modules/vsnprintf (Depends-on): Likewise.
35562         * modules/vsnprintf-posix (Depends-on): Likewise.
35563         * modules/vsprintf-posix (Depends-on): Likewise.
35564         * modules/wcrtomb (Depends-on): Likewise.
35565         * modules/wcscasecmp (Depends-on): Likewise.
35566         * modules/wcscspn (Depends-on): Likewise.
35567         * modules/wcsdup (Depends-on): Likewise.
35568         * modules/wcsncasecmp (Depends-on): Likewise.
35569         * modules/wcsnrtombs (Depends-on): Likewise.
35570         * modules/wcspbrk (Depends-on): Likewise.
35571         * modules/wcsrtombs (Depends-on): Likewise.
35572         * modules/wcsspn (Depends-on): Likewise.
35573         * modules/wcsstr (Depends-on): Likewise.
35574         * modules/wcstok (Depends-on): Likewise.
35575         * modules/wcswidth (Depends-on): Likewise.
35576         * modules/wctob (Depends-on): Likewise.
35577         * modules/wctomb (Depends-on): Likewise.
35578         * modules/wctype (Depends-on): Likewise.
35579         * modules/wcwidth (Depends-on): Likewise.
35580         * modules/write (Depends-on): Likewise.
35582 2011-05-03  Bruno Haible  <bruno@clisp.org>
35584         Support for conditional dependencies.
35585         * doc/gnulib.texi (Module description): Document the syntax of
35586         conditional dependencies.
35587         * gnulib-tool: New option --conditional-dependencies.
35588         (func_usage): Document it.
35589         (cond_dependencies): New variable.
35590         (func_get_automake_snippet_conditional,
35591         func_get_automake_snippet_unconditional): New functions, extracted from
35592         func_get_automake_snippet.
35593         (func_get_automake_snippet): Use them.
35594         (sed_first_32_chars): New variable.
35595         (func_module_shellfunc_name): New function.
35596         (func_module_shellvar_name): New function.
35597         (func_module_conditional_name): New function.
35598         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
35599         func_cond_module_condition): New functions.
35600         (func_modules_transitive_closure): Add support for conditional
35601         dependencies.
35602         (func_emit_lib_Makefile_am): For a conditional module, enclose the
35603         conditional automake snippet in an automake conditional.
35604         (func_emit_autoconf_snippets): Emit shell functions that contain the
35605         code for conditional modules.
35606         (func_import, func_create_testdir): Update specification.
35608 2011-05-03  Eric Blake  <eblake@redhat.com>
35610         test-getaddrinfo: report error information
35611         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
35613 2011-05-03  Jim Meyering  <meyering@redhat.com>
35615         bootstrap: avoid build failure when $GZIP is set
35616         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
35617         program name.  If defined at all, it is supposed to list gzip options.
35618         Reported by Alan Curry in http://debbugs.gnu.org/8609
35620 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
35622         readme-release: new module with release instructions
35623         * modules/readme-release: New module.
35624         * top/README-release: New file, from coreutils, grep, diffutils.
35625         * MODULES.html.sh (Support for maintaining and releasing): Add it.
35627 2011-05-02  Eric Blake  <eblake@redhat.com>
35629         fflush: also replace fclose when fixing fflush
35630         * modules/fflush (Depends-on): Add fclose.
35631         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
35632         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
35633         memstreams with no backing fd.
35634         * doc/posix-functions/fclose.texi (fclose): Document the use of
35635         fflush module to fix the bug.
35636         * tests/test-fclose.c (main): Relax test when fclose is used in
35637         isolation.
35639         fclose: add some tests
35640         * modules/fclose-tests: New test module.
35641         * tests/test-fclose.c: New file.
35642         * doc/posix-functions/fclose.texi (fclose): Document the bug.
35644         fclose: reduced dependencies
35645         * modules/fclose (Depends-on): Switch from fflush/fseeko to
35646         simpler lseek.
35647         * lib/fclose.c (rpl_fclose): Likewise.
35648         Reported by Simon Josefsson.
35650         exit: drop remaining clients
35651         * modules/argmatch (Depends-on): Replace exit with stdlib.
35652         * modules/copy-file (Depends-on): Likewise.
35653         * modules/execute (Depends-on): Likewise.
35654         * modules/exitfail (Depends-on): Likewise.
35655         * modules/obstack (Depends-on): Likewise.
35656         * modules/pagealign_alloc (Depends-on): Likewise.
35657         * modules/pipe-filter-gi (Depends-on): Likewise.
35658         * modules/pipe-filter-ii (Depends-on): Likewise.
35659         * modules/savewd (Depends-on): Likewise.
35660         * modules/spawn-pipe (Depends-on): Likewise.
35661         * modules/wait-process (Depends-on): Likewise.
35662         * modules/xsetenv (Depends-on): Likewise.
35663         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
35664         * modules/git-merge-changelog (Depends-on): Likewise.
35665         * modules/long-options (Depends-on): Likewise.
35666         * modules/pt_chown (Depends-on): Likewise.
35667         * modules/sysexits (Depends-on): Likewise.
35669         freading: relax license from LGPLv3+ to LGPLv2+
35670         * modules/freading (License): Relax LGPL version.
35672 2011-05-02  Bruno Haible  <bruno@clisp.org>
35674         fchdir: Remove unused dependencies.
35675         * modules/fchdir (Depends-on): Remove include_next.
35677 2011-05-02  Bruno Haible  <bruno@clisp.org>
35679         gnulib-tool: Refactor.
35680         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
35681         from func_emit_autoconf_snippets.
35682         (func_emit_autoconf_snippets): Use it.
35684 2011-05-02  Simon Josefsson  <simon@josefsson.org>
35686         * NEWS: Document removal of 'exit'.
35687         * modules/exit: Remove file.
35689 2011-05-01  Bruno Haible  <bruno@clisp.org>
35691         Update DEPENDENCIES.
35692         * DEPENDENCIES (gettext): Recommend the newest release.
35693         Reported by Simon Josefsson.
35695 2011-05-01  Bruno Haible  <bruno@clisp.org>
35697         gnulib-tool: Reduce code duplication.
35698         * gnulib-tool (func_emit_autoconf_snippets): New function.
35699         (func_import, func_create_testdir): Use it.
35701 2011-04-30  Eric Blake  <eblake@redhat.com>
35703         fclose: don't fail on non-seekable input stream
35704         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
35705         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
35706         since fflush is allowed to fail in that case.
35708 2011-04-30  Bruno Haible  <bruno@clisp.org>
35710         dup3: cleanup
35711         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
35713 2011-04-30  Bruno Haible  <bruno@clisp.org>
35715         netdb: Make it work in C++ mode.
35716         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
35717         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
35718         module.
35719         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
35720         gl_MODULE_INDICATOR_FOR_TESTS.
35721         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
35722         * modules/netdb-c++-tests: New file.
35723         * tests/test-netdb-c++.cc: New file.
35725 2011-04-30  Bruno Haible  <bruno@clisp.org>
35727         New modules 'vfscanf', 'vscanf'.
35728         * modules/vfscanf: New file.
35729         * modules/vscanf: New file.
35730         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
35731         here.
35732         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
35733         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
35735 2011-04-30  Bruno Haible  <bruno@clisp.org>
35737         passfd: Add comments.
35738         * lib/passfd.c: Add comments about platforms.
35740 2011-04-30  Bruno Haible  <bruno@clisp.org>
35742         sys_uio: Make <sys/uio.h> self-contained.
35743         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
35744         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
35746 2011-04-30  Bruno Haible  <bruno@clisp.org>
35748         sys_socket: Ensure 'struct iovec' definition.
35749         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
35750         <sys/socket.h>.
35751         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
35753 2011-04-30  Bruno Haible  <bruno@clisp.org>
35755         sys_uio: Protect definition of 'struct iovec'.
35756         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
35757         it as a C struct.
35759 2011-04-30  Bruno Haible  <bruno@clisp.org>
35761         manywarnings: fix indentation
35762         * m4/manywarnings.m4: Indent by 2 spaces consistently.
35764 2011-04-30  Pádraig Brady  <P@draigBrady.com>
35766         manywarnings: add -Wno-missing-field-initializers if needed.
35767         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
35768         option if it's needed to allow initialization with { 0, }
35770 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
35772         announce-gen: cosmetic improvement
35773         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
35775 2011-04-29  Jim Meyering  <meyering@redhat.com>
35777         vc-list-files: indent with spaces, not TABs
35778         * build-aux/vc-list-files: Convert leading TABs to spaces,
35779         to match the style of most other files in gnulib.
35781         announce-gen: indent with spaces, not TABs
35782         * build-aux/announce-gen: Convert all TABs to spaces, to match
35783         the style of most other files in gnulib.
35785 2011-04-29  Eric Blake  <eblake@redhat.com>
35787         quotearg: avoid uninitialized variable use
35788         * lib/quotearg.c (quoting_options_from_style): Initialize
35789         remaining fields, and ensure that custom styles are only used via
35790         quoting_options rather than quoting_style.
35792 2011-04-29  Jim Meyering  <meyering@redhat.com>
35794         maint.mk: remove unused VC-tag variable
35795         * top/maint.mk (VC-tag): Remove unused variable.
35797 2011-04-29  Bruno Haible  <bruno@clisp.org>
35799         netdb: fix gai_strerror replacements
35800         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
35801         * modules/netdb: Substitute it.
35803 2011-04-29  Jim Meyering  <meyering@redhat.com>
35805         test-getcwd.c: avoid new set-but-not-used warning
35806         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
35807         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
35808         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
35809         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
35811         test-hash.c: avoid a new shadowing warning
35812         * tests/test-hash.c (main): Don't shadow "dup".
35814 2011-04-28  Eric Blake  <eblake@redhat.com>
35816         getaddrinfo: fix gai_strerror signature
35817         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
35818         and work around mingw with UNICODE defined.
35819         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
35820         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
35821         * modules/netdb (Makefile.am): Substitute it.
35822         * lib/netdb.in.h (gai_strerror): Declare replacement.
35823         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
35824         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
35825         the fix.
35827         getsockopt: avoid compiler warning
35828         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
35829         Reported by Matthias Bolte.
35831         tests: drop unused link dependency
35832         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
35833         * modules/dirent-safer-tests (Makefile.am): Likewise.
35834         * modules/fdopendir-tests (Makefile.am): Likewise.
35835         * modules/mkfifoat-tests (Makefile.am): Likewise.
35836         * modules/openat-safer-tests (Makefile.am): Likewise.
35837         * modules/openat-tests (Makefile.am): Likewise.
35838         * modules/readlinkat-tests (Makefile.am): Likewise.
35839         * modules/symlinkat-tests (Makefile.am): Likewise.
35840         * modules/linkat-tests (Makefile.am): Likewise.
35841         (Depends-on): Switch to filenamecat-lgpl.
35842         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
35843         LIBINTL.
35844         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
35845         * tests/test-linkat.c (main): Don't require xalloc.
35847         hash, mgetgroups: drop xalloc dependency
35848         * lib/hash.c (includes): Adjust includes.
35849         * lib/mgetgroups.c (includes): Likewise.
35850         (xgetgroups): Move...
35851         * lib/xgetgroups.c: ...to new file.
35852         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
35853         * modules/xgetgroups: New file, split from...
35854         * modules/mgetgroups: ...here.
35855         (Depends-on): Add xalloc-oversized.
35856         * modules/hash (Depends-on): Likewise.
35857         * modules/hash-tests (Depends-on): Drop xalloc.
35858         (test_hash_LDADD): Drop unused library.
35859         * tests/test-hash.c (main): Break xalloc dependency.
35860         (includes): Drop unused include.
35862         xalloc-oversized: new module
35863         * modules/xalloc-oversized: New module.
35864         * modules/xalloc (Depends-on): Add it.
35865         * lib/xalloc.h (xalloc_oversized): Move...
35866         * lib/xalloc-oversized.h: ...into new file.
35868         utimecmp: drop dependency on xmalloc
35869         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
35870         due to memory pressure.
35871         * modules/utimecmp (Depends-on): Drop xalloc.
35873 2011-04-27  Eric Blake  <eblake@redhat.com>
35875         getcwd: fix mingw bugs
35876         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
35877         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
35878         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
35880 2011-04-27  Bruno Haible  <bruno@clisp.org>
35882         mkstemps: Ensure declaration on MacOS X 10.5.
35883         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
35884         * doc/glibc-functions/mkstemps.texi: Document header file problem on
35885         MacOS X.
35887 2011-04-27  Bruno Haible  <bruno@clisp.org>
35889         mkstemp: More documentation.
35890         * doc/posix-functions/mkstemp.texi: Document header file problem on
35891         MacOS X.
35893 2011-04-27  Bruno Haible  <bruno@clisp.org>
35895         mkstemp: Tweak configure message when cross-compiling.
35896         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
35897         result as a guess.
35899 2011-04-27  Bruno Haible  <bruno@clisp.org>
35901         clean-temp: Clarify what it does.
35902         * lib/clean-temp.h: Add more comments.
35903         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
35904         module.
35905         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
35906         * doc/glibc-functions/mkstemps.texi: Likewise.
35907         * doc/glibc-functions/mkostemps.texi: Likewise.
35909 2011-04-27  Eric Blake  <eblake@redhat.com>
35911         fchdir: avoid extra chdir and fix test
35912         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
35913         getcwd-lgpl.
35914         * lib/fchdir.c (get_name): Any absolute name will do; it does not
35915         have to be canonical.
35916         (canonicalize_file_name): Drop unused macro.
35917         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
35919         filenamecat-lgpl: fix licence
35920         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
35921         when it was first created.
35923         linkat, renameat: add missing dependency
35924         * modules/linkat (Depends-on): Require getcwd-lgpl.
35925         * modules/renameat (Depends-on): Likewise.
35927         tests: reduce dependencies
35928         * tests/test-linkat.c (main): Use lighter-weight getcwd.
35929         * tests/test-renameat.c (main): Likewise.
35930         * modules/linkat-tests (Depends-on): Relax dependency.
35931         * modules/renameat-tests (Depends-on): Likewise.
35932         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
35933         dependency explicit.
35935         save-cwd: reduce default dependency
35936         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
35937         * lib/save-cwd.c: Update comments.
35938         * NEWS: Document the semantic change.
35940         getcwd: enhance tests
35941         * tests/test-getcwd-lgpl.c: New file, taken from...
35942         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
35943         repeat long path stress tests from m4 probe.
35944         * modules/getcwd-lgpl-tests: New module.
35945         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
35946         * m4/getcwd-abort-bug.m4: Update comment.
35947         * m4/getcwd-path-max.m4: Likewise.
35949         getcwd-lgpl: new module
35950         * modules/getcwd-lgpl: New module.
35951         * lib/getcwd-lgpl.c: New file.
35952         * doc/posix-functions/getcwd.texi (getcwd): Document it.
35953         * MODULES.html.sh (lacking POSIX:2008): Likewise.
35954         * modules/getcwd (configure.ac): Set C witness.
35955         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
35957         getcwd: tweak comments
35958         * m4/getcwd-abort-bug.m4: Fix comments.
35959         * m4/getcwd-path-max.m4: Likewise.
35960         * m4/getcwd.m4: Likewise.
35962 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
35963         and Eric Blake  <eblake@redhat.com>
35965         mkstemp: replace if system version uses wrong permissions
35966         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
35967         read/write mode bits set in file created by mkstemp.
35968         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
35970 2011-04-27  Eric Blake  <eblake@redhat.com>
35972         passfd: avoid compiler warning
35973         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
35974         Reported by Laine Stump.
35976 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
35978         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
35979         required by the NetBSD (and perhaps other 4.4BSD derived) join.
35981 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
35982         and Eric Blake  <eblake@redhat.com>
35984         mkstemp: mention clean-temp module
35985         * lib/mkstemp.c: Add comment.
35986         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
35988 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
35990         inttypes: also provide default values for 32-bit tests
35991         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
35992         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
35994 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
35996         strtoumax: remove dependency on strtoimax
35997         This is like the strtoull change of yesterday.
35998         * modules/strtoumax (Files): Add lib/strtoimax.c.
35999         (Depends-on): Remove strtoimax and add verify.
36001         inttypes-incomplete: new module
36002         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
36003         all but the PRI* and SCN* parts of gl_INTTYPES_H.
36004         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
36005         of gl_INTTYPES_H.
36006         (gl_INTTYPES_H): Rewrite in terms of these new macros.
36007         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
36008         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
36009         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
36010         * modules/strtoumax, modules/xstrtol (Depends-on):
36011         Depend on inttypes-incomplete, not inttypes.
36012         * modules/inttypes-incomplete: New module, containing the contents
36013         of the old modules/inttypes module, except that the Files: section
36014         omits m4/inttypes-pri.m4, and the configure.ac section invokes
36015         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
36016         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
36017         (Depends-on): Depend only on inttypes-incomplete.
36018         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
36020         inttypes: omit now-redundant strtoimax and strtoumax work
36021         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
36022         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
36024         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
36025         This supports apps that need pointers to strtoimax and strtoumax,
36026         and ports to HP-UX 11.00 64.bit, which has macros that expand to
36027         nonexistent functions.  See
36028         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
36029         et seq.
36030         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
36031         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
36032         a macro.
36033         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
36035 2011-04-25  Simon Josefsson  <simon@josefsson.org>
36037         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
36039 2011-04-25  Bruno Haible  <bruno@clisp.org>
36041         strtol, strtoul: Mark modules as obsolete.
36042         * modules/strtol (Status, Notice): New sections.
36043         * modules/strtoul (Status, Notice): New sections.
36045 2011-04-25  Bruno Haible  <bruno@clisp.org>
36047         strtod: Remove check for strtod, unless supporting old platforms.
36048         * modules/strtod-obsolete: New file.
36049         * m4/strtod-obsolete.m4: New file.
36050         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
36051         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
36052         * modules/strtod (Depends-on): Add strtod-obsolete.
36053         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
36055 2011-04-25  Bruno Haible  <bruno@clisp.org>
36057         strcase: Make module obsolete.
36058         * modules/strcase (Status, Notice): New sections.
36060 2011-04-25  Bruno Haible  <bruno@clisp.org>
36062         dup2: Remove check for dup2, unless supporting old obsolete platforms.
36063         * modules/dup2-obsolete: New file.
36064         * m4/dup2-obsolete.m4: New file.
36065         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
36066         gl_FUNC_DUP2_OBSOLETE is not also defined.
36067         * modules/dup2 (Depends-on): Add dup2-obsolete.
36068         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
36070 2011-04-25  Bruno Haible  <bruno@clisp.org>
36072         strnlen: Avoid memchr related link error on old obsolete platforms.
36073         * modules/memchr-obsolete: New file.
36074         * m4/memchr-obsolete.m4: New file.
36075         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
36076         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
36077         * modules/memchr (Depends-on): Add memchr-obsolete.
36078         * modules/strnlen (Depends-on): Likewise.
36079         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
36081 2011-04-25  Jim Meyering  <meyering@redhat.com>
36083         maint.mk: makefile_at_at_check extend and clean up
36084         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
36085         in addition to */Makefile.am.
36086         Exempt legitimate uses of @VAR@ notation, e.g.,
36087         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
36088         Remove obsolete coreutils-specific comment.
36089         Prompted by discussion here:
36090         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
36092 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
36094         strtoul: remove dependency on strtol
36095         This is so that 'configure' need not check for strtol merely because
36096         the application needs strtoul.
36097         * modules/strtoul (Files): Add lib/strtol.c.
36098         (Depends-on): Remove strtol.
36100         strtoull: remove dependency on strtoul
36101         This is like the strtoll change.
36102         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
36103         (Depends-on): Remove strtoul.
36105         strtoll: remove dependency on strtol
36106         This is so that 'configure' need not check for strtol merely because
36107         the application needs strtoll.
36108         * modules/strtoll (Files): Add lib/strtol.c.
36109         (Depends-on): Remove strtol.
36111 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
36113         inttypes: Move some configure check to module 'imaxdiv'.
36114         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
36115         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
36116         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
36118 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
36120         inttypes: Move some configure check to module 'imaxabs'.
36121         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
36122         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
36123         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
36125 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
36127         inttypes: Remove configure tests that are not needed since 2009-12-31.
36128         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
36129         gl_cv_header_working_inttypes_h.
36131 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
36133         * modules/strnlen (Depends-on): Remove memchr.
36134         The strnlen implementation doesn't need the memchr module's fixes; see
36135         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
36137         strtol: remove dependency on wchar
36138         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
36139         * modules/strtol (Depends-on): Remove wchar.
36141 2011-04-21  Eric Blake  <eblake@redhat.com>
36143         passfd: fix test regression on Linux
36144         * modules/passfd-tests (configure.ac): Correct socketpair check.
36146         passfd: speed up configure and drop unused code
36147         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
36148         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
36149         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
36150         Instead of probing at configure for unix_scm_rights_bsd44_way,
36151         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
36152         check to a struct member probe.
36153         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
36154         (sendfd, recvfd): Update preprocessor checks.
36155         * modules/passfd (Files): Reflect rename, and drop unused file.
36156         (Depends-on): Drop unused dependency.
36158         passfd: allow compilation on mingw
36159         * modules/sys_socket (Depends-on): Add sys_uio.
36160         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
36161         iovec and a minimal struct msghdr.
36162         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
36163         * tests/test-sys_socket.c (main): Enhance test.
36164         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
36165         guaranteed to provide what we need.
36166         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
36167         * modules/passfd-tests (Depends-on): Add sys_wait.
36168         * tests/test-passfd.c (main): Skip test on mingw, for now.
36169         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
36170         partial 'struct msghdr' implementation.
36172         sys_uio: new module
36173         * modules/sys_uio: New module.
36174         * modules/sys_uio-tests: Likewise.
36175         * lib/sys_uio.in.h: New file.
36176         * m4/sys_uio_h.m4: Likewise.
36177         * tests/test-sys_uio.c: Likewise.
36178         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
36179         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
36181 2011-04-20  Jim Meyering  <meyering@redhat.com>
36183         useless-if-before-free: avoid false-positive
36184         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
36185         disjunct so that it too requires a terminating ";".  Without that,
36186         this script would identify as useless one statement from gcc that
36187         was not:
36188           if (aligned_ptr)
36189             free (((void **) aligned_ptr) [-1]);
36191 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
36193         doc: update users.txt.
36194         * users.txt: Add barcode.
36196 2011-04-19  Bruno Haible  <bruno@clisp.org>
36198         ioctl: Remove link dependency on native Windows.
36199         * lib/fd-hook.h: Renamed from lib/close-hook.h.
36200         (gl_close_fn, gl_ioctl_fn): New types.
36201         (struct fd_hook): Renamed from struct close_hook. Change type of
36202         private_close_fn field. Add private_ioctl_fn field.
36203         (close_hook_fn): Add parameter for primary close method.
36204         (execute_close_hooks, execute_all_close_hooks): Likewise.
36205         (ioctl_hook_fn): New type.
36206         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
36207         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
36208         argument.
36209         (unregister_fd_hook): Renamed from unregister_close_hook.
36210         * lib/fd-hook.c: Renamed from lib/close-hook.c.
36211         Don't include <unistd.h>.
36212         (close): Remove undef.
36213         (anchor): Update.
36214         (execute_close_hooks): Add argument for primary close method.
36215         (execute_all_close_hooks): Likewise.
36216         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
36217         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
36218         argument. Allow each argument to be NULL.
36219         (unregister_fd_hook): Renamed from unregister_close_hook.
36220         * lib/close.c (rpl_close): Pass 'close' function pointer to
36221         execute_all_close_hooks.
36222         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
36223         (primary_ioctl): New function.
36224         (ioctl): Don't call ioctlsocket here. Instead, call
36225         execute_all_ioctl_hooks.
36226         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
36227         close method.
36228         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
36229         (fd_sockets_hook): Renamed from close_sockets_hook.
36230         (gl_sockets_startup, gl_sockets_cleanup): Update.
36231         * modules/fd-hook: Renamed from modules/close-hook. Update.
36232         * modules/close (Depends-on): Add fd-hook, remove close-hook.
36233         * modules/sockets (Depends-on): Likewise.
36234         * modules/ioctl (Depends-on): Add fd-hook.
36235         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
36236         GNULIB_SOCKET.
36238 2011-04-19  Bruno Haible  <bruno@clisp.org>
36240         Move the support of O_NONBLOCK in open() to the 'open' module.
36241         * modules/nonblocking (Depends-on): Remove 'open'.
36242         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
36243         gl_cv_have_open_O_NONBLOCK.
36244         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
36245         O_NONBLOCK support.
36246         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
36248 2011-04-17  Bruno Haible  <bruno@clisp.org>
36250         pipe2: Simplify code.
36251         * lib/pipe2.c (pipe2): Reduce code duplication.
36253 2011-04-17  Bruno Haible  <bruno@clisp.org>
36255         nonblocking: Add comment.
36256         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
36258 2011-04-17  Bruno Haible  <bruno@clisp.org>
36260         nonblocking: Add tests for sockets.
36261         * tests/test-nonblocking-socket.sh: New file.
36262         * tests/test-nonblocking-socket-main.c: New file.
36263         * tests/test-nonblocking-socket-child.c: New file.
36264         * tests/test-nonblocking-socket.h: New file.
36265         * tests/socket-server.h: New file.
36266         * tests/socket-client.h: New file.
36267         * modules/nonblocking-socket-tests: New file.
36268         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
36270 2011-04-17  Bruno Haible  <bruno@clisp.org>
36272         nonblocking: Add tests for pipes.
36273         * tests/test-nonblocking-pipe.sh: New file.
36274         * tests/test-nonblocking-pipe-main.c: New file.
36275         * tests/test-nonblocking-pipe-child.c: New file.
36276         * tests/test-nonblocking-pipe.h: New file.
36277         * tests/test-nonblocking-writer.h: New file.
36278         * tests/test-nonblocking-reader.h: New file.
36279         * tests/test-nonblocking-misc.h: New file.
36280         * modules/nonblocking-pipe-tests: New file.
36281         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
36283 2011-04-16  Bruno Haible  <bruno@clisp.org>
36285         gettext: Clarify the needed programmer actions.
36286         * modules/gettext (Notice): New field.
36287         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
36289 2011-04-16  Bruno Haible  <bruno@clisp.org>
36291         strchrnul: Tweak last commit.
36292         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
36293         bug.
36294         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
36295         as in _GL_FUNCDECL_SYS.
36296         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
36297         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
36299 2011-04-15  Eric Blake  <eblake@redhat.com>
36301         strchrnul: work around cygwin bug
36302         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
36303         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
36304         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
36305         * modules/string (Makefile.am): Substitute it.
36306         * lib/string.in.h (strchrnul): Use it.
36308 2011-04-15  Bruno Haible  <bruno@clisp.org>
36310         Don't require lib/stdio-write.c when only module 'stdio' is used.
36311         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
36312         invocation.
36313         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
36315 2011-04-14  Bruno Haible  <bruno@clisp.org>
36317         Support non-blocking pipe I/O in read() on native Windows.
36318         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
36319         (read): New declaration.
36320         * lib/read.c: New file.
36321         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
36322         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
36323         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
36324         vscanf): New declarations.
36325         * lib/stdio-read.c: New file.
36326         * m4/read.m4: New file.
36327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
36328         REPLACE_READ.
36329         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
36330         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
36331         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
36332         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
36333         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
36334         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
36335         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
36336         * modules/read: New file.
36337         * modules/nonblocking (Files): Add lib/stdio-read.c.
36338         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
36339         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
36340         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
36341         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
36342         * modules/pread (Depends-on): Add read.
36343         * modules/safe-read (Depends-on): Likewise.
36344         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
36345         gets, scanf, vfscanf, vscanf): Verify signatures.
36346         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
36347         problem with non-blocking pipes.
36348         * doc/posix-functions/fgetc.texi: Likewise.
36349         * doc/posix-functions/fgets.texi: Likewise.
36350         * doc/posix-functions/fread.texi: Likewise.
36351         * doc/posix-functions/fscanf.texi: Likewise.
36352         * doc/posix-functions/getc.texi: Likewise.
36353         * doc/posix-functions/getchar.texi: Likewise.
36354         * doc/posix-functions/gets.texi: Likewise.
36355         * doc/posix-functions/scanf.texi: Likewise.
36356         * doc/posix-functions/vfscanf.texi: Likewise.
36357         * doc/posix-functions/vscanf.texi: Likewise.
36359 2011-04-14  Bruno Haible  <bruno@clisp.org>
36361         Support non-blocking pipe I/O in write() on native Windows.
36362         * lib/write.c (rpl_write): Split a write request that failed merely
36363         because the byte count was larger than the pipe buffer's size.
36364         * doc/posix-functions/write.texi: Mention the problem with large byte
36365         counts.
36367 2011-04-14  Bruno Haible  <bruno@clisp.org>
36369         wchar: Ensure that wchar_t gets defined on uClibc.
36370         * lib/wchar.in.h: On uClibc, include <stddef.h>.
36371         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
36373 2011-04-13  Bruno Haible  <bruno@clisp.org>
36375         safe-write, full-read: Avoid unnecessary compilation units.
36376         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
36377         (Depends-on): Remove safe-read. Add ssize_t.
36378         * modules/full-read (Files): Add lib/full-write.c.
36379         (Depends-on): Add full-write.
36381 2011-04-13  Bruno Haible  <bruno@clisp.org>
36383         Support non-blocking pipe I/O and SIGPIPE in pwrite().
36384         * modules/pwrite (Depends-on): Add 'write'.
36386 2011-04-13  Bruno Haible  <bruno@clisp.org>
36388         Support non-blocking pipe I/O in write() on native Windows.
36389         * lib/unistd.in.h (write): Enable replacement also if
36390         GNULIB_UNISTD_H_NONBLOCKING is 1.
36391         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
36392         (rpl_write): When failing to write on a non-blocking pipe, change
36393         errno from ENOSPC to EAGAIN.
36394         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
36395         putchar, puts, vfprintf, vprintf): Enable replacement also if
36396         GNULIB_STDIO_H_NONBLOCKING is 1.
36397         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
36398         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
36399         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
36400         CALL_WITH_SIGPIPE_EMULATION.
36401         (CALL_WITH_SIGPIPE_EMULATION): Use them.
36402         * m4/nonblocking.m4: New file.
36403         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
36404         for non-blocking I/O support.
36405         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36406         GNULIB_UNISTD_H_NONBLOCKING.
36407         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
36408         required for non-blocking I/O support.
36409         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
36410         * modules/nonblocking (Files): Add m4/nonblocking.m4,
36411         lib/stdio-write.c, m4/asm-underscore.m4.
36412         (Depends-on): Add stdio, unistd.
36413         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
36414         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
36415         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
36416         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
36417         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
36418         problem with non-blocking pipes.
36419         * doc/posix-functions/fputc.texi: Likewise.
36420         * doc/posix-functions/fputs.texi: Likewise.
36421         * doc/posix-functions/fwrite.texi: Likewise.
36422         * doc/posix-functions/printf.texi: Likewise.
36423         * doc/posix-functions/putc.texi: Likewise.
36424         * doc/posix-functions/putchar.texi: Likewise.
36425         * doc/posix-functions/puts.texi: Likewise.
36426         * doc/posix-functions/vfprintf.texi: Likewise.
36427         * doc/posix-functions/vprintf.texi: Likewise.
36428         * doc/posix-functions/write.texi: Likewise.
36430 2011-04-10  Jim Meyering  <meyering@redhat.com>
36432         maint.mk: prohibit doubled words
36433         Detect them also when they're separated by a newline.
36434         There are 3 ways to customize it:
36435           - disable the test on a per file basis, as usual with rules using
36436             $(VC_LIST_EXCEPT)
36437           - replace the default doubled-word-selecting regexp (affects all files)
36438           - ignore a particular file-vs-doubled-word match
36439         I nearly used that last one to ignore the "is is" match in
36440         coreutils' NEWS file, since the text was "ls -is is ..."
36441         To do that, I would have added this line to cfg.mk:
36442           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
36443         but it would have ignored any "is is" match in NEWS.
36444         Low probability, but still...
36445         Instead, I changed the text, slightly:
36446           -  ls -is is now consistent with ls -lis in ignoring values returned
36447           +  "ls -is" is now consistent with ls -lis in ignoring values returned
36448         * top/maint.mk (prohibit_double_word_RE_): Provide default.
36449         (prohibit_doubled_word_): Define.
36450         (sc_prohibit_doubled_word): New rule.
36451         (sc_prohibit_the_the): Remove.  Subsumed by the above.
36453 2011-04-10  Jim Meyering  <meyering@redhat.com>
36455         maint: fix doubled-word typo in comment
36456         * m4/gethostname.m4: s/is is/it is/
36457         * m4/getdomainname.m4: Likewise.
36459 2011-04-10  Jim Meyering  <meyering@redhat.com>
36461         maint: remove doubled word: s/it it/it/
36462         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
36464 2011-04-10  Jim Meyering  <meyering@redhat.com>
36466         maint.mk: remove useless semicolon and backslash
36467         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
36468         semicolon and backslash.
36470 2011-04-10  Bruno Haible  <bruno@clisp.org>
36472         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
36473         * modules/stdint-tests (Depends-on): Add wchar.
36475 2011-04-10  Jim Meyering  <meyering@redhat.com>
36477         maint: remove doubled words in comments, e.g., s/a a/a/
36478         * lib/strptime.c (day_of_the_week): s/the the/the/
36479         * tests/test-chown.h (test_chown): s/a a/a/
36481         test-chown.h: correct a cast
36482         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
36483         when the destination is a stat.st_gid.
36485 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
36487         getaddrinfo: Fix test for sa_len member.
36488         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
36489         include <sys/types.h> before <sys/socket.h>.
36491 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
36493         maint: change "can not" to "cannot"
36494         * doc/posix-functions/iconv.texi (iconv): This one crossed line
36495         boundaries.
36497 2011-04-09  Jim Meyering  <meyering@redhat.com>
36499         maint: change "a a" to "a"
36500         * tests/test-lchown.h (test_lchown): s/a a/a/
36502         maint.mk: prohibit \<the the\>
36503         * top/maint.mk (sc_prohibit_the_the): New rule.
36505         maint: fix "the the" in comment
36506         * lib/count-one-bits.h: s/the the/the/
36508         maint: change "can not" to "cannot"
36509         But do not change the occurrences in maintain.texi or in
36510         build-aux/po/Makefile.in.in, which I presume comes from gettext.
36511         * doc/gnulib-tool.texi: s/can not/cannot/
36512         * doc/posix-functions/accept.texi (accept): Likewise.
36513         * doc/posix-functions/socket.texi (socket): Likewise.
36514         * lib/mbrtowc.c: Likewise.
36516         maint.mk: prohibit use of "can not"
36517         * top/maint.mk (sc_prohibit_can_not): New rule.
36518         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
36520 2011-04-09  Bruno Haible  <bruno@clisp.org>
36522         careadlinkat: Guard against misuse of careadlinkatcwd.
36523         * lib/careadlinkat.c: Include <stdlib.h>.
36524         (careadlinkatcwd): Check that the fd argument is as expected.
36526 2011-04-09  Bruno Haible  <bruno@clisp.org>
36528         careadlinkat: Use common coding style.
36529         * lib/careadlinkat.c: Move gnulib includes after system includes.
36531 2011-04-09  Bruno Haible  <bruno@clisp.org>
36533         careadlinkat: Clarify specification.
36534         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
36535         (careadlinkatcwd): Add comment.
36536         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
36538 2011-04-09  Bruno Haible  <bruno@clisp.org>
36540         areadlinkat: Avoid link error on many platforms.
36541         * modules/areadlinkat (Depends-on): Add areadlink.
36543 2011-04-09  Bruno Haible  <bruno@clisp.org>
36545         allocator, careadlinkat: Fix double-inclusion guard.
36546         * lib/allocator.h: Fix double-inclusion guard.
36547         * lib/careadlinkat.h: Likewise.
36549 2011-04-09  Bruno Haible  <bruno@clisp.org>
36551         relocatable-prog-wrapper: Update after module 'areadlink' changed.
36552         * lib/relocwrapper.c: Update dependencies hierarchy.
36553         * build-aux/install-reloc: Update list of files to be compiled.
36554         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
36555         lib/allocator.[hc].
36557 2011-04-08  Eric Blake  <eblake@redhat.com>
36559         strftime: silence gnulib-tool warning
36560         * modules/strftime-tests (Depends-on): Drop automatic dependency.
36562 2011-04-08  Bruno Haible  <bruno@clisp.org>
36564         verify: Fix syntax error with GCC 4.6 in C++ mode.
36565         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
36566         (HAVE_STATIC_ASSERT): New macro.
36567         (verify_true, verify): Use 'static_assert' if it is supported and
36568         '_Static_assert' is not supported.
36570 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
36572         allocator: New module.
36573         * modules/allocator, lib/allocator.c: New files.
36574         * lib/allocator.h (stdlib_allocator): New decl.
36575         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
36576         Remove.  Do not include <stdlib.h>.
36577         (careadlinkat): Use stdlib_allocator instead of rolling our own.
36578         * modules/careadlinkat (Files): Remove lib/allocator.h.
36579         (Depends-on): Add allocator.
36581         stdlib: let modules use system malloc, realloc
36582         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
36583         if !_GL_USE_STDLIB_ALLOC.
36584         (malloc, realloc): Limit this change to a smaller scope.
36586         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
36587         (malloc, realloc): Don't #undef; no longer needed.
36588         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
36589         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
36590         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
36591         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
36592         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
36593         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
36594         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
36595         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
36597         careadlinkat: rename members to avoid problem
36598         * lib/allocator.h (struct allocator): Rename members from
36599         malloc/realloc to allocate/reallocate, to avoid problems if malloc
36600         and realloc are #define'd.  Reported by Eric Blake in
36601         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
36602         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
36604 2011-04-08  Eric Blake  <eblake@redhat.com>
36606         nonblocking: reduce dependency
36607         * tests/test-nonblocking.c: Only test sockets when in use.
36608         * modules/nonblocking-tests (Depends-on): Drop socket.
36609         (Makefile.am): Link even if sockets are not present.
36610         * modules/pipe2-tests (Makefile.am): Likewise.
36611         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
36613         pipe2: fix O_NONBLOCK support on mingw
36614         * modules/pipe2 (Depends-on): Add nonblocking.
36615         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
36616         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
36617         * tests/test-nonblocking.c (main): Likewise.
36618         * modules/pipe2-tests (Makefile.am): Avoid link failure.
36620         fcntl-h: fix O_ACCMODE on cygwin
36621         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
36622         * lib/fcntl.in.h (O_ACCMODE): Fix it.
36624         pipe-filter: drop O_NONBLOCK workarounds
36625         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
36626         * modules/pipe-filter-ii (Depends-on): Likewise.
36627         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
36629         nonblocking: provide O_NONBLOCK for mingw
36630         * modules/nonblocking (Depends-on): Add open.
36631         (configure.ac): Set new witness macro.
36632         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
36633         * modules/fcntl-h (Makefile.am): Substitute it.
36634         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
36635         nonblocking module is in use.
36636         * lib/nonblocking.c: Adjust portability test.
36637         * lib/open.c (open): Don't let native open see gnulib flag.
36638         * tests/test-fcntl-h.c (main): Enhance test.
36639         * tests/test-open.h (test_open): Likewise.
36640         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
36642         careadlinkat: fix compilation error on mingw
36643         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
36644         within struct allocator.
36646 2011-04-06  Eric Blake  <eblake@redhat.com>
36648         binary-io: relicense under LGPLv2+
36649         * modules/binary-io (License): Relax to LGPLv2+.
36650         Requested for libvirt, and required by pipe2.
36652 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
36654         verify: use _Static_assert if available
36655         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
36656         (verify_true, verify): Use it if available.  This generates better
36657         diagnostics with GCC 4.6.0 and later.
36659 2011-04-05  Bruno Haible  <bruno@clisp.org>
36661         Remove leftover generated .h files after config.status changed.
36663         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
36664         GL_GENERATE_ALLOCA_H.
36665         * modules/alloca-opt (Makefile.am): Remove alloca.h if
36666         GL_GENERATE_ALLOCA_H evaluates to false.
36668         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
36669         GL_GENERATE_ARGZ_H.
36670         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
36671         evaluates to false.
36673         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
36674         GL_GENERATE_BYTESWAP_H.
36675         * modules/byteswap (Makefile.am): Remove byteswap.h if
36676         GL_GENERATE_BYTESWAP_H evaluates to false.
36678         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
36679         GL_GENERATE_ERRNO_H.
36680         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
36681         evaluates to false.
36683         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
36684         GL_GENERATE_FLOAT_H.
36685         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
36686         evaluates to false.
36688         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
36689         GL_GENERATE_FNMATCH_H.
36690         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
36691         GL_GENERATE_FNMATCH_H evaluates to false.
36693         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
36694         GL_GENERATE_GLOB_H.
36695         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
36696         evaluates to false.
36698         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
36699         automake conditional GL_GENERATE_ICONV_H.
36700         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
36701         evaluates to false.
36703         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
36704         GL_GENERATE_NETINET_IN_H.
36705         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
36706         GL_GENERATE_NETINET_IN_H evaluates to false.
36708         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
36709         conditional GL_GENERATE_PTHREAD_H.
36710         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
36711         * modules/pthread (Makefile.am): Remove pthread.h if
36712         GL_GENERATE_PTHREAD_H evaluates to false.
36714         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
36715         GL_GENERATE_SCHED_H.
36716         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
36717         evaluates to false.
36719         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
36720         conditional GL_GENERATE_SELINUX_CONTEXT_H.
36721         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
36722         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
36724         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
36725         GL_GENERATE_STDARG_H.
36726         * modules/stdarg (Makefile.am): Remove stdarg.h if
36727         GL_GENERATE_STDARG_H evaluates to false.
36729         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
36730         GL_GENERATE_STDBOOL_H.
36731         * modules/stdbool (Makefile.am): Remove stdbool.h if
36732         GL_GENERATE_STDBOOL_H evaluates to false.
36734         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
36735         conditional GL_GENERATE_STDDEF_H.
36736         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
36737         * modules/stddef (Makefile.am): Remove stddef.h if
36738         GL_GENERATE_STDDEF_H evaluates to false.
36740         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
36741         GL_GENERATE_STDINT_H.
36742         * modules/stdint (Makefile.am): Remove stdint.h if
36743         GL_GENERATE_STDINT_H evaluates to false.
36745         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
36746         GL_GENERATE_SYSEXITS_H.
36747         * modules/sysexits (Makefile.am): Remove sysexits.h if
36748         GL_GENERATE_SYSEXITS_H evaluates to false.
36750         Reported by Karl Berry and Ralf Wildenhues.
36752 2011-04-05  Bruno Haible  <bruno@clisp.org>
36754         Ensure to rebuild generated .h files when config.status has changed.
36755         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
36756         config.status.
36757         * modules/ctype (Makefile.am): Likewise.
36758         * modules/dirent (Makefile.am): Likewise.
36759         * modules/errno (Makefile.am): Likewise.
36760         * modules/fcntl-h (Makefile.am): Likewise.
36761         * modules/float (Makefile.am): Likewise.
36762         * modules/getopt-posix (Makefile.am): Likewise.
36763         * modules/glob (Makefile.am): Likewise.
36764         * modules/iconv-h (Makefile.am): Likewise.
36765         * modules/inttypes (Makefile.am): Likewise.
36766         * modules/langinfo (Makefile.am): Likewise.
36767         * modules/locale (Makefile.am): Likewise.
36768         * modules/math (Makefile.am): Likewise.
36769         * modules/netdb (Makefile.am): Likewise.
36770         * modules/netinet_in (Makefile.am): Likewise.
36771         * modules/poll-h (Makefile.am): Likewise.
36772         * modules/pthread (Makefile.am): Likewise.
36773         * modules/pty (Makefile.am): Likewise.
36774         * modules/sched (Makefile.am): Likewise.
36775         * modules/search (Makefile.am): Likewise.
36776         * modules/selinux-h (Makefile.am): Likewise.
36777         * modules/signal (Makefile.am): Likewise.
36778         * modules/spawn (Makefile.am): Likewise.
36779         * modules/stdarg (Makefile.am): Likewise.
36780         * modules/stdbool (Makefile.am): Likewise.
36781         * modules/stddef (Makefile.am): Likewise.
36782         * modules/stdint (Makefile.am): Likewise.
36783         * modules/stdio (Makefile.am): Likewise.
36784         * modules/stdlib (Makefile.am): Likewise.
36785         * modules/string (Makefile.am): Likewise.
36786         * modules/strings (Makefile.am): Likewise.
36787         * modules/sys_file (Makefile.am): Likewise.
36788         * modules/sys_ioctl (Makefile.am): Likewise.
36789         * modules/sys_select (Makefile.am): Likewise.
36790         * modules/sys_socket (Makefile.am): Likewise.
36791         * modules/sys_stat (Makefile.am): Likewise.
36792         * modules/sys_time (Makefile.am): Likewise.
36793         * modules/sys_times (Makefile.am): Likewise.
36794         * modules/sys_utsname (Makefile.am): Likewise.
36795         * modules/sys_wait (Makefile.am): Likewise.
36796         * modules/sysexits (Makefile.am): Likewise.
36797         * modules/termios (Makefile.am): Likewise.
36798         * modules/time (Makefile.am): Likewise.
36799         * modules/unistd (Makefile.am): Likewise.
36800         * modules/wchar (Makefile.am): Likewise.
36801         * modules/wctype-h (Makefile.am): Likewise.
36802         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
36804 2011-04-05  Bruno Haible  <bruno@clisp.org>
36806         pipe2: Relicense under LGPLv2+.
36807         * modules/pipe2 (License): Change to LGPLv2+.
36808         Requested by Eric Blake, for libvirt.
36810 2011-04-05  Bruce Korb  <bkorb@gnu.org>
36812         bootstrap: compute gnulib_extra_files after updating build_aux
36813         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
36814         change build_aux or also supply gnulib_extra_files.  Handle correctly.
36816 2011-04-05  Eric Blake  <eblake@redhat.com>
36818         bootstrap: preserve git whitelist item sorting
36819         * build-aux/bootstrap (sort_patterns): New function.
36820         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
36822 2011-04-05  Simon Josefsson  <simon@josefsson.org>
36824         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
36825         sc_space_tab check.
36827 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
36829         areadlink, areadlinkat: rewrite in terms of careadlinkat
36830         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
36831         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
36832         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
36833         (malloc, realloc): Remove #undefs.
36834         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
36835         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
36836         readlink, ssize_t, stdint, unistd.
36837         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
36838         areadlink, stdint.
36840         careadlinkat: new module
36841         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
36842         * modules/careadlinkat: New files, written by me with
36843         a review and feedback from Ben Pfaff in
36844         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
36846 2011-04-01  Bruno Haible  <bruno@clisp.org>
36848         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
36849         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
36850         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
36851         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
36852         Reported by Bruce Korb <bruce.korb@gmail.com>.
36854 2011-04-01  Bruno Haible  <bruno@clisp.org>
36856         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
36857         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
36858         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
36859         * modules/wcpcpy (Depends-on): Add extensions.
36860         * modules/wcpncpy (Depends-on): Likewise.
36861         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
36862         systems.
36863         * doc/posix-functions/wcpncpy.texi: Likewise.
36864         * doc/posix-functions/wcwidth.texi: Likewise.
36866 2011-03-31  Eric Blake  <eblake@redhat.com>
36868         nonblocking: fix mingw test failures
36869         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
36870         non-blocking flag on regular file.
36871         (get_nonblocking_flag): Set errno on invalid fd.
36872         * tests/test-nonblocking.c (main): Avoid test failure on
36873         directories if fchdir is not active.
36874         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
36876 2011-03-31  Bruno Haible  <bruno@clisp.org>
36878         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
36879         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
36880         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
36881         Reported by Simon Josefsson <simon@josefsson.org>.
36883 2011-03-31  Bruno Haible  <bruno@clisp.org>
36884         and Eric Blake  <eblake@redhat.com>
36886         nonblocking: new module
36887         * modules/nonblocking: New module.
36888         * modules/nonblocking-tests: Likewise.
36889         * lib/nonblocking.h: New file.
36890         * lib/nonblocking.c: Likewise.
36891         * tests/test-nonblocking.c: New test.
36892         * lib/ioctl.c (ioctl) [mingw]: Update comment.
36894 2011-03-30  Bruno Haible  <bruno@clisp.org>
36896         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
36897         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
36898         instead of 'printf' format for GCC >= 4.4.
36899         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
36900         (fprintf, printf, vfprintf, vprintf): Declare with
36901         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
36902         the system's vfprintf() function.
36903         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
36905 2011-03-30  Eric Blake  <eblake@redhat.com>
36907         passfd: fix scoping bug
36908         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
36909         before sendmsg/recvmsg.
36911         passfd: standardize coding conventions
36912         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
36913         can be learned at compile time.
36914         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
36915         ifdefs.
36916         (sendfd, recvfd): Follow gnulib code conventions.
36918         passfd: fix incorrect sendmsg arguments
36919         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
36920         incorrect msg_controllen value.
36921         * modules/passfd-tests (Depends-on): Check for alarm.
36922         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
36923         Reported by Bastien ROUCARIES.
36925 2011-03-30  Bruno Haible  <bruno@clisp.org>
36927         c-strcasestr: Relicense under LGPLv2+.
36928         * modules/c-strcasestr (License): Change to LGPLv2+.
36929         Requested by Eric Blake, for libvirt.
36931 2011-03-30  Simon Josefsson  <simon@josefsson.org>
36933         * users.txt: Add libidn2.  Fix libtasn1 link.
36935 2011-03-30  Jim Meyering  <meyering@redhat.com>
36937         tests: readlink* ("",... fails with EINVAL on newer kernels
36938         readlink and readlinkat have typically failed with ENOENT for
36939         the invalid, empty file name,  "".  However, with the advent
36940         of linux-2.6.39, they fail with EINVAL.
36941         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
36942         when operating on the empty file name.
36943         * tests/test-readlink.h (test_readlink): Likewise.
36945 2011-03-29  Bruno Haible  <bruno@clisp.org>
36947         Relicense some modules under LGPLv2+, for libidn2.
36948         * modules/array-mergesort (License): Change to LGPLv2+.
36949         * modules/c-strcaseeq (License): Likewise.
36950         * modules/striconveh (License): Likewise.
36951         * modules/striconveha (License): Likewise.
36952         * modules/uniconv/base (License): Likewise.
36953         * modules/uniconv/u8-conv-from-enc (License): Likewise.
36954         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
36955         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
36956         * modules/unictype/base (License): Likewise.
36957         * modules/unictype/bidiclass-of (License): Likewise.
36958         * modules/unictype/category-M (License): Likewise.
36959         * modules/unictype/category-none (License): Likewise.
36960         * modules/unictype/category-of (License): Likewise.
36961         * modules/unictype/category-test (License): Likewise.
36962         * modules/unictype/category-test-withtable (License): Likewise.
36963         * modules/unictype/combining-class (License): Likewise.
36964         * modules/unictype/joiningtype-of (License): Likewise.
36965         * modules/unictype/scripts (License): Likewise.
36966         * modules/uninorm/base (License): Likewise.
36967         * modules/uninorm/canonical-decomposition (License): Likewise.
36968         * modules/uninorm/composition (License): Likewise.
36969         * modules/uninorm/decompose-internal (License): Likewise.
36970         * modules/uninorm/decomposition-table (License): Likewise.
36971         * modules/uninorm/nfc (License): Likewise.
36972         * modules/uninorm/nfd (License): Likewise.
36973         * modules/uninorm/u32-normalize (License): Likewise.
36974         * modules/unistr/base (License): Likewise.
36975         * modules/unistr/u32-cpy (License): Likewise.
36976         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
36977         * modules/unistr/u32-to-u8 (License): Likewise.
36978         * modules/unistr/u32-uctomb (License): Likewise.
36979         * modules/unistr/u8-check (License): Likewise.
36980         * modules/unistr/u8-mblen (License): Likewise.
36981         * modules/unistr/u8-mbtouc (License): Likewise.
36982         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
36983         * modules/unistr/u8-mbtoucr (License): Likewise.
36984         * modules/unistr/u8-prev (License): Likewise.
36985         * modules/unistr/u8-strlen (License): Likewise.
36986         * modules/unistr/u8-to-u32 (License): Likewise.
36987         * modules/unistr/u8-uctomb (License): Likewise.
36988         * modules/unitypes (License): Likewise.
36989         Requested by Simon Josefsson.
36991 2011-03-29  Simon Josefsson  <simon@josefsson.org>
36993         lib-symbol-visibility: Add a notice.
36994         * modules/lib-symbol-visibility (Notice): New field.
36996 2011-03-29  Bruno Haible  <bruno@clisp.org>
36998         getaddrinfo: Doc fix.
36999         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
37000         section "fixed in Gnulib".
37002 2011-03-28  Simon Josefsson  <simon@josefsson.org>
37004         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
37005         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
37007 2011-03-26  Bruno Haible  <bruno@clisp.org>
37009         unictype/property-byname: Reduce the number of load-time relocations.
37010         * lib/unictype/pr_byname.c: Include <stdlib.h>.
37011         (UC_PROPERTY_INDEX_*): New enumeration values.
37012         (uc_property_byname): Convert an index from the lookup table to an
37013         uc_property_t.
37014         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
37015         values.
37017 2011-03-26  Bruno Haible  <bruno@clisp.org>
37019         unictype/property-byname: Allow omitted word separators and aliases.
37020         * lib/unictype/pr_byname.gperf: Add property names without word
37021         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
37022         for 'space'.
37024 2011-03-26  Bruno Haible  <bruno@clisp.org>
37026         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
37027         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
37028         also hyphens to space.
37029         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
37030         without spaces.
37031         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
37033 2011-03-26  Bruno Haible  <bruno@clisp.org>
37035         unictype/joiningtype-byname: Recognize long names as well.
37036         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
37037         a long name.
37038         * lib/unictype/joiningtype_byname.c: Include <string.h>,
37039         unictype/joiningtype_byname.h.
37040         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
37041         * lib/unictype/joiningtype_byname.gperf: New file.
37042         * modules/unictype/joiningtype-byname (Files): Add
37043         lib/unictype/joiningtype_byname.gperf.
37044         (Depends-on): Add gperf.
37045         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
37046         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
37047         long names.
37049         Tests for module 'unictype/joiningtype-longname'.
37050         * modules/unictype/joiningtype-longname-tests: New file.
37051         * tests/unictype/test-joiningtype_longname.c: New file.
37053         New module 'unictype/joiningtype-longname'.
37054         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
37055         * lib/unictype/joiningtype_longname.c: New file.
37056         * modules/unictype/joiningtype-longname: New file.
37057         * modules/unictype/joiningtype-all (Depends-on): Add
37058         unictype/joiningtype-longname.
37060 2011-03-26  Bruno Haible  <bruno@clisp.org>
37062         unictype/bidiclass-byname: Recognize long names as well.
37063         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
37064         name.
37065         * lib/unictype/bidi_byname.c: Include <string.h>,
37066         unictype/bidi_byname.h.
37067         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
37068         * lib/unictype/bidi_byname.gperf: New file.
37069         * modules/unictype/bidiclass-byname (Files): Add
37070         lib/unictype/bidi_byname.gperf.
37071         (Depends-on): Add gperf.
37072         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
37073         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
37074         long names.
37076         Tests for module 'unictype/bidiclass-longname'.
37077         * modules/unictype/bidiclass-longname-tests: New file.
37078         * tests/unictype/test-bidi_longname.c: New file.
37080         New module 'unictype/bidiclass-longname'.
37081         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
37082         * lib/unictype/bidi_longname.c: New file.
37083         * modules/unictype/bidiclass-longname: New file.
37084         * modules/unictype/bidiclass-all (Depends-on): Add
37085         unictype/bidiclass-longname.
37087 2011-03-26  Bruno Haible  <bruno@clisp.org>
37089         unictype/bidi*: Rename modules.
37090         * modules/unictype/bidiclass-all: Renamed from
37091         modules/unictype/bidicategory-all.
37092         * modules/unictype/bidiclass-name: Renamed from
37093         modules/unictype/bidiclass-name.
37094         (Description): Update.
37095         * modules/unictype/bidiclass-name-tests: Renamed from
37096         modules/unictype/bidicategory-name-tests.
37097         * modules/unictype/bidiclass-byname: Renamed from
37098         modules/unictype/bidicategory-byname.
37099         (Description): Update.
37100         * modules/unictype/bidiclass-byname-tests: Renamed from
37101         modules/unictype/bidicategory-byname-tests.
37102         * modules/unictype/bidiclass-of: Renamed from
37103         modules/unictype/bidicategory-of.
37104         (Description): Update.
37105         * modules/unictype/bidiclass-of-tests: Renamed from
37106         modules/unictype/bidicategory-of-tests.
37107         * modules/unictype/bidiclass-test: Renamed from
37108         modules/unictype/bidicategory-test.
37109         (Description): Update.
37110         * modules/unictype/bidiclass-test-tests: Renamed from
37111         modules/unictype/bidicategory-test-tests.
37112         * modules/unictype/bidicategory-all: New file, a simple redirection.
37113         * modules/unictype/bidicategory-name: Likewise.
37114         * modules/unictype/bidicategory-byname: Likewise.
37115         * modules/unictype/bidicategory-of: Likewise.
37116         * modules/unictype/bidicategory-test: Likewise.
37117         * modules/unictype/property-bidi-* (Dependencies): Update.
37118         * lib/unictype/bidi_*.c: Update comment.
37120 2011-03-26  Bruno Haible  <bruno@clisp.org>
37122         unictype/bidi*: Rename functions, part 2.
37123         * modules/unictype/bidicategory-name (configure.ac): Update required
37124         libunistring version.
37125         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
37127 2011-03-25  Bruno Haible  <bruno@clisp.org>
37129         New module 'unictype/combining-class-all'.
37130         * modules/unictype/combining-class-all: New file.
37132         Tests for module 'unictype/combining-class-byname'.
37133         * modules/unictype/combining-class-byname-tests: New file.
37134         * tests/unictype/test-combiningclass_byname.c: New file.
37136         New module 'unictype/combining-class-byname'.
37137         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
37138         * lib/unictype/combiningclass_byname.c: New file.
37139         * lib/unictype/combiningclass_byname.gperf: New file.
37140         * modules/unictype/combining-class-byname: New file.
37142         Tests for module 'unictype/combining-class-longname'.
37143         * modules/unictype/combining-class-longname-tests: New file.
37144         * tests/unictype/test-combiningclass_longname.c: New file.
37146         New module 'unictype/combining-class-longname'.
37147         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
37148         * lib/unictype/combiningclass_longname.c: New file.
37149         * modules/unictype/combining-class-longname: New file.
37151         Tests for module 'unictype/combining-class-name'.
37152         * modules/unictype/combining-class-name-tests: New file.
37153         * tests/unictype/test-combiningclass_name.c: New file.
37155         New module 'unictype/combining-class-name'.
37156         * lib/unictype.in.h (uc_combining_class_name): New declaration.
37157         * lib/unictype/combiningclass_name.c: New file.
37158         * modules/unictype/combining-class-name: New file.
37160 2011-03-25  Bruno Haible  <bruno@clisp.org>
37162         unictype/combining-class: Rename source files.
37163         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
37164         of unictype/combining.h.
37165         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
37166         Update.
37167         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
37168         * modules/unictype/combining-class (Description): Fix.
37169         (Files, Makefile.am): Update.
37170         * tests/unictype/test-combiningclass.c: Renamed from
37171         tests/unictype/test-combining.c.
37172         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
37174 2011-03-25  Bruno Haible  <bruno@clisp.org>
37176         unictype: Update list of canonical combining classes.
37177         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
37179 2011-03-25  Bruno Haible  <bruno@clisp.org>
37181         unictype/category-byname: Recognize long names as well.
37182         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
37183         a long name.
37184         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
37185         unictype/categ_byname.h.
37186         (UC_CATEGORY_INDEX_*): New enumeration values.
37187         (uc_general_category_byname): Use uc_general_category_lookup and
37188         convert from index to value.
37189         * lib/unictype/categ_byname.gperf: New file.
37190         * modules/unictype/category-byname (Files): Add
37191         lib/unictype/categ_byname.gperf.
37192         (Depends-on): Add gperf.
37193         (Makefile.am): Add rule for generating unictype/categ_byname.h.
37194         * tests/unictype/test-categ_byname.c (main): Test the recognition of
37195         long names.
37197         Tests for module 'unictype/category-longname'.
37198         * modules/unictype/category-longname-tests: New file.
37199         * tests/unictype/test-categ_longname.c: New file.
37201         New module 'unictype/category-longname'.
37202         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
37203         * lib/unictype/categ_longname.c: New file.
37204         * modules/unictype/category-longname: New file.
37205         * modules/unictype/category-all (Depends-on): Add it.
37207 2011-03-25  Bruno Haible  <bruno@clisp.org>
37209         Tests for module 'unictype/category-LC'.
37210         * modules/unictype/category-LC-tests: New file.
37211         * tests/unictype/test-categ_LC.c: New file, automatically generated.
37213         New module 'unictype/category-LC'.
37214         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
37215         (UC_CATEGORY_LC): New declaration.
37216         (UC_CASED_LETTER): New macro.
37217         * lib/gen-uni-tables.c (is_category_LC): New function.
37218         (output_categories): Also handle category LC.
37219         (UC_CATEGORY_MASK_LC): New enumeration value.
37220         (general_category_byname): Also handle category LC.
37221         * lib/unictype/categ_LC.c: New file.
37222         * lib/unictype/categ_LC.h: New file, automatically generated.
37223         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
37224         category LC.
37225         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
37226         * modules/unictype/category-LC: New file.
37227         * modules/unictype/category-byname (Depends-on): Add
37228         unictype/category-LC.
37229         * modules/unictype/category-all (Depends-on): Likewise.
37231 2011-03-25  Eric Blake  <eblake@redhat.com>
37233         xmalloc: revert yesterday's regression
37234         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
37235         realloc's underlying behavior (allowing allocation of zero-size
37236         objects, especially if malloc-gnu is also in use).
37238 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
37240         maint.mk: add missing version to VC-tag
37241         * top/maint.mk: git tag was missing actual tag name; add it.
37243         valgrind: do leak checking, and exit with code 1 on error (not 0)
37244         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
37245         to VALGRIND.
37247 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
37249         posix-modules: say what it does.
37250         * posix-modules: Add a line to the --help output saying what it does.
37252 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
37254         xmalloc: Do not leak if underlying realloc is C99 compatible.
37255         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
37256         This avoids a leak on C99-based systems.  See
37257         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
37259 2011-03-24  Eric Blake  <eblake@redhat.com>
37261         realloc: document portability problem
37262         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
37263         passing 0 size to realloc.
37265 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
37267         doc: update users.txt
37268         * users.txt: Add cvsps, tmpwatch
37270 2011-03-23  Matt Rice  <ratmice@gmail.com>
37272         doc: update users.txt
37273         * users.txt: Add gdb.
37275 2011-03-23  Jim Meyering  <meyering@redhat.com>
37277         doc: update users.txt
37278         Looking through matches up to the following URL (there are still
37279         several more pages), I found several projects that use gnulib:
37280         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
37281         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
37282         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
37284 2011-03-22  Bruno Haible  <bruno@clisp.org>
37286         unictype/bidi*: Rename functions.
37287         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
37288         uc_bidi_class, uc_is_bidi_class): New declarations.
37289         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
37290         uc_bidi_category_byname.
37291         (uc_bidi_category_byname): New function.
37292         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
37293         u_bidi_category_name.
37294         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
37295         (uc_bidi_category_name): New function.
37296         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
37297         uc_bidi_category.
37298         (uc_bidi_category): New function.
37299         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
37300         uc_is_bidi_category. Invoke uc_bidi_class.
37301         (uc_is_bidi_category): New function.
37302         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
37303         instead of uc_bidi_category_byname.
37304         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
37305         instead of uc_bidi_category_name.
37306         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
37307         uc_bidi_category.
37308         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
37309         instead of uc_is_bidi_category.
37311 2011-03-21  Bruno Haible  <bruno@clisp.org>
37313         New module 'unictype/joininggroup-all'.
37314         * modules/unictype/joininggroup-all: New file.
37316         Tests for module 'unictype/joininggroup-of'.
37317         * modules/unictype/joininggroup-of-tests: New file.
37318         * tests/unictype/test-joininggroup_of.c: New file.
37319         * tests/unictype/test-joininggroup_of.h: New file, automatically
37320         generated by gen-uni-tables.
37322         New module 'unictype/joininggroup-of'.
37323         * modules/unictype/joininggroup-of: New file.
37324         * lib/unictype/joininggroup_of.c: New file.
37325         * lib/unictype/joininggroup_of.h: New file, automatically generated by
37326         gen-uni-tables.
37328         Tests for module 'unictype/joininggroup-byname'.
37329         * modules/unictype/joininggroup-byname-tests: New file.
37330         * tests/unictype/test-joininggroup_byname.c: New file.
37332         New module 'unictype/joininggroup-byname'.
37333         * modules/unictype/joininggroup-byname: New file.
37334         * lib/unictype/joininggroup_byname.c: New file.
37335         * lib/unictype/joininggroup_byname.gperf: New file.
37337         Tests for module 'unictype/joininggroup-name'.
37338         * modules/unictype/joininggroup-name-tests: New file.
37339         * tests/unictype/test-joininggroup_name.c: New file.
37341         New module 'unictype/joininggroup-name'.
37342         * modules/unictype/joininggroup-name: New file.
37343         * lib/unictype/joininggroup_name.c: New file.
37344         * lib/unictype/joininggroup_name.h: New file.
37346         New module 'unictype/joiningtype-all'.
37347         * modules/unictype/joiningtype-all: New file.
37349         Tests for module 'unictype/joiningtype-of'.
37350         * modules/unictype/joiningtype-of-tests: New file.
37351         * tests/unictype/test-joiningtype_of.c: New file.
37352         * tests/unictype/test-joiningtype_of.h: New file, automatically
37353         generated by gen-uni-tables.
37355         New module 'unictype/joiningtype-of'.
37356         * modules/unictype/joiningtype-of: New file.
37357         * lib/unictype/joiningtype_of.c: New file.
37358         * lib/unictype/joiningtype_of.h: New file, automatically generated by
37359         gen-uni-tables.
37361         Tests for module 'unictype/joiningtype-byname'.
37362         * modules/unictype/joiningtype-byname-tests: New file.
37363         * tests/unictype/test-joiningtype_byname.c: New file.
37365         New module 'unictype/joiningtype-byname'.
37366         * modules/unictype/joiningtype-byname: New file.
37367         * lib/unictype/joiningtype_byname.c: New file.
37369         Tests for module 'unictype/joiningtype-name'.
37370         * modules/unictype/joiningtype-name-tests: New file.
37371         * tests/unictype/test-joiningtype_name.c: New file.
37373         New module 'unictype/joiningtype-name'.
37374         * modules/unictype/joiningtype-name: New file.
37375         * lib/unictype/joiningtype_name.c: New file.
37377         unictype: Add support for Arabic shaping properties.
37378         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
37379         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
37380         declarations.
37381         (UC_JOINING_GROUP_*): New enumeration values.
37382         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
37383         declarations.
37384         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
37385         (unicode_joining_type): New variable.
37386         (UC_JOINING_GROUP_*): New enumeration values.
37387         (unicode_joining_group): New variable.
37388         (fill_arabicshaping, joining_type_as_c_identifier,
37389         output_joining_type_test, output_joining_type,
37390         joining_group_as_c_identifier, output_joining_group_test,
37391         output_joining_group): New functions.
37392         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
37393         fill_arabicshaping and output_joining_type_test, output_joining_type,
37394         output_joining_group_test, output_joining_group.
37395         Reported by Simon Josefsson.
37397 2011-03-21  Jim Meyering  <meyering@redhat.com>
37399         strftime: fix a bug in yesterday's change
37400         * lib/strftime.c (add): Accommodate width's initial value of -1.
37401         Otherwise, nstrftime would copy uninitialized data into
37402         the result buffer.
37404 2011-03-21  Jim Meyering  <meyering@redhat.com>
37406         tests: add strftime-tests module
37407         * tests/test-strftime.c: New file.
37408         * modules/strftime-tests: New module.
37410 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
37412         strftime: don't assume a byte count fits in 'int'
37413         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
37414         found this problem by static analysis, using gcc -Wstrict-overflow
37415         (GCC 4.5.2, x86-64).  This reported an optimization that depended
37416         on an integer overflow having undefined behavior, but it turns out
37417         that the argument is a size, which might not fit in 'int' anyway,
37419 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
37421         stdio: don't require ignore_value around fwrite
37423         This patch works around libc bug 11959
37424         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
37425         Without this patch, applications must often write
37426         ignore_value (fwrite (...)) even though the ignore_value is
37427         not helpful here.  It's common to write many objects, using
37428         fwrite/printf/etc., and then use ferror to detect output error.
37430         I considered making this patch optional, but decided against it,
37431         because libc is obviously being inconsistent here: there is no
37432         reason libc should insist that user code must inspect fwrite
37433         return's value without also insisting that it inspect printf's,
37434         putchar's, etc.  If user code wants to have a strict style where
37435         all these functions' values are checked (so that ferror need not
37436         be checked), we could add support for that style in a new gnulib
37437         module, but in the meantime it's better to be consistent and to
37438         support common usage.
37440         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
37441         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
37442         that we are compiling in checking mode, and if not C++, and
37443         if not already wrapping fwrite for some other reason.
37444         (fwrite): #define to rpl_fwrite if the latter is defined.
37446 2011-03-20  Bruno Haible  <bruno@clisp.org>
37448         verror: Fix compilation error introduced on 2011-02-13.
37449         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
37450         instead of __attribute__.
37451         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37453 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
37454             Bruno Haible  <bruno@clisp.org>
37456         socklen: do not depend on sys_socket
37457         While trying to modify Emacs to use gnulib's socklen module,
37458         I discovered a circular dependency: socklen depends on sys_socket
37459         and vice versa.  Emacs can use socklen, but it does not need
37460         sys_socket because it has its own substitute for sys/socket.h.
37461         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
37462         gl_TYPE_SOCKLEN_T.
37463         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
37464         gl_PREREQ_SYS_H_SOCKET.
37465         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
37466         gl_PREREQ_SYS_H_SOCKET.
37467         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
37468         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
37469         * modules/socklen (Depends-on): Do not depend on sys_socket.
37470         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
37472 2011-03-20  Jim Meyering  <meyering@redhat.com>
37474         maint.mk: sort file names *after* new transformation
37475         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
37476         prefix would have led to an unwarranted failure in GNU parted.
37477         Sort after that transformation.
37479 2011-03-19  Jim Meyering  <meyering@redhat.com>
37481         maint.mk: fix po-file syntax-check rule
37482         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
37483         Patch by Bruno Haible.
37485 2011-03-19  Bruno Haible  <bruno@clisp.org>
37487         socklen: Update comment.
37488         * m4/socklen.m4: Update comment about platforms.
37490 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37491             Bruno Haible  <bruno@clisp.org>
37493         inet_ntop, inet_pton: Simplify.
37494         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
37495         documented to provide socklen_t and we already depend on sys_socket.
37496         * modules/inet_pton (Depends-on): Likewise.
37497         * lib/arpa_inet.in.h: Adjust comment.
37499 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
37500             Bruno Haible  <bruno@clisp.org>
37502         netdb: Simplify.
37503         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
37504         documented to provide socklen_t and we already depend on sys_socket.
37505         * lib/netdb.in.h: Adjust comment.
37507 2011-03-19  Bruno Haible  <bruno@clisp.org>
37509         sys_socket, netdb: Document problem with socklen_t.
37510         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
37511         platforms.
37512         * doc/posix-headers/netdb.texi: Likewise.
37514 2011-03-18  Eric Blake  <eblake@redhat.com>
37516         maint.mk: let po check work in VPATH build
37517         * top/maint.mk (po_file): Allow cfg.mk override.
37518         (sc_po_check): Allow VPATH use.
37519         Reported by Jiri Denemark.
37521 2011-03-16  Jim Meyering  <meyering@redhat.com>
37523         maint.mk: allow fine-grained syntax-check exclusion via Make variables
37524         Before, you would have had to create one .x-sc_ file per rule in order
37525         to exempt offending files.  Now, you may instead use a Make variable --
37526         usually defined in cfg.mk -- whose name identifies the affected rule.
37527         * top/maint.mk (_sc_excl): Define.
37528         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
37529         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
37531 2011-03-13  Bruno Haible  <bruno@clisp.org>
37533         ignore-value tests: Avoid warnings.
37534         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
37535         empty for gcc < 3.4.
37537 2011-03-13  Bruno Haible  <bruno@clisp.org>
37539         passfd: Fix link error on Solaris.
37540         * modules/passfd (Description): Correct.
37541         (Depends-on): Add socketlib.
37542         (Link): New section.
37543         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
37545 2011-03-13  Bruno Haible  <bruno@clisp.org>
37547         passfd: Fix link error on AIX 5.2.
37548         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
37550 2011-03-13  Bruno Haible  <bruno@clisp.org>
37552         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
37553         * lib/sys_socket.in.h: Include <stddef.h>.
37554         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
37555         CMSG_FIRSTHDR. Remove unused variable.
37557 2011-03-13  Bruno Haible  <bruno@clisp.org>
37559         passfd: Fix compilation error on OpenBSD.
37560         * lib/passfd.c: Include <sys/uio.h>.
37562 2011-03-13  Bruno Haible  <bruno@clisp.org>
37564         passfd test: Fix warnings.
37565         * tests/test-passfd.c: Include <sys/wait.h>.
37566         (main): Fix typo.
37568 2011-03-13  Bruno Haible  <bruno@clisp.org>
37570         passfd module, part 4, tweaks.
37571         * tests/test-passfd.c: Reorder includes.
37572         (main): Fix perror and printf calls.
37574 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
37576         passfd module, part 4.
37577         * modules/passfd-tests: New file.
37578         * tests/test-passfd.c: New file.
37580 2011-03-13  Jim Meyering  <meyering@redhat.com>
37582         Makefile: rely on GNU make; derive syntax-check rule names
37583         Rather than requiring that each sc_ rule be listed as a dependent
37584         of "check", use features of GNU make to derive the list.
37585         * Makefile (syntax-check-rules): Define.
37586         (check): Depend on the new variable, not the hard-coded list.
37588 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
37589             Bruno Haible  <bruno@clisp.org>
37591         passfd module, part 3.
37592         * lib/passfd.h (recvfd): Add a flags argument.
37593         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
37594         (recvfd): Add a flags argument.
37595         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
37596         exists.
37597         * modules/passfd (Depends-on): Add cloexec.
37598         Suggested by Eric Blake.
37600 2011-03-13  Bruno Haible  <bruno@clisp.org>
37602         passfd module, part 2, tweaks.
37603         * modules/passfd (Files): Reorder.
37604         (Depends-on): Remove errno.
37605         (Include): Remove <sys/socket.h>, <sys/un.h>.
37606         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
37607         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
37608         specification header. Include <sys/socket.h> always. Don't include
37609         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
37610         (sendfd): Clarify that it sets errno when it fails.
37611         (recvfd): Fix specification.
37613 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
37615         passfd module, part 2.
37616         * modules/passfd: New file.
37617         * lib/passfd.h: New file.
37618         * lib/passfd.c: New file.
37620 2011-03-12  Bruno Haible  <bruno@clisp.org>
37622         wcswidth, mbswidth: Avoid integer overflow.
37623         * lib/wcswidth.c: Include <limits.h>.
37624         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
37625         * lib/mbswidth.c: Include <limits.h>.
37626         (mbsnwidth): Avoid 'int' overflow.
37627         Reported by Jim Meyering.
37629 2011-03-12  Bruno Haible  <bruno@clisp.org>
37631         futimens, utimensat: Avoid endless recursion on Solaris 10.
37632         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
37633         Solaris.
37634         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
37635         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
37637 2011-03-11  Jim Meyering  <meyering@redhat.com>
37639         maint.mk: relax a regexp to accommodate other formatting styles
37640         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
37641         between "ngettext" and the following "(".
37643 2011-03-11  Pádraig Brady  <P@draigBrady.com>
37645         maint.mk: suppress a false positive warning
37646         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
37647         diagnostics are marked with ngettext.
37649 2011-03-10  Eric Blake  <eblake@redhat.com>
37651         wchar: add explicit dependencies, for Tru64
37652         * modules/mbmemcasecoll (Depends-on): Add wchar.
37653         * modules/mbtowc (Depends-on): Likewise.
37654         * modules/vasnprintf (Depends-on): Likewise.
37655         * modules/unistdio/u-printf-args (Depends-on): Likewise.
37656         * modules/wctomb (Depends-on): Likewise.
37657         Reported by Peter O'Gorman.
37659 2011-03-08  Bruno Haible  <bruno@clisp.org>
37661         passfd module, part 1, tweaks.
37662         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
37663         Improve indentation. Improve AC_MSG_CHECKING messages.
37664         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
37665         gl_SOCKET_FAMILIES.
37667 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
37669         passfd module, part 1.
37670         * m4/afunix.m4: New file.
37671         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
37672         sockets.
37674 2011-03-08  Bruno Haible  <bruno@clisp.org>
37676         regex-quote: New API.
37677         * lib/regex-quote.h: Include <stdbool.h>.
37678         (struct regex_quote_spec): New type.
37679         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
37680         New declarations.
37681         (regex_quote_length, regex_quote_copy, regex_quote): Take a
37682         'const struct regex_quote_spec *' argument.
37683         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
37684         (pcre_special): New constant.
37685         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
37686         New functions.
37687         (regex_quote_length, regex_quote_copy, regex_quote): Take a
37688         'const struct regex_quote_spec *' argument.
37689         * modules/regex-quote (Depends-on): Add stdbool.
37690         * tests/test-regex-quote.c (check): Update for new API. Add test for
37691         anchored results.
37692         * NEWS: Mention the API change.
37693         Reported by Reuben Thomas and Eric Blake.
37695 2011-03-06  Bruno Haible  <bruno@clisp.org>
37697         regex-quote: Fix creation of POSIX extended regular expressions.
37698         * lib/regex-quote.c (ere_special): Add grouping and alternation
37699         operators.
37701 2011-03-05  Bruno Haible  <bruno@clisp.org>
37703         doc: Improve doc regarding autopoint vs. gnulib.
37704         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
37705         disable autopoint while running autoreconf.
37706         Suggested by Ralf Wildenhues.
37708 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37710         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
37711         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
37713 2011-03-03  Bruce Korb  <bkorb@gnu.org>
37715         parse-duration: remove xalloc.h dependency
37716         * lib/parse-duration.c (parse_period): handle NULL return from
37717         strdup instead of calling xstrdup().
37718         * modules/parse-duration: remove "xalloc" dependency
37720 2011-03-03  Matthew Booth  <mbooth@redhat.com>
37722         bootstrap: honor m4_base when running aclocal
37723         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
37725 2011-03-02  Jim Meyering  <meyering@redhat.com>
37727         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
37728         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
37729         on request from Matt Booth.
37731 2011-03-01  Eric Blake  <eblake@redhat.com>
37733         test-link: work on Hurd
37734         * tests/test-link.h (test_link): Hurd rejects linking directories
37735         with EISDIR instead of the POSIX-mandated EPERM.
37737 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
37739         stdio: simplify by moving files to printf-posix, sigpipe
37740         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
37741         since this symbol is needed only if printf is replaced.
37742         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
37743         Require gl_ASM_SYMBOL_PREFIX.
37744         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
37745         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
37746         (Depends-on): Add 'raise'.
37747         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
37748         * modules/stdio (Files): Remove lib/stdio-write.c,
37749         m4/asm-underscore.m4.
37750         (Depends-on): Remove 'raise'.
37752         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
37753         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
37754         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
37755         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
37757 2011-02-28  Bruno Haible  <bruno@clisp.org>
37759         localcharset: Assume ANSI C behaviour of free().
37760         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
37761         calling free().
37762         Suggested by Simon Josefsson <simon@josefsson.org>.
37764 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
37765             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
37766             Bruno Haible  <bruno@clisp.org>  (tiny change)
37768         On Cygwin, use /proc file system instead of win32 API.
37769         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
37770         Win32 file names.
37771         (DllMain): Simplify by removing Cygwin specific code.
37772         (find_shared_library_fullname): Use Linux specific implementation also
37773         for Cygwin.
37774         (get_shared_library_fullname): Update accordingly.
37775         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
37776         Win32 file names.
37777         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
37778         Cygwin specific code.
37780 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
37781             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
37783         Fix OpenMP flag detection for various Fortran compilers.
37784         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
37785         OpenMP-conditional compilation construct, to force compile
37786         failure with missing OpenMP flag.
37787         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
37789 2011-02-25  Eric Blake  <eblake@redhat.com>
37791         strstr: expand test coverage
37792         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
37793         compilation.
37794         * tests/test-memmem.c (main): Duplicate tests.
37795         * tests/test-strcasestr.c (main): Likewise.
37796         * tests/test-c-strcasestr.c (main): Likewise.
37798 2011-02-25  Jim Meyering  <meyering@redhat.com>
37800         maint.mk: detect missing-NL-at-EOF, too
37801         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
37802         it also detects when a file lacks a newline at EOF.
37803         (require_exactly_one_NL_at_EOF_): Renamed from
37804         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
37805         since people may well have .x-sc_... file names tied to the
37806         existing name.  Suggested by Eric Blake.
37808 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
37810         dirname: move m4/dos.m4 functionality into lib/dosname.h
37812         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
37813         extracts symbols from it, puts them into config.h; but it's much
37814         easier to use the symbols directly.  filename.h already does this,
37815         but it disagrees with dos.m4 in some respects.  This patch
37816         introduces a different include file dosname.h that packages up
37817         dos.m4, and then later we can work on merging filename.h and
37818         dosname.h.  Applications that need only the easy-to-configure
37819         symbols should consider including dosname.h rather than dirname.h.
37820         * NEWS: Mention incompatible changes.
37821         * m4/dos.m4: Remove.
37822         * lib/dosname.h, modules/dosname: New files.
37823         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
37824         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
37825         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
37826         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
37827         Include dosname.h, not dirname.h.
37828         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
37829         Include dosname.h, for definitions of symbols like ISSLASH
37830         that used to be in config.h.
37831         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
37832         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
37833         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
37834         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
37835         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
37836         * modules/rmdir (Files): Likewise.
37837         * modules/stat (Files): Likewise.
37838         * modules/unlink (Files): Likewise.
37839         * modules/dirname-lgpl (Depends-on): Add dosname.
37840         * modules/lstat (Depends-on): Likewise.
37841         * modules/openat (Depends-on): Likewise.
37842         * modules/rmdir (Depends-on): Likewise.
37843         * modules/savewd (Depends-on): Likewise.
37844         * modules/stat (Depends-on): Likewise.
37845         * modules/unlink (Depends-on): Likewise.
37846         * modules/openat (Depends-on): Remove dirname-lgpl.
37847         * modules/savewd (Depends-on): Likewise.
37848         * tests/test-dirname.c: Do not use removed symbols like
37849         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
37850         the remaining symbols, e.g., ISSLASH ('\\').
37852 2011-02-25  Eric Blake  <eblake@redhat.com>
37854         strstr: revert patches that introduced bug and pessimization
37855         * lib/str-two-way.h: Add another reference.
37856         (two_way_short_needle, two_way_long_needle): Revert changes from
37857         2011-02-24; they pessimize search speed.
37858         (critical_factorization): Partially revert changes from
37859         2010-06-22; they violate the requirement that the left half of the
37860         needle be smaller than the period of the needle.
37862 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
37864         filenamecat: remove unnecessary dependency on dirname-lgpl
37865         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
37866         is no direct dependency, just an indirect one via filenamecat-lgpl.
37868         remove: remove unnecessary use of m4/dos.m4
37869         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
37870         * modules/remove (FILES): Remove m4/dos.m4.
37872         * lib/openat-proc.c: Don't include dirname.h; not needed.
37874         backupfile: remove unnecessary use of m4/dos.m4
37875         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
37876         of its symbols are used by the backupfile code.  backupfile.c does
37877         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
37878         for the rare case of programs that want all their backup file
37879         names to live within 8+3 limits, and dos.m4 doesn't address that.
37880         * modules/backupfile (Files): Remove m4/dos.m4.
37882 2011-02-24  Jim Meyering  <meyering@redhat.com>
37884         strstr: fix a bug whereby strstr would mistakenly return NULL
37885         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
37886         in period calculation.
37887         (two_way_long_needle): Likewise.
37888         The original problem was reported by Mike Stump in
37889         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
37890         Ralf Wildenhues provided the short needle and haystack.
37891         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
37892         Add a more involved test to trigger the bug in two_way_long_needle.
37894 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
37896         gnulib-tool: remove use of bold display in help screen
37897         * gnulib-tool (func_usage): Do not use bold display anymore in the
37898         help screen.  That was just meant to be a temporary emphasis for a
37899         backward-incompatible change.
37901 2011-02-23  Bruno Haible  <bruno@clisp.org>
37903         Fix misindentation of preprocessor directives.
37904         * lib/argp-namefrob.h: Reindent preprocessor directives.
37905         * lib/getopt_int.h (struct _getopt_data): Likewise.
37906         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
37907         * lib/vasnprintf.c (decode_long_double): Likewise.
37908         * tests/test-argmatch.c: Insert blank lines, for clarity.
37909         * tests/test-exclude.c: Likewise.
37911 2011-02-22  Bruno Haible  <bruno@clisp.org>
37913         ioctl: Fix for MacOS X in 64-bit mode.
37914         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
37915         value.
37916         Suggested by Eric Blake.
37917         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
37919 2011-02-22  Jim Meyering  <meyering@redhat.com>
37921         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
37922         * Makefile (sc_cpp_indent_check): Don't limit the check to files
37923         in lib/.
37925 2011-02-22  Eric Blake  <eblake@redhat.com>
37927         maint: avoid any CDPATH issue
37928         * Makefile (sc_cpp_indent_check): Anchor cd argument.
37930         maint: adjust cpp indentation for my modules, as well
37931         * Makefile (sc_cpp_indent_check): Add my name.
37932         * lib/fbufmode.c: Filter through cppi.
37933         * lib/fpurge.c: Likewise.
37934         * lib/freadable.c: Likewise.
37935         * lib/freading.c: Likewise.
37936         * lib/fwritable.c: Likewise.
37937         * lib/fwriting.c: Likewise.
37938         * lib/sigaction.c: Likewise.
37940 2011-02-22  Jim Meyering  <meyering@redhat.com>
37942         maint: adjust cpp indentation to reflect nesting depth
37943         I.e., in a block of code that begins with an unnested "#if",
37944         put one space between the "#" in column 1 and following token.
37945         For example,
37946         -#include <sys/vfs.h>
37947         +# include <sys/vfs.h>
37948         Do this only in .c files that are part of a module I maintain.
37949         * lib/linkat.c: Filter through cppi.
37950         * lib/nanosleep.c: Likewise.
37951         * lib/openat.c: Likewise.
37952         * lib/openat-die.c: Likewise.
37953         * lib/dup3.c: Likewise.
37954         * lib/fchownat.c: Likewise.
37955         * lib/flock.c: Likewise.
37956         * lib/fsync.c: Likewise.
37957         * lib/fts.c: Likewise.
37958         * lib/getpass.c: Likewise.
37959         * lib/gettimeofday.c: Likewise.
37960         * lib/userspec.c: Likewise.
37961         * Makefile (sc_cpp_indent_check): New rule, to check this.
37963 2011-02-22  Bruno Haible  <bruno@clisp.org>
37965         New module 'wctomb'.
37966         * lib/stdlib.in.h (wctomb): New declaration.
37967         * lib/wctomb.c: New file.
37968         * lib/wctomb-impl.h: New file.
37969         * m4/wctomb.m4: New file.
37970         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
37971         REPLACE_WCTOMB.
37972         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
37973         REPLACE_WCTOMB.
37974         * modules/wctomb: New file.
37975         * tests/test-stdlib-c++.cc: Test signature of wctomb.
37976         * doc/posix-functions/wctomb.texi: Mention the new module.
37977         * modules/wctob (Depends-on): Add wctomb.
37979 2011-02-22  Bruno Haible  <bruno@clisp.org>
37981         New module 'mbtowc'.
37982         * lib/stdlib.in.h (mbtowc): New declaration.
37983         * lib/mbtowc.c: New file.
37984         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
37985         * m4/mbtowc.m4: New file.
37986         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
37987         REPLACE_MBTOWC.
37988         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
37989         REPLACE_MBTOWC.
37990         * modules/mbtowc: New file.
37991         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
37992         * doc/posix-functions/mbtowc.texi: Mention the new module.
37993         * modules/btowc (Depends-on): Add mbtowc.
37995 2011-02-22  Bruno Haible  <bruno@clisp.org>
37997         wcrtomb: Add more tests for native Windows platforms.
37998         * tests/test-wcrtomb-w32-1.sh: New file.
37999         * tests/test-wcrtomb-w32-2.sh: New file.
38000         * tests/test-wcrtomb-w32-3.sh: New file.
38001         * tests/test-wcrtomb-w32-4.sh: New file.
38002         * tests/test-wcrtomb-w32-5.sh: New file.
38003         * tests/test-wcrtomb-w32.c: New file.
38004         * modules/wcrtomb-tests (Files): Add them.
38005         (Makefile.am): Arrange to run these tests.
38006         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
38007         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
38009 2011-02-20  Bruno Haible  <bruno@clisp.org>
38011         wcrtomb: Enhance test.
38012         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
38014 2011-02-20  Bruno Haible  <bruno@clisp.org>
38016         mbrtowc: Tiny optimization.
38017         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
38019 2011-02-20  Jim Meyering  <meyering@redhat.com>
38021         test-exclude.c: remove unmatched #endif
38022         * tests/test-exclude.c: Remove stray #endif, left over from
38023         the change of a week ago.
38025 2011-02-19  Jim Meyering  <meyering@redhat.com>
38027         git-version-gen: skip "-dirty" check when appropriate
38028         * build-aux/git-version-gen: Don't run any git commands when the
38029         version string comes from .tarball-version.  Prior to this, we
38030         would run git update-index --refresh even from a just-unpacked
38031         tarball directory, and that could affect a .git/ directory in a
38032         parent of the build directory.  Reported by Mike Frysinger.
38034 2011-02-19  Bruno Haible  <bruno@clisp.org>
38036         unictype/property-byname: Reduce the size of the 'data' segment.
38037         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
38039 2011-02-19  Bruno Haible  <bruno@clisp.org>
38041         unictype/scripts: Reduce the size of the 'data' segment.
38042         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
38043         '%pic'.
38044         * lib/unictype/scripts_byname.gperf: Regenerated.
38046 2011-02-19  Bruno Haible  <bruno@clisp.org>
38048         stdint: Update documentation.
38049         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
38051 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
38053         stdint: omit redundant check for wchar.h
38054         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
38055         always tests whether wchar.h exists, so remove the now-redundant test.
38057 2011-02-18  Bruno Haible  <bruno@clisp.org>
38059         stdint: Cut dependency to module 'wchar'.
38060         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
38061         include the necessary prerequisites.
38062         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
38063         * modules/stdint (Depends-on): Remove wchar.
38064         (Makefile.am): Substitute HAVE_WCHAR_H.
38065         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
38067 2011-02-18  Eric Blake  <eblake@redhat.com>
38069         longlong: skip, rather than fail, on cross-compilation
38070         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
38071         when cross-compiling; regression from 2011-02-16.
38073 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
38075         * NEWS: Mention 2011-02-08 change to stdlib.
38077 2011-02-17  Bruno Haible  <bruno@clisp.org>
38079         getloadavg: Add comments about platforms.
38080         * m4/getloadavg.m4: Add comment.
38081         * lib/getloadavg.c: Likewise.
38083 2011-02-17  Bruno Haible  <bruno@clisp.org>
38085         getloadavg: Fix link error on Solaris 2.6.
38086         * modules/getloadavg (Link): New section.
38087         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
38088         linking test-getloadavg.
38089         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
38090         getloadavg.
38092 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
38094         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
38095         It was 'int', but this doesn't match the IRIX 6.5 manual.
38096         Suggested by Bruno Haible in
38097         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
38099 2011-02-17  Bruno Haible  <bruno@clisp.org>
38101         havelib: Fix comments.
38102         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
38103         change.
38105 2011-02-17  Bruno Haible  <bruno@clisp.org>
38107         havelib: Update config.rpath.
38108         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
38110 2011-02-17  Bruno Haible  <bruno@clisp.org>
38112         getloadavg test: Add some plausibility checks.
38113         * tests/test-getloadavg.c (check_avg): Print a warning when the value
38114         is improbable.
38116 2011-02-16  Eric Blake  <eblake@redhat.com>
38118         maintainer-makefile: make syntax-check a no-op from tarballs
38119         * top/maint.mk (no-vc-detected): New rule.
38120         (local-checks-available): Use it to avoid hanging if someone tries
38121         'make syntax-check' from a tarball.  Also append to any non-syntax
38122         checks already defined in cfg.mk.
38124 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
38126         longlong: tune, particularly for common case of c99
38128         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
38129         or running anything if c99, or if unsigned long long int does not
38130         work.  In either case, we know the answer without further tests.
38131         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
38132         it at most once, and use its results for both long long int and
38133         unsigned long long int.  This is more likely to be efficient in
38134         the common case where the program wants to check for both long
38135         long int and unsigned long long int.
38136         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
38137         since the answer is already known.
38139 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
38141         getloadavg: set errno
38142         * lib/getloadavg.c: Set errno when returning -1.  If no other
38143         error number looks appropriate, set it to ENOSYS if the getloadavg
38144         looks like it can't possibly ever work, ENOTSUP otherwise.
38145         Suggested by Bruno Haible in
38146         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
38148         getloadavg: trim unused parts and speed up 'configure'
38149         * NEWS: Document this.
38150         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
38151         always compiled if getloadavg is absent.
38152         Move test code to ...
38153         * tests/test-getloadavg.c: New file, containing previous
38154         contents of test from lib/getloadavg.c.  It also contains
38155         suggestions by Bruno Haible in
38156         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
38157         * modules/getloadavg-tests: New file.
38158         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
38159         Do tests in the same order as they're needed for getloadavg.c.
38160         Omit setgid-related tests that generate symbols KMEM_GROUP,
38161         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
38162         Do only the tests that are needed to see whether the system has
38163         getloadavg, moving the other tests into ...
38164         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
38165         NLIST_NAME_UNION; nobody should be using it.  Do not define
38166         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
38167         relevant, as the user of this module shouldn't care how getloadavg
38168         is implemented.
38170         getloadavg: omit unused var
38171         * lib/getloadavg.c (getloadavg): Omit unused local variable.
38173 2011-02-15  Jim Meyering  <meyering@redhat.com>
38175         doc: update users.txt
38176         * users.txt: Update iwhd's URL.
38178 2011-02-13  Bruno Haible  <bruno@clisp.org>
38180         Consistent macro naming for macros that use GCC __attribute__.
38181         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
38182         _ATTRIBUTE_NONNULL_.
38183         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
38184         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
38185         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
38186         ATTRIBUTE_DEPRECATED.
38187         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
38188         ATTRIBUTE_NORETURN.
38189         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
38190         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
38191         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
38192         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
38193         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
38194         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
38195         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
38196         ATTRIBUTE_SENTINEL.
38197         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
38198         ATTRIBUTE_RETURN_CHECK.
38199         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
38200         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
38201         ATTRIBUTE_NORETURN.
38202         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
38203         Reported by Paul Eggert.
38205 2011-02-13  Bruno Haible  <bruno@clisp.org>
38207         Don't interfere with a program's definition of __attribute__.
38208         * lib/argp.h (__attribute__): Remove definition.
38209         (_GL_ATTRIBUTE_FORMAT): New macro.
38210         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
38211         * lib/argp-fmtstream.h (__attribute__): Remove definition.
38212         (_GL_ATTRIBUTE_FORMAT): New macro.
38213         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
38214         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
38215         GCC 3 or newer.
38216         * lib/error.h (__attribute__): Remove definition.
38217         (_GL_ATTRIBUTE_FORMAT): New macro.
38218         (error, error_at_line): Use it.
38219         * lib/hash.h (__attribute__): Remove definition.
38220         (ATTRIBUTE_WUR): Update definition. Define always.
38221         * lib/openat.h (__attribute__): Remove definition.
38222         (ATTRIBUTE_NORETURN): Update definition. Define always.
38223         * lib/sigpipe-die.h (__attribute__): Remove definition.
38224         (ATTRIBUTE_NORETURN): Update definition. Define always.
38225         * lib/vasnprintf.h (__attribute__): Remove definition.
38226         (_GL_ATTRIBUTE_FORMAT): New macro.
38227         (asnprintf, vasnprintf): Use it.
38228         * lib/xalloc.h (__attribute__): Remove definition.
38229         (ATTRIBUTE_NORETURN): Update definition. Define always.
38230         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
38231         * lib/xmemdup0.h (__attribute__): Remove definition.
38232         (ATTRIBUTE_NORETURN): Update definition. Define always.
38233         * lib/xprintf.h (__attribute__): Remove definition.
38234         (_GL_ATTRIBUTE_FORMAT): New macro.
38235         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
38236         * lib/xstrtol.h (__attribute__): Remove definition.
38237         (ATTRIBUTE_NORETURN): Update definition. Define always.
38238         * lib/xvasprintf.h (__attribute__): Remove definition.
38239         (_GL_ATTRIBUTE_FORMAT): New macro.
38240         (xasprintf, xvasprintf): Use it.
38241         * tests/test-argmatch.c (__attribute__): Remove definition.
38242         (ATTRIBUTE_NORETURN): Update definition. Define always.
38243         * tests/test-exclude.c (__attribute__): Remove definition.
38244         (ATTRIBUTE_NORETURN): Update definition. Define always.
38245         Reported by Paul Eggert.
38247 2011-02-13  Bruno Haible  <bruno@clisp.org>
38249         mbrtowc: Add more tests for native Windows platforms.
38250         * tests/test-mbrtowc-w32-1.sh: New file.
38251         * tests/test-mbrtowc-w32-2.sh: New file.
38252         * tests/test-mbrtowc-w32-3.sh: New file.
38253         * tests/test-mbrtowc-w32-4.sh: New file.
38254         * tests/test-mbrtowc-w32-5.sh: New file.
38255         * tests/test-mbrtowc-w32.c: New file.
38256         * modules/mbrtowc-tests (Files): Add them.
38257         (Makefile.am): Arrange to run these tests.
38258         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
38259         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
38261 2011-02-13  Bruno Haible  <bruno@clisp.org>
38263         mbrtowc: Work around native Windows bug.
38264         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
38265         guess when no suitable locale for testing was found.
38266         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
38268 2011-02-13  Bruno Haible  <bruno@clisp.org>
38270         mbsinit: Work around mingw bug.
38271         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
38272         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
38273         Windows.
38274         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
38276 2011-02-13  Bruno Haible  <bruno@clisp.org>
38278         mbsinit: Don't crash for a NULL argument.
38279         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
38280         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
38282 2011-02-13  Bruno Haible  <bruno@clisp.org>
38284         Don't interfere with a program's definition of __attribute__.
38285         * lib/stdio.in.h (__attribute__): Remove definition.
38286         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
38287         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
38288         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
38289         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
38290         * lib/string.in.h (__attribute__): Remove definition.
38291         Reported by Paul Eggert.
38293 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38295         stdlib: don't get in the way of non-GCC __attribute__
38296         See thread starting at
38297         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
38298         Revert previous stdlib change, installing the following instead:
38299         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
38300         to get in the way of a non-GCC compiler that supports __attribute__.
38301         (_GL_ATTRIBUTE_RETURN): New macro.
38302         (_Exit): Use it instead of __attribute__.
38304 2011-02-12  Bruno Haible  <bruno@clisp.org>
38306         quotearg test: Avoid test failure on mingw.
38307         * tests/test-quotearg.sh: Convert the locale identifier from native
38308         Windows syntax to Unix syntax.
38310 2011-02-12  Bruno Haible  <bruno@clisp.org>
38312         setlocale: Prefer gnulib's override over libintl's override.
38313         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
38314         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
38315         GNULIB_defined_setlocale is set.
38317 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
38319         stdlib: support non-GCC __attribute__
38321         Fix a serious and tricky problem encountered when attempting to
38322         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
38323         5.5, but it crashed due to memory corruption on Solaris 10 with
38324         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
38325         bits that are otherwise zero.  This tagging is optional inside
38326         Emacs but is preferred and is used when __attribute__ ((__aligned
38327         (8))) works, as it does with both recent-enough GCC and with Sun C
38328         5.11.  However, Sun C 5.11 is not GCC and does not #define
38329         __GNUC__ and __GNUC_MINOR__.
38331         When I added the getloadavg module to Emacs, it brought in
38332         stdlib.in.h, which contained this fragment:
38334            #ifndef __attribute__
38335            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
38336            #  define __attribute__(Spec)   /* empty */
38337            # endif
38338            #endif
38340         When files that include <stdlib.h> were compiled with Sun C 5.11,
38341         the above code disabled __attribute__ ((__aligned (8))), which
38342         caused variables to not be properly aligned, which eventually led
38343         to the pointer corruption mentioned above.  (This was a bit hard
38344         to diagnose, unfortunately.)
38346         Several "#define __attribute__(X) /* empty */" code snippets need
38347         to be eradicated from Gnulib to work with non-GCC compilers that
38348         support __attribute__.  The Autoconf way to do this is to test for
38349         each kind of attribute that we want support for, and selectively
38350         enable that in source code.
38352         Fix this problem just for stdlib.h, by adding a test for the
38353         __noreturn__ attribute, and change stdlib.in.h to use that test
38354         when needed.  This technique can be easily generalized to the
38355         other *.in.h files and attributes, and a similar technique can be
38356         used for *.h and *.c files.  This patch is enough to solve the
38357         problem for Emacs + getloadavg, and I thought I'd publish it for
38358         feedback before undertaking further, similar fixes in other
38359         modules.
38361         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
38362         because it's not needed for stdlib.h.  It merely substitutes the
38363         value directly into stdlib.h.  We may well need to #define it, or
38364         similar symbols, for other modules, but it's nice to also have an
38365         option to not #define it for applications like Emacs that do not
38366         need it.
38368         * lib/stdlib.in.h (__attribute__): Do not #define.
38369         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
38370         be defined only if the _Exit module is also used.
38371         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
38372         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
38373         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
38374         platforms.
38375         * modules/_Exit (Files): Add m4/attribute.m4.
38376         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
38377         * m4/attribute.m4: New file.
38379 2011-02-12  Bruno Haible  <bruno@clisp.org>
38381         wcsrtombs: Work around bug on native Windows.
38382         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
38383         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
38384         instead of len.
38385         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
38387 2011-02-12  Bruno Haible  <bruno@clisp.org>
38389         mbsrtowcs: Work around bug on native Windows.
38390         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
38391         against mingw bug.
38392         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
38394 2011-02-12  Bruno Haible  <bruno@clisp.org>
38396         Avoid setlocale bugs in tests.
38397         * modules/btowc (Dependencies): Add setlocale.
38398         * modules/c-strcase (Dependencies): Likewise.
38399         * modules/mbmemcasecmp (Dependencies): Likewise.
38400         * modules/mbmemcasecoll (Dependencies): Likewise.
38401         * modules/mbrtowc (Dependencies): Likewise.
38402         * modules/mbscasecmp (Dependencies): Likewise.
38403         * modules/mbscasestr (Dependencies): Likewise.
38404         * modules/mbschr (Dependencies): Likewise.
38405         * modules/mbscspn (Dependencies): Likewise.
38406         * modules/mbsinit (Dependencies): Likewise.
38407         * modules/mbsncasecmp (Dependencies): Likewise.
38408         * modules/mbsnrtowcs (Dependencies): Likewise.
38409         * modules/mbspbrk (Dependencies): Likewise.
38410         * modules/mbspcasecmp (Dependencies): Likewise.
38411         * modules/mbsrchr (Dependencies): Likewise.
38412         * modules/mbsrtowcs (Dependencies): Likewise.
38413         * modules/mbsspn (Dependencies): Likewise.
38414         * modules/mbsstr (Dependencies): Likewise.
38415         * modules/nl_langinfo (Dependencies): Likewise.
38416         * modules/quotearg (Dependencies): Likewise.
38417         * modules/unicase/locale-language (Dependencies): Likewise.
38418         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
38419         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
38420         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
38421         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
38422         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
38423         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
38424         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
38425         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
38426         * modules/vasnprintf-posix (Dependencies): Likewise.
38427         * modules/wcrtomb (Dependencies): Likewise.
38428         * modules/wcsnrtombs (Dependencies): Likewise.
38429         * modules/wcsrtombs (Dependencies): Likewise.
38431 2011-02-12  Bruno Haible  <bruno@clisp.org>
38433         setlocale: Workaround native Windows bug.
38434         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
38435         succeeds but sets LC_CTYPE to "C", report a failure.
38436         * tests/test-setlocale2.sh: New file.
38437         * tests/test-setlocale2.c: New file.
38438         * modules/setlocale-tests (Files): Add the new files.
38439         (Makefile.am): Enable test-setlocale2.sh test.
38440         * doc/posix-functions/setlocale.texi: Mention workaround.
38442 2011-02-11  Bruno Haible  <bruno@clisp.org>
38444         Tests for module 'setlocale'.
38445         * modules/setlocale-tests: New file.
38446         * tests/test-setlocale1.sh: New file.
38447         * tests/test-setlocale1.c: New file.
38449         New module 'setlocale'.
38450         * lib/locale.in.h (setlocale): New declaration.
38451         * lib/setlocale.c: New file, based on
38452         gettext/gettext-runtime/intl/setlocale.c.
38453         * m4/setlocale.m4: New file.
38454         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
38455         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
38456         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
38457         REPLACE_SETLOCALE.
38458         * modules/setlocale: New file.
38459         * tests/test-locale-c++.cc: Test the declaration of setlocale.
38460         * doc/posix-functions/setlocale.texi: Mention the new module.
38462 2011-02-11  Bruno Haible  <bruno@clisp.org>
38464         Prepare for locale dependent tests on mingw.
38465         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
38466         because it has the wrong locale encoding.
38467         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
38468         French_France.1252 instead of "fr".
38469         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
38470         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
38471         because it has the wrong locale encoding.
38472         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
38473         native Windows, try Turkish_Turkey.65001.
38474         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
38475         Chinese_China.54936.
38477         Prepare for locale dependent tests on mingw.
38478         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
38479         differently.
38480         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
38481         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
38482         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
38483         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38485 2011-02-11  Eric Blake  <eblake@redhat.com>
38487         strptime: avoid compiler warnings
38488         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
38489         compiler warnings about dead code.
38490         Reported by Daniel P. Berrange.
38492 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
38494         doc: update users.txt
38495         * users.txt: Add rcs.
38497 2011-02-10  John W. Eaton  <jwe@gnu.org>
38499         doc: update users.txt
38500         * users.txt: Add octave.
38502 2011-02-10  Jim Meyering  <meyering@redhat.com>
38504         doc: update users.txt
38505         * users.txt: Add iwhd.
38507 2011-02-09  Bruno Haible  <bruno@clisp.org>
38509         gnulib-tool: Make copyright notice adjustment more robust.
38510         * gnulib-tool (func_import): In sed_transform_main_lib_file,
38511         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
38512         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
38513         License".
38514         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
38516 2011-02-06  Bruno Haible  <bruno@clisp.org>
38518         New module 'towctrans'.
38519         * modules/towctrans: New file.
38520         * lib/wctype.in.h (towctrans): New declaration.
38521         * lib/towctrans.c: New file.
38522         * lib/towctrans-impl.h: New file.
38523         * m4/towctrans.m4: New file.
38524         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
38525         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
38526         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
38527         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
38528         * doc/posix-functions/towctrans.texi: Mention the new module.
38530 2011-02-06  Bruno Haible  <bruno@clisp.org>
38532         New module 'wctrans'.
38533         * modules/wctrans: New file.
38534         * lib/wctype.in.h (wctrans): New declaration.
38535         * lib/wctrans.c: New file.
38536         * lib/wctrans-impl.h: New file.
38537         * m4/wctrans.m4: New file.
38538         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
38539         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
38540         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
38541         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
38542         * doc/posix-functions/wctrans.texi: Mention the new module.
38544 2011-02-06  Bruno Haible  <bruno@clisp.org>
38546         New module 'iswctype'.
38547         * modules/iswctype: New file.
38548         * lib/wctype.in.h (iswctype): New declaration.
38549         * lib/iswctype.c: New file.
38550         * lib/iswctype-impl.h: New file.
38551         * m4/iswctype.m4: New file.
38552         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
38553         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
38554         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
38555         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
38556         * doc/posix-functions/iswctype.texi: Mention the new module and the
38557         HP-UX 11.00 problem.
38559 2011-02-06  Bruno Haible  <bruno@clisp.org>
38561         New module 'wctype'.
38562         * modules/wctype: Change to represent the wctype() substitute.
38563         * lib/wctype.in.h (wctype): New declaration.
38564         * lib/wctype.c: New file.
38565         * lib/wctype-impl.h: New file.
38566         * m4/wctype.m4: New file.
38567         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
38568         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
38569         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
38570         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
38571         * doc/posix-functions/wctype.texi: Mention the new module and the
38572         HP-UX 11.00 problem.
38574 2011-02-06  Bruno Haible  <bruno@clisp.org>
38576         wctype-h: Ensure wctype_t and wctrans_t are defined.
38577         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
38578         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
38579         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
38580         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
38581         HAVE_WCTRANS_T.
38582         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
38584 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
38586         flock: fix license typo
38588         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
38589         omitted.
38591 2011-02-08  Bruno Haible  <bruno@clisp.org>
38593         Split large sed scripts, for HP-UX sed.
38594         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
38595         to avoid HP-UX limit of 99 commands, in the near future.
38596         * modules/stdlib (Makefile.am): Likewise.
38597         * modules/unistd (Makefile.am): Likewise.
38598         * modules/wchar (Makefile.am): Likewise.
38599         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38600         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
38601         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
38603 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
38604             Bruno Haible  <bruno@clisp.org>
38606         stdlib: improve random_r modularization
38607         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
38608         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
38609         you also need the random_r module to get this material right.
38610         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
38611         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
38612         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
38614 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
38616         stdlib: don't depend on stdint
38617         * lib/stdlib.in.h: Don't include <stdint.h> merely because
38618         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
38619         be independent of whether stdint.h is needed.
38620         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
38621         here, instead of ...
38622         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
38623         struct random_data should be using the random_r module, not just
38624         the stdlib module (which wouldn't make sense: what package needs
38625         just struct random_data without also needing random_r?).
38626         * modules/stdlib (Depends-on): Remove stdint.
38628         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
38629         See the thread rooted at
38630         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
38631         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
38632         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
38633         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
38634         __VMS)); previously it was always included (via fcntl--.h).
38635         (getloadavg): Do not use c_strtod.  Instead, approximate it by
38636         hand; this is good enough for load averages.  Also, do not use
38637         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
38638         flags directly if available and don't bother otherwise.  (Packages
38639         that need the extra reliability should use the modules that define
38640         these flags on older platforms that lack them.)
38641         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
38642         fcntl-safer.
38644 2011-02-08  Jim Meyering  <meyering@redhat.com>
38646         di-set.h, ino-map.h: add multiple-inclusion guard
38647         Technically, the guard is required only for ino-map.h, due to its
38648         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
38649         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
38650         * lib/ino-map.h: Likewise.
38652 2011-02-06  Bruno Haible  <bruno@clisp.org>
38654         iswblank: Ensure declaration on glibc systems.
38655         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
38656         * modules/iswblank (Dependencies): Add 'extensions'.
38657         * doc/posix-functions/iswblank.texi: Document the glibc problem.
38659 2011-02-06  Bruno Haible  <bruno@clisp.org>
38661         New module 'iswblank'.
38662         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
38663         * modules/iswblank: New file.
38664         * modules/wctype-h (Files): Remove lib/iswblank.c.
38665         (Makefile.am): Substitute GNULIB_ISWBLANK.
38666         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
38667         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
38668         (gl_WCTYPE_H_DEFAULTS): New macro.
38669         (gl_WCTYPE_H): Require it. Remove iswblank related code.
38670         * modules/iswblank-tests: New file.
38671         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
38672         * tests/test-wctype-h.c (main): Remove iswblank tests.
38673         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
38674         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
38675         of 'wctype-h'.
38676         * NEWS: Mention the change.
38677         * modules/mbchar (Depends-on): Add iswblank.
38679 2011-02-08  Bruno Haible  <bruno@clisp.org>
38681         di-set tests: Refactor.
38682         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
38683         unnecessary includes.
38684         (ASSERT): Remove macro.
38685         (main): Make C90 compliant by avoiding variable declaration after
38686         statement.
38687         * modules/di-set-tests (Files): Add tests/macros.h.
38689 2011-02-08  Bruno Haible  <bruno@clisp.org>
38691         ino-map tests: Refactor.
38692         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
38693         unnecessary includes.
38694         (ASSERT): Remove macro.
38695         (main): Make C90 compliant by avoiding variable declaration after
38696         statement.
38697         * modules/ino-map-tests (Files): Add tests/macros.h.
38699 2011-02-08  Jim Meyering  <meyering@redhat.com>
38701         di-set: add "const" to a cast
38702         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
38703         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
38705 2011-02-06  Bruno Haible  <bruno@clisp.org>
38707         Rename module 'wctype' to 'wctype-h'.
38708         * modules/wctype-h: Renamed from modules/wctype.
38709         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
38710         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
38711         (Files, Depends-on, Makefile.am): Update.
38712         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
38713         (Files, Makefile.am): Update.
38714         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
38715         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
38716         * doc/posix-headers/wctype.texi: Update.
38717         * doc/posix-functions/iswalnum.texi: Update.
38718         * doc/posix-functions/iswalpha.texi: Update.
38719         * doc/posix-functions/iswblank.texi: Update.
38720         * doc/posix-functions/iswcntrl.texi: Update.
38721         * doc/posix-functions/iswdigit.texi: Update.
38722         * doc/posix-functions/iswgraph.texi: Update.
38723         * doc/posix-functions/iswlower.texi: Update.
38724         * doc/posix-functions/iswprint.texi: Update.
38725         * doc/posix-functions/iswpunct.texi: Update.
38726         * doc/posix-functions/iswspace.texi: Update.
38727         * doc/posix-functions/iswupper.texi: Update.
38728         * doc/posix-functions/iswxdigit.texi: Update.
38729         * doc/posix-functions/towlower.texi: Update.
38730         * doc/posix-functions/towupper.texi: Update.
38731         * NEWS: Mention the change.
38732         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
38733         * modules/mbchar (Dependencies): Likewise.
38734         * modules/mbswidth (Dependencies): Likewise.
38735         * modules/quotearg (Dependencies): Likewise.
38736         * modules/regex (Dependencies): Likewise.
38737         * modules/wcscasecmp (Dependencies): Likewise.
38738         * modules/wcsncasecmp (Dependencies): Likewise.
38739         * modules/wcwidth (Dependencies): Likewise.
38741 2011-02-06  Bruno Haible  <bruno@clisp.org>
38743         New module 'wcswidth'.
38744         * modules/wcswidth: New file.
38745         * lib/wchar.in.h (wcswidth): New declaration.
38746         * lib/wcswidth.c: New file.
38747         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
38748         * m4/wcswidth.m4: New file.
38749         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
38750         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
38751         REPLACE_WCSWIDTH.
38752         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
38753         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
38754         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
38755         * doc/posix-functions/wcswidth.texi: Mention the new module.
38757 2011-02-06  Bruno Haible  <bruno@clisp.org>
38759         New module 'wcstok'.
38760         * modules/wcstok: New file.
38761         * lib/wchar.in.h (wcstok): New declaration.
38762         * lib/wcstok.c: New file.
38763         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
38764         * m4/wcstok.m4: New file.
38765         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
38766         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
38767         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
38768         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
38769         * doc/posix-functions/wcstok.texi: Mention the new module.
38771 2011-02-06  Bruno Haible  <bruno@clisp.org>
38773         New module 'wcsstr'.
38774         * modules/wcsstr: New file.
38775         * lib/wchar.in.h (wcsstr): New declaration.
38776         * lib/wcsstr.c: New file.
38777         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
38778         * m4/wcsstr.m4: New file.
38779         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
38780         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
38781         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
38782         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
38783         * doc/posix-functions/wcsstr.texi: Mention the new module.
38785 2011-02-06  Bruno Haible  <bruno@clisp.org>
38787         New module 'wcspbrk'.
38788         * modules/wcspbrk: New file.
38789         * lib/wchar.in.h (wcspbrk): New declaration.
38790         * lib/wcspbrk.c: New file.
38791         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
38792         * m4/wcspbrk.m4: New file.
38793         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
38794         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
38795         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
38796         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
38797         * doc/posix-functions/wcspbrk.texi: Mention the new module.
38799 2011-02-06  Bruno Haible  <bruno@clisp.org>
38801         New module 'wcsspn'.
38802         * modules/wcsspn: New file.
38803         * lib/wchar.in.h (wcsspn): New declaration.
38804         * lib/wcsspn.c: New file.
38805         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
38806         * m4/wcsspn.m4: New file.
38807         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
38808         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
38809         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
38810         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
38811         * doc/posix-functions/wcsspn.texi: Mention the new module.
38813 2011-02-06  Bruno Haible  <bruno@clisp.org>
38815         New module 'wcscspn'.
38816         * modules/wcscspn: New file.
38817         * lib/wchar.in.h (wcscspn): New declaration.
38818         * lib/wcscspn.c: New file.
38819         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
38820         * m4/wcscspn.m4: New file.
38821         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
38822         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
38823         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
38824         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
38825         * doc/posix-functions/wcscspn.texi: Mention the new module.
38827 2011-02-06  Bruno Haible  <bruno@clisp.org>
38829         New module 'wcsrchr'.
38830         * modules/wcsrchr: New file.
38831         * lib/wchar.in.h (wcsrchr): New declaration.
38832         * lib/wcsrchr.c: New file.
38833         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
38834         * m4/wcsrchr.m4: New file.
38835         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
38836         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
38837         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
38838         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
38839         * doc/posix-functions/wcsrchr.texi: Mention the new module.
38841 2011-02-06  Bruno Haible  <bruno@clisp.org>
38843         New module 'wcschr'.
38844         * modules/wcschr: New file.
38845         * lib/wchar.in.h (wcschr): New declaration.
38846         * lib/wcschr.c: New file.
38847         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
38848         * m4/wcschr.m4: New file.
38849         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
38850         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
38851         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
38852         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
38853         * doc/posix-functions/wcschr.texi: Mention the new module.
38855 2011-02-06  Bruno Haible  <bruno@clisp.org>
38857         New module 'wcsdup'.
38858         * modules/wcsdup: New file.
38859         * lib/wchar.in.h (wcsdup): New declaration.
38860         * lib/wcsdup.c: New file.
38861         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
38862         * m4/wcsdup.m4: New file.
38863         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
38864         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
38865         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
38866         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
38867         * doc/posix-functions/wcsdup.texi: Mention the new module.
38869 2011-02-06  Bruno Haible  <bruno@clisp.org>
38871         New module 'wcsxfrm'.
38872         * modules/wcsxfrm: New file.
38873         * lib/wchar.in.h (wcsxfrm): New declaration.
38874         * lib/wcsxfrm.c: New file.
38875         * lib/wcsxfrm-impl.h: New file.
38876         * m4/wcsxfrm.m4: New file.
38877         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
38878         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
38879         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
38880         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
38881         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
38883 2011-02-06  Bruno Haible  <bruno@clisp.org>
38885         New module 'wcscoll'.
38886         * modules/wcscoll: New file.
38887         * lib/wchar.in.h (wcscoll): New declaration.
38888         * lib/wcscoll.c: New file.
38889         * lib/wcscoll-impl.h: New file.
38890         * m4/wcscoll.m4: New file.
38891         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
38892         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
38893         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
38894         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
38895         * doc/posix-functions/wcscoll.texi: Mention the new module.
38897 2011-02-06  Bruno Haible  <bruno@clisp.org>
38899         New module 'wcsncasecmp'.
38900         * modules/wcsncasecmp: New file.
38901         * lib/wchar.in.h (wcsncasecmp): New declaration.
38902         * lib/wcsncasecmp.c: New file.
38903         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
38904         * m4/wcsncasecmp.m4: New file.
38905         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
38906         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
38907         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
38908         HAVE_WCSNCASECMP.
38909         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
38910         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
38912 2011-02-06  Bruno Haible  <bruno@clisp.org>
38914         New module 'wcscasecmp'.
38915         * modules/wcscasecmp: New file.
38916         * lib/wchar.in.h (wcscasecmp): New declaration.
38917         * lib/wcscasecmp.c: New file.
38918         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
38919         * m4/wcscasecmp.m4: New file.
38920         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
38921         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
38922         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
38923         HAVE_WCSCASECMP.
38924         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
38925         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
38927 2011-02-05  Bruno Haible  <bruno@clisp.org>
38929         New module 'wcsncmp'.
38930         * modules/wcsncmp: New file.
38931         * lib/wchar.in.h (wcsncmp): New declaration.
38932         * lib/wcsncmp.c: New file.
38933         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
38934         * m4/wcsncmp.m4: New file.
38935         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
38936         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
38937         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
38938         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
38939         * doc/posix-functions/wcsncmp.texi: Mention the new module.
38941 2011-02-05  Bruno Haible  <bruno@clisp.org>
38943         New module 'wcscmp'.
38944         * modules/wcscmp: New file.
38945         * lib/wchar.in.h (wcscmp): New declaration.
38946         * lib/wcscmp.c: New file.
38947         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
38948         * m4/wcscmp.m4: New file.
38949         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
38950         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
38951         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
38952         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
38953         * doc/posix-functions/wcscmp.texi: Mention the new module.
38955 2011-02-05  Bruno Haible  <bruno@clisp.org>
38957         New module 'wcsncat'.
38958         * modules/wcsncat: New file.
38959         * lib/wchar.in.h (wcsncat): New declaration.
38960         * lib/wcsncat.c: New file.
38961         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
38962         * m4/wcsncat.m4: New file.
38963         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
38964         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
38965         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
38966         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
38967         * doc/posix-functions/wcsncat.texi: Mention the new module.
38969 2011-02-05  Bruno Haible  <bruno@clisp.org>
38971         New module 'wcscat'.
38972         * modules/wcscat: New file.
38973         * lib/wchar.in.h (wcscat): New declaration.
38974         * lib/wcscat.c: New file.
38975         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
38976         * m4/wcscat.m4: New file.
38977         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
38978         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
38979         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
38980         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
38981         * doc/posix-functions/wcscat.texi: Mention the new module.
38983 2011-02-05  Bruno Haible  <bruno@clisp.org>
38985         New module 'wcpncpy'.
38986         * modules/wcpncpy: New file.
38987         * lib/wchar.in.h (wcpncpy): New declaration.
38988         * lib/wcpncpy.c: New file.
38989         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
38990         * m4/wcpncpy.m4: New file.
38991         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
38992         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
38993         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
38994         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
38995         * doc/posix-functions/wcpncpy.texi: Mention the new module.
38997 2011-02-05  Bruno Haible  <bruno@clisp.org>
38999         New module 'wcsncpy'.
39000         * modules/wcsncpy: New file.
39001         * lib/wchar.in.h (wcsncpy): New declaration.
39002         * lib/wcsncpy.c: New file.
39003         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
39004         * m4/wcsncpy.m4: New file.
39005         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
39006         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
39007         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
39008         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
39009         * doc/posix-functions/wcsncpy.texi: Mention the new module.
39011 2011-02-05  Bruno Haible  <bruno@clisp.org>
39013         New module 'wcpcpy'.
39014         * modules/wcpcpy: New file.
39015         * lib/wchar.in.h (wcpcpy): New declaration.
39016         * lib/wcpcpy.c: New file.
39017         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
39018         * m4/wcpcpy.m4: New file.
39019         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
39020         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
39021         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
39022         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
39023         * doc/posix-functions/wcpcpy.texi: Mention the new module.
39025 2011-02-05  Bruno Haible  <bruno@clisp.org>
39027         New module 'wcscpy'.
39028         * modules/wcscpy: New file.
39029         * lib/wchar.in.h (wcscpy): New declaration.
39030         * lib/wcscpy.c: New file.
39031         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
39032         * m4/wcscpy.m4: New file.
39033         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
39034         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
39035         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
39036         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
39037         * doc/posix-functions/wcscpy.texi: Mention the new module.
39039 2011-02-05  Bruno Haible  <bruno@clisp.org>
39041         New module 'wcsnlen'.
39042         * modules/wcsnlen: New file.
39043         * lib/wchar.in.h (wcsnlen): New declaration.
39044         * lib/wcsnlen.c: New file.
39045         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
39046         * m4/wcsnlen.m4: New file.
39047         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
39048         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
39049         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
39050         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
39051         * doc/posix-functions/wcsnlen.texi: Mention the new module.
39053 2011-02-05  Bruno Haible  <bruno@clisp.org>
39055         New module 'wcslen'.
39056         * modules/wcslen: New file.
39057         * lib/wchar.in.h (wcslen): New declaration.
39058         * lib/wcslen.c: New file.
39059         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
39060         * m4/wcslen.m4: New file.
39061         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
39062         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
39063         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
39064         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
39065         * doc/posix-functions/wcslen.texi: Mention the new module.
39067 2011-02-05  Bruno Haible  <bruno@clisp.org>
39069         New module 'wmemset'.
39070         * modules/wmemset: New file.
39071         * lib/wchar.in.h (wmemset): New declaration.
39072         * lib/wmemset.c: New file.
39073         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
39074         * m4/wmemset.m4: New file.
39075         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
39076         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
39077         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
39078         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
39079         * doc/posix-functions/wmemset.texi: Mention the new module.
39081 2011-02-05  Bruno Haible  <bruno@clisp.org>
39083         New module 'wmemmove'.
39084         * modules/wmemmove: New file.
39085         * lib/wchar.in.h (wmemmove): New declaration.
39086         * lib/wmemmove.c: New file.
39087         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
39088         * m4/wmemmove.m4: New file.
39089         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
39090         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
39091         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
39092         HAVE_WMEMMOVE.
39093         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
39094         * doc/posix-functions/wmemmove.texi: Mention the new module.
39096 2011-02-05  Bruno Haible  <bruno@clisp.org>
39098         New module 'wmemcpy'.
39099         * modules/wmemcpy: New file.
39100         * lib/wchar.in.h (wmemcpy): New declaration.
39101         * lib/wmemcpy.c: New file.
39102         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
39103         * m4/wmemcpy.m4: New file.
39104         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
39105         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
39106         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
39107         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
39108         * doc/posix-functions/wmemcpy.texi: Mention the new module.
39110 2011-02-05  Bruno Haible  <bruno@clisp.org>
39112         New module 'wmemcmp'.
39113         * modules/wmemcmp: New file.
39114         * lib/wchar.in.h (wmemcmp): New declaration.
39115         * lib/wmemcmp.c: New file.
39116         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
39117         * m4/wmemcmp.m4: New file.
39118         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
39119         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
39120         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
39121         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
39122         * doc/posix-functions/wmemcmp.texi: Mention the new module.
39124 2011-02-07  Jim Meyering  <meyering@redhat.com>
39126         di-set, ino-map: new modules, from coreutils
39127         * lib/di-set.c: New file.
39128         * lib/di-set.h: Likewise.
39129         * lib/ino-map.c: Likewise.
39130         * lib/ino-map.h: Likewise.
39131         * modules/di-set: Likewise.
39132         * modules/di-set-tests: Likewise.
39133         * modules/ino-map: Likewise.
39134         * modules/ino-map-tests: Likewise.
39135         * tests/test-di-set.c: Likewise.
39136         * tests/test-ino-map.c: Likewise.
39138 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
39140         getloadavg: merge minor changes from Emacs
39142         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
39143         (getloadavg): Use memset, not bzero.
39145         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
39146         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
39147         clash (bug#86).
39149 2010-11-14  Bruno Haible  <bruno@clisp.org>
39151         Allow multiple gnulib generated replacements to coexist.
39152         * lib/getopt.in.h (struct option): Avoid identical redefinition.
39153         * lib/inttypes.in.h (imaxdiv_t): Likewise.
39154         * lib/langinfo.in.h (nl_item): Likewise.
39155         * lib/math.in.h (_NaN, NAN): Likewise.
39156         * lib/netdb.in.h (struct addrinfo): Likewise.
39157         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
39158         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
39159         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
39160         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
39161         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
39162         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
39163         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
39164         pthread_mutexattr_init, pthread_mutexattr_settype,
39165         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
39166         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
39167         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
39168         pthread_spin_trylock, pthread_spin_unlock): Likewise.
39169         * lib/sched.in.h (struct sched_param): Likewise.
39170         * lib/se-selinux.in.h (security_class_t, security_context_t,
39171         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
39172         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
39173         lsetfilecon, fsetfilecon, security_check_context,
39174         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
39175         Likewise.
39176         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
39177         Likewise.
39178         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
39179         _gl_function_taking_int_returning_void_t, union sigval,
39180         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
39181         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
39182         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
39183         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
39184         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
39185         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
39186         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
39187         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
39188         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
39189         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
39190         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
39191         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
39192         socklen_t, rpl_fd_isset): Likewise.
39193         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
39194         * lib/sys_time.in.h (struct timeval): Likewise.
39195         * lib/sys_times.in.h (struct tms): Likewise.
39196         * lib/sys_utsname.in.h (struct utsname):
39197         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
39198         * lib/unistd.in.h (getpagesize): Likewise.
39199         * lib/wchar.in.h (mbstate_t): Likewise.
39200         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
39201         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
39202         towlower, towupper): Likewise.
39203         Reported by Sam Steingold <sds@gnu.org>.
39205 2011-02-05  Eric Blake  <eblake@redhat.com>
39207         unsetenv: work around Haiku issues
39208         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
39209         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
39211 2010-12-30  Bruce Korb  <bkorb@gnu.org>
39213         libposix: avoid calling error() within libposix
39214         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
39215         is defined.
39217 2011-02-05  Eric Blake  <eblake@redhat.com>
39219         strerror_r-posix: port to cygwin
39220         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
39221         implementation.
39222         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
39223         * tests/test-strerror_r.c (main): Fix test.
39224         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
39225         issue.
39227 2011-02-05  Bruno Haible  <bruno@clisp.org>
39229         New module 'wmemchr'.
39230         * modules/wmemchr: New file.
39231         * lib/wchar.in.h (wmemchr): New declaration.
39232         * lib/wmemchr.c: New file.
39233         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
39234         * m4/wmemchr.m4: New file.
39235         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
39236         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
39237         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
39238         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
39239         * doc/posix-functions/wmemchr.texi: Mention the new module.
39241 2011-02-04  Eric Blake  <eblake@redhat.com>
39243         fdopendir: detect FreeBSD bug
39244         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
39245         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
39247 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
39249         stdbool: do not define HAVE_STDBOOL_H
39250         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
39251         AC_HEADER_STDBOOL.  All uses changed.  Do not define
39252         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
39253         imported from the latest Autoconf git.  It was motivated by Emacs,
39254         which uses gnulib but does not need HAVE_STDBOOL_H.
39256 2011-02-04  Bruno Haible  <bruno@clisp.org>
39258         wcsnrtombs: Prepare for new module wwcsnrtombs.
39259         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
39260         * lib/wcsnrtombs.c: Include it.
39261         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
39263         wcsrtombs: Prepare for new module wwcsrtombs.
39264         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
39265         * lib/wcsrtombs.c: Include it.
39266         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
39268         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
39269         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
39270         * lib/mbsnrtowcs.c: Include it.
39271         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
39273         mbsrtowcs: Prepare for new module mbsrtowwcs.
39274         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
39275         * lib/mbsrtowcs.c: Include it.
39276         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
39278 2011-02-04  Bruno Haible  <bruno@clisp.org>
39280         vasnprintf: Reduce use of malloc for small format strings.
39281         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
39282         (arguments): Add room for the first 7 arguments.
39283         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
39284         (char_directives, u8_directives, u16_directives, u32_directives): Add
39285         room for the first 7 directives.
39286         * lib/printf-parse.c: Include <string.h>.
39287         (PRINTF_PARSE): Change memory handling code so that it uses the first
39288         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
39289         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
39290         Reported by Pádraig Brady <P@draigbrady.com>.
39292 2011-01-31  Eric Blake  <eblake@redhat.com>
39294         dup2: work around Haiku bug
39295         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
39296         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
39297         * doc/posix-functions/dup2.texi (dup2): Document the bug.
39298         * tests/test-dup2.c (main): Enhance test.
39300 2011-01-31  Simon Josefsson  <simon@josefsson.org>
39302         doc: off_t is not available in eglibc 2.11.2 stdio.h.
39303         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
39304         declared by eglibc 2.11.2.
39305         * lib/stdio.in.h: Likewise.
39307 2011-01-31  Eric Blake  <eblake@redhat.com>
39309         ignore-value: add missing test dependency
39310         * tests/test-ignore-value.c: Revert previous change; stdio.h
39311         provides off_t.
39312         * modules/ignore-value-tests (Depends-on): Add missing dependency.
39314 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
39316         mktime: clarify long_int width checking
39317         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
39318         the top level, to make it clearer that the assumption about
39319         long_int width is being checked.  See
39320         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
39322 2011-01-30  Simon Josefsson  <simon@josefsson.org>
39324         ignore-value: Fix self-test.
39325         * tests/test-ignore-value.c: Include sys/types.h for off_t.
39327 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
39329         TYPE_MAXIMUM: avoid theoretically undefined behavior
39330         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
39331         negative number, which the C Standard says has undefined behavior.
39332         In practice this is not a problem, but might as well do it by the book.
39333         Reported by Rich Felker and Eric Blake; see
39334         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
39335         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
39336         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
39337         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39338         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
39339         * m4/stdint.m4 (gl_STDINT_H): Likewise.
39340         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
39342         mktime: #undef mktime before #defining it
39343         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
39345         mktime: systematically normalize tm_isdst comparisons
39346         * lib/mktime.c (isdst_differ): New function.
39347         (__mktime_internal): Use it systematically for all isdst comparisons.
39348         This completes the fix for libc BZ #6723, and removes the need for
39349         normalizing tm_isdst.  See
39350         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
39351         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
39353         mktime: fix some integer overflow issues and sidestep the rest
39355         This was prompted by a bug report by Benjamin Lindner for MinGW
39356         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
39357         His bug is due to signed integer overflow (0 - INT_MIN), and I
39358         I scanned through mktime.c looking for other integer overflow
39359         problems, fixing all the bugs I found.
39361         Although the C Standard says the resulting code is still not safe
39362         in the presence of integer overflow, in practice it should be good
39363         enough for all real-world two's-complement implementations, except
39364         for debugging environments that deliberately trap on integer
39365         overflow (e.g., gcc -ftrapv).
39367         * lib/mktime.c (WRAPV): New macro.
39368         (SHR): Also check that long_int and time_t shift right in the
39369         usual way, before using the fast-but-unportable method.
39370         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
39371         used.  The code already assumed two's complement, so there's
39372         no need to test for alternatives.  All uses removed.
39373         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
39374         the C standard.  Problem reported by Rich Felker in
39375         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
39376         (twos_complement_arithmetic): Also check long_int and time_t.
39377         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
39378         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
39379         (__mktime_internal): Avoid integer overflow with unary subtraction
39380         in two instances where -1 - X is an adequate replacement for -X,
39381         since the calculations are approximate.
39383 2011-01-29  Eric Blake  <eblake@redhat.com>
39385         mktime: avoid infinite loop
39386         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
39387         type; behavior is still undefined but portable to all known targets.
39388         Reported by Rich Felker.
39390 2011-01-29  Simon Josefsson  <simon@josefsson.org>
39392         rename, unlink, same-inode: Relicense.
39393         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
39394         * modules/unlink (License): Likewise.
39395         * modules/same-inode (License): Likewise.
39397 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
39399         mktime: avoid problems on NetBSD 5 / i386
39400         * lib/mktime.c (long_int): New type.  This works around a problem
39401         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
39402         but time_t is 64 bits, and where I expect the existing code is
39403         wrong in some cases.
39404         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
39405         (ydhms_diff): Bring back the compile-time check for wide-enough
39406         year and yday.
39408         mktime: fix misspelling in comment
39409         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
39410         This merges all recent glibc changes of importance.
39412 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39414         move-if-change: cope with concurrent mv of identical file.
39415         * build-aux/move-if-change (CMPPROG): Accept environment
39416         variable as an override for `cmp'.
39417         (usage): Document CMPPROG.
39418         Adjust comparison to drop stdout.  Cope with failure of mv if
39419         the target file exists and is identical to the source, for
39420         parallel builds.
39421         Report from H.J. Lu against binutils in PR binutils/12283.
39423 2011-01-28  Bruce Korb  <bkorb@gnu.org>
39425         * users.txt: Mention sharutils.
39427 2011-01-28  Simon Josefsson  <simon@josefsson.org>
39429         * users.txt: Mention OATH Toolkit.
39431 2011-01-27  Bruno Haible  <bruno@clisp.org>
39433         Prepare for supporting FreeBSD 10.
39434         * build-aux/config.libpath: Remove handling of freebsd1*.
39436 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
39438         Prepare for supporting FreeBSD 10.
39439         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
39440         match FreeBSD 10.0.
39442 2011-01-27  Bruno Haible  <bruno@clisp.org>
39444         vma-iter, get-rusage-as: Add OpenBSD support.
39445         * modules/vma-iter (configure.ac): Test for mquery.
39446         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
39447         * lib/vma-iter.c: Include <sys/mman.h>.
39448         (vma_iterate): Add an implementation based on mquery().
39449         * lib/resource-ext.h (get_rusage_as): Update comments.
39450         * lib/get-rusage-as.c: Likewise.
39451         * lib/get-rusage-data.c: Likewise.
39453 2011-01-26  Karl Berry  <karl@gnu.org>
39455         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
39456         variables to make it easier to override the makeinfo program used.
39458 2011-01-26  Eric Blake  <eblake@redhat.com>
39460         fcntl: work around Haiku F_DUPFD bugs
39461         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
39462         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
39463         cloexec bit on duplication.
39464         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
39466 2011-01-26  Bruno Haible  <bruno@clisp.org>
39468         Enable memory leak tests on AIX.
39469         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
39470         * tests/test-fprintf-posix3.c (main): Likewise.
39472 2011-01-26  Bruno Haible  <bruno@clisp.org>
39474         Tests for module 'get-rusage-data'.
39475         * modules/get-rusage-data-tests: New file.
39476         * tests/test-get-rusage-data.c: New file.
39478         New module 'get-rusage-data'.
39479         * lib/resource-ext.h (get_rusage_data): New declaration.
39480         * lib/get-rusage-data.c: New file.
39481         * modules/get-rusage-data: New file.
39483 2011-01-25  Bruno Haible  <bruno@clisp.org>
39485         get-rusage-as: Allow for easier testing.
39486         * lib/resource-ext.h (get_rusage_as): Add comment.
39487         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
39488         (main): New function for interactive testing.
39490 2011-01-25  Bruno Haible  <bruno@clisp.org>
39492         vma-iter: Treat Haiku like BeOS.
39493         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
39494         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
39496 2011-01-25  Eric Blake  <eblake@redhat.com>
39498         c-stack: fix regression on cygwin when libsigsegv is present
39499         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
39501 2011-01-24  Bruno Haible  <bruno@clisp.org>
39503         vma-iter: Avoid empty intervals.
39504         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
39505         on an empty interval.
39507 2011-01-24  Jim Meyering  <meyering@redhat.com>
39509         u64: remove unnecessary #include
39510         * lib/u64.h: Don't include <stddef.h>.  It was not used.
39512 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39514         Allow the user to avoid the HAVE_RAW_DECL_* macros.
39515         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
39517 2011-01-23  Bruno Haible  <bruno@clisp.org>
39519         New module 'vma-iter'.
39520         * lib/vma-iter.h: New file.
39521         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
39522         * modules/vma-iter: New file.
39523         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
39524         for get_rusage_as_via_iterator.
39525         (vma_iterate_callback): New function.
39526         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
39527         * modules/get-rusage-as (Depends-on): Add vma-iter.
39529 2011-01-23  Bruno Haible  <bruno@clisp.org>
39531         uninorm: Tweak includes.
39532         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
39533         Reported by Jim Meyering.
39535 2011-01-23  Bruno Haible  <bruno@clisp.org>
39537         get-rusage-as: Improve on NetBSD.
39538         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
39539         /proc, like on FreeBSD.
39541 2011-01-23  Jim Meyering  <meyering@redhat.com>
39543         xreadlink.h: remove unnecessary #include
39544         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
39546         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
39547         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
39549 2011-01-23  Bruno Haible  <bruno@clisp.org>
39551         get-rusage-as: Fix bug.
39552         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
39553         original limit when aborting the first loop.
39555 2011-01-23  Bruno Haible  <bruno@clisp.org>
39557         wctype: Ensure valid C syntax.
39558         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
39559         unconditionally, instead of gl_NEXT_HEADERS conditionally.
39561 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
39563         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
39564         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
39565         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
39566         as they are needed only for configure's test case.
39567         This removes two unnecessary symbols from config.h.
39569         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
39570         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
39571         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
39572         AC_CHECK_HEADERS_ONCE on a header that we also invoke
39573         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
39574         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
39575         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
39576         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
39577         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
39578         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
39579         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
39580         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39581         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
39582         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
39583         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
39584         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
39585         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
39586         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
39588 2011-01-21  Eric Blake  <eblake@redhat.com>
39590         maintainer-makefile: work with older git for submodule check
39591         * top/maint.mk (public-submodule-commit): Rewrite to avoid
39592         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
39593         Reported by Matthias Bolte.
39595         bootstrap: minor portability fixes
39596         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
39597         (usage): Omit leading capital and trailing . on help phrases, per
39598         GNU Coding Standards.
39599         (check_versions, top level): Prefix messages with script name.
39601 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
39603         bootstrap: support --no-git option
39604         * build-aux/bootstrap: Add --no-git option, to be used when
39605         --gnulib-srcdir points to the exact desired checkout.
39607 2011-01-21  Eric Blake  <eblake@redhat.com>
39609         strerror_r-posix: work with glibc 2.13
39610         * lib/strerror_r.c (strerror_r): Fix return type.
39612 2011-01-21  Pádraig Brady  <P@draigBrady.com>
39613             Bruno Haible  <bruno@clisp.org>
39615         uN_strstr: New unit tests.
39616         * modules/unistr/u8-strstr-tests: New file.
39617         * modules/unistr/u16-strstr-tests: New file.
39618         * modules/unistr/u32-strstr-tests: New file.
39619         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
39620         * tests/unistr/test-u8-strstr.c: New file.
39621         * tests/unistr/test-u16-strstr.c: New file.
39622         * tests/unistr/test-u32-strstr.c: New file.
39624 2011-01-21  Pádraig Brady  <P@draigBrady.com>
39625             Bruno Haible  <bruno@clisp.org>
39627         Make uN_strstr functions O(n) worst-case.
39628         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
39629         16-bit and 32-bit unit cases, use the unibyte algorithm from
39630         lib/mbsstr.c.
39631         * lib/unistr/u8-strstr.c: Include <string.h>.
39632         (UNIT_IS_UINT8_T): New macro.
39633         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
39634         (U_STRLEN, U_STRNLEN): New macros.
39635         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
39636         (U_STRLEN, U_STRNLEN): New macros.
39637         * modules/unistr/u8-strstr (Depends-on): Add strstr.
39638         (configure.ac): Update required libunistring version.
39639         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
39640         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
39641         malloca.
39642         (configure.ac): Update required libunistring version.
39643         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
39644         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
39645         malloca.
39646         (configure.ac): Update required libunistring version.
39648 2011-01-21  Pádraig Brady  <P@draigBrady.com>
39649             Bruno Haible  <bruno@clisp.org>
39651         Prepare for faster uN_strstr functions.
39652         * lib/str-kmp.h: Support definable UNITs.
39653         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
39654         needle_len argument.
39655         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
39656         * lib/mbscasestr.c (mbscasestr): Likewise.
39658 2011-01-21  Pádraig Brady  <P@draigBrady.com>
39660         malloca-tests: make faster by unsetting MALLOC_PERTURB_
39661         * tests/test-malloca.c (main): Unset the environment variable
39662         to greatly speed up the test.
39663         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
39664         * modules/malloca-tests: Depend on unsetenv.
39666 2011-01-21  Pádraig Brady  <P@draigBrady.com>
39668         ignore-value: remove stdint dependency
39669         * lib/ignore-value.h: Remove <stdint.h>
39670         * modules/ignore-value: Remove stdint dependency.
39672 2011-01-21  Jim Meyering  <meyering@redhat.com>
39674         maint.mk: adjust variable name to be consistent with other gl_ vars
39675         * top/maint.mk (gl_public_submodule_commit): Rename the variable
39676         to be lower case.
39678 2011-01-20  Jim Meyering  <meyering@redhat.com>
39680         maint.mk: make "check" depend on public-submodule-commit by default
39681         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
39683 2011-01-20  Bruno Haible  <bruno@clisp.org>
39685         mbfile, mbiter: Complete change from 2008-12-21.
39686         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
39687         * m4/mbiter.m4 (gl_MBITER): Likewise.
39689 2011-01-20  Jim Meyering  <meyering@redhat.com>
39691         init.sh: insert space between each function name and "()"
39692         * tests/init.sh: Make it a little easier to see that a function's
39693         name is "warn_", and not "warn" when looking at the first part of
39694         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
39696 2011-01-20  Jim Meyering  <meyering@redhat.com>
39698         mountlist: clean up code formatting
39699         * lib/mountlist.c (read_file_system_list): Split a long line,
39700         correct bracing style, use NULL in place of "(struct statfs *)0",
39701         don't parenthesize return value, add spaces around "=" and after
39702         ";-in-for-stmt".
39704 2011-01-14  Markus Duft  <mduft@gentoo.org>
39706         mountlist: add support for Interix
39707         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
39708         Apply statvfs to all entries of /dev/fs.
39709         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
39710         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
39712 2011-01-20  Jim Meyering  <meyering@redhat.com>
39714         maint.mk: improve the public-submodule-commit rule
39715         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
39716         to suppress printing of its commands... unless V=1.
39717         Add git submodule's --quiet option to suppress printing of e.g.,
39718         "Entering gnulib" output.
39719         "cd" into $(srcdir) before running git submodule.
39721 2011-01-20  Bruno Haible  <bruno@clisp.org>
39723         include_next: Fix bug introduced on 2011-01-18.
39724         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
39725         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
39726         ac_cv_header_... variable if the second argument is not 'check'.
39727         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
39728         gl_NEXT_HEADERS_INTERNAL.
39730 2011-01-20  Bruno Haible  <bruno@clisp.org>
39732         Allow the user to avoid the GNULIB_TEST_* macros.
39733         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
39734         Suggested by Paul Eggert.
39736 2011-01-14  Jim Meyering  <meyering@redhat.com>
39738         bootstrap: avoid failure when there is no .gitmodules file
39739         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
39740         has been assigned to, even when its value is the empty string.
39741         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
39742         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
39743         Reported by John W. Eaton <jwe@gnu.org>.
39745 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
39747         assume <ctype.h>, ..., <time.h> exist
39748         For years gnulib has been assuming the existence of the headers
39749         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
39750         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
39751         them, since they don't appear to be needed.
39752         * README (Portability guidelines): Document this.
39753         * lib/flock.c: Assume <fcntl.h> exists.
39754         * lib/regex_internal.h: Assume <locale.h> exists.
39755         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
39756         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
39757         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
39758         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
39759         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
39760         * m4/regex.m4 (gl_REGEX): Likewise.
39761         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
39762         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
39763         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
39764         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
39765         * tests/test-argp.c: Likewise.
39766         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
39768         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
39769         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
39770         AA_APPLE_UNIVERSAL_BUILD.  See
39771         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
39772         * NEWS: Document this.
39774 2011-01-19  Eric Blake  <eblake@redhat.com>
39776         c-stack: assume stack overflow if SA_SIGINFO unsupported
39777         * lib/c-stack.c (SIGACTION_WORKS): Rename...
39778         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
39779         sigaction will work.
39780         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
39781         behavior match Linux.
39782         * tests/test-c-stack.c (main): Prefer NULL for pointers.
39784         stdbool-tests: accommodate Haiku
39785         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
39787         binary-io: fix O_TEXT on Haiku
39788         * modules/binary-io (Depends-on): Add fcntl-h.
39789         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
39790         than blindly undefining O_TEXT.
39791         Reported by Scott McCreary.
39793 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
39795         include_next: do not check for standard headers like stddef.h
39797         I found this problem when modifying Emacs to use gnulib.
39798         I noticed that it added HAVE_STDDEF_H to config.h, even though
39799         gnulib always assumes <stddef.h> exists as per README and this
39800         symbol is unnecessary.
39801         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
39802         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
39803         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
39804         faster for headers like stddef.h that are known to exist.
39805         (gl_CHECK_NEXT_HEADERS): Use it.
39806         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
39807         rather than gl_CHECK_NEXT_HEADERS.
39808         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
39809         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
39811 2011-01-18  Eric Blake  <eblake@redhat.com>
39813         ansi-c++-opt: skip C++ dependency style if C++ is unused
39814         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
39815         tests when we know C++ compilation is not desired.
39816         Reported by Scott McCreary.
39818 2011-01-18  Bruno Haible  <bruno@clisp.org>
39820         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
39821         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
39822         (main): Perform test also when getrlimit and setrlimit don't exist or
39823         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
39824         limiting the address space size using setrlimit, compare the address
39825         space size before and after the test.
39826         * tests/test-dprintf-posix2.c: Likewise.
39827         * tests/test-fprintf-posix3.sh: Update skip messages.
39828         * tests/test-dprintf-posix2.sh: Likewise.
39829         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
39830         * modules/dprintf-posix-tests (Depends-on): Likewise.
39831         Reported by Bruce Korb <bkorb@gnu.org> and
39832         Gary V. Vaughan <gary@gnu.org>.
39834 2011-01-18  Bruno Haible  <bruno@clisp.org>
39836         get-rusage-as: Improvement for Cygwin.
39837         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
39838         areas that are merely reserved.
39840 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
39842         strftime: remove dependencies on multibyte modules
39844         strftime depended on mbrlen, mbsinit, and wchar, but these modules
39845         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
39846         only if __osf__ is defined, and I suspect OSF doesn't need these
39847         other modules.  If my guess is wrong, we'll need to come up with a
39848         variant of strftime that doesn't need the multibyte modules.
39850         I discovered this problem when attempting modify Emacs to use the
39851         strftime module.  With the previous gnulib, this caused Emacs to
39852         need 31 new files, ranging from lib/config.charset to
39853         m4/wint_t.m4.  This was overkill and I expect would be offputting
39854         to the Emacs maintainers.  After this change, only 6 new files are
39855         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
39856         stdbool.m4, and tm_gmtoff.m4.
39858         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
39859         Suggested by Bruno Haible in
39860         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
39861         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
39862         and do not check for wchar.h.
39863         * modules/strftime (Files): Remove m4/mbstate_t.m4.
39864         (Depends-on): Remove mbrlen, mbsinit, wchar.
39866 2011-01-18  Bruno Haible  <bruno@clisp.org>
39868         Tests for module 'get-rusage-as'.
39869         * modules/get-rusage-as-tests: New file.
39870         * tests/test-get-rusage-as.c: New file.
39872         New module 'get-rusage-as'.
39873         * modules/get-rusage-as: New file.
39874         * lib/resource-ext.h: New file.
39875         * lib/get-rusage-as.c: New file.
39877 2011-01-17  Eric Blake  <eblake@redhat.com>
39879         sigaction: relax license from LGPLv3+ to LGPLv2+
39880         * modules/sigaction (License): Relax to LGPLv2+.
39882 2011-01-14  Bruno Haible  <bruno@clisp.org>
39884         filemode: Make function declarations usable in C++ mode.
39885         * lib/filemode.h: Enclose function declarations in extern "C" block.
39886         Reported by John W. Eaton <jwe@gnu.org>.
39888 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
39890         save-cwd: no longer include "xgetcwd.h"
39891         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
39892         This avoids a compilation failure in projects that use save-cwd
39893         without also using the xgetcwd module.
39895 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
39897         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
39898         This is so that a program like Emacs, which needs only dtoastr,
39899         does not have to bother with distributing and compiling ftoastr
39900         and ldtoastr.
39901         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
39902         * modules/dtoastr, modules/ldtoastr: New files.
39903         * modules/ftoastr: Now works just for 'float'.
39904         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
39905         (Makefile.am): Remove ftoastr.h (not needed and no effect),
39906         dtoastr.c, ldtoastr.c.
39908 2011-01-11  Jim Meyering  <meyering@redhat.com>
39910         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
39911         There is no need to work around the lack of the fchdir function,
39912         since gnulib can now provide a replacement when required.
39913         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
39914         * modules/save-cwd (Depends-on): Add fchdir.
39916 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
39918         openat, save-cwd: avoid xmalloc
39920         This removes a direct (but undocumented) dependency of openat on
39921         xalloc, along with an indirect dependency via save-cwd.  It also
39922         removes a dependency of save-cwd on xgetcwd, and thereby
39923         indirectly on xalloc.  This change causes the openat substitute
39924         to fall back on save_cwd when memory is tight, and for save_cwd to
39925         fail instead of dying when memory is tight, but that's good enough.
39926         Problem and initial idea for fix reported by Bastien Roucaries in
39927         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
39929         * lib/openat-proc.c: Include stdlib.h (for malloc), not
39930         xalloc.h (for xmalloc).
39931         (openat_proc_name): Use malloc, not xmalloc.
39932         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
39933         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
39935         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
39936         This avoids heap allocation for file names whose lengths are in
39937         the range 512..1023, with the upper bound increasing to at most
39938         4031 depending on the platform's PATH_MAX.  (We do not want
39939         pathmax.h here as it might supply a non-constant PATH_MAX.)
39940         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
39941         Perhaps they should be moved to malloca.h?
39942         (OPENAT_BUFFER_SIZE): Use them.
39944 2011-01-10  Bruno Haible  <bruno@clisp.org>
39946         doc: Update users.txt.
39947         * users.txt: Add recutils.
39949 2011-01-09  Karl Berry  <karl@gnu.org>
39951         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
39953         * doc/configmake.texi: New file.
39954         * doc/gnulib.texi: Include it.
39955         * modules/configmake: Move documentation from here.
39957 2011-01-09  Bruno Haible  <bruno@clisp.org>
39959         Update to Unicode 6.0.0.
39960         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
39961         (get_lbp): Update for Unicode 6.0.0.
39962         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
39963         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
39964         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
39965         U+11001, U+11038..U+11046. Remove U+06DE.
39966         (uc_width): Fix bounds of planes.
39967         * tests/uniwidth/test-uc_width2.sh: Same updates as in
39968         lib/uniwidth/width.c.
39969         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
39970         trailing whitespace removed.
39971         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
39972         without comments, but with the original copyright notice.
39973         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
39974         * lib/unicase/ignorable.h: Likewise.
39975         * lib/unicase/tocasefold.h: Likewise.
39976         * lib/unicase/tolower.h: Likewise.
39977         * lib/unicase/totitle.h: Likewise.
39978         * lib/unicase/toupper.h: Likewise.
39979         * lib/unictype/bidi_of.h: Likewise.
39980         * lib/unictype/blocks.h: Likewise.
39981         * lib/unictype/categ_C.h: Likewise.
39982         * lib/unictype/categ_Cn.h: Likewise.
39983         * lib/unictype/categ_L.h: Likewise.
39984         * lib/unictype/categ_Ll.h: Likewise.
39985         * lib/unictype/categ_Lm.h: Likewise.
39986         * lib/unictype/categ_Lo.h: Likewise.
39987         * lib/unictype/categ_Lu.h: Likewise.
39988         * lib/unictype/categ_M.h: Likewise.
39989         * lib/unictype/categ_Mc.h: Likewise.
39990         * lib/unictype/categ_Me.h: Likewise.
39991         * lib/unictype/categ_Mn.h: Likewise.
39992         * lib/unictype/categ_N.h: Likewise.
39993         * lib/unictype/categ_Nd.h: Likewise.
39994         * lib/unictype/categ_No.h: Likewise.
39995         * lib/unictype/categ_P.h: Likewise.
39996         * lib/unictype/categ_Po.h: Likewise.
39997         * lib/unictype/categ_S.h: Likewise.
39998         * lib/unictype/categ_Sc.h: Likewise.
39999         * lib/unictype/categ_Sk.h: Likewise.
40000         * lib/unictype/categ_Sm.h: Likewise.
40001         * lib/unictype/categ_So.h: Likewise.
40002         * lib/unictype/categ_of.h: Likewise.
40003         * lib/unictype/combining.h: Likewise.
40004         * lib/unictype/ctype_alnum.h: Likewise.
40005         * lib/unictype/ctype_alpha.h: Likewise.
40006         * lib/unictype/ctype_graph.h: Likewise.
40007         * lib/unictype/ctype_lower.h: Likewise.
40008         * lib/unictype/ctype_print.h: Likewise.
40009         * lib/unictype/ctype_punct.h: Likewise.
40010         * lib/unictype/ctype_upper.h: Likewise.
40011         * lib/unictype/decdigit.h: Likewise.
40012         * lib/unictype/digit.h: Likewise.
40013         * lib/unictype/numeric.h: Likewise.
40014         * lib/unictype/pr_alphabetic.h: Likewise.
40015         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
40016         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
40017         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
40018         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
40019         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
40020         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
40021         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
40022         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
40023         * lib/unictype/pr_case_ignorable.h: Likewise.
40024         * lib/unictype/pr_cased.h: Likewise.
40025         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
40026         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
40027         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
40028         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
40029         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
40030         * lib/unictype/pr_combining.h: Likewise.
40031         * lib/unictype/pr_composite.h: Likewise.
40032         * lib/unictype/pr_currency_symbol.h: Likewise.
40033         * lib/unictype/pr_decimal_digit.h: Likewise.
40034         * lib/unictype/pr_deprecated.h: Likewise.
40035         * lib/unictype/pr_format_control.h: Likewise.
40036         * lib/unictype/pr_grapheme_base.h: Likewise.
40037         * lib/unictype/pr_grapheme_extend.h: Likewise.
40038         * lib/unictype/pr_grapheme_link.h: Likewise.
40039         * lib/unictype/pr_id_continue.h: Likewise.
40040         * lib/unictype/pr_id_start.h: Likewise.
40041         * lib/unictype/pr_ideographic.h: Likewise.
40042         * lib/unictype/pr_lowercase.h: Likewise.
40043         * lib/unictype/pr_math.h: Likewise.
40044         * lib/unictype/pr_numeric.h: Likewise.
40045         * lib/unictype/pr_other_alphabetic.h: Likewise.
40046         * lib/unictype/pr_other_id_continue.h: Likewise.
40047         * lib/unictype/pr_other_math.h: Likewise.
40048         * lib/unictype/pr_punctuation.h: Likewise.
40049         * lib/unictype/pr_sentence_terminal.h: Likewise.
40050         * lib/unictype/pr_terminal_punctuation.h: Likewise.
40051         * lib/unictype/pr_unassigned_code_value.h: Likewise.
40052         * lib/unictype/pr_unified_ideograph.h: Likewise.
40053         * lib/unictype/pr_uppercase.h: Likewise.
40054         * lib/unictype/pr_xid_continue.h: Likewise.
40055         * lib/unictype/pr_xid_start.h: Likewise.
40056         * lib/unictype/scripts.h: Likewise.
40057         * lib/unictype/scripts_byname.gperf: Likewise.
40058         * lib/unictype/sy_java_ident.h: Likewise.
40059         * lib/unigbrk/gbrkprop.h: Likewise.
40060         * lib/unilbrk/lbrkprop1.h: Likewise.
40061         * lib/unilbrk/lbrkprop2.h: Likewise.
40062         * lib/uninorm/decomposition-table2.h: Likewise.
40063         * lib/uniwbrk/wbrkprop.h: Likewise.
40064         * tests/unicase/test-cased.c: Likewise.
40065         * tests/unicase/test-ignorable.c: Likewise.
40066         * tests/unicase/test-uc_tolower.c: Likewise.
40067         * tests/unicase/test-uc_totitle.c: Likewise.
40068         * tests/unicase/test-uc_toupper.c: Likewise.
40069         * tests/unictype/test-categ_C.c: Likewise.
40070         * tests/unictype/test-categ_Cn.c: Likewise.
40071         * tests/unictype/test-categ_L.c: Likewise.
40072         * tests/unictype/test-categ_Ll.c: Likewise.
40073         * tests/unictype/test-categ_Lm.c: Likewise.
40074         * tests/unictype/test-categ_Lo.c: Likewise.
40075         * tests/unictype/test-categ_Lu.c: Likewise.
40076         * tests/unictype/test-categ_M.c: Likewise.
40077         * tests/unictype/test-categ_Mc.c: Likewise.
40078         * tests/unictype/test-categ_Me.c: Likewise.
40079         * tests/unictype/test-categ_Mn.c: Likewise.
40080         * tests/unictype/test-categ_N.c: Likewise.
40081         * tests/unictype/test-categ_Nd.c: Likewise.
40082         * tests/unictype/test-categ_No.c: Likewise.
40083         * tests/unictype/test-categ_P.c: Likewise.
40084         * tests/unictype/test-categ_Po.c: Likewise.
40085         * tests/unictype/test-categ_S.c: Likewise.
40086         * tests/unictype/test-categ_Sc.c: Likewise.
40087         * tests/unictype/test-categ_Sk.c: Likewise.
40088         * tests/unictype/test-categ_Sm.c: Likewise.
40089         * tests/unictype/test-categ_So.c: Likewise.
40090         * tests/unictype/test-ctype_alnum.c: Likewise.
40091         * tests/unictype/test-ctype_alpha.c: Likewise.
40092         * tests/unictype/test-ctype_graph.c: Likewise.
40093         * tests/unictype/test-ctype_lower.c: Likewise.
40094         * tests/unictype/test-ctype_print.c: Likewise.
40095         * tests/unictype/test-ctype_punct.c: Likewise.
40096         * tests/unictype/test-ctype_upper.c: Likewise.
40097         * tests/unictype/test-decdigit.h: Likewise.
40098         * tests/unictype/test-digit.h: Likewise.
40099         * tests/unictype/test-numeric.h: Likewise.
40100         * tests/unictype/test-pr_alphabetic.c: Likewise.
40101         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
40102         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
40103         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
40104         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
40105         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
40106         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
40107         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
40108         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
40109         * tests/unictype/test-pr_case_ignorable.c: Likewise.
40110         * tests/unictype/test-pr_cased.c: Likewise.
40111         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
40112         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
40113         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
40114         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
40115         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
40116         * tests/unictype/test-pr_combining.c: Likewise.
40117         * tests/unictype/test-pr_composite.c: Likewise.
40118         * tests/unictype/test-pr_currency_symbol.c: Likewise.
40119         * tests/unictype/test-pr_decimal_digit.c: Likewise.
40120         * tests/unictype/test-pr_deprecated.c: Likewise.
40121         * tests/unictype/test-pr_format_control.c: Likewise.
40122         * tests/unictype/test-pr_grapheme_base.c: Likewise.
40123         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
40124         * tests/unictype/test-pr_grapheme_link.c: Likewise.
40125         * tests/unictype/test-pr_id_continue.c: Likewise.
40126         * tests/unictype/test-pr_id_start.c: Likewise.
40127         * tests/unictype/test-pr_ideographic.c: Likewise.
40128         * tests/unictype/test-pr_lowercase.c: Likewise.
40129         * tests/unictype/test-pr_math.c: Likewise.
40130         * tests/unictype/test-pr_numeric.c: Likewise.
40131         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
40132         * tests/unictype/test-pr_other_id_continue.c: Likewise.
40133         * tests/unictype/test-pr_other_math.c: Likewise.
40134         * tests/unictype/test-pr_punctuation.c: Likewise.
40135         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
40136         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
40137         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
40138         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
40139         * tests/unictype/test-pr_uppercase.c: Likewise.
40140         * tests/unictype/test-pr_xid_continue.c: Likewise.
40141         * tests/unictype/test-pr_xid_start.c: Likewise.
40142         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
40143         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
40144         changes.
40145         * lib/unictype/categ_Cc.h: Likewise.
40146         * lib/unictype/categ_Cf.h: Likewise.
40147         * lib/unictype/categ_Co.h: Likewise.
40148         * lib/unictype/categ_Cs.h: Likewise.
40149         * lib/unictype/categ_Lt.h: Likewise.
40150         * lib/unictype/categ_Nl.h: Likewise.
40151         * lib/unictype/categ_Pc.h: Likewise.
40152         * lib/unictype/categ_Pd.h: Likewise.
40153         * lib/unictype/categ_Pe.h: Likewise.
40154         * lib/unictype/categ_Pf.h: Likewise.
40155         * lib/unictype/categ_Pi.h: Likewise.
40156         * lib/unictype/categ_Ps.h: Likewise.
40157         * lib/unictype/categ_Z.h: Likewise.
40158         * lib/unictype/categ_Zl.h: Likewise.
40159         * lib/unictype/categ_Zp.h: Likewise.
40160         * lib/unictype/categ_Zs.h: Likewise.
40161         * lib/unictype/ctype_blank.h: Likewise.
40162         * lib/unictype/ctype_cntrl.h: Likewise.
40163         * lib/unictype/ctype_digit.h: Likewise.
40164         * lib/unictype/ctype_space.h: Likewise.
40165         * lib/unictype/ctype_xdigit.h: Likewise.
40166         * lib/unictype/mirror.h: Likewise.
40167         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
40168         * lib/unictype/pr_bidi_block_separator.h: Likewise.
40169         * lib/unictype/pr_bidi_common_separator.h: Likewise.
40170         * lib/unictype/pr_bidi_control.h: Likewise.
40171         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
40172         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
40173         * lib/unictype/pr_bidi_european_digit.h: Likewise.
40174         * lib/unictype/pr_bidi_pdf.h: Likewise.
40175         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
40176         * lib/unictype/pr_bidi_whitespace.h: Likewise.
40177         * lib/unictype/pr_dash.h: Likewise.
40178         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
40179         * lib/unictype/pr_diacritic.h: Likewise.
40180         * lib/unictype/pr_extender.h: Likewise.
40181         * lib/unictype/pr_hex_digit.h: Likewise.
40182         * lib/unictype/pr_hyphen.h: Likewise.
40183         * lib/unictype/pr_ids_binary_operator.h: Likewise.
40184         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
40185         * lib/unictype/pr_ignorable_control.h: Likewise.
40186         * lib/unictype/pr_iso_control.h: Likewise.
40187         * lib/unictype/pr_join_control.h: Likewise.
40188         * lib/unictype/pr_left_of_pair.h: Likewise.
40189         * lib/unictype/pr_line_separator.h: Likewise.
40190         * lib/unictype/pr_logical_order_exception.h: Likewise.
40191         * lib/unictype/pr_non_break.h: Likewise.
40192         * lib/unictype/pr_not_a_character.h: Likewise.
40193         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
40194         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
40195         * lib/unictype/pr_other_id_start.h: Likewise.
40196         * lib/unictype/pr_other_lowercase.h: Likewise.
40197         * lib/unictype/pr_other_uppercase.h: Likewise.
40198         * lib/unictype/pr_paired_punctuation.h: Likewise.
40199         * lib/unictype/pr_paragraph_separator.h: Likewise.
40200         * lib/unictype/pr_pattern_syntax.h: Likewise.
40201         * lib/unictype/pr_pattern_white_space.h: Likewise.
40202         * lib/unictype/pr_private_use.h: Likewise.
40203         * lib/unictype/pr_quotation_mark.h: Likewise.
40204         * lib/unictype/pr_radical.h: Likewise.
40205         * lib/unictype/pr_soft_dotted.h: Likewise.
40206         * lib/unictype/pr_space.h: Likewise.
40207         * lib/unictype/pr_titlecase.h: Likewise.
40208         * lib/unictype/pr_variation_selector.h: Likewise.
40209         * lib/unictype/pr_white_space.h: Likewise.
40210         * lib/unictype/pr_zero_width.h: Likewise.
40211         * lib/unictype/sy_c_ident.h: Likewise.
40212         * lib/unictype/sy_c_whitespace.h: Likewise.
40213         * lib/unictype/sy_java_whitespace.h: Likewise.
40214         * lib/uninorm/composition-table.gperf: Likewise.
40215         * lib/uninorm/decomposition-table1.h: Likewise.
40216         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
40217         LB8.
40218         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
40219         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
40220         * modules/unictype/*: Bump version number of expected libunistring
40221         version.
40223 2011-01-09  Bruno Haible  <bruno@clisp.org>
40225         Update to Unicode 5.2.0.
40226         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
40227         trailing whitespace removed.
40229 2011-01-09  Bruno Haible  <bruno@clisp.org>
40231         New Unicode character properties, from Unicode 5.2.0.
40232         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
40233         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
40234         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
40235         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
40236         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
40237         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
40238         uc_is_property_cased, uc_is_property_case_ignorable,
40239         uc_is_property_changes_when_lowercased,
40240         uc_is_property_changes_when_uppercased,
40241         uc_is_property_changes_when_titlecased,
40242         uc_is_property_changes_when_casefolded,
40243         uc_is_property_changes_when_casemapped): New declarations.
40244         * lib/unictype/pr_byname.gperf: Add the new properties.
40245         * modules/unictype/property-byname (Depends-on): Depend on the new
40246         properties modules.
40247         * modules/unictype/property-all (Depends-on): Likewise.
40248         * MODULES.html.sh (Unicode string functions): Add
40249         unictype/property-case-ignorable, unictype/property-cased,
40250         unictype/property-changes-when-casefolded,
40251         unictype/property-changes-when-casemapped,
40252         unictype/property-changes-when-lowercased,
40253         unictype/property-changes-when-titlecased,
40254         unictype/property-changes-when-uppercased.
40256         New module 'unictype/property-changes-when-casemapped'.
40257         * modules/unictype/property-changes-when-casemapped: New file.
40258         * lib/unictype/pr_changes_when_casemapped.c: New file.
40259         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
40260         generated by gen-uni-tables.
40261         * modules/unictype/property-changes-when-casemapped-tests: New file.
40262         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
40263         automatically generated by gen-uni-tables.
40265         New module 'unictype/property-changes-when-casefolded'.
40266         * modules/unictype/property-changes-when-casefolded: New file.
40267         * lib/unictype/pr_changes_when_casefolded.c: New file.
40268         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
40269         generated by gen-uni-tables.
40270         * modules/unictype/property-changes-when-casefolded-tests: New file.
40271         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
40272         automatically generated by gen-uni-tables.
40274         New module 'unictype/property-changes-when-titlecased'.
40275         * modules/unictype/property-changes-when-titlecased: New file.
40276         * lib/unictype/pr_changes_when_titlecased.c: New file.
40277         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
40278         generated by gen-uni-tables.
40279         * modules/unictype/property-changes-when-titlecased-tests: New file.
40280         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
40281         automatically generated by gen-uni-tables.
40283         New module 'unictype/property-changes-when-uppercased'.
40284         * modules/unictype/property-changes-when-uppercased: New file.
40285         * lib/unictype/pr_changes_when_uppercased.c: New file.
40286         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
40287         generated by gen-uni-tables.
40288         * modules/unictype/property-changes-when-uppercased-tests: New file.
40289         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
40290         automatically generated by gen-uni-tables.
40292         New module 'unictype/property-changes-when-lowercased'.
40293         * modules/unictype/property-changes-when-lowercased: New file.
40294         * lib/unictype/pr_changes_when_lowercased.c: New file.
40295         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
40296         generated by gen-uni-tables.
40297         * modules/unictype/property-changes-when-lowercased-tests: New file.
40298         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
40299         automatically generated by gen-uni-tables.
40301         New module 'unictype/property-case-ignorable'.
40302         * modules/unictype/property-case-ignorable: New file.
40303         * lib/unictype/pr_case_ignorable.c: New file.
40304         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
40305         by gen-uni-tables.
40306         * modules/unictype/property-case-ignorable-tests: New file.
40307         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
40308         generated by gen-uni-tables.
40310         New module 'unictype/property-cased'.
40311         * modules/unictype/property-cased: New file.
40312         * lib/unictype/pr_cased.c: New file.
40313         * lib/unictype/pr_cased.h: New file, automatically generated by
40314         gen-uni-tables.
40315         * modules/unictype/property-cased-tests: New file.
40316         * tests/unictype/test-pr_cased.c: New file, automatically generated by
40317         gen-uni-tables.
40319 2011-01-09  Bruno Haible  <bruno@clisp.org>
40321         Update to Unicode 5.2.0.
40322         * lib/gen-uni-tables.c (output_predicate, output_category,
40323         output_combclass, output_bidi_category, output_decimal_digit_test,
40324         output_decimal_digit, output_digit_test, output_digit,
40325         output_numeric_test, output_numeric, output_mirror, output_scripts,
40326         output_scripts_byname, output_blocks, output_ident_category): Fix
40327         comment header.
40328         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
40329         get_wbp.
40330         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
40331         items.
40332         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
40333         Changes_When_Lowercased, Changes_When_Uppercased,
40334         Changes_When_Titlecased, Changes_When_Casefolded,
40335         Changes_When_Casemapped.
40336         (is_property_alphabetic, is_property_default_ignorable_code_point):
40337         Update for Unicode 5.2.0.
40338         (is_property_cased, is_property_case_ignorable,
40339         is_property_changes_when_lowercased,
40340         is_property_changes_when_uppercased,
40341         is_property_changes_when_titlecased,
40342         is_property_changes_when_casefolded,
40343         is_property_changes_when_casemapped): New functions.
40344         (output_properties): Output also the properties cased, case_ignorable,
40345         changes_when_lowercased, changes_when_uppercased,
40346         changes_when_titlecased, changes_when_casefolded,
40347         changes_when_casemapped.
40348         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
40349         Unicode TR#11 revision 17 -> 19.
40350         (LBP_CP): New enumeration value.
40351         (LBP_*): Adjust values accordingly.
40352         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
40353         TR#14 revision 22 -> 24.
40354         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
40355         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
40356         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
40357         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
40358         is_WBP_MIDLETTER.
40359         (output_composition_tables): Allow for 24 bits instead of 16 bits in
40360         the code1 and code2 of each composition rule.
40361         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
40362         * lib/unicase/ignorable.h: Likewise.
40363         * lib/unicase/tocasefold.h: Likewise.
40364         * lib/unicase/tolower.h: Likewise.
40365         * lib/unicase/totitle.h: Likewise.
40366         * lib/unicase/toupper.h: Likewise.
40367         * lib/unictype/bidi_of.h: Likewise.
40368         * lib/unictype/blocks.h: Likewise.
40369         * lib/unictype/categ_C.h: Likewise.
40370         * lib/unictype/categ_Cf.h: Likewise.
40371         * lib/unictype/categ_Cn.h: Likewise.
40372         * lib/unictype/categ_L.h: Likewise.
40373         * lib/unictype/categ_Ll.h: Likewise.
40374         * lib/unictype/categ_Lm.h: Likewise.
40375         * lib/unictype/categ_Lo.h: Likewise.
40376         * lib/unictype/categ_Lu.h: Likewise.
40377         * lib/unictype/categ_M.h: Likewise.
40378         * lib/unictype/categ_Mc.h: Likewise.
40379         * lib/unictype/categ_Mn.h: Likewise.
40380         * lib/unictype/categ_N.h: Likewise.
40381         * lib/unictype/categ_Nd.h: Likewise.
40382         * lib/unictype/categ_Nl.h: Likewise.
40383         * lib/unictype/categ_No.h: Likewise.
40384         * lib/unictype/categ_P.h: Likewise.
40385         * lib/unictype/categ_Pd.h: Likewise.
40386         * lib/unictype/categ_Po.h: Likewise.
40387         * lib/unictype/categ_S.h: Likewise.
40388         * lib/unictype/categ_Sc.h: Likewise.
40389         * lib/unictype/categ_So.h: Likewise.
40390         * lib/unictype/categ_of.h: Likewise.
40391         * lib/unictype/combining.h: Likewise.
40392         * lib/unictype/ctype_alnum.h: Likewise.
40393         * lib/unictype/ctype_alpha.h: Likewise.
40394         * lib/unictype/ctype_graph.h: Likewise.
40395         * lib/unictype/ctype_lower.h: Likewise.
40396         * lib/unictype/ctype_print.h: Likewise.
40397         * lib/unictype/ctype_punct.h: Likewise.
40398         * lib/unictype/ctype_upper.h: Likewise.
40399         * lib/unictype/decdigit.h: Likewise.
40400         * lib/unictype/digit.h: Likewise.
40401         * lib/unictype/numeric.h: Likewise.
40402         * lib/unictype/pr_alphabetic.h: Likewise.
40403         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
40404         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
40405         * lib/unictype/pr_bidi_european_digit.h: Likewise.
40406         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
40407         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
40408         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
40409         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
40410         * lib/unictype/pr_combining.h: Likewise.
40411         * lib/unictype/pr_composite.h: Likewise.
40412         * lib/unictype/pr_currency_symbol.h: Likewise.
40413         * lib/unictype/pr_dash.h: Likewise.
40414         * lib/unictype/pr_decimal_digit.h: Likewise.
40415         * lib/unictype/pr_deprecated.h: Likewise.
40416         * lib/unictype/pr_diacritic.h: Likewise.
40417         * lib/unictype/pr_extender.h: Likewise.
40418         * lib/unictype/pr_grapheme_base.h: Likewise.
40419         * lib/unictype/pr_grapheme_extend.h: Likewise.
40420         * lib/unictype/pr_grapheme_link.h: Likewise.
40421         * lib/unictype/pr_id_continue.h: Likewise.
40422         * lib/unictype/pr_id_start.h: Likewise.
40423         * lib/unictype/pr_ideographic.h: Likewise.
40424         * lib/unictype/pr_ignorable_control.h: Likewise.
40425         * lib/unictype/pr_logical_order_exception.h: Likewise.
40426         * lib/unictype/pr_lowercase.h: Likewise.
40427         * lib/unictype/pr_numeric.h: Likewise.
40428         * lib/unictype/pr_other_alphabetic.h: Likewise.
40429         * lib/unictype/pr_punctuation.h: Likewise.
40430         * lib/unictype/pr_sentence_terminal.h: Likewise.
40431         * lib/unictype/pr_terminal_punctuation.h: Likewise.
40432         * lib/unictype/pr_unassigned_code_value.h: Likewise.
40433         * lib/unictype/pr_unified_ideograph.h: Likewise.
40434         * lib/unictype/pr_uppercase.h: Likewise.
40435         * lib/unictype/pr_xid_continue.h: Likewise.
40436         * lib/unictype/pr_xid_start.h: Likewise.
40437         * lib/unictype/pr_zero_width.h: Likewise.
40438         * lib/unictype/scripts.h: Likewise.
40439         * lib/unictype/scripts_byname.gperf: Likewise.
40440         * lib/unictype/sy_java_ident.h: Likewise.
40441         * lib/unigbrk/gbrkprop.h: Likewise.
40442         * lib/unilbrk/lbrkprop1.h: Likewise.
40443         * lib/unilbrk/lbrkprop2.h: Likewise.
40444         * lib/unilbrk/lbrktables.h: Likewise.
40445         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
40446         LBP_CP. Implement rule LB30.
40447         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
40448         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
40449         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
40450         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
40451         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
40452         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
40453         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
40454         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
40455         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
40456         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
40457         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
40458         bits instead of 16 bits in the code1 and code2 of each composition
40459         rule.
40460         (uc_composition): Update for Unicode 5.2.0.
40461         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
40462         * lib/uninorm/decomposition-table2.h: Likewise.
40463         * lib/uniwbrk/wbrkprop.h: Likewise.
40464         * tests/unicase/test-cased.c: Likewise.
40465         * tests/unicase/test-ignorable.c: Likewise.
40466         * tests/unicase/test-uc_tolower.c: Likewise.
40467         * tests/unicase/test-uc_totitle.c: Likewise.
40468         * tests/unicase/test-uc_toupper.c: Likewise.
40469         * tests/unictype/test-categ_C.c: Likewise.
40470         * tests/unictype/test-categ_Cf.c: Likewise.
40471         * tests/unictype/test-categ_Cn.c: Likewise.
40472         * tests/unictype/test-categ_L.c: Likewise.
40473         * tests/unictype/test-categ_Ll.c: Likewise.
40474         * tests/unictype/test-categ_Lm.c: Likewise.
40475         * tests/unictype/test-categ_Lo.c: Likewise.
40476         * tests/unictype/test-categ_Lu.c: Likewise.
40477         * tests/unictype/test-categ_M.c: Likewise.
40478         * tests/unictype/test-categ_Mc.c: Likewise.
40479         * tests/unictype/test-categ_Mn.c: Likewise.
40480         * tests/unictype/test-categ_N.c: Likewise.
40481         * tests/unictype/test-categ_Nd.c: Likewise.
40482         * tests/unictype/test-categ_Nl.c: Likewise.
40483         * tests/unictype/test-categ_No.c: Likewise.
40484         * tests/unictype/test-categ_P.c: Likewise.
40485         * tests/unictype/test-categ_Pd.c: Likewise.
40486         * tests/unictype/test-categ_Po.c: Likewise.
40487         * tests/unictype/test-categ_S.c: Likewise.
40488         * tests/unictype/test-categ_Sc.c: Likewise.
40489         * tests/unictype/test-categ_So.c: Likewise.
40490         * tests/unictype/test-ctype_alnum.c: Likewise.
40491         * tests/unictype/test-ctype_alpha.c: Likewise.
40492         * tests/unictype/test-ctype_graph.c: Likewise.
40493         * tests/unictype/test-ctype_lower.c: Likewise.
40494         * tests/unictype/test-ctype_print.c: Likewise.
40495         * tests/unictype/test-ctype_punct.c: Likewise.
40496         * tests/unictype/test-ctype_upper.c: Likewise.
40497         * tests/unictype/test-decdigit.h: Likewise.
40498         * tests/unictype/test-digit.h: Likewise.
40499         * tests/unictype/test-numeric.h: Likewise.
40500         * tests/unictype/test-pr_alphabetic.c: Likewise.
40501         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
40502         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
40503         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
40504         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
40505         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
40506         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
40507         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
40508         * tests/unictype/test-pr_combining.c: Likewise.
40509         * tests/unictype/test-pr_composite.c: Likewise.
40510         * tests/unictype/test-pr_currency_symbol.c: Likewise.
40511         * tests/unictype/test-pr_dash.c: Likewise.
40512         * tests/unictype/test-pr_decimal_digit.c: Likewise.
40513         * tests/unictype/test-pr_deprecated.c: Likewise.
40514         * tests/unictype/test-pr_diacritic.c: Likewise.
40515         * tests/unictype/test-pr_extender.c: Likewise.
40516         * tests/unictype/test-pr_grapheme_base.c: Likewise.
40517         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
40518         * tests/unictype/test-pr_grapheme_link.c: Likewise.
40519         * tests/unictype/test-pr_id_continue.c: Likewise.
40520         * tests/unictype/test-pr_id_start.c: Likewise.
40521         * tests/unictype/test-pr_ideographic.c: Likewise.
40522         * tests/unictype/test-pr_ignorable_control.c: Likewise.
40523         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
40524         * tests/unictype/test-pr_lowercase.c: Likewise.
40525         * tests/unictype/test-pr_numeric.c: Likewise.
40526         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
40527         * tests/unictype/test-pr_punctuation.c: Likewise.
40528         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
40529         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
40530         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
40531         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
40532         * tests/unictype/test-pr_uppercase.c: Likewise.
40533         * tests/unictype/test-pr_xid_continue.c: Likewise.
40534         * tests/unictype/test-pr_xid_start.c: Likewise.
40535         * tests/unictype/test-pr_zero_width.c: Likewise.
40536         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
40537         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
40538         changed behaviour: line breaking is now disallowed between a letter
40539         or '=' and '('.
40540         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
40541         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
40542         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
40543         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
40544         * tests/uniwidth/test-uc_width2.sh: Same updates as in
40545         lib/uniwidth/width.c.
40546         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
40547         without comments, but with the original copyright notice.
40548         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
40549         changes.
40550         * lib/unictype/categ_Cc.h: Likewise.
40551         * lib/unictype/categ_Co.h: Likewise.
40552         * lib/unictype/categ_Cs.h: Likewise.
40553         * lib/unictype/categ_Lt.h: Likewise.
40554         * lib/unictype/categ_Me.h: Likewise.
40555         * lib/unictype/categ_Pc.h: Likewise.
40556         * lib/unictype/categ_Pe.h: Likewise.
40557         * lib/unictype/categ_Pf.h: Likewise.
40558         * lib/unictype/categ_Pi.h: Likewise.
40559         * lib/unictype/categ_Ps.h: Likewise.
40560         * lib/unictype/categ_Sk.h: Likewise.
40561         * lib/unictype/categ_Sm.h: Likewise.
40562         * lib/unictype/categ_Z.h: Likewise.
40563         * lib/unictype/categ_Zl.h: Likewise.
40564         * lib/unictype/categ_Zp.h: Likewise.
40565         * lib/unictype/categ_Zs.h: Likewise.
40566         * lib/unictype/ctype_blank.h: Likewise.
40567         * lib/unictype/ctype_cntrl.h: Likewise.
40568         * lib/unictype/ctype_digit.h: Likewise.
40569         * lib/unictype/ctype_space.h: Likewise.
40570         * lib/unictype/ctype_xdigit.h: Likewise.
40571         * lib/unictype/mirror.h: Likewise.
40572         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
40573         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
40574         * lib/unictype/pr_bidi_block_separator.h: Likewise.
40575         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
40576         * lib/unictype/pr_bidi_common_separator.h: Likewise.
40577         * lib/unictype/pr_bidi_control.h: Likewise.
40578         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
40579         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
40580         * lib/unictype/pr_bidi_pdf.h: Likewise.
40581         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
40582         * lib/unictype/pr_bidi_whitespace.h: Likewise.
40583         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
40584         * lib/unictype/pr_format_control.h: Likewise.
40585         * lib/unictype/pr_hex_digit.h: Likewise.
40586         * lib/unictype/pr_hyphen.h: Likewise.
40587         * lib/unictype/pr_ids_binary_operator.h: Likewise.
40588         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
40589         * lib/unictype/pr_iso_control.h: Likewise.
40590         * lib/unictype/pr_join_control.h: Likewise.
40591         * lib/unictype/pr_left_of_pair.h: Likewise.
40592         * lib/unictype/pr_line_separator.h: Likewise.
40593         * lib/unictype/pr_math.h: Likewise.
40594         * lib/unictype/pr_non_break.h: Likewise.
40595         * lib/unictype/pr_not_a_character.h: Likewise.
40596         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
40597         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
40598         * lib/unictype/pr_other_id_continue.h: Likewise.
40599         * lib/unictype/pr_other_id_start.h: Likewise.
40600         * lib/unictype/pr_other_lowercase.h: Likewise.
40601         * lib/unictype/pr_other_math.h: Likewise.
40602         * lib/unictype/pr_other_uppercase.h: Likewise.
40603         * lib/unictype/pr_paired_punctuation.h: Likewise.
40604         * lib/unictype/pr_paragraph_separator.h: Likewise.
40605         * lib/unictype/pr_pattern_syntax.h: Likewise.
40606         * lib/unictype/pr_pattern_white_space.h: Likewise.
40607         * lib/unictype/pr_private_use.h: Likewise.
40608         * lib/unictype/pr_quotation_mark.h: Likewise.
40609         * lib/unictype/pr_radical.h: Likewise.
40610         * lib/unictype/pr_soft_dotted.h: Likewise.
40611         * lib/unictype/pr_space.h: Likewise.
40612         * lib/unictype/pr_titlecase.h: Likewise.
40613         * lib/unictype/pr_variation_selector.h: Likewise.
40614         * lib/unictype/pr_white_space.h: Likewise.
40615         * lib/unictype/sy_c_ident.h: Likewise.
40616         * lib/unictype/sy_c_whitespace.h: Likewise.
40617         * lib/unictype/sy_java_whitespace.h: Likewise.
40618         * modules/uni*/*: Bump version number of expected libunistring version.
40619         Reported by Simon Josefsson.
40621 2011-01-09  Karl Heuer  <kwzh@gnu.org>
40623         useless-if-before-free: fix typo in --help and make the internal,
40624         automatic version date update process work once again.
40625         --help output contained a NUL character instead of the
40626         backslash-zero that was intended.  Also, the "must lie within
40627         the first 8 lines" line is on line 9, and hence not getting
40628         automatically updated.
40629         * build-aux/useless-if-before-free: Fix the former by adding a
40630         backslash, and the latter by condensing the three lines of what-it-does
40631         to a single line, leaving one line of slack for the future.
40633 2011-01-09  Bruno Haible  <bruno@clisp.org>
40635         uniwidth/width: Fix width of U+1D173..U+1D17A.
40636         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
40637         symbolic_width, output_width_property_test): New functions.
40638         (main): Invoke output_nonspacing_property, output_width_property_test.
40639         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
40640         U+1D173..U+1D17A.
40641         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
40642         1.
40643         * modules/uniwidth/*: Bump version number of expected libunistring
40644         version.
40645         * modules/unilbrk/*: Likewise.
40647 2011-01-08  Bruno Haible  <bruno@clisp.org>
40649         uninorm tests: Preserve copyright of Unicode data file.
40650         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
40651         Mention modifications.
40653 2011-01-08  Bruno Haible  <bruno@clisp.org>
40655         gen-uni-tables: Prepare for Unicode 5.2.0.
40656         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
40657         (debug_output_lbp, output_lbp): Update.
40659 2011-01-08  Bruno Haible  <bruno@clisp.org>
40661         unilbrk: Clarify gen-uni-tables.c code.
40662         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
40663         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
40664         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
40666 2011-01-07  Bruno Haible  <bruno@clisp.org>
40668         strtod: Restore errno when successfully parsing Infinity or NaN.
40669         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
40670         restore the original errno.
40672 2011-01-07  Bruno Haible  <bruno@clisp.org>
40674         remove test: Avoid failure on HP-UX 11.
40675         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
40677 2011-01-07  Bruno Haible  <bruno@clisp.org>
40679         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
40680         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
40681         error code.
40683 2011-01-07  Pádraig Brady  <P@draigBrady.com>
40685         ignore-value: fixup comments, and add Eric Blake
40686         as an author since he rewrote the macros.
40687         * lib/ignore-value.h (ignore_value):  State that
40688         we now support aggregates.  Also specify exactly
40689         when the GCC warn_unused_result feature was added.
40691 2011-01-06  Eric Blake  <eblake@redhat.com>
40693         ignore-value: support aggregate types
40694         * lib/ignore-value.h (ignore_value): Provide separate gcc
40695         definition.
40696         * modules/ignore-value-tests: New test module.
40697         * tests/test-ignore-value.c: New test.
40699         maint.mk: improve sc_prohibit_strcmp regex
40700         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
40701         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
40702         definition of STRNEQ.
40704         signal: work around Haiku issue with SIGBUS
40705         * lib/siglist.h: Add comment.
40706         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
40707         strsignal's favoring of SIGSEGV.
40708         * tests/test-signal.c (main): Avoid test failure.
40709         * doc/posix-headers/signal.texi (signal.h): Document the issue.
40710         Reported by Scott McCreary.
40712         maint.mk: add pre-release check to ensure submodule commits are public
40713         * top/maint.mk (public-submodule-commit): New rule.
40714         (submodule-checks): New variable.
40715         (alpha beta stable): Depend on the variable.
40717 2011-01-05  Pádraig Brady  <P@draigBrady.com>
40718         and Jim Meyering  <meyering@redhat.com>
40720         ignore-value: make ignore_value more generic; deprecate ignore_ptr
40721         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
40722         (ATTRIBUTE_DEPRECATED): Define.
40723         (_ignore_case): New function.
40724         (ignore_value): New macro, to replace the old function.
40725         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
40726         * modules/ignore-value (Depends-on): Add stdint.
40728 2011-01-04  Eric Blake  <eblake@redhat.com>
40730         doc: regenerate INSTALL
40731         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
40732         @firstparagraphindent support, now that autoconf dropped it.
40733         (INSTALL_PRELUDE): Reinstate old macro.
40734         * doc/install.texi: Resync from autoconf.
40735         * doc/INSTALL: Reflect recent autoconf update.
40736         * doc/INSTALL.ISO: Likewise.
40737         * doc/INSTALL.UTF-8: Likewise.
40738         Reported by Karl Berry.
40740 2011-01-04  Bruce Korb  <address@hidden>
40742         git-version-gen: avoid a sub-shell
40743         * build-aux/git-version-gen: Redirect stderr in `...` via
40744         "exec 2>...", rather than via an added sub-shell.
40746 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
40748         git-version-gen: use (...) rather than sh -c '...'
40749         * build-aux/git-version-gen: Rather than hard-coding a shell's name
40750         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
40752 2011-01-03  Jim Meyering  <meyering@redhat.com>
40754         git-version-gen: convert leading TABs to spaces
40755         * build-aux/git-version-gen: Expand leading TABs.
40757         git-version-gen: handle failed "git rev-list"
40758         * build-aux/git-version-gen: Rather than leaking a "fatal" error
40759         from git and proceeding as if it had succeeded but printed no SHA1
40760         checksums, suppress the diagnostic and handle the failure.
40761         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
40763         git-version-gen: include command name in one more diagnostic
40764         * build-aux/git-version-gen: When the required .tarball-version file
40765         was missing or unreadable, you might see the diagnostic from "cat",
40766         but no trace of the name of the invoking script.  Now, you still see
40767         the diagnostic from cat, but also get one from "git-version-gen: ".
40768         Inspired by a patch from Bruce Korb.
40770         update-copyright: adjust test to match changed code
40771         * tests/test-update-copyright.sh: Change test's expected output
40772         to match new actual output.
40774 2011-01-02  Bruno Haible  <bruno@clisp.org>
40776         getlogin_r: Avoid test failure on HP-UX 11.
40777         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
40778         ERANGE when the second argument is zero.
40779         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
40780         portability problem.
40782 2011-01-02  Bruce Korb  <bkorb@gnu.org>
40784         * build-aux/update-copyright: doc Simon's changes
40786 2011-01-02  Simon Josefsson  <simon@josefsson.org>
40788         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
40789         environment variable.
40791 2011-01-02  Bruno Haible  <bruno@clisp.org>
40793         unigbrk: Avoid gcc warnings.
40794         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
40795         unused variable.
40796         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
40797         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
40798         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
40799         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
40800         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
40801         Change type of first argument to 'const char *'.
40802         (main): Remove unused variable.
40803         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
40804         type of first argument to 'const char *'.
40805         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
40806         Likewise.
40807         (main): Change type of variable 's'.
40808         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
40809         to 'int'.
40811 2011-01-02  Bruno Haible  <bruno@clisp.org>
40813         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
40814         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
40815         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
40816         bug.
40817         * lib/pwrite.c: Undo 2010-12-31 patch.
40818         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
40820 2011-01-02  Bruno Haible  <bruno@clisp.org>
40822         pread: Fix test whether it works.
40823         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
40825 2011-01-02  Bruno Haible  <bruno@clisp.org>
40827         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
40828         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
40829         ends in "6". Don't require a specific month name. Try also the locale
40830         names found on HP-UX 11 and Solaris 7.
40832 2011-01-02  Bruno Haible  <bruno@clisp.org>
40834         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
40835         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
40836         C linkage.
40837         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
40839 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
40841         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
40842         for consistency, since the "cluster" term is not used elsewhere.
40843         * lib/unigbrk.in.h: Update name.
40844         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
40845         * lib/unigbrk/u16-grapheme-next.c: Update name.
40846         * lib/unigbrk/u16-grapheme-prev.c: Update name.
40847         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
40848         * lib/unigbrk/u32-grapheme-next.c: Update name.
40849         * lib/unigbrk/u32-grapheme-prev.c: Update name.
40850         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
40851         * lib/unigbrk/u8-grapheme-next.c: Update name.
40852         * lib/unigbrk/u8-grapheme-prev.c: Update name.
40853         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
40854         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
40855         Suggested by Bruno Haible.
40857 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
40859         Remove module 'u8-grapheme-len' as too redundant with
40860         'u8-grapheme-next'.
40861         * modules/unigbrk/u8-grapheme-len: Delete file.
40862         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
40863         * lib/unigbrk.in.h: Remove prototype for deleted function.
40864         * lib/unigbrk/u8-grapheme-len.c: Delete file.
40865         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
40867         Remove module 'u16-grapheme-len' as too redundant with
40868         'u16-grapheme-next'.
40869         * modules/unigbrk/u16-grapheme-len: Delete file.
40870         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
40871         * lib/unigbrk.in.h: Remove prototype for deleted function.
40872         * lib/unigbrk/u16-grapheme-len.c: Delete file.
40873         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
40875         Remove module 'u32-grapheme-len' as too redundant with
40876         'u32-grapheme-next'.
40877         * modules/unigbrk/u32-grapheme-len: Delete file.
40878         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
40879         * lib/unigbrk.in.h: Remove prototype for deleted function.
40880         * lib/unigbrk/u32-grapheme-len.c: Delete file.
40881         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
40883         Suggested by Bruno Haible.
40885 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
40887         * unigbrk.in.h: Fix typo: "ben" => "been".
40888         Reported by Bruno Haible.
40890 2011-01-01  Jim Meyering  <meyering@redhat.com>
40892         maint: update almost all copyright ranges to include 2011
40893         Run the new "make update-copyright" rule.
40895 2011-01-01  Jim Meyering  <meyering@redhat.com>
40897         maint: update-copyright: exempt doc/INSTALL*
40898         * Makefile (update-copyright): Also exclude doc/INSTALL*,
40899         since they are generated.  Suggested by Bruno Haible.
40901 2011-01-01  Jim Meyering  <meyering@redhat.com>
40903         maint: refine the update-copyright rule
40904         * Makefile (update-copyright): Also exclude any file that includes
40905         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
40906         code that merely generates the comment.
40908 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
40910         New module 'u8-grapheme-len'.
40911         * modules/unigbrk/u8-grapheme-len: New file.
40912         * modules/unigbrk/u8-grapheme-len-tests: New file.
40913         * lib/unigbrk.in.h: Add prototype for new function.
40914         * lib/unigbrk/u8-grapheme-len.c: New file.
40915         * tests/unigbrk/test-u8-grapheme-len.c: New file.
40917         New module 'u16-grapheme-len'.
40918         * modules/unigbrk/u16-grapheme-len: New file.
40919         * modules/unigbrk/u16-grapheme-len-tests: New file.
40920         * lib/unigbrk.in.h: Add prototype for new function.
40921         * lib/unigbrk/u16-grapheme-len.c: New file.
40922         * tests/unigbrk/test-u16-grapheme-len.c: New file.
40924         New module 'u32-grapheme-len'.
40925         * modules/unigbrk/u32-grapheme-len: New file.
40926         * modules/unigbrk/u32-grapheme-len-tests: New file.
40927         * lib/unigbrk.in.h: Add prototype for new function.
40928         * lib/unigbrk/u32-grapheme-len.c: New file.
40929         * tests/unigbrk/test-u32-grapheme-len.c: New file.
40931         New module 'u8-grapheme-next'.
40932         * modules/unigbrk/u8-grapheme-next: New file.
40933         * modules/unigbrk/u8-grapheme-next-tests: New file.
40934         * lib/unigbrk.in.h: Add prototype for new function.
40935         * lib/unigbrk/u8-grapheme-next.c: New file.
40936         * tests/unigbrk/test-u8-grapheme-next.c: New file.
40938         New module 'u16-grapheme-next'.
40939         * modules/unigbrk/u16-grapheme-next: New file.
40940         * modules/unigbrk/u16-grapheme-next-tests: New file.
40941         * lib/unigbrk.in.h: Add prototype for new function.
40942         * lib/unigbrk/u16-grapheme-next.c: New file.
40943         * tests/unigbrk/test-u16-grapheme-next.c: New file.
40945         New module 'u32-grapheme-next'.
40946         * modules/unigbrk/u32-grapheme-next: New file.
40947         * modules/unigbrk/u32-grapheme-next-tests: New file.
40948         * lib/unigbrk.in.h: Add prototype for new function.
40949         * lib/unigbrk/u32-grapheme-next.c: New file.
40950         * tests/unigbrk/test-u32-grapheme-next.c: New file.
40952         New module 'u8-grapheme-prev'.
40953         * modules/unigbrk/u8-grapheme-prev: New file.
40954         * modules/unigbrk/u8-grapheme-prev-tests: New file.
40955         * lib/unigbrk.in.h: Add prototype for new function.
40956         * lib/unigbrk/u8-grapheme-prev.c: New file.
40957         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
40959         New module 'u16-grapheme-prev'.
40960         * modules/unigbrk/u16-grapheme-prev: New file.
40961         * modules/unigbrk/u16-grapheme-prev-tests: New file.
40962         * lib/unigbrk.in.h: Add prototype for new function.
40963         * lib/unigbrk/u16-grapheme-prev.c: New file.
40964         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
40966         New module 'u32-grapheme-prev'.
40967         * modules/unigbrk/u32-grapheme-prev: New file.
40968         * modules/unigbrk/u32-grapheme-prev-tests: New file.
40969         * lib/unigbrk.in.h: Add prototype for new function.
40970         * lib/unigbrk/u32-grapheme-prev.c: New file.
40971         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
40973         New module 'u8-grapheme-breaks'.
40974         * modules/unigbrk/u8-grapheme-breaks: New file.
40975         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
40976         * lib/unigbrk.in.h: Add prototype for new function.
40977         * lib/unigbrk/u8-grapheme-breaks.c: New file.
40978         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
40980         New module 'u16-grapheme-breaks'.
40981         * modules/unigbrk/u16-grapheme-breaks: New file.
40982         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
40983         * lib/unigbrk.in.h: Add prototype for new function.
40984         * lib/unigbrk/u16-grapheme-breaks.c: New file.
40985         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
40987         New module 'u32-grapheme-breaks'.
40988         * modules/unigbrk/u32-grapheme-breaks: New file.
40989         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
40990         * lib/unigbrk.in.h: Add prototype for new function.
40991         * lib/unigbrk/u32-grapheme-breaks.c: New file.
40992         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
40994         New module 'ulc-grapheme-breaks'.
40995         * modules/unigbrk/ulc-grapheme-breaks: New file.
40996         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
40997         * m4/locale-ar.m4: New file.
40998         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
40999         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
41000         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
41002 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
41004         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
41005         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
41006         modified how this file was generated before I initially submitted
41007         the module, but failed to regenerate it.  This meant that several
41008         of the level2 entries were wrong.
41009         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
41010         Remove the division-by-2 that is folded into the table now that
41011         gbrkprop.h has been regenerated properly.  Now -1 entries are
41012         handled correctly.
41014         New module 'unigbrk/uc-gbrk-prop-tests'.
41015         * modules/unigbrk/uc-gbrk-prop-tests: New file.
41016         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
41017         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
41018         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
41020 2011-01-01  Bruno Haible  <bruno@clisp.org>
41022         Avoid use of hexadecimal escapes.
41023         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
41024         instead of hexadecimal escapes.
41026 2011-01-01  Jim Meyering  <meyering@redhat.com>
41028         maint: new rule to update copyright year ranges
41029         * Makefile (update-copyright): New rule.
41031         maint: indent with TABs in Makefile
41032         * Makefile: Expand leading sequences of spaces to TABs
41034         version-etc: update the copyright year it reports
41035         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
41037 2010-12-31  Bruno Haible  <bruno@clisp.org>
41039         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
41040         * lib/isfinite.c (zerof, zerod, zerol): New variables.
41041         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
41042         zero.
41044 2010-12-31  Bruno Haible  <bruno@clisp.org>
41046         pwrite: Work around HP-UX 11.11 bug.
41047         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
41048         works and set REPLACE_PWRITE if not.
41049         * lib/pwrite.c (pwrite): Add an implementation that uses the system
41050         function.
41051         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
41053 2010-12-31  Bruno Haible  <bruno@clisp.org>
41055         pread: Work around HP-UX 11 bugs.
41056         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
41057         and set REPLACE_PREAD if not.
41058         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
41060 2010-12-31  Eric Blake  <eblake@redhat.com>
41062         nl_langinfo: fix YESEXPR on Irix 6.5
41063         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
41064         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
41065         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
41066         it.
41068 2010-12-31  Bruno Haible  <bruno@clisp.org>
41070         iconv: Document HP-UX 11 bug.
41071         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
41073 2010-12-31  Bruno Haible  <bruno@clisp.org>
41075         ldexpl: Fix link error on HP-UX 11.
41076         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
41077         LDEXPL_LIBM, using $ISNANL_LIBM.
41079 2010-12-31  Eric Blake  <eblake@redhat.com>
41081         ftello: avoid compilation failure with SunStudio c89
41082         * lib/ftello.c (ftello): Use lseek, not llseek.
41084         tests: avoid failing coreutils tests on cygwin
41085         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
41086         (create_exe_shims_): Return 0 when skipping.
41088 2010-12-31  Bruno Haible  <bruno@clisp.org>
41090         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
41091         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
41093 2010-12-31  Bruno Haible  <bruno@clisp.org>
41095         waitpid: Fix link error in C++ mode.
41096         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
41098 2010-12-31  Bruno Haible  <bruno@clisp.org>
41100         isnan: Use GCC built-ins when possible.
41101         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
41102         __builtin_isnan.
41103         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
41104         (isnan): Define using GCC built-ins for GCC >= 4.0.
41106 2010-12-31  Bruno Haible  <bruno@clisp.org>
41108         isnand: Fix mistake.
41109         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
41110         __builtin_isnand.
41112 2010-12-31  Bruno Haible  <bruno@clisp.org>
41114         open: Avoid C++ error on HP-UX 11.
41115         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
41117 2010-12-31  Bruno Haible  <bruno@clisp.org>
41119         time_r: Add missing declarations on HP-UX 11.
41120         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
41121         instead of HAVE_LOCALTIME_R.
41122         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
41123         HAVE_LOCALTIME_R always.
41124         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
41125         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
41126         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
41127         HAVE_LOCALTIME_R.
41128         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
41129         * doc/posix-functions/localtime_r.texi: Likewise.
41131 2010-12-29  Eric Blake  <eblake@redhat.com>
41133         mountlist: tweak previous commit
41134         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
41135         Reported by Paul Eggert.
41137         mountlist: fix local drive detection on cygwin
41138         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
41139         that works for cygwin.
41141 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
41143         ftoastr, snprintf: ftoastr + snprintf module
41144         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
41145         since the snprintf module now should be good enough here.
41146         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
41147         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
41148         and gl_MODULE_INDICATOR([snprintf]), but the former enables
41149         GNULIB_SNPRINTF only for the test directory, and the latter
41150         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
41151         seems to suffice by itself.
41153 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
41155         alloca: one step towards thread-safety
41156         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
41157         need for a static variable.  All callers changed.  This does not
41158         make the alloca replacement thread-safe, but it's one step.
41160         tests: minor indenting change
41161         * tests/init.sh: Sync from coreutils housekeeping patch
41162         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
41163         to keep lines within 80 columns.
41165 2010-12-28  Jim Meyering  <meyering@redhat.com>
41167         regex: don't infloop on persistent failing calloc
41168         * lib/regexec.c (build_trtable): Return failure indication upon
41169         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
41170         In glibc, this was fixed for version 2.13:
41171         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
41173 2010-12-28  Bruno Haible  <bruno@clisp.org>
41174             Paul Eggert <eggert@cs.ucla.edu>
41176         linkat: Make implementation robust against system behaviour variations.
41177         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
41178         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
41179         way, and to -2 if it needs a generic runtime test.
41180         * lib/linkat.c (solaris_optimized_link_immediate,
41181         solaris_optimized_link_follow): New functions.
41182         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
41183         (check_same_link): Use it.
41185 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
41187         New module 'unigbrk/base'.
41188         * modules/unigbrk/base: New file.
41189         * lib/unigbrk.in.h: New file.
41191         New module 'unigbrk/uc-gbrk-prop'.
41192         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
41193         * modules/unigbrk/uc-gbrk-prop: New file.
41194         * lib/unigbrk/gbrkprop.h: New file.
41195         * lib/unigbrk/uc-gbrk-prop.c: New file.
41197         New module 'unigbrk/uc-is-grapheme-break'.
41198         * modules/unigbrk/uc-is-grapheme-break: New file.
41199         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
41200         * lib/unigbrk/uc-is-grapheme-break.c: New file.
41201         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
41202         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
41203         * tests/unigbrk/GraphemeBreakTest.txt: New file.
41205         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
41207 2010-12-27  Bruno Haible  <bruno@clisp.org>
41209         linkat test: Avoid failure on Solaris 11 2010-11.
41210         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
41212 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
41214         utimens: work around glibc rounding bug on more platforms
41215         * lib/utimens.c (fdutimens): Work around rounding bug even if
41216         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
41217         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
41219 2010-12-27  Bruno Haible  <bruno@clisp.org>
41221         select tests: Improve comments.
41222         * tests/test-select.c (do_select): Add comments.
41224 2010-12-27  Bruno Haible  <bruno@clisp.org>
41226         select tests: Safer way of handling timeout.
41227         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
41228         at every invocation.
41230 2010-12-27  Bruno Haible  <bruno@clisp.org>
41232         select tests: Use 'bool' where appropriate.
41233         * tests/test-select.c (connect_to_socket): Change argument type to
41234         'bool'.
41236 2010-12-27  Bruno Haible  <bruno@clisp.org>
41238         select tests: Use existing modules.
41239         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
41240         (configure.ac): Don't test for unistd.h.
41241         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
41242         declared in <unistd.h>.
41244 2010-12-27  Bruno Haible  <bruno@clisp.org>
41246         mbrtowc: Work around a Solaris 7 bug.
41247         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
41248         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
41249         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
41250         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
41251         MBRTOWC_NULL_ARG1_BUG.
41252         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
41253         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
41254         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
41255         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
41257 2010-12-27  Jim Meyering  <meyering@redhat.com>
41259         read-file.c: tweak syntax
41260         * lib/read-file.c (fread_file): Remove space after "*" in function
41261         definitions.
41263 2010-12-27  Bruno Haible  <bruno@clisp.org>
41265         times test: Avoid gcc warnings on OSF/1.
41266         * tests/test-times.c (main): Cast printf arguments from clock_t to
41267         'long int'.
41269 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
41271         utimens: work around glibc rounding bug on older Linux kernels
41272         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
41273         on Linux with a glibc whose utimes might not work, then work
41274         around a longstanding glibc bug involving rounding rather than
41275         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
41276         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
41278 2010-12-26  Bruno Haible  <bruno@clisp.org>
41280         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
41281         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
41282         _GL_CXXALIAS_SYS.
41283         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
41285 2010-12-26  Bruno Haible  <bruno@clisp.org>
41287         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
41288         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
41289         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
41290         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
41291         looking for the declaration.
41292         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
41293         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
41294         problem.
41295         * doc/posix-functions/inet_pton.texi: Likewise.
41297 2010-12-26  Bruno Haible  <bruno@clisp.org>
41299         arpa_inet: Use the common idioms with C++ support.
41300         * lib/arpa_inet.in.h: Include c++defs.h.
41301         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
41302         support.
41303         * modules/arpa_inet (Depends-on): Add c++defs.
41304         (Makefile.am): Substitute the contents of c++defs.h.
41305         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
41306         * modules/arpa_inet-c++-tests: New file.
41307         * tests/test-arpa_inet-c++.cc: New file.
41309 2010-12-25  Bruno Haible  <bruno@clisp.org>
41311         Fix more C++ link errors on Solaris 8.
41312         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
41313         $(LIB_EACCESS).
41314         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
41315         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
41316         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
41317         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
41318         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
41320 2010-12-25  Bruno Haible  <bruno@clisp.org>
41322         printf-posix: Fix link error when a non-GCC compiler is used.
41323         * lib/stdio.in.h (printf): When not using GCC, override printf
41324         correctly.
41325         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
41327 2010-12-25  Bruno Haible  <bruno@clisp.org>
41329         strerror_r-posix: Update doc.
41330         * doc/posix-functions/strerror_r.texi: Update doc about the return
41331         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
41333 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
41335         utimens: simplify the logic of the previous change
41336         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
41337         This should not affect whether the test succeeds or fails.
41339         utimens: configure better on hosts with NFS clock skew
41340         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
41341         uses the clock of the local host.  It might use the clock of the
41342         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
41343         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
41345 2010-12-25  Bruno Haible  <bruno@clisp.org>
41347         ptsname test: Avoid failure on Solaris.
41348         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
41349         open a pseudo-terminal; don't use BSD-style ptys.
41350         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
41352 2010-12-25  Bruno Haible  <bruno@clisp.org>
41354         ptsname: Avoid ERANGE failure on some systems.
41355         * lib/ptsname.c (buffer): Increase size.
41357 2010-12-25  Bruno Haible  <bruno@clisp.org>
41359         rename, renameat: Avoid test failures at NFS mounted locations.
41360         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
41361         so that subsequent mkdir calls succeed.
41363 2010-12-25  Bruno Haible  <bruno@clisp.org>
41365         iswblank: Fix C++ link error on Solaris 8.
41366         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
41367         _GL_FUNCDECL_SYS.
41369 2010-12-25  Bruno Haible  <bruno@clisp.org>
41371         unistd: Fix C++ link error on Solaris 8.
41372         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
41374 2010-12-25  Bruno Haible  <bruno@clisp.org>
41376         readlink doc: Mention an old glibc bug.
41377         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
41379 2010-12-25  Bruno Haible  <bruno@clisp.org>
41381         fcntl-h: Fix for use of C++ on glibc systems.
41382         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
41383         also on glibc systems in C++ mode.
41384         Reported by Gary V. Vaughan <gary@gnu.org>.
41386 2010-12-25  Bruno Haible  <bruno@clisp.org>
41388         roundl-ieee: Make it work on OSF/1 5.1 with cc.
41389         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
41391 2010-12-25  Bruno Haible  <bruno@clisp.org>
41393         truncl-ieee: Make it work on OSF/1 5.1 with cc.
41394         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
41395         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
41396         test whether truncl works according to ISO C 99 with IEC 60559.
41397         * m4/truncl-ieee.m4: New file.
41398         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
41399         m4/signbit.m4.
41400         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
41402 2010-12-25  Bruno Haible  <bruno@clisp.org>
41404         ceill-ieee: Make it work on OSF/1 5.1 with cc.
41405         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
41406         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
41407         test whether ceill works according to ISO C 99 with IEC 60559.
41408         * m4/ceill-ieee.m4: New file.
41409         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
41410         m4/signbit.m4.
41411         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
41413 2010-12-25  Bruno Haible  <bruno@clisp.org>
41415         Ensure all prerequisites of <wchar.h> are included.
41416         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
41417         before <wchar.h>.
41418         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
41419         gl_MBRLEN_NUL_RETVAL): Likewise.
41420         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
41421         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
41422         AC_FUNC_MBRTOWC): Likewise.
41423         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
41424         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
41425         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
41426         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
41427         Likewise.
41428         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
41429         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
41430         (gl_WCHAR_H): Improve comments.
41431         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
41433 2010-12-25  Bruno Haible  <bruno@clisp.org>
41435         strtok_r: Fix C syntax error in autoconf macro.
41436         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
41437         characters in test program.
41439 2010-12-24  Bruno Haible  <bruno@clisp.org>
41441         ceil, trunc, round: Fix gcc warnings.
41442         * lib/ceil.c (MIN): Undefine before redefining.
41443         * lib/trunc.c (MIN): Likewise.
41444         * lib/round.c (MIN): Likewise.
41445         Include <math.h> first.
41447 2010-12-24  Bruno Haible  <bruno@clisp.org>
41449         select tests: Avoid failures on OSF/1 5.1.
41450         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
41451         failure of closing the last socket; it may fail with ECONNRESET.
41453 2010-12-24  Eric Blake  <eblake@redhat.com>
41455         stdint: avoid HP-UX 10.20 preprocessor bug
41456         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
41457         than #if.
41458         * tests/test-floor2.c (main): Likewise.
41459         Reported by Peter O'Gorman.
41461         pipe: make obsoletion transition easier
41462         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
41463         * modules/pipe (Files): Include revived file.
41464         (Include): Drop reference, to mirror getdate's behavior.
41466 2010-12-24  Bruno Haible  <bruno@clisp.org>
41468         sys_socket: Hide mismatch of declarations on NonStop Kernel.
41469         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
41470         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
41471         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
41473 2010-12-24  Bruno Haible  <bruno@clisp.org>
41475         gethostname: Ensure declaration on NonStop Kernel.
41476         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
41477         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
41479 2010-12-24  Bruno Haible  <bruno@clisp.org>
41481         sys_select: Ensure all necessary types on NonStop Kernel.
41482         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
41483         include <sys/time.h>.
41484         * doc/posix-headers/sys_select.texi: Mention that it's missing on
41485         NonStop Kernel.
41486         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
41488 2010-12-24  Bruno Haible  <bruno@clisp.org>
41490         sys_select: Remove unneeded include.
41491         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
41492         have <sys/select.h>.
41494 2010-12-24  Bruno Haible  <bruno@clisp.org>
41496         gethostname: Provide a fallback for HOST_NAME_MAX.
41497         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
41498         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
41499         instead.
41500         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
41502 2010-12-24  Bruno Haible  <bruno@clisp.org>
41504         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
41505         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
41506         (SA_RESTART): Likewise.
41507         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
41509 2010-12-24  Bruno Haible  <bruno@clisp.org>
41511         signal: Define NSIG.
41512         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
41513         * tests/test-signal.c (nsig): New variable.
41514         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
41516 2010-12-24  Bruno Haible  <bruno@clisp.org>
41518         rename, renameat: Avoid test failures on OSF/1 5.1.
41519         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
41520         alternative error codes.
41521         * tests/test-renameat.c (main): Likewise.
41523 2010-12-24  Bruno Haible  <bruno@clisp.org>
41525         *printf: Detect large precisions bug on Solaris 10/SPARC.
41526         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
41527         by Paul Eggert.
41528         * tests/test-snprintf-posix.h (test_function): Add this test code here
41529         too.
41530         * tests/test-sprintf-posix.h (test_function): Likewise.
41531         * tests/test-vasnprintf-posix.c (test_function): Likewise.
41532         * tests/test-vasprintf-posix.c (test_function): Likewise.
41533         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
41534         around by gnulib.
41535         * doc/posix-functions/printf.texi: Likewise.
41536         * doc/posix-functions/snprintf.texi: Likewise.
41537         * doc/posix-functions/sprintf.texi: Likewise.
41538         * doc/posix-functions/vfprintf.texi: Likewise.
41539         * doc/posix-functions/vprintf.texi: Likewise.
41540         * doc/posix-functions/vsnprintf.texi: Likewise.
41541         * doc/posix-functions/vsprintf.texi: Likewise.
41542         * doc/posix-functions/dprintf.texi: Undo last commit.
41543         * doc/posix-functions/vdprintf.texi: Likewise.
41545 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
41547         tests: port test-fdutimensat.c to Solaris 8
41548         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
41549         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
41550         On Solaris 8, it fails with errno == ENOSYS, because there is no
41551         futimens (so it can't use the fd), and there is no lutimens (so it
41552         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
41554         vsnprintf: make more consistent with snprintf; doc fixes
41556         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
41557         the byte count return problem was promoted from the snprintf-posix
41558         to the snprintf module.
41559         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
41560         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
41561         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
41562         * tests/test-snprintf.c (main): Check the byte count returned.
41563         * tests/test-vsnprintf.c (main): Likewise.
41565 2010-12-23  Eric Blake  <eblake@redhat.com>
41567         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
41568         * modules/sigpipe (License): Relax license.
41570 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
41572         doc: document Solaris printf bug with large float precisions
41573         * doc/posix-functions/dprintf.texi (dprintf):
41574         * doc/posix-functions/fprintf.texi (fprintf):
41575         * doc/posix-functions/printf.texi (printf):
41576         * doc/posix-functions/snprintf.texi (snprintf):
41577         * doc/posix-functions/sprintf.texi (sprintf):
41578         * doc/posix-functions/vdprintf.texi (vdprintf):
41579         * doc/posix-functions/vfprintf.texi (vfprintf):
41580         * doc/posix-functions/vprintf.texi (vprintf):
41581         * doc/posix-functions/vsnprintf.texi (vsnprintf):
41582         * doc/posix-functions/vsprintf.texi (vsprintf):
41583         Mention that these functions mishandle large floating point
41584         precisions on Solaris 10.  The same bug is also present in Solaris
41585         8, and I assume earlier.  This causes "cd gnulib-tests; make
41586         check" to fail on Solaris 8 (and I assume, later) when building
41587         the latest coreutils, in test-vasprintf-posix's call to
41588         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
41589         the wide flavors (e.g., wprintf) so this patch just updates the
41590         documentation for the narrow ones.
41592         test-posixtm.c: add two tests
41593         * tests/test-posixtm.c: Add two tests, to highlight the
41594         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
41595         around this bug; this is merely to document it.
41597 2010-12-22  Bruno Haible  <bruno@clisp.org>
41599         getlogin_r: Work around portability problem on OSF/1.
41600         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
41601         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
41602         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
41603         test for a truncated result.
41604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
41605         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
41606         * modules/getlogin_r (Depends-on): Add memchr.
41607         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
41609 2010-12-22  Bruno Haible  <bruno@clisp.org>
41611         ptsname: Avoid test failure on OSF/1 5.1.
41612         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
41613         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
41614         (same_slave): New function.
41615         (main): Use it to compare ptsname's result with the expected file name.
41617 2010-12-22  Bruno Haible  <bruno@clisp.org>
41619         Port extended stdio modules to HP NonStop Kernel.
41620         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
41621         macros.
41622         * lib/fbufmode.c: Update comments.
41623         * lib/fflush.c: Likewise.
41624         * lib/fpurge.c: Likewise.
41625         * lib/freadable.c: Likewise.
41626         * lib/freadahead.c: Likewise.
41627         * lib/freading.c: Likewise.
41628         * lib/freadptr.c: Likewise.
41629         * lib/freadseek.c: Likewise.
41630         * lib/fseeko.c: Likewise.
41631         * lib/fseterr.c: Likewise.
41632         * lib/fwritable.c: Likewise.
41633         * lib/fwriting.c: Likewise.
41634         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
41636 2010-12-22  Bruno Haible  <bruno@clisp.org>
41638         ttyname_r: Work around bug on OSF/1 5.1.
41639         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
41640         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
41641         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
41642         present.
41643         * lib/ttyname_r.c (ttyname_r): Update comments.
41645 2010-12-22  Bruno Haible  <bruno@clisp.org>
41647         round: Implement result sign according to IEEE 754.
41648         * lib/round.c (MIN, MINUS_ZERO): New macros.
41649         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
41650         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
41651         * tests/test-round-ieee.c (main): Likewise.
41652         * tests/test-roundl-ieee.c (main): Likewise.
41654         trunc: Implement result sign according to IEEE 754.
41655         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
41656         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
41657         * tests/test-trunc2.c: Include minus-zero.h.
41658         (MINUS_ZERO): New macro.
41659         (trunc_reference): Keep in sync with lib/trunc.c.
41660         * tests/test-truncf2.c: Include minus-zero.h.
41661         (MINUS_ZERO): New macro.
41662         (truncf_reference): Keep in sync with lib/trunc.c.
41663         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
41664         * tests/test-trunc-ieee.c (main): Likewise.
41665         * tests/test-truncl-ieee.c (main): Likewise.
41667         ceil: Implement result sign according to IEEE 754.
41668         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
41669         (FUNC): Return -0.0 for -1 < x < 0.
41670         * tests/test-ceil2.c: Include minus-zero.h.
41671         (MINUS_ZERO): New macro.
41672         (ceil_reference): Keep in sync with lib/ceil.c.
41673         * tests/test-ceilf2.c: Include minus-zero.h.
41674         (MINUS_ZERO): New macro.
41675         (ceilf_reference): Keep in sync with lib/ceil.c.
41676         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
41677         * tests/test-ceil-ieee.c (main): Likewise.
41678         * tests/test-ceill-ieee.c (main): Likewise.
41680         floor: Implement result sign according to IEEE 754.
41681         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
41682         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
41683         * tests/test-floorf2.c (floorf_reference): Likewise.
41684         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
41685         * tests/test-floor-ieee.c (main): Likewise.
41686         * tests/test-floorl-ieee.c (main): Likewise.
41688 2010-12-22  Bruno Haible  <bruno@clisp.org>
41690         getaddrinfo: Update doc.
41691         * doc/posix-functions/gai_strerror.texi: Return type is also different
41692         on AIX and HP-UX.
41694 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
41696         getaddrinfo, inet_ntop: Update doc for Solaris.
41697         * doc/posix-functions/gai_strerror.texi: Return type is also an
41698         issue on Solaris 9 and earlier.
41699         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
41700         on Solaris 10 and earlier.
41702 2010-12-21  Bruno Haible  <bruno@clisp.org>
41704         New module 'roundl-ieee'.
41705         * modules/roundl-ieee: New file.
41706         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
41707         test whether roundl works according to ISO C 99 with IEC 60559.
41708         * m4/roundl-ieee.m4: New file.
41709         * modules/roundl-ieee-tests: New file.
41710         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
41711         * tests/test-roundl.c (main): Remove signbit tests.
41712         * modules/roundl-tests (Depends-on): Remove signbit.
41713         * doc/posix-functions/roundl.texi: Mention the new module.
41715 2010-12-21  Bruno Haible  <bruno@clisp.org>
41717         New module 'truncl-ieee'.
41718         * modules/truncl-ieee: New file.
41719         * modules/truncl-ieee-tests: New file.
41720         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
41721         * tests/test-truncl.c (main): Remove signbit tests.
41722         * modules/truncl-tests (Depends-on): Remove signbit.
41723         * doc/posix-functions/truncl.texi: Mention the new module.
41725 2010-12-21  Bruno Haible  <bruno@clisp.org>
41727         New module 'ceill-ieee'.
41728         * modules/ceill-ieee: New file.
41729         * modules/ceill-ieee-tests: New file.
41730         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
41731         * tests/test-ceill.c (main): Remove signbit tests.
41732         * modules/ceill-tests (Depends-on): Remove signbit.
41733         * doc/posix-functions/ceill.texi: Mention the new module.
41735 2010-12-21  Bruno Haible  <bruno@clisp.org>
41737         New module 'floorl-ieee'.
41738         * modules/floorl-ieee: New file.
41739         * modules/floorl-ieee-tests: New file.
41740         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
41741         * tests/test-floorl.c (main): Remove signbit tests.
41742         * modules/floorl-tests (Depends-on): Remove signbit.
41743         * doc/posix-functions/floorl.texi: Mention the new module.
41745 2010-12-21  Bruno Haible  <bruno@clisp.org>
41747         New module 'round-ieee'.
41748         * modules/round-ieee: New file.
41749         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
41750         whether round works according to ISO C 99 with IEC 60559.
41751         * m4/round-ieee.m4: New file.
41752         * modules/round-ieee-tests: New file.
41753         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
41754         * tests/test-round1.c (main): Remove signbit tests.
41755         * modules/round-tests (Depends-on): Remove 'signbit'.
41756         * doc/posix-functions/round.texi: Mention the new module.
41758 2010-12-21  Bruno Haible  <bruno@clisp.org>
41760         New module 'trunc-ieee'.
41761         * modules/trunc-ieee: New file.
41762         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
41763         whether trunc works according to ISO C 99 with IEC 60559.
41764         * m4/trunc-ieee.m4: New file.
41765         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
41766         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
41767         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
41768         * modules/trunc-ieee-tests: New file.
41769         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
41770         * tests/test-trunc1.c (main): Remove signbit tests.
41771         * modules/trunc-tests (Depends-on): Remove 'signbit'.
41772         * doc/posix-functions/trunc.texi: Mention the new module.
41774 2010-12-21  Bruno Haible  <bruno@clisp.org>
41776         New module 'ceil-ieee'.
41777         * modules/ceil-ieee: New file.
41778         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
41779         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
41780         ISO C 99 with IEC 60559.
41781         * m4/ceil-ieee.m4: New file.
41782         * modules/ceil (Files): Add lib/ceil.c.
41783         (Depends-on): Add 'float'.
41784         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41785         * lib/math.in.h (ceil): New declaration.
41786         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
41787         REPLACE_CEIL.
41788         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
41789         * modules/ceil-ieee-tests: New file.
41790         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
41791         * tests/test-math-c++.cc: Check the signature of 'ceil'.
41792         * doc/posix-functions/ceil.texi: Mention the new module.
41794 2010-12-21  Bruno Haible  <bruno@clisp.org>
41796         New module 'floor-ieee'.
41797         * modules/floor-ieee: New file.
41798         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
41799         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
41800         ISO C 99 with IEC 60559.
41801         * m4/floor-ieee.m4: New file.
41802         * modules/floor (Files): Add lib/floor.c.
41803         (Depends-on): Add 'float'.
41804         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41805         * lib/math.in.h (floor): New declaration.
41806         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
41807         REPLACE_FLOOR.
41808         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
41809         * modules/floor-ieee-tests: New file.
41810         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
41811         * tests/test-math-c++.cc: Check the signature of 'floor'.
41812         * doc/posix-functions/floor.texi: Mention the new module.
41814 2010-12-21  Bruno Haible  <bruno@clisp.org>
41816         New module 'roundf-ieee'.
41817         * modules/roundf-ieee: New file.
41818         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
41819         test whether roundf works according to ISO C 99 with IEC 60559.
41820         * m4/roundf-ieee.m4: New file.
41821         * modules/roundf-ieee-tests: New file.
41822         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
41823         * tests/test-roundf1.c (main): Remove signbit tests.
41824         * modules/roundf-tests (Depends-on): Remove 'signbit'.
41825         * doc/posix-functions/roundf.texi: Mention the new module.
41827 2010-12-21  Bruno Haible  <bruno@clisp.org>
41829         New module 'truncf-ieee'.
41830         * modules/truncf-ieee: New file.
41831         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
41832         test whether truncf works according to ISO C 99 with IEC 60559.
41833         * m4/truncf-ieee.m4: New file.
41834         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
41835         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
41836         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
41837         * modules/truncf-ieee-tests: New file.
41838         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
41839         * tests/test-truncf1.c (main): Remove signbit tests.
41840         * modules/truncf-tests (Depends-on): Remove 'signbit'.
41841         * doc/posix-functions/truncf.texi: Mention the new module.
41843 2010-12-21  Bruno Haible  <bruno@clisp.org>
41845         New module 'ceilf-ieee'.
41846         * modules/ceilf-ieee: New file.
41847         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
41848         test whether ceilf works according to ISO C 99 with IEC 60559.
41849         * m4/ceilf-ieee.m4: New file.
41850         * modules/ceilf-ieee-tests: New file.
41851         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
41852         * tests/test-ceilf1.c (main): Remove signbit tests.
41853         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
41854         * doc/posix-functions/ceilf.texi: Mention the new module.
41856 2010-12-21  Bruno Haible  <bruno@clisp.org>
41858         New module 'floorf-ieee'.
41859         * modules/floorf-ieee: New file.
41860         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
41861         test whether floorf works according to ISO C 99 with IEC 60559.
41862         * m4/floorf-ieee.m4: New file.
41863         * modules/floorf-ieee-tests: New file.
41864         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
41865         * tests/test-floorf1.c (main): Remove signbit tests.
41866         * modules/floorf-tests (Depends-on): Remove 'signbit'.
41867         * doc/posix-functions/floorf.texi: Mention the new module.
41869 2010-12-21  Bruno Haible  <bruno@clisp.org>
41871         Support for minus zero in autoconf macros.
41872         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
41873         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
41874         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
41875         * tests/minus-zero.h: Update comments.
41877 2010-12-21  Bruno Haible  <bruno@clisp.org>
41879         Tests for module 'ceil'.
41880         * modules/ceil-tests: New file.
41881         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
41882         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
41884 2010-12-21  Bruno Haible  <bruno@clisp.org>
41886         Tests for module 'floor'.
41887         * modules/floor-tests: New file.
41888         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
41889         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
41891 2010-12-21  Bruno Haible  <bruno@clisp.org>
41893         math: Fix indentation.
41894         * lib/math.in.h (floorf): Fix indentation.
41896 2010-12-21  Bruno Haible  <bruno@clisp.org>
41898         Fix cross-compilation guesses on Solaris.
41899         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
41900         not match "solaris2.10".
41901         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
41902         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
41903         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
41905 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
41907         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
41908         This fixes a problem observed with the latest coreutils snapshot
41909         that caused a test to fail on Solaris 8.  src/csplit.c's call
41910         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
41911         earlier, instead of returning the number of bytes that would have
41912         been generated; this causes csplit to incorrectly report memory
41913         exhaustion.
41914         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
41915         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
41916         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
41917         comments to match.
41918         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
41919         Fix typo in matching older versions of Solaris: "solaris2.10"
41920         is matched by the shell pattern "solaris2.[0-9]*".  This matters
41921         only for guessing while cross-compiling.
41922         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
41924 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
41926         ftoastr: fix comment again
41927         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
41928         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
41929         Also, simplify example a bit by using flags = 0.
41931 2010-12-20  Bruno Haible  <bruno@clisp.org>
41933         round*, trunc*: Update documentation regarding glibc.
41934         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
41935         * doc/posix-functions/round.texi: Likewise.
41936         * doc/posix-functions/roundl.texi: Likewise.
41937         * doc/posix-functions/truncf.texi: Likewise.
41938         * doc/posix-functions/trunc.texi: Likewise.
41939         * doc/posix-functions/truncl.texi: Likewise.
41941 2010-12-20  Bruno Haible  <bruno@clisp.org>
41943         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
41944         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
41945         * doc/posix-functions/round.texi: Likewise.
41946         * doc/posix-functions/roundl.texi: Likewise.
41948 2010-12-20  Bruno Haible  <bruno@clisp.org>
41950         ttyname_r: Add missing declaration on HP-UX 11.
41951         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
41952         HAVE_TTYNAME_R.
41953         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
41954         declared. Set HAVE_TTYNAME_R always.
41955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41956         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
41957         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
41958         HAVE_TTYNAME_R.
41959         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
41961 2010-12-20  Bruno Haible  <bruno@clisp.org>
41963         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
41964         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
41965         * doc/posix-functions/getlogin_r.texi: Likewise.
41966         * tests/test-getlogin.c: Include <errno.h>.
41967         (main): Avoid test failure on HP-UX 11.11.
41968         * tests/test-getlogin_r.c (main): Likewise.
41970 2010-12-20  Bruno Haible  <bruno@clisp.org>
41972         getlogin_r: Add missing declaration on HP-UX 11.
41973         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
41974         declared also when it exists as a function.
41975         * doc/posix-functions/getlogin_r.texi: Document this workaround.
41977 2010-12-20  Bruno Haible  <bruno@clisp.org>
41979         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
41980         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
41981         through wcrtomb.
41983 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
41985         ftoastr: fix comment
41986         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
41987         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
41989 2010-12-19  Bruno Haible  <bruno@clisp.org>
41991         isnan: Ensure it is a macro.
41992         * lib/math.in.h (isnan): Define as a macro if not already a macro.
41993         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
41994         Solaris.
41996 2010-12-19  Bruno Haible  <bruno@clisp.org>
41998         ldexpl test: Fix link error on OSF/1 5.1.
41999         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
42001 2010-12-19  Bruno Haible  <bruno@clisp.org>
42003         wctype: Make it work in C++ mode on OSF/1 5.1.
42004         * lib/wctype.in.h (iswblank): Declare but not define here.
42005         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
42006         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
42007         * modules/wctype (Files): Add lib/iswblank.c.
42009 2010-12-19  Bruno Haible  <bruno@clisp.org>
42011         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
42012         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
42013         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
42015 2010-12-19  Bruno Haible  <bruno@clisp.org>
42017         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
42018         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
42019         _POSIX_PII_SOCKET.
42020         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
42021         * doc/posix-functions/recvfrom.texi: Likewise.
42022         * doc/posix-functions/send.texi: Likewise.
42023         * doc/posix-functions/sendto.texi: Likewise.
42025 2010-12-19  Bruno Haible  <bruno@clisp.org>
42027         tcgetsid: Add missing declaration on OSF/1 5.1.
42028         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
42029         HAVE_TCGETSID.
42030         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
42031         Don't set HAVE_TCGETSID.
42032         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
42033         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
42034         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
42035         HAVE_TCGETSID.
42036         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
42038 2010-12-19  Bruno Haible  <bruno@clisp.org>
42040         stdio: Fix problem with popen() declaration on OSF/1 5.1.
42041         * lib/stdio.in.h: During the include_next statement, let recursive
42042         includes of this file include only the system header file.
42044 2010-12-19  Bruno Haible  <bruno@clisp.org>
42046         iconv_open: Fix regression from 2010-12-04.
42047         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
42048         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
42050 2010-12-19  Bruno Haible  <bruno@clisp.org>
42052         stdbool test: Avoid a gcc warning.
42053         * tests/test-stdbool.c (main): Fail if e1 is false.
42054         Reported by Jim Meyering.
42056 2010-12-19  Jim Meyering  <meyering@redhat.com>
42058         setenv: restore to working order
42059         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
42060         mistakenly removed.
42061         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
42062         HAVE_SETENV.
42063         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
42064         HAVE_SETENV.
42066 2010-12-19  Bruno Haible  <bruno@clisp.org>
42068         Document some different function declarations on OSF/1 5.1.
42069         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
42070         * doc/posix-functions/inet_ntop.texi: Likewise.
42071         * doc/posix-functions/gethostname.texi: Likewise.
42072         * lib/unistd.in.h (gethostname): Update comment.
42074 2010-12-19  Bruno Haible  <bruno@clisp.org>
42076         doc: Mention vasprintf-posix module.
42077         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
42078         the 'vasprintf-posix' module.
42079         * doc/glibc-functions/vasprintf.texi: Likewise.
42081 2010-12-19  Bruno Haible  <bruno@clisp.org>
42083         unsetenv: Add missing declaration on OSF/1 5.1.
42084         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
42085         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
42086         Don't set HAVE_UNSETENV. In the test program, set _BSD.
42087         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
42088         not HAVE_UNSETENV.
42089         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
42090         HAVE_UNSETENV.
42091         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
42093 2010-12-19  Bruno Haible  <bruno@clisp.org>
42095         setenv: Add missing declaration on OSF/1 5.1.
42096         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
42097         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
42098         declared. Don't set HAVE_SETENV.
42099         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
42100         not HAVE_SETENV.
42101         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
42102         HAVE_SETENV.
42103         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
42105 2010-12-19  Bruno Haible  <bruno@clisp.org>
42107         nl_langinfo tests: Avoid gcc warning.
42108         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
42110 2010-12-19  Bruno Haible  <bruno@clisp.org>
42112         mknod: Avoid error in C++ mode on OSF/1 with GCC.
42113         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
42114         _GL_CXXALIAS_SYS.
42116 2010-12-19  Bruno Haible  <bruno@clisp.org>
42118         stdbool: Relax test.
42119         * tests/test-stdbool.c (e): Don't require that casts from a variable's
42120         address to 'bool' work in static initializer, for compilers other than
42121         GCC.
42123 2010-12-19  Bruno Haible  <bruno@clisp.org>
42125         ftello: Add missing declaration on OSF/1 5.1.
42126         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
42127         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
42128         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
42129         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
42130         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
42132 2010-12-19  Bruno Haible  <bruno@clisp.org>
42134         fseeko: Add missing declaration on OSF/1 5.1.
42135         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
42136         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
42137         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
42138         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
42139         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
42141 2010-12-19  Bruno Haible  <bruno@clisp.org>
42143         fchdir: Add missing declaration on OSF/1 5.1.
42144         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
42145         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
42146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
42147         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
42148         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
42150 2010-12-19  Bruno Haible  <bruno@clisp.org>
42152         relocatable-prog-wrapper: Separate from relocatable-prog.
42153         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
42154         uninstall-relocwrapper rule here.
42155         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
42156         Reported by Ian Beckwith <ianb@erislabs.net>.
42158 2010-12-19  Bruno Haible  <bruno@clisp.org>
42160         unistr/u8-mbsnlen: Add missing dependency.
42161         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
42162         Reported by Ian Beckwith <ianb@erislabs.net>.
42164 2010-12-19  Bruno Haible  <bruno@clisp.org>
42166         iconv: Make it possible again to use this module without 'iconv-h'.
42167         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
42168         if it is not defined.
42169         Reported by Ian Beckwith <ianb@erislabs.net>.
42171 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
42173         acl: port to Solaris 8 when copying from tmpfs to ufs
42174         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
42175         error number.  Problem observed on Solaris 8 with latest
42176         coreutils, with "mv A B", where A is on a tmpfs file system and B
42177         is on a ufs file system.  This caused coreutils' mv/part-symlink
42178         test to fail.
42180         tests: set fail=0 at start
42181         * tests/init.sh (setup_): Move fail=0 initialization here ...
42182         (mktempd_): ... from here, so that tests can rely on fail being
42183         set to 0 initially.  This fixes a problem in coreutils; see:
42184         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
42186 2010-12-18  Bruno Haible  <bruno@clisp.org>
42188         memmem-simple: Stylistic changes.
42189         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
42190         Fix preprocessor directive indentation.
42192 2010-12-15  Pádraig Brady  <P@draigBrady.com>
42194         memmem, memmem-simple: reorganize and expand empty needle check
42195         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
42196         functional checks to memmem-simple so that one has a fully functional
42197         memmem by using just this module.
42198         Restrict the performance only check to the memmem module.
42199         Also expand the empty needle check to ensure the correct
42200         pointer is returned, not just a non NULL pointer.
42201         * doc/glibc-functions/memmem.texi: Rearrange the portability
42202         documentation to correlate with the rearranged checks.
42203         Clarify exactly how the memmem and memmem-simple modules
42204         relate to each other.
42206 2010-12-15  Pádraig Brady  <P@draigBrady.com>
42207             Bruno Haible  <bruno@clisp.org>
42209         Improve cross-compilation guesses for uClibc.
42210         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
42211         that uClibc does not have the glibc bug.
42212         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
42213         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
42215 2010-12-14  Eric Blake  <eblake@redhat.com>
42217         configmake: provide fallbacks for oldest supported autotools
42218         * m4/configmake.m4: New file.
42219         * modules/configmake (Files): Ship it.
42220         (configure.ac): Use it to guarantee fallbacks.
42222 2010-12-13  Pádraig Brady  <P@draigBrady.com>
42224         read-file: Improve handling of large files
42225         * lib/read-file.c (fread_file): Minimize realloc()s
42226         for regular files, and better manage sizes around SIZE_MAX.
42228 2010-12-13  Eric Blake  <eblake@redhat.com>
42230         cloexec, fcntl: relax license
42231         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
42232         consent from all contributors.
42233         * modules/fcntl (License): Likewise.
42235 2010-12-10  Bruno Haible  <bruno@clisp.org>
42237         Tests for module 'pipe-posix'.
42238         * modules/pipe-posix-tests: New file.
42239         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
42241 2010-12-10  Bruno Haible  <bruno@clisp.org>
42243         pipe-posix: Make it work in C++ mode.
42244         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
42245         (pipe): Use common idiom, not a macro definition.
42246         * lib/pipe.c: New file.
42247         * m4/pipe.m4: New file.
42248         * modules/pipe-posix (Description): Enhance.
42249         (Files): Add lib/pipe.c, m4/pipe.m4.
42250         (configure.ac): Invoke gl_FUNC_PIPE.
42251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
42252         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
42253         * tests/test-unistd-c++.cc: Check the signature of pipe.
42255 2010-12-10  Bruno Haible  <bruno@clisp.org>
42257         Rename module 'pipe' to 'spawn-pipe'.
42258         * modules/spawn-pipe: New file, renamed from modules/pipe.
42259         (Files, configure.ac, Makefile.am): Update.
42260         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
42261         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
42262         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
42263         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
42264         "spawn-pipe.h" instead of "pipe.h".
42265         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
42266         to gl_SPAWN_PIPE.
42267         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
42268         (Files, Makefile.am): Update.
42269         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
42270         Update.
42271         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
42272         Include "spawn-pipe.h" instead of "pipe.h".
42273         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
42274         * lib/javacomp.c: Likewise.
42275         * lib/javaversion.c: Likewise.
42276         * lib/pipe-filter-gi.c: Likewise.
42277         * lib/pipe-filter-ii.c: Likewise.
42278         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
42279         * modules/javacomp (Depends-on): Likewise.
42280         * modules/javaversion (Depends-on): Likewise.
42281         * modules/pipe-filter-gi (Depends-on): Likewise.
42282         * modules/pipe-filter-ii (Depends-on): Likewise.
42283         * MODULES.html.sh (Executing programs): Update.
42284         * NEWS: Mention the change.
42286 2010-12-10  Eric Blake  <eblake@redhat.com>
42288         pipe-posix: new module
42289         * modules/pipe-posix: New file.
42290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
42291         (gl_UNISTD_H): Check for declaration.
42292         * modules/unistd (Makefile.am): Substitute it.
42293         * lib/unistd.in.h (pipe): Provide it for mingw.
42294         * doc/posix-functions/pipe.texi (pipe): Update documentation.
42295         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
42297 2010-12-07  Bruno Haible  <bruno@clisp.org>
42299         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
42300         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
42301         u8_strcmp_gnu.
42302         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
42304 2010-12-06  Bruno Haible  <bruno@clisp.org>
42306         Update internal documentation.
42307         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
42309 2010-12-04  Bruno Haible  <bruno@clisp.org>
42311         Put more information about failed tests into the test return codes.
42312         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
42313         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
42314         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
42315         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
42316         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
42317         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
42318         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42319         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
42320         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
42321         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42322         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
42323         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
42324         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
42325         * m4/stdint.m4 (gl_STDINT_H): Likewise.
42326         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
42327         returns a bit mask.
42328         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
42329         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
42330         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
42331         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
42332         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
42333         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
42334         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
42335         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42336         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
42337         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
42338         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42339         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
42340         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
42341         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
42342         * m4/link.m4 (gl_FUNC_LINK): Likewise.
42343         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
42344         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
42345         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
42346         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
42347         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
42348         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
42349         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
42350         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
42351         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
42352         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
42353         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
42354         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
42355         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
42356         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
42357         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
42358         gl_PRINTF_PRECISION): Likewise.
42359         * m4/regex.m4 (gl_REGEX): Likewise.
42360         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
42361         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
42362         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
42363         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
42364         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
42365         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
42366         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
42367         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
42368         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
42369         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
42370         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
42371         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
42372         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
42373         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
42374         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
42375         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42376         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
42377         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
42378         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
42379         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
42380         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
42381         enumerated value.
42382         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
42384 2010-12-04  Bruno Haible  <bruno@clisp.org>
42386         Update for Solaris 11 2010-11.
42387         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
42388         Express, released in November 2010.
42390 2010-12-04  Bruno Haible  <bruno@clisp.org>
42392         nproc: Relax license.
42393         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
42394         and Paul Eggert.
42395         Requested by Ludovic Courtès <ludo@gnu.org>.
42397 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
42399         utimecmp: fine-grained src to nearby coarse-grained dest
42401         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
42402         and the source is on a file system with higher-resolution time
42403         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
42404         not work, and the time stamps are close together, the algorithm to
42405         determine the exact resolution from the read-back mtime was buggy:
42406         it had a "!=" where it should have had an "==".  This bug has been
42407         in the code ever since it was introduced to gnulib.
42408         Problem reported by Dan Jacobson in
42409         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
42411 2010-11-30  Bruno Haible  <bruno@clisp.org>
42413         strerror_r-posix: Fix autoconf test.
42414         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
42416 2010-11-28  Bruno Haible  <bruno@clisp.org>
42417             Paul Eggert  <eggert@cs.ucla.edu>
42419         Tests for module 'getdomainname'.
42420         * modules/getdomainname-tests: New file.
42421         * tests/test-getdomainname.c: New file, based on
42422         tests/test-gethostname.c.
42424 2010-11-28  Bruno Haible  <bruno@clisp.org>
42425             Paul Eggert  <eggert@cs.ucla.edu>
42427         getdomainname: Use the system function when possible.
42428         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
42429         (getdomainname): Replace if needed. Provide the declaration if it is
42430         missing. Don't use _GL_CXXALIAS_SYS_CAST.
42431         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
42432         (getdomainname): When the system has getdomainname, call the system
42433         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
42434         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
42435         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
42436         found in libnsl. Look for the declaration also in <netdb.h>. Replace
42437         the function if its second argument is of type 'int' or if it is found
42438         in libnsl.
42439         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
42440         <sys/systeminfo.h> and sysinfo().
42441         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
42442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42443         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
42444         HAVE_GETDOMAINNAME.
42445         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
42446         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
42447         * doc/glibc-functions/getdomainname.texi: Document the problems with
42448         the getdomainname declaration.
42450 2010-11-28  Bruno Haible  <bruno@clisp.org>
42452         sys_socket: Ensure ss_family field on AIX.
42453         * lib/sys_socket.in.h (ss_family): New macro definition.
42454         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
42455         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
42456         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42457         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
42458         * modules/sys_socket (Makefile.am): Substitute
42459         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
42460         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
42462 2010-11-27  Bruno Haible  <bruno@clisp.org>
42464         readline: Improve configure output.
42465         * m4/readline.m4 (gl_FUNC_READLINE): Make the
42466         "checking for readline..." result understandable.
42468 2010-11-27  Bruno Haible  <bruno@clisp.org>
42470         *printf-posix: Detect a bug on Solaris 10/x86.
42471         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
42472         for floating-point output.
42473         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
42474         directive.
42475         * tests/test-snprintf-posix.h (test_function): Likewise.
42476         * tests/test-sprintf-posix.h (test_function): Likewise.
42477         * tests/test-vasprintf-posix.c (test_function): Likewise.
42478         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
42479         * doc/posix-functions/printf.texi: Likewise.
42480         * doc/posix-functions/snprintf.texi: Likewise.
42481         * doc/posix-functions/sprintf.texi: Likewise.
42482         * doc/posix-functions/vfprintf.texi: Likewise.
42483         * doc/posix-functions/vprintf.texi: Likewise.
42484         * doc/posix-functions/vsnprintf.texi: Likewise.
42485         * doc/posix-functions/vsprintf.texi: Likewise.
42486         * doc/glibc-functions/obstack_printf.texi: Likewise.
42487         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
42489 2010-11-27  Bruno Haible  <bruno@clisp.org>
42491         Fix link error when module libunistring-optional is in use.
42492         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
42493         * modules/striconveha-tests (Makefile.am): Likewise.
42495 2010-11-27  Bruno Haible  <bruno@clisp.org>
42497         regex: Mention link dependencies.
42498         * modules/regex (Link): New section.
42499         * modules/rpmatch (Link): Likewise.
42500         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
42502 2010-11-27  Bruno Haible  <bruno@clisp.org>
42504         ftoastr: Fix compilation error on Solaris.
42505         * lib/ftoastr.c: Include <config.h>.
42507 2010-11-27  Bruno Haible  <bruno@clisp.org>
42509         getloadavg: Update documentation.
42510         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
42512 2010-11-27  Bruno Haible  <bruno@clisp.org>
42514         sys_socket: Fix test whether the functions are declared.
42515         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
42516         not <sys/select.h>.
42518 2010-11-27  Bruno Haible  <bruno@clisp.org>
42520         getpass: Make sure to get system declaration on some platforms.
42521         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
42522         gl_USE_SYSTEM_EXTENSIONS.
42523         * modules/getpass (Depends-on): Add extensions.
42525 2010-11-26  Bruno Haible  <bruno@clisp.org>
42527         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
42528         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
42529         'iconv' module is present.
42530         (ICONV_CONST): New macro.
42531         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
42532         ICONV_CONST.
42533         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
42534         set ICONV_CONST.
42535         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
42536         here.
42537         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
42538         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
42539         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
42540         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
42541         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
42542         present.
42544 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
42546         ftoastr: comment fix
42547         * lib/ftoastr.c: "little" -> "little or no" in comment
42549 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
42551         stdint: port to GCC 4.3 + OSX + Octave
42552         On this platform, stdint.h is buggy and defines int64_t to long
42553         long int.  The replacement defined it to long int, causing
42554         problems with C++ style name mangling.  Instead, trust the system
42555         definition if INT64_MAX is defined, and likewise for the unsigned
42556         variant.   Problem reported by Jarno Rajahalme in
42557         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
42558         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
42559         and don't mess with int64_t and INT64_MAX in this case.
42560         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
42562 2010-11-24  Bruno Haible  <bruno@clisp.org>
42564         doc: Corrections regarding MacOS X 10.4 and 10.5.
42565         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
42566         MacOS X.
42567         Reported by Simon Josefsson.
42569 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
42571         Uninstall ".bin" files installed by relocwrapper.
42572         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
42573         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
42574         unless it is already there.
42576 2010-11-21  Bruno Haible  <bruno@clisp.org>
42578         Update for NetBSD 5.0.
42579         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
42580         NetBSD; the test fails on NetBSD 5.0.
42581         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
42582         about NetBSD.
42584 2010-11-21  Bruno Haible  <bruno@clisp.org>
42586         Update for HP-UX 11.23 and HP-UX 11.31.
42587         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
42588         HP-UX.
42590 2010-11-21  Bruno Haible  <bruno@clisp.org>
42592         Update for MacOS X 10.5.
42593         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
42594         MacOS X; the test fails on MacOS X 10.5.8.
42595         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
42596         about MacOS X.
42598 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
42600         bootstrap: add bootstrap_sync option.
42601         See discussion at
42602         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
42603         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
42604         * build-aux/bootstrap: Accept --bootstrap-sync to update
42605         bootstrap if it is not identical to the local gnulib's
42606         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
42607         enable this by default.  Accept --no-bootstrap-sync to disable
42608         it.
42610 2010-11-20  Bruno Haible  <bruno@clisp.org>
42612         Ensure that <features.h> is included before __GLIBC__ is tested.
42613         * lib/printf-parse.h: Include <features.h>.
42614         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
42615         Reported by Mike Frysinger <vapier@gentoo.org>.
42617         Ensure that <features.h> is included before __GLIBC__ is tested.
42618         * lib/wchar.in.h: Include <features.h>.
42619         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
42620         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
42621         Reported by Mike Frysinger <vapier@gentoo.org>.
42623         Ensure that <features.h> is included before __GLIBC__ is tested.
42624         * lib/arpa_inet.in.h: Include <features.h>.
42625         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
42626         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
42627         Reported by Mike Frysinger <vapier@gentoo.org>.
42629         Ensure that <features.h> is included before __GLIBC__ is tested.
42630         * build-aux/link-warning.h: Include <features.h>.
42631         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
42632         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
42633         Reported by Mike Frysinger <vapier@gentoo.org>.
42635         Ensure that <features.h> is included before __GLIBC__ is tested.
42636         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
42637         Reported by Mike Frysinger <vapier@gentoo.org>.
42639 2010-11-20  Bruno Haible  <bruno@clisp.org>
42641         memmem: Fix autoconf test.
42642         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
42644 2010-11-20  Bruno Haible  <bruno@clisp.org>
42646         Port to uClibc.
42647         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
42648         * lib/fcntl.in.h: Likewise.
42649         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
42650         * lib/mbrtowc.c (mbrtowc): Likewise.
42651         * lib/relocatable.c (find_shared_library_fullname): Likewise.
42652         * lib/strerror_r.c: Likewise.
42653         * lib/unistr/u8-strnlen.c: Likewise.
42654         * lib/vasnprintf.c (decimal_point_char): Likewise.
42655         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
42656         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
42657         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
42658         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
42659         * tests/test-sigaction.c (handler, main): Likewise.
42660         * lib/freading.h: Treat uClibc like a non-glibc platform.
42661         * lib/freading.c: Likewise.
42662         * lib/gettext.h: Likewise.
42663         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
42664         Likewise.
42665         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
42666         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
42667         * lib/propername.c (proper_name_utf8): Likewise.
42668         * lib/spawn.in.h: Likewise.
42669         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
42670         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
42671         mem_cd_iconveh_internal): Likewise.
42672         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
42673         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
42674         strstr, strcasestr): Likewise.
42675         * lib/unicodeio.c (unicode_to_mb): Likewise.
42676         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
42677         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
42678         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
42679         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
42680         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
42681         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
42682         * lib/unistr/u8-stpncpy.c: Likewise.
42683         * lib/vasnprintf.c (VASNPRINTF): Likewise.
42684         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
42685         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
42686         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42687         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
42688         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
42689         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
42690         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
42691         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
42692         Likewise.
42693         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
42694         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
42695         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
42696         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42697         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
42698         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
42699         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
42700         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
42701         * tests/test-getopt.h (OPTIND_MIN): Likewise.
42702         * tests/test-striconveha.c (main): Likewise.
42703         * tests/test-vasnprintf-posix.c (test_function): Likewise.
42704         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
42705         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
42706         * doc/posix-functions/getline.texi: Likewise.
42707         Reported by Mike Frysinger <vapier@gentoo.org>.
42709 2010-11-20  Bruno Haible  <bruno@clisp.org>
42711         nproc: Fix condition.
42712         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
42713         HAVE_PTHREAD_AFFINITY_NP.
42715 2010-11-20  Bruno Haible  <bruno@clisp.org>
42717         Fix a comment.
42718         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
42720 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
42722         ftoastr: don't assume snprintf
42723         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
42724         Implement a subset of snprintf here, by using sprintf safely.
42725         * modules/ftoastr (Depends-on): Remove snprintf.
42727 2010-11-19  Jim Meyering  <meyering@redhat.com>
42729         test-rename.h: fix compilation failure
42730         * tests/test-rename.h (test_rename): Add omitted "}".
42732 2010-11-17  Jim Meyering  <meyering@redhat.com>
42734         maint.mk: add a URL discussing the no-@acronym policy
42735         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
42737 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
42739         ftoastr: depend on snprintf, improve comments
42740         * lib/ftoastr.c: Also mention Loitsch's draft.
42741         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
42742         needed in the current implementation, but it might simplify
42743         speeding up the code later.
42744         * modules/ftoastr: Depend on snprintf; this improves portability.
42745         Suggested by Bruno Haible in the same email.
42747         ftoastr: port to hosts lacking strtof and strtold
42748         Problem reported by Bruno Haible in
42749         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
42750         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
42751         environment and strtold (and presumably strtof) are not available.
42752         * modules/ftoastr (Files): Add m4/c-strtod.m4.
42753         (configure.ac): Require gl_C99_STRTOLD.
42755 2010-11-18  Bruno Haible  <bruno@clisp.org>
42757         c-strtold: Avoid link error on AIX 7.
42758         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
42759         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
42760         (gl_C_STRTOLD): Test whether strtold_l exists.
42761         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42763 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
42765         intprops: new macro INT_BITS_STRLEN_BOUND
42766         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
42767         ftoastr.h.  This exposes an internal of intprops.h that was formerly
42768         not exposed.  Also, it uses a slightly tighter bound than before;
42769         though this makes no practical difference, we might as well be as
42770         tight as we easily can.
42772         ftoastr: new module, for lossless conversion of floats to short strings
42773         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
42774         * modules/ftoastr: New files.
42776 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
42778         bootstrap: port to Solaris sed
42779         * build-aux/bootstrap (get_version): Port to Solaris sed.
42780         See Ralf Wildenhues's note in
42781         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
42783 2010-11-14  Jim Meyering  <meyering@redhat.com>
42785         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
42786         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
42787         and move definition closer to sole use.
42789 2010-11-13  Jim Meyering  <meyering@redhat.com>
42791         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
42792         Now we require at least autoconf-2.59, which means the work-around
42793         is no longer needed.
42794         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
42795         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
42796         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
42797         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
42798         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
42800 2010-11-13  Bruno Haible  <bruno@clisp.org>
42802         rename, renameat: Avoid test failures at NFS mounted locations.
42803         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
42804         functions.
42805         (test_rename): Use assert_nonexistent.
42806         * tests/test-rename.c: Include <dirent.h>.
42807         * tests/test-renameat.c: Likewise.
42808         Reported by Gary V. Vaughan <gary@gnu.org>.
42810         rename, renameat: Document Linux bug with NFS
42811         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
42812         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
42813         * doc/posix-functions/renameat.texi: Likewise.
42814         Suggested by Eric Blake.
42816 2010-11-13  Bruno Haible  <bruno@clisp.org>
42818         rename test: Add comments.
42819         * tests/test-rename.h (test_rename): Add structure and comments.
42821 2010-11-13  Eric Blake  <eblake@redhat.com>
42823         maintainer-makefile: cover a few more files
42824         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
42825         scripts generated within C files, for libvirt.
42827 2010-11-13  Bruno Haible  <bruno@clisp.org>
42829         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
42830         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
42831         character, return the number of bytes that belong together, not always
42832         1.
42833         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
42834         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
42835         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
42836         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
42837         number of bytes of an invalid character.
42838         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
42839         (main): Invoke it.
42840         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
42841         results.
42842         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
42843         malformed byte sequences.
42844         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
42845         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
42846         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
42847         Reported by Ben Pfaff and Paolo Bonzini.
42849 2010-11-13  Bruno Haible  <bruno@clisp.org>
42851         openat: Work around glibc bug with fchownat() and empty file names.
42852         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
42853         (gl_FUNC_FCHOWNAT): Invoke it.
42854         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
42855         * doc/posix-functions/fchownat.texi: Document the glibc bug.
42856         Reported by Gary V. Vaughan <gary@gnu.org>.
42858 2010-11-13  Bruno Haible  <bruno@clisp.org>
42860         openat: Ensure autoconf macro ordering.
42861         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
42862         gl_USE_SYSTEM_EXTENSIONS.
42863         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
42865 2010-11-13  Bruno Haible  <bruno@clisp.org>
42867         Update comments.
42868         * lib/unistr/u8-check.c: Update file name in comments.
42869         * lib/unistr/u8-mblen.c: Likewise.
42870         * lib/unistr/u8-prev.c: Likewise.
42871         * lib/unistr/u8-strmblen.c: Likewise.
42872         * lib/unistr/u8-strmbtouc.c: Likewise.
42874 2010-11-13  Jim Meyering  <meyering@redhat.com>
42876         tests: avoid test failure on Solaris 10 due to lack of PATH export
42877         * tests/test-update-copyright.sh: Don't forget to export PATH.
42879         init.sh: ensure that IFS is defined, just in case...
42880         * tests/init.sh (setup_): Ensure that IFS is defined,
42881         so that saving and restoring it works as expected.  This
42882         appears to be useful at least for an old version of dash
42883         from a long time ago (RH 6).  See here for details:
42884         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
42886         maint.mk: tighten "test a == b" check
42887         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
42888         test to files that contain something like #!/bin/sh.
42889         Without this, coreutils would get two false positives in
42890         the comments of C source files.
42892 2010-11-12  Eric Blake  <eblake@redhat.com>
42894         bootstrap: fix typo in previous attempt
42895         * build-aux/bootstrap (buildreq): Correct the grouping.
42896         Reported by Paul Eggert.
42898         maintainer-makefile: prohibit test x == x
42899         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
42900         Based on a report by Matthias Bolte.
42902         bootstrap: allow FreeBSD gzip
42903         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
42904         which has no '.' and goes to stderr.
42905         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
42906         Reported by Matthias Bolte.
42908         maintainer-makefile: check for i18n setup
42909         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
42910         will likely work.
42912 2010-11-12  Bruno Haible  <bruno@clisp.org>
42914         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
42915         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
42916         * lib/nanosleep.c (nanosleep): Likewise.
42918 2010-11-11  Bruno Haible  <bruno@clisp.org>
42920         fcntl-h: Fix for use of C++ on glibc systems.
42921         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
42922         also on glibc systems in C++ mode.
42923         Reported by Gary V. Vaughan <gary@gnu.org>.
42925 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
42927         mknod: avoid false failure with dash
42928         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
42930 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
42932         unlink: Fix "is it should" typo in diagnostic.
42933         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
42934         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
42936 2010-11-11  Bruno Haible  <bruno@clisp.org>
42938         Tests for module 'strerror_r-posix'.
42939         * modules/strerror_r-posix-tests: New file.
42940         * tests/test-strerror_r.c: New file.
42941         * tests/test-string-c++.cc: Check the signature of strerror_r.
42943         New module 'strerror_r-posix'.
42944         * lib/string.in.h (strerror_r): New declaration.
42945         * lib/strerror_r.c: New file.
42946         * m4/strerror_r.m4: New file.
42947         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
42948         of strerror_r.
42949         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
42950         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
42951         * modules/strerror_r-posix: New file.
42952         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
42953         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
42954         * doc/posix-functions/strerror_r.texi: Mention the new module and the
42955         portability problems.
42957 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
42959         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
42960         line is also considered for output. Quoted function name in shell
42961         command, so temporary files for functions like MyClass::operator()
42962         are removed correctly without errors.
42964 2010-11-09  Bruno Haible  <bruno@clisp.org>
42966         * doc/posix-functions/strerror.texi: List more failing platforms.
42968         * doc/posix-functions/strerror.texi: Add a comment.
42970 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
42972         fdopendir: fix bug on MacOS X when low on file descriptors
42974         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
42975         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
42976         All callers changed.
42977         (fdopendir): Invoke save_cwd at the top level, not after using
42978         multiple dup() calls to use up file descriptors.  Then retry
42979         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
42980         less than the maximum number of open file descriptors, because
42981         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
42982         on Mac OS X 10.6.4 for tar 1.24
42983         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
42984         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
42985         and for tar 1.25
42986         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
42988 2010-11-07  Bruno Haible  <bruno@clisp.org>
42990         vasnprintf: Support I flag on glibc systems.
42991         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
42992         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
42993         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
42994         snprintf function.
42995         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
42996         glibc systems.
42997         * tests/test-vasnprintf-posix3.c: New file.
42998         * modules/vasnprintf-posix-tests (Files): Add it.
42999         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
43001 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
43003         [html] Fix copy/paste bug: Use unique name for compiler warnings.
43004         * MODULES.html.sh: For compiler warnings, use name
43005         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
43007 2010-11-05  Eric Blake  <eblake@redhat.com>
43009         ceil, floor: avoid spurious failure with icc
43010         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
43011         [denormals-as-zero] when optimizing without -mieee-fp option.
43012         * tests/test-floorf2.c (floorf_reference): Likewise.
43013         * tests/test-ceilf1.c (dummy): New function.
43014         (main): Use it to outsmart icc's optimization.
43015         * tests/test-floorf1.c (dummy, main): Likewise.
43017         tests: require working signbit
43018         * modules/ceilf-tests (Depends-on): Add signbit.
43019         * modules/ceill-tests (Depends-on): Likewise.
43020         * modules/floorf-tests (Depends-on): Likewise.
43021         * modules/floorl-tests (Depends-on): Likewise.
43022         * modules/round-tests (Depends-on): Likewise.
43023         * modules/roundf-tests (Depends-on): Likewise.
43024         * modules/roundl-tests (Depends-on): Likewise.
43025         * modules/trunc-tests (Depends-on): Likewise.
43026         * modules/truncf-tests (Depends-on): Likewise.
43027         * modules/truncl-tests (Depends-on): Likewise.
43029         strtod: work around icc bug
43030         * lib/strtod.c (minus_zero): Define to working value.
43031         (strtod): Use it to avoid icc bug.
43033         copysign: enhance tests
43034         * modules/copysign-tests (Files): Add minus-zero.h.
43035         * tests/test-copysign.c (main): Also test zeros.
43037 2010-11-04  Eric Blake  <eblake@redhat.com>
43039         ceil, floor, round, trunc: enhance tests of -0
43040         * tests/test-ceilf1.c (main): Ensure correct sign of result.
43041         * tests/test-ceill.c (main): Likewise.
43042         * tests/test-floorf1.c (main): Likewise.
43043         * tests/test-floorl.c (main): Likewise.
43044         * tests/test-round1.c (main): Likewise.
43045         * tests/test-roundf1.c (main): Likewise.
43046         * tests/test-roundl.c (main): Likewise.
43047         * tests/test-trunc1.c (main): Likewise.
43048         * tests/test-truncf1.c (main): Likewise.
43049         * tests/test-truncl.c (main): Likewise.
43051 2010-11-04  Eric Blake  <eblake@redhat.com>
43053         frexp, tests: work around ICC bug with -zero
43054         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
43055         works with more compilers.
43056         * tests/minus-zero.h: New file.
43057         * modules/ceilf-tests (Files): Include it.
43058         * modules/ceill-tests (Files): Likewise.
43059         * modules/floorf-tests (Files): Likewise.
43060         * modules/floorl-tests (Files): Likewise.
43061         * modules/frexp-nolibm-tests (Files): Likewise.
43062         * modules/frexp-tests (Files): Likewise.
43063         * modules/frexpl-nolibm-tests (Files): Likewise.
43064         * modules/frexpl-tests (Files): Likewise.
43065         * modules/isnan-tests (Files): Likewise.
43066         * modules/isnand-nolibm-tests (Files): Likewise.
43067         * modules/isnand-tests (Files): Likewise.
43068         * modules/isnanf-nolibm-tests (Files): Likewise.
43069         * modules/isnanf-tests (Files): Likewise.
43070         * modules/isnanl-nolibm-tests (Files): Likewise.
43071         * modules/isnanl-tests (Files): Likewise.
43072         * modules/round-tests (Files): Likewise.
43073         * modules/roundf-tests (Files): Likewise.
43074         * modules/roundl-tests (Files): Likewise.
43075         * modules/ldexpl-tests (Files): Likewise.
43076         * modules/signbit-tests (Files): Likewise.
43077         * modules/snprintf-posix-tests (Files): Likewise.
43078         * modules/sprintf-posix-tests (Files): Likewise.
43079         * modules/strtod-tests (Files): Likewise.
43080         * modules/trunc-tests (Files): Likewise.
43081         * modules/truncf-tests (Files): Likewise.
43082         * modules/truncl-tests (Files): Likewise.
43083         * modules/vsnprintf-posix-tests (Files): Likewise.
43084         * modules/vsprintf-posix-tests (Files): Likewise.
43085         * modules/vasnprintf-posix-tests (Files): Likewise.
43086         * modules/vasprintf-posix-tests (Files): Likewise.
43087         * tests/test-ceilf1.c (main): Use it.
43088         * tests/test-ceill.c (main): Likewise.
43089         * tests/test-floorf1.c (main): Likewise.
43090         * tests/test-floorl.c (main): Likewise.
43091         * tests/test-frexp.c (main): Likewise.
43092         * tests/test-frexpl.c (main): Likewise.
43093         * tests/test-isnan.c (main): Likewise.
43094         * tests/test-isnand.h (main): Likewise.
43095         * tests/test-isnanf.h (main): Likewise.
43096         * tests/test-isnanl.h (main): Likewise.
43097         * tests/test-ldexpl.c (main): Likewise.
43098         * tests/test-round.c (main): Likewise.
43099         * tests/test-roundf.c (main): Likewise.
43100         * tests/test-roundl.c (main): Likewise.
43101         * tests/test-signbit.c (test_signbitf, test_signbitd)
43102         (test_signbitl): Likewise.
43103         * tests/test-snprintf-posix.h (test_function): Likewise.
43104         * tests/test-sprintf-posix.h (test_function): Likewise.
43105         * tests/test-strtod.c (main): Likewise.
43106         * tests/test-trunc1.c (main): Likewise.
43107         * tests/test-truncf1.c (main): Likewise.
43108         * tests/test-truncl.c (main): Likewise.
43110         isnanl: work around icc bug
43111         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
43113 2010-11-03  Eric Blake  <eblake@redhat.com>
43115         tests: fix compiler warnings
43116         * tests/test-getopt.h (test_getopt): Fix condition.
43117         * tests/test-getopt_long.h (test_getopt_long): Likewise.
43118         * tests/test-pipe2.c (main): Likewise.
43119         * tests/test-quotearg-simple.c (main): Avoid icc warning.
43121         utimens: fix broken m4 test
43122         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
43124 2010-10-28  Bruno Haible  <bruno@clisp.org>
43126         posix_spawn*, getdtablesize: Relax license.
43127         * modules/posix_spawn (License): Change to LGPLv2+.
43128         * modules/posix_spawnp (License): Likewise.
43129         * modules/posix_spawn-internal (License): Likewise.
43130         * modules/posix_spawnattr_init (License): Likewise.
43131         * modules/posix_spawnattr_getflags (License): Likewise.
43132         * modules/posix_spawnattr_setflags (License): Likewise.
43133         * modules/posix_spawnattr_getpgroup (License): Likewise.
43134         * modules/posix_spawnattr_setpgroup (License): Likewise.
43135         * modules/posix_spawnattr_getschedparam (License): Likewise.
43136         * modules/posix_spawnattr_setschedparam (License): Likewise.
43137         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
43138         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
43139         * modules/posix_spawnattr_getsigdefault (License): Likewise.
43140         * modules/posix_spawnattr_setsigdefault (License): Likewise.
43141         * modules/posix_spawnattr_getsigmask (License): Likewise.
43142         * modules/posix_spawnattr_setsigmask (License): Likewise.
43143         * modules/posix_spawnattr_destroy (License): Likewise.
43144         * modules/posix_spawn_file_actions_init (License): Likewise.
43145         * modules/posix_spawn_file_actions_addclose (License): Likewise.
43146         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
43147         * modules/posix_spawn_file_actions_addopen (License): Likewise.
43148         * modules/posix_spawn_file_actions_destroy (License): Likewise.
43149         * modules/getdtablesize (License): Likewise.
43150         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
43152 2010-10-26  Bruno Haible  <bruno@clisp.org>
43154         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
43155         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
43156         Cygwin and mingw.
43157         Suggested by Eric Blake.
43159 2010-10-26  Bruno Haible  <bruno@clisp.org>
43161         stdio: Work around compilation error due to renameat() on Solaris 10.
43162         * lib/stdio.in.h: Include <unistd.h> on Solaris.
43163         * lib/renameat.c: Don't include <unistd.h> here.
43164         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
43165         Reported by Paul Eggert and Eric Blake.
43167 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
43169         renameat: port to Solaris 10, which declares renameat in unistd.h
43171         * lib/renameat.c: Include unistd.h before stdio.h, because
43172         Solaris 10 declares renameat in unistd.h.  Problem encountered
43173         when building GNU tar 1.24 on Solaris 10.
43175 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
43177         fdopendir: fix C89 compilation
43178         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
43179         compilers.
43181 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
43183         inttostr: simplify by removing unnecessary redundancy
43184         * lib/anytostr.c: Don't include verify.h.
43185         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
43186         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
43187         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
43188         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
43189         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
43190         Likewise.
43191         * modules/inttostr (Depends-on): Remove 'verify'.
43193 2010-10-23  Bruno Haible  <bruno@clisp.org>
43195         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
43196         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
43197         Reported by Eric Blake.
43199 2010-10-23  Bruno Haible  <bruno@clisp.org>
43201         Tests: Fix LOCALE_JA on MirBSD 10.
43202         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
43203         to an UTF-8 locale.
43204         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
43205         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43206         Reported by Eric Blake.
43208 2010-10-21  Bruno Haible  <bruno@clisp.org>
43210         nl_langinfo test: Avoid test failure on NetBSD 5.
43211         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
43212         Reported by Eric Blake.
43214 2010-10-21  Eric Blake  <eblake@redhat.com>
43216         c-stack: work around libsigsegv 2.8 bug
43217         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
43218         overflow on at least PowerPC64.
43220 2010-10-17  Bruno Haible  <bruno@clisp.org>
43222         userspec: Drop redundant file.
43223         * modules/userspec (Files): Remove lib/inttostr.h.
43225 2010-10-17  Bruno Haible  <bruno@clisp.org>
43227         nl_langinfo tests: Silence some warnings.
43228         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
43229         Reported by Jim Meyering.
43231 2010-10-17  Bruno Haible  <bruno@clisp.org>
43233         Make use of GCC's attribute __alloc_size__.
43234         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
43235         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
43236         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
43237         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
43238         __alloc_size__.
43239         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
43240         Suggested by Jim Meyering.
43242 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
43244         bootstrap: anchor .gitignore entries.
43245         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
43246         with...
43247         (insert_vc_ignore): ... this new function, which prepends `/' to
43248         all .gitignore entries before passing them to
43249         insert_sorted_if_absent.
43251 2010-10-16  Bruno Haible  <bruno@clisp.org>
43253         nextafter: Fix configure check.
43254         * modules/nextafter (configure.ac): Correct expected prototype.
43256 2010-10-16  Bruno Haible  <bruno@clisp.org>
43258         termios: Update documentation.
43259         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
43261 2010-10-16  Bruno Haible  <bruno@clisp.org>
43263         tests: Make them compile with TinyCC.
43264         * tests/test-strstr.c (main): Remove parentheses around array
43265         initializer.
43267 2010-10-15  Eric Blake  <eblake@redhat.com>
43269         ignore-value: make header idempotent
43270         * lib/ignore-value.h: Add double-inclusion guards.
43271         Reported by Stefan Berger.
43273 2010-10-15  Jim Meyering  <meyering@redhat.com>
43275         GNUmakefile: handle "stable" target, not "major"
43276         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
43277         lists in maint.mk and announce-gen.  Without this, "make stable"
43278         would fail to ensure that $(VERSION) is up to date.
43280 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
43282         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
43283         & co.
43285 2010-10-14  Bruno Haible  <bruno@clisp.org>
43287         vasnprintf: Don't set errno to 0.
43288         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
43289         block that sets it to 0.
43290         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
43292 2010-10-14  Bruno Haible  <bruno@clisp.org>
43294         socketlib: Fix.
43295         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
43296         gl_PREREQ_SYS_H_WINSOCK2.
43297         Reported by Ian Beckwith <ianb@erislabs.net>.
43299 2010-10-13  Jim Meyering  <meyering@redhat.com>
43301         test-select-stdin.c: avoid warn_unused_result warnings
43302         * tests/test-select-stdin.c: Include "macros.h".
43303         ASSERT that read and fflush succeed.
43305 2010-10-13  Jim Meyering  <meyering@redhat.com>
43307         git-version-gen: do require git-VC'd files in cwd
43308         * build-aux/git-version-gen: Reject a git version string
43309         if there are no commits associated with the current directory.
43310         This avoids an unlikely false-positive (unrelated dir whose parent
43311         repository also contains a tag matching v*), as pointed out
43312         by Giuseppe Scrivano in
43313         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
43315 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
43317         argv-iter: omit nonconforming declaration
43318         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
43319         enum arg_iter_err declaration, which doesn't conform to C99.
43320         Solaris 10 cc warns about this.
43322 2010-10-13  Eric Blake  <eblake@redhat.com>
43324         termios: fix compilation on mingw
43325         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
43326         (gl_TERMIOS_H): Adjust it on mingw.
43327         * modules/termios (Makefile.am): Substitute new key.
43328         * lib/termios.in.h (includes): Make include_next conditional.
43329         * doc/posix-headers/termios.texi (termios.h): Update
43330         documentation.
43331         Reported by Daniel P. Berrange.
43333 2010-10-13  Jim Meyering  <meyering@redhat.com>
43335         git-version-gen: don't require that .git/ be in the current dir
43336         * build-aux/git-version-gen: Adjust this script so that it works
43337         when run from any working directory beneath the top-level .git/-
43338         containing directory.  Inspired by a patch from Giuseppe Scrivano,
43339         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
43341         test-select: avoid warn_unused_result warnings
43342         * tests/test-select.c: Include "macros.h".
43343         ASSERT that each call to read, write, and pipe succeeds.
43344         While not technically required, also check each "close".
43345         * modules/select-tests (Files): Add tests/macros.h.
43347         test-symlinkat: remove declaration of unused local
43348         * tests/test-symlinkat.c (main): Remove unused local, "buf".
43350         test-inttostr: avoid shadowing warnings
43351         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
43352         and use malloc rather than the stack for the same reason as
43353         mentioned in the comment justifying the other allocation.
43355 2010-10-11  Bruno Haible  <bruno@clisp.org>
43357         stdlib: Allow multiple gnulib generated replacements to coexist.
43358         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
43359         Reported by Sam Steingold <sds@gnu.org>.
43361 2010-10-11  Jim Meyering  <meyering@redhat.com>
43363         fix a documentation typo
43364         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
43366 2010-10-11  Eric Blake  <eblake@redhat.com>
43368         futimens: work around Solaris 11 bug
43369         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
43370         * tests/test-futimens.h (test_futimens): Enhance, rather than
43371         weaken test.
43372         * doc/posix-functions/futimens.texi (futimens): Document the bug.
43374 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
43376         Indentation.
43377         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
43378         higher-level operators more to the left.
43380 2010-10-11  Jim Meyering  <meyering@redhat.com>
43382         test-futimens: avoid unwarranted test failure on Solaris 5.11
43383         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
43384         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
43385         because it tries to dereference the NULL name argument.
43387 2010-10-11  Bruno Haible  <bruno@clisp.org>
43389         Indentation.
43390         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
43391         indentation.
43393 2010-10-11  Jim Meyering  <meyering@redhat.com>
43395         spawn.in.h: make indentation consistent with parentheses
43396         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
43397         Make indentation consistent with parentheses.
43399 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
43401         Fix mismatched parens in previous commit
43402         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
43403         parens.
43405 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
43407         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
43409         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
43410         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
43411         * lib/malloca.c: Include "verify.h".
43412         (verify1): Remove, replacing with a verify call.
43413         * lib/relocwrapper.c (verify1): Likewise.
43414         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
43415         Likewise.
43416         * modules/malloca (Depends-on): Add 'verify'.
43417         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
43418         * modules/vasnprintf (Depends-on): Add 'verify'.
43419         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43420         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43421         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43422         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43423         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43424         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43425         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43427         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
43429         Formerly the style was sometimes 2*X - 1, because the C standard
43430         was wrongly thought to disallow ?: in integral constant expressions.
43431         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
43432         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
43433         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
43434         * lib/stdint.in.h (_verify_intmax_size): Likewise.
43435         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
43436         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
43437         verify that time_t cannot be floating.
43439 2010-10-08  Eric Blake  <eblake@redhat.com>
43441         time: enforce recent POSIX ruling that time_t is integral
43442         * lib/time.in.h (__time_t_must_be_integral): Detect any
43443         problematic systems, allowing the rest of gnulib to assume POSIX.
43445 2010-10-08  Jim Meyering  <meyering@redhat.com>
43447         fdopendir: fix a bug on systems lacking openat and /proc support
43448         OpenBSD 4.7 is one such system.  The most noticeable effect was
43449         failure of any application making nontrivial use of fts: rm, du,
43450         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
43451           ./rm: traversal failed: `a': Bad file descriptor
43452         Debugging that, you see that even though FD 6 was closed just
43453         prior to the opendir call in fd_clone_opendir, its resulting
43454         dir->dd_fd was 8, rather than the expected value of 6:
43456         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
43457         93                close (fd);
43458         (gdb) n
43459         94                dir = fd_clone_opendir (dupfd);
43460         (gdb) n
43461         95                saved_errno = errno;
43462         (gdb) p dir->dd_fd
43463         $11 = 8
43465         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
43466         The problem is that on OpenBSD, fd_clone_opendir has to resort
43467         to using the old-style save/restore CWD mechanism, due to its
43468         lack of openat/proc support, and *that* would steal the FD (6)
43469         that opendir was supposed to use.
43471         The fix is to squirrel away the desired FD so that save_cwd uses a
43472         different one, and then free the dest FD right before calling opendir.
43473         That guarantees opendir will use the required file descriptor.
43475         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
43477 2010-10-08  Bruno Haible  <bruno@clisp.org>
43479         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
43480         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
43482 2010-10-08  Bruno Haible  <bruno@clisp.org>
43484         nanosleep: Make replacement POSIX compliant.
43485         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
43486         is out of range.
43487         Reported by Jim Meyering.
43489 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
43491         bootstrap: add hook for altering gnulib.mk, for Bison
43492         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
43493         the Bison bootstrapping process can rewrite file names and variables
43494         in this file before later parts of 'bootstrap' use the file.
43495         Bison wants to include lib/gnulib.mk from the top-level makefile,
43496         so it needs the file names in this file to be relative to the top
43497         level, not relative to lib; plus it needs variable names to be
43498         rewritten.
43499         (slurp): Use the new function.
43501         bootstrap: reformat for readability
43502         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
43504 2010-10-08  Eric Blake  <eblake@redhat.com>
43506         docs: update cygwin progress
43507         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
43508         1.7.7.
43509         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
43510         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
43511         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
43512         * doc/posix-functions/carg.texi (carg): Likewise.
43513         * doc/posix-functions/cargf.texi (cargf): Likewise.
43514         * doc/posix-functions/casin.texi (casin): Likewise.
43515         * doc/posix-functions/casinf.texi (casinf): Likewise.
43516         * doc/posix-functions/casinh.texi (casinh): Likewise.
43517         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
43518         * doc/posix-functions/catan.texi (catan): Likewise.
43519         * doc/posix-functions/catanf.texi (catanf): Likewise.
43520         * doc/posix-functions/catanh.texi (catanh): Likewise.
43521         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
43522         * doc/posix-functions/ccos.texi (ccos): Likewise.
43523         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
43524         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
43525         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
43526         * doc/posix-functions/cexp.texi (cexp): Likewise.
43527         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
43528         * doc/posix-functions/cimag.texi (cimag): Likewise.
43529         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
43530         * doc/posix-functions/clog.texi (clog): Likewise.
43531         * doc/posix-functions/clogf.texi (clogf): Likewise.
43532         * doc/posix-functions/conj.texi (conj): Likewise.
43533         * doc/posix-functions/conjf.texi (conjf): Likewise.
43534         * doc/posix-functions/cpow.texi (cpow): Likewise.
43535         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
43536         * doc/posix-functions/cproj.texi (cproj): Likewise.
43537         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
43538         * doc/posix-functions/creal.texi (creal): Likewise.
43539         * doc/posix-functions/crealf.texi (crealf): Likewise.
43540         * doc/posix-functions/csin.texi (csin): Likewise.
43541         * doc/posix-functions/csinf.texi (csinf): Likewise.
43542         * doc/posix-functions/csinh.texi (csinh): Likewise.
43543         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
43544         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
43545         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
43546         * doc/posix-functions/ctan.texi (ctan): Likewise.
43547         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
43548         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
43549         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
43550         * doc/posix-headers/complex.texi (complex.h): Likewise.
43552 2010-10-07  Jim Meyering  <meyering@redhat.com>
43554         parse-datetime: avoid compilation failure on OpenBSD 4.7
43555         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
43556         This works around a compilation failure on OpenBSD 4.7:
43557         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
43559 2010-10-07  Eric Blake  <eblake@redhat.com>
43561         docs: update cygwin progress
43562         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
43563         1.7.6.
43564         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
43565         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
43566         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
43567         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
43568         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
43569         Likewise.
43570         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
43571         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
43572         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
43573         Likewise.
43574         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
43575         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
43576         Likewise.
43577         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
43578         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
43579         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
43580         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
43581         Likewise.
43582         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
43583         Likewise.
43584         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
43586         docs: update parse-datetime history
43587         * doc/parse-datetime.texi (Authors of parse_datetime): Better
43588         documentation of this function's history and alternatives.
43590         cygwin: use more robust version check
43591         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
43592         exclude an eventual cygwin 1.9.1.
43593         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
43594         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
43595         (gl_FUNC_STRCASESTR): Likewise.
43596         Reported by Bruno Haible.
43598 2010-10-06  Bruno Haible  <bruno@clisp.org>
43600         string, sys_select: Avoid #including large headers unless necessary.
43601         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
43602         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
43603         OSF/1, BeOS, Haiku.
43604         Reported by Jim Meyering.
43606 2010-10-05  Eric Blake  <eblake@redhat.com>
43608         memmem, strstr, strcasestr: fix bug with long periodic needle
43609         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
43610         periodic needle having false positive.
43611         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
43612         and cygwin 1.7.7.
43613         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
43614         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
43615         (gl_FUNC_STRCASESTR): Likewise.
43616         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
43617         * tests/test-memmem.c (main): Expose the bug.
43618         * tests/test-strcasestr.c (main): Likewise.
43619         * tests/test-strstr.c (main): Likewise.
43620         * tests/test-c-strcasestr.c (main): Likewise.
43621         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
43622         * doc/posix-functions/strstr.texi (strstr): Likewise.
43623         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43624         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
43626 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
43628         parse-datetime: do some more renaming
43629         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
43630         parse_datetime, not get_date.  Mention the renaming.
43631         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
43632         in comments.
43633         * m4/bison.m4: Likewise.
43635 2010-10-05  Eric Blake  <eblake@redhat.com>
43637         parse-datetime: better name than get_date
43638         * NEWS: Reword the deprecation notice.
43639         * modules/get_date: Rename to modules/parse-datetime.
43640         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
43641         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
43642         * lib/get_date.y: Rename to lib/parse-datetime.y.
43643         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
43644         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
43645         * doc/getdate.texi: Provide fallback wrapper.
43646         * lib/getdate.h: Move guts, and wrap...
43647         * lib/parse-datetime.h: ...new file.
43648         * lib/parse-datetime.y (get_date): Rename...
43649         (parse_datetime): ...to this.
43650         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
43651         (gl_PARSE_DATETIME): ...to this.
43652         * doc/posix-functions/getdate.texi (get_date): Provide fallback
43653         documentation.
43654         * modules/getdate (Files): Provide fallback docs and header.
43655         (Notice, Depends-on): Update references.
43656         * tests/test-parse-datetime.c: Likewise.
43657         * DEPENDENCIES: Likewise.
43658         * MODULES.html.sh (Date and time <time.h>): Likewise.
43659         * doc/parse-datetime.texi (Date input formats)
43660         (Authors of parse_datetime): Likewise.
43661         * modules/parse-datetime (Files, configure.ac, Makefile.am)
43662         (Include): Likewise.
43663         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
43664         * gnulib-tool: Likewise.
43665         * m4/bison.m4 (gl_BISON): Likewise.
43666         Suggested by Bruno Haible.
43668 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
43670         more ports to Solaris tr, which needs [] around ranges
43671         * gnulib-tool: Solaris tr needs [] around ranges.
43672         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
43673         * tests/test-pipe-filter-gi1.c (main): Likewise.
43674         * tests/test-pipe-filter-ii1.c (main): Likewise.
43676 2010-10-05  Eric Blake  <eblake@redhat.com>
43678         bootstrap: fix Solaris regression
43679         * build-aux/bootstrap (check_versions): Solaris tr still needs []
43680         around ranges.
43681         Reported by Pádraig Brady.
43683         bootstrap: work with pkg-config
43684         * build-aux/bootstrap (check_versions): Also transliterate - in
43685         prerequisite name.
43686         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
43687         prerequisites that were already found, to avoid confusion.
43688         Reported by Justin Clift.
43690         faccessat: remove unused wrappers
43691         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
43692         presence of these wrappers dragged in -lgen on Solaris.
43693         Reported by Clemens Brogi; fix suggested by Paul Eggert.
43695 2010-10-05  Jim Meyering  <meyering@redhat.com>
43697         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
43698         * Makefile (sc_pragma_columns): New syntax-check rule.
43700 2010-10-04  Bruno Haible  <bruno@clisp.org>
43702         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
43703         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
43704         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
43705         Reported by Bruce Korb and Eric Blake.
43707 2010-10-04  Bruno Haible  <bruno@clisp.org>
43709         threadlib: Make option --with-libpth-prefix work.
43710         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
43711         use $LIBPTH, not just -lpth.
43713 2010-10-04  Bruno Haible  <bruno@clisp.org>
43715         Avoid line length limitation from HP NonStop system header files.
43716         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
43717         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
43718         * lib/ctype.in.h: Likewise.
43719         * lib/dirent.in.h: Likewise.
43720         * lib/errno.in.h: Likewise.
43721         * lib/fcntl.in.h: Likewise.
43722         * lib/float.in.h: Likewise.
43723         * lib/getopt.in.h: Likewise.
43724         * lib/iconv.in.h: Likewise.
43725         * lib/inttypes.in.h: Likewise.
43726         * lib/langinfo.in.h: Likewise.
43727         * lib/locale.in.h: Likewise.
43728         * lib/math.in.h: Likewise.
43729         * lib/netdb.in.h: Likewise.
43730         * lib/netinet_in.in.h: Likewise.
43731         * lib/poll.in.h: Likewise.
43732         * lib/pthread.in.h: Likewise.
43733         * lib/pty.in.h: Likewise.
43734         * lib/sched.in.h: Likewise.
43735         * lib/se-selinux.in.h: Likewise.
43736         * lib/search.in.h: Likewise.
43737         * lib/signal.in.h: Likewise.
43738         * lib/spawn.in.h: Likewise.
43739         * lib/stdarg.in.h: Likewise.
43740         * lib/stddef.in.h: Likewise.
43741         * lib/stdint.in.h: Likewise.
43742         * lib/stdio.in.h: Likewise.
43743         * lib/stdlib.in.h: Likewise.
43744         * lib/string.in.h: Likewise.
43745         * lib/strings.in.h: Likewise.
43746         * lib/sys_file.in.h: Likewise.
43747         * lib/sys_ioctl.in.h: Likewise.
43748         * lib/sys_select.in.h: Likewise.
43749         * lib/sys_socket.in.h: Likewise.
43750         * lib/sys_stat.in.h: Likewise.
43751         * lib/sys_time.in.h: Likewise.
43752         * lib/sys_times.in.h: Likewise.
43753         * lib/sys_utsname.in.h: Likewise.
43754         * lib/sys_wait.in.h: Likewise.
43755         * lib/sysexits.in.h: Likewise.
43756         * lib/termios.in.h: Likewise.
43757         * lib/time.in.h: Likewise.
43758         * lib/unistd.in.h: Likewise.
43759         * lib/wchar.in.h: Likewise.
43760         * lib/wctype.in.h: Likewise.
43761         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
43762         * modules/ctype (Makefile.am): Likewise.
43763         * modules/dirent (Makefile.am): Likewise.
43764         * modules/errno (Makefile.am): Likewise.
43765         * modules/fcntl-h (Makefile.am): Likewise.
43766         * modules/float (Makefile.am): Likewise.
43767         * modules/getopt-posix (Makefile.am): Likewise.
43768         * modules/iconv-h (Makefile.am): Likewise.
43769         * modules/inttypes (Makefile.am): Likewise.
43770         * modules/langinfo (Makefile.am): Likewise.
43771         * modules/locale (Makefile.am): Likewise.
43772         * modules/math (Makefile.am): Likewise.
43773         * modules/netdb (Makefile.am): Likewise.
43774         * modules/netinet_in (Makefile.am): Likewise.
43775         * modules/poll-h (Makefile.am): Likewise.
43776         * modules/pthread (Makefile.am): Likewise.
43777         * modules/pty (Makefile.am): Likewise.
43778         * modules/sched (Makefile.am): Likewise.
43779         * modules/search (Makefile.am): Likewise.
43780         * modules/selinux-h (Makefile.am): Likewise.
43781         * modules/signal (Makefile.am): Likewise.
43782         * modules/spawn (Makefile.am): Likewise.
43783         * modules/stdarg (Makefile.am): Likewise.
43784         * modules/stddef (Makefile.am): Likewise.
43785         * modules/stdint (Makefile.am): Likewise.
43786         * modules/stdio (Makefile.am): Likewise.
43787         * modules/stdlib (Makefile.am): Likewise.
43788         * modules/string (Makefile.am): Likewise.
43789         * modules/strings (Makefile.am): Likewise.
43790         * modules/sys_file (Makefile.am): Likewise.
43791         * modules/sys_ioctl (Makefile.am): Likewise.
43792         * modules/sys_select (Makefile.am): Likewise.
43793         * modules/sys_socket (Makefile.am): Likewise.
43794         * modules/sys_stat (Makefile.am): Likewise.
43795         * modules/sys_time (Makefile.am): Likewise.
43796         * modules/sys_times (Makefile.am): Likewise.
43797         * modules/sys_utsname (Makefile.am): Likewise.
43798         * modules/sys_wait (Makefile.am): Likewise.
43799         * modules/sysexits (Makefile.am): Likewise.
43800         * modules/termios (Makefile.am): Likewise.
43801         * modules/time (Makefile.am): Likewise.
43802         * modules/unistd (Makefile.am): Likewise.
43803         * modules/wchar (Makefile.am): Likewise.
43804         * modules/wctype (Makefile.am): Likewise.
43806 2010-10-04  Bruno Haible  <bruno@clisp.org>
43808         read-file tests: Avoid a test failure on NonStop Kernel.
43809         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
43810         a regular file.
43811         Reported by Joachim Schmitz <schmitz@hp.com>.
43813 2010-10-03  Bruno Haible  <bruno@clisp.org>
43815         gnulib-tool: Fixes for --create-testdir with --libtool.
43816         * gnulib-tool (func_get_automake_snippet): Don't augment
43817         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
43818         an executable.
43819         (func_create_testdir): Handle module 'alloca' like func_import.
43820         Reported by Bruce Korb <bruce.korb@gmail.com>.
43822 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
43824         Avoid some lines longer than 80 characters.
43825         * lib/stdint.in.h: Break long comment lines.
43826         * lib/math.in.h: Likewise.
43827         (_GL_NUM_UINT_WORDS): New macro, for readability.
43828         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
43829         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
43830         * lib/stdlib.in.h: Likewise.
43831         * lib/spawn.in.h: Likewise.
43832         * lib/sys_socket.in.h: Update an URL.
43833         * lib/sys_stat.in.h: Break long line.
43835 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
43837         Improve pmccabe2html.
43838         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
43839         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
43840         when the sources change. Remove the line in the HTML about "Used
43841         ranges" (which implied that there might be other unused ranges),
43842         rename "Resume" to "Summary" (easier to understand for more users).
43843         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
43844         styles, and some unnecessary blank lines.
43846 2010-10-03  Bruno Haible  <bruno@clisp.org>
43847             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
43849         acl: Add support for ACLs on NonStop Kernel.
43850         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
43851         Check whether the function aclsort() exists.
43852         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
43853         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
43854         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
43855         (acl_nontrivial [HAVE_ACLSORT]: New function.
43856         (file_has_acl): Implement for NonStop Kernel.
43857         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
43858         (qset_acl): Implement for NonStop Kernel.
43859         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
43860         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
43861         (main): Implement for NonStop Kernel.
43862         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
43863         Kernel. Handle this flavor.
43864         * tests/test-set-mode-acl.sh: Likewise.
43865         * tests/test-copy-acl.sh: Likewise.
43866         * tests/test-copy-file.sh: Likewise.
43868 2010-10-03  Bruno Haible  <bruno@clisp.org>
43870         Info about ACLs on NonStop Kernel.
43871         * doc/acl-resources.txt: Add info about NonStop Kernel.
43872         References by Joachim Schmitz <schmitz@hp.com>.
43874 2010-10-02  Bruno Haible  <bruno@clisp.org>
43876         Define missing EDQUOT on NonStop Kernel.
43877         * lib/errno.in.h (EDQUOT): Assign a value if missing.
43878         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
43879         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
43880         missing.
43881         * doc/posix-headers/errno.texi: Mention the NSK bug.
43882         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
43883         Reported by Joachim Schmitz <schmitz@hp.com>.
43885 2010-10-02  Bruno Haible  <bruno@clisp.org>
43887         Update doc for POSIX:2008.
43888         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
43889         Update URL of POSIX specification.
43891 2010-10-02  Bruno Haible  <bruno@clisp.org>
43893         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
43894         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
43895         from gnulib, not from Automake.
43897 2010-10-02  Bruno Haible  <bruno@clisp.org>
43899         New module 'system-posix'.
43900         * modules/system-posix: New file.
43901         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
43902         module is present.
43903         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
43904         GNULIB_SYSTEM_POSIX.
43905         * modules/stdlib (Depends-on): Remove sys_wait.
43906         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
43907         * doc/posix-functions/system.texi: Mention the new module.
43908         * doc/posix-headers/stdlib.texi: Likewise.
43909         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
43910         define test_sys_wait_macros to a no-op.
43911         Reported by Sam Steingold <sds@gnu.org>.
43913 2010-09-30  Bruno Haible  <bruno@clisp.org>
43915         More renaming from 'getdate' to 'get_date'.
43916         * doc/get_date.texi: Renamed from doc/getdate.texi.
43917         * modules/get_date (Files): Update.
43918         * MODULES.html.sh (Date and time <time.h>): Update.
43919         * DEPENDENCIES: Update.
43920         * gnulib-tool: Update comment.
43921         * m4/bison.m4 (gl_BISON): Likewise.
43922         * m4/get_date.m4 (gl_GET_DATE): Likewise.
43924 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
43926         bootstrap: support ACLOCAL_FLAGS during aclocal
43927         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
43928         can add additional -I dir for third-party .m4 files.
43930 2010-09-30  Eric Blake  <eblake@redhat.com>
43932         bootstrap: use glibtoolize on MacOS
43933         * build-aux/bootstrap (check_versions): Convert libtool into
43934         libtoolize.
43935         (tool search): Move libtool check earlier, and look for
43936         glibtoolize for MacOS.
43937         (gnulib_tool_options): Auto-add --libtool when appropriate.
43938         Reported by Justin Clift.
43940         poll: fix typo that broke test on MacOS
43941         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
43942         Reported by Justin Clift.
43944         getdate: rename to get_date
43945         Note: getdate.h is not renamed, to minimize client impact.
43946         * modules/getdate: Mark obsolete.  Move old contents...
43947         * modules/get_date: ...to new module name.
43948         * modules/getdate-tests: Move...
43949         * modules/get_date-tests: ...here.
43950         * m4/getdate.m4: Move...
43951         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
43952         * lib/getdate.y: Move...
43953         * lib/get_date.y: ...here.
43954         * tests/test-getdate.c: Move...
43955         * tests/test-get_date.c: ...here.
43956         * doc/posix-functions/getdate.texi (getdate): Update name.
43957         * NEWS: Mention the change.
43959 2010-09-29  Bruno Haible  <bruno@clisp.org>
43961         Separate the module 'waitpid' from the module 'sys_wait'.
43962         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
43963         present.
43964         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
43965         gl_MODULE_INDICATOR_FOR_TESTS.
43966         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
43967         * modules/sys_wait (Depends-on): Remove waitpid.
43968         (Makefile.am): Substitute GNULIB_WAITPID.
43969         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
43970         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
43971         signature only if the 'waitpid' module is present.
43972         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
43973         * NEWS: Mention the change.
43974         * modules/grantpt (Depends-on): Add waitpid.
43975         * modules/wait-process (Depends-on): Likewise.
43977 2010-09-29  Bruno Haible  <bruno@clisp.org>
43979         More tests for module 'sys_wait'.
43980         * modules/sys_wait-c++-tests: New file.
43981         * tests/test-sys_wait-c++.cc: New file.
43982         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
43983         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
43985 2010-09-29  Bruno Haible  <bruno@clisp.org>
43987         New module 'waitpid'.
43988         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
43989         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
43990         Don't include <process.h>.
43991         (waitpid): Declare only, using modern idiom.
43992         * m4/waitpid.m4: New file.
43993         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
43994         * modules/waitpid: New file.
43995         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
43996         (Makefile.am): Update.
43997         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
43999 2010-09-28  Bruno Haible  <bruno@clisp.org>
44001         poll: Assume ANSI C.
44002         * lib/poll.c (poll): Use an ANSI C declaration.
44004 2010-09-28  Bruno Haible  <bruno@clisp.org>
44006         poll-h: Create poll.h on all platforms.
44007         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
44008         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
44009         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
44010         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
44011         (gl_REPLACE_POLL_H): Don't set POLL_H.
44012         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
44013         * modules/poll-h (Depends-on): Add include_next.
44014         (Makefile.am): Create poll.h unconditionally. Substitute also
44015         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
44017 2010-09-28  Bruno Haible  <bruno@clisp.org>
44019         Tests for module 'poll-h'.
44020         * modules/poll-h-c++-tests: New file.
44021         * tests/test-poll-h-c++.cc: New file.
44023         Tests for module 'poll-h'.
44024         * modules/poll-h-tests: New file.
44025         * tests/test-poll-h.c: New file.
44027 2010-09-28  Bruno Haible  <bruno@clisp.org>
44029         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
44030         * modules/poll-h (Depends-on): Add 'extensions'.
44032 2010-09-28  Bruno Haible  <bruno@clisp.org>
44034         New module 'poll-h'.
44035         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
44036         (poll): Use modern idiom.
44037         * modules/poll-h: New file.
44038         * modules/poll (Files): Remove lib/poll.in.h.
44039         (Depends-on): Add poll-h.
44040         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
44041         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
44042         * m4/poll_h.m4: New file.
44043         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
44044         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
44045         and invoke gl_REPLACE_POLL_H.
44046         * lib/poll.c: Use common idiom.
44047         * tests/test-poll.c: Likewise.
44048         * doc/posix-headers/poll.texi: Mention the poll-h module.
44049         Suggested by Eric Blake.
44051 2010-09-26  Bruno Haible  <bruno@clisp.org>
44053         sys_wait: Implement WSTOPSIG.
44054         * lib/sys_wait.in.h (WSTOPSIG): New macro.
44055         Reported by Simon Josefsson.
44057 2010-09-26  Simon Josefsson  <simon@josefsson.org>
44059         stdlib, sys_wait: Avoid compilation error on mingw.
44060         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
44062 2010-09-26  Bruno Haible  <bruno@clisp.org>
44064         stdlib tests: Avoid code duplication.
44065         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
44066         * modules/sys_wait-tests (Files): Likewise.
44067         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
44068         * tests/test-stdlib.c: Include test-sys_wait.h.
44069         (main): Invoke test_sys_wait_macros.
44070         * tests/test-sys_wait.c: Include test-sys_wait.h.
44071         (main): Invoke test_sys_wait_macros.
44073 2010-09-25  Simon Josefsson  <simon@josefsson.org>
44075         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
44076         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
44077         sure Windows sockets are working before calling getaddrinfo.
44078         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
44079         * doc/gnulib.texi (Windows sockets): Fix typo.
44081 2010-09-25  Bruno Haible  <bruno@clisp.org>
44083         Tests for module 'regex-quote'.
44084         * modules/regex-quote-tests: New file.
44085         * tests/test-regex-quote.c: New file.
44087         New module 'regex-quote'.
44088         * lib/regex-quote.h: New file.
44089         * lib/regex-quote.c: New file.
44090         * modules/regex-quote: New file.
44091         Suggested by Reuben Thomas <rrt@sc3d.org>.
44093 2010-09-24  Bruno Haible  <bruno@clisp.org>
44095         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
44096         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
44098 2010-09-23  Bruno Haible  <bruno@clisp.org>
44100         setenv: Relax license.
44101         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
44102         Blake.
44103         Requested by Eric Blake.
44105 2010-09-22  Bruno Haible  <bruno@clisp.org>
44107         termios: Relax license.
44108         * modules/termios (License): Change to LGPLv2+.
44109         Requested by Eric Blake.
44111 2010-09-22  Bruno Haible  <bruno@clisp.org>
44113         threadlib: Allow the package to change the default to 'no'.
44114         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
44115         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
44116         Reported by Paul Eggert.
44118 2010-09-22  Pádraig Brady  <P@draigbrady.com>
44119             Bruno Haible  <bruno@clisp.org>
44121         Fix endless loop in mbmemcasecoll.
44122         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
44123         byte.
44124         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
44126 2010-09-22  Bruno Haible  <bruno@clisp.org>
44128         Tests for module 'memcoll'.
44129         * modules/memcoll-tests: New file.
44130         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
44132         memcoll, xmemcoll: Clarify size vs. length.
44133         * modules/memcoll.c (memcoll0): Clarify specification.
44134         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
44135         passed to collate_error.
44137 2010-09-22  Bruno Haible  <bruno@clisp.org>
44139         Tests for module 'memcasecmp'.
44140         * modules/memcasecmp-tests: New file.
44141         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
44143 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
44145         * lib/pthread.in.h: Add split double-inclusion guard, and include
44146         system <pthread.h> if there is one.  Use @@-style as in other
44147         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
44148         pthread.h doesn't.
44149         (pthread_mutexattr_destroy, pthread_mutexattr_init):
44150         (pthread_mutexattr_settype, pthread_mutex_trylock):
44151         New static inline functions, if there's no system <pthread.h>.
44152         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
44153         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
44154         Approximate with mutexes if the system lacks spinlocks, as in
44155         MacOS.
44156         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
44157         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
44158         @@-style.  Check for spinlocks separately.
44159         (gl_PTHREAD_DEFAULTS): New macro.
44160         * modules/pthread: Redo to use a more typical style for in.h files.
44162 2010-09-21  Eric Blake  <eblake@redhat.com>
44164         net_if: enhance tests
44165         * tests/test-net_if.c (main): Move signature checks earlier.
44166         Print failures to stderr.
44167         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
44168         Document the bug that we do not yet fix.
44170 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
44172         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
44173         about gnulib, not GSS.
44175 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
44177         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
44178         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
44179         for Emacs.
44180         * build-aux/pmccabe2html: Make Makefile.am example code more
44181         cut-and-paste friendly.
44183 2010-09-21  Simon Josefsson  <simon@josefsson.org>
44185         * tests/test-net_if.c: New file.
44186         * modules/net_if-tests: New file.
44188 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
44190         pthread: add pthread_spin_destroy
44191         * lib/pthread.in.h (pthread_spin_destroy): New function.
44193 2010-09-19  Bruno Haible  <bruno@clisp.org>
44195         gnulib-tool: Fix --help output.
44196         * gnulib-tool (func_usage): Fix help message.
44197         Reported by Reuben Thomas <rrt@sc3d.org>.
44199 2010-09-18  Jim Meyering  <meyering@redhat.com>
44201         maint.mk: avoid unexpanded \n in two diagnostics
44202         * top/maint.mk (sc_prohibit_always_true_header_tests):
44203         Don't use a literal \n in a halt=... assignment.  It would not be
44204         expanded, and the two \n bytes would appear in the diagnostic output
44205         rather than the desired newline.  Use halt=$$(printf ... instead.
44206         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
44208 2010-09-18  Bruno Haible  <bruno@clisp.org>
44210         netinet_in: Doc tweak.
44211         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
44212         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
44214 2010-09-18  Jim Meyering  <meyering@redhat.com>
44216         init.sh: correct an outdated comment
44217         * tests/init.sh (create_exe_shims_):  s/function/alias/
44219         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
44220         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
44221         a file named "*.exe" is removed between the glob expansion and the
44222         processing of that oddly named file.
44224 2010-09-17  Eric Blake  <eblake@redhat.com>
44226         mirbsd: add some more support
44227         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
44228         in BSD family.
44229         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
44230         devices as OpenBSD.
44231         * m4/host-os.m4 (mirbsd): Add MirBSD.
44233         tests: fix unportable assumption on sys/wait.h
44234         * tests/test-sys_wait.c (main): Relax test.
44235         * tests/test-stdlib.c (main): Likewise.
44237         init.sh: accommodate directory with no .exes
44238         * tests/init.sh: Accomodate directory containing only scripts.
44240         tests: avoid compiler warning
44241         * tests/test-stdlib.c (main): Use the variable.
44243         fdutimens, fdutimensat: update signature, again
44244         * lib/utimens.h (gl_futimens): Delete, and move signature...
44245         (fdutimens): ...here.
44246         (fdutimensat): Rearrange signature.
44247         (lutimensat): Rename variable for clarity.
44248         * lib/fdutimensat.c (fdutimensat): Update signature.
44249         * lib/utimens.c (fdutimens): Likewise.
44250         (gl_futimens): Delete.
44251         (utimens, lutimens): Update callers.
44252         * lib/futimens.c (futimens): Likewise.
44253         * tests/test-fdutimensat.c: Likewise.
44254         * tests/test-utimens.c: Likewise.
44255         * tests/test-futimens.h: Update comment.
44256         * NEWS: Mention this.
44257         Suggested by Paul Eggert.
44259 2010-09-17  Bruno Haible  <bruno@clisp.org>
44261         Take over the maintenance of some older macros from Autoconf.
44262         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
44263         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
44264         GNU Autoconf.
44265         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
44266         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
44268 2010-09-17  Eric Blake  <eblake@redhat.com>
44270         fdutimensat: drop atflag validation
44271         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
44272         with valid fd, to close a race scenario where futimens is
44273         unsupported and FILE was replaced by a symlink.
44274         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
44275         accordingly.
44276         Suggested by Paul Eggert.
44278 2010-09-16  Bruno Haible  <bruno@clisp.org>
44280         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
44281         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
44283 2010-09-16  Bruno Haible  <bruno@clisp.org>
44285         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
44286         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
44287         login_tty exists.
44288         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
44290 2010-09-16  Bruno Haible  <bruno@clisp.org>
44292         login_tty: Make the replacement code work on BSD systems.
44293         * lib/login_tty.c: Include <sys/ioctl.h>.
44294         (login_tty): Use ioctl TIOCSCTTY when available.
44295         * modules/login_tty (Depends-on): Add sys_ioctl.
44296         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
44298 2010-09-16  Bruno Haible  <bruno@clisp.org>
44300         login_tty: Stricter unit test.
44301         * modules/login_tty-tests (Depends-on): Add tcgetsid.
44302         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
44303         and tcgetsid() after login_tty.
44304         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
44306 2010-09-16  Bruno Haible  <bruno@clisp.org>
44308         New module 'tcgetsid'.
44309         * lib/tcgetsid.c: New file.
44310         * m4/tcgetsid.m4: New file.
44311         * modules/tcgetsid: New file.
44312         * modules/termios (Depends-on): Add c++defs, warn-on-use.
44313         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
44314         GNULIB_TCGETSID, HAVE_TCGETSID.
44315         * lib/termios.in.h: Include <sys/types.h>.
44316         (tcgetsid): New declaration.
44317         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
44318         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
44319         * doc/posix-functions/tcgetsid.texi: Mention the new module.
44320         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
44322 2010-09-16  Bruno Haible  <bruno@clisp.org>
44324         Tests for module 'termios'.
44325         * modules/termios-c++-tests: New file.
44326         * modules/termios-tests: New file.
44327         * tests/test-termios-c++.cc: New file.
44328         * tests/test-termios.c: New file.
44330         New module 'termios'.
44331         * modules/termios: New file.
44332         * lib/termios.in.h: New file.
44333         * m4/termios_h.m4: New file.
44334         * doc/posix-headers/termios.texi: Mention the new module.
44336 2010-09-16  Eric Blake  <eblake@redhat.com>
44338         fdutimensat: add an atflag parameter
44339         * lib/fdutimensat.c (fdutimensat): Add new parameter.
44340         * lib/utimens.h (fdutimensat): Update prototype.
44341         * tests/test-fdutimensat.c: Adjust test to match.
44342         * NEWS: Document the change.
44343         Suggested by Paul Eggert.
44345 2010-09-16  Bruno Haible  <bruno@clisp.org>
44347         Fix typos in comments.
44348         * lib/striconveh.h: Fix typo in comment.
44349         * lib/login_tty.c (login_tty): Likewise.
44351 2010-09-15  Bruno Haible  <bruno@clisp.org>
44353         stdlib: clarify MirBSD WEXITSTATUS bug
44354         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
44355         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
44357 2010-09-15  Eric Blake  <eblake@redhat.com>
44359         stdlib: work around MirBSD WEXITSTATUS bug
44360         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
44361         * modules/stdlib (Depends-on): Add sys_wait.
44362         * tests/test-sys_wait.c (main): Enhance test.
44363         * tests/test-stdlib.c (main): Likewise.
44364         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
44366         docs: mention MacOS issue with WEXITSTATUS(constant)
44367         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
44368         issue.
44369         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
44371         strnlen: add tests
44372         * modules/strnlen-tests: New file.
44373         * tests/test-strnlen.c: Likewise.
44375 2010-09-14  Bruno Haible  <bruno@clisp.org>
44377         unistr/base: Avoid link errors when module 'libunistring' is also used.
44378         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
44379         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
44380         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
44381         Declare also when HAVE_LIBUNISTRING is set.
44382         Reported by Pádraig Brady <P@draigbrady.com>.
44384 2010-09-14  Eric Blake  <eblake@redhat.com>
44386         test-rawmemchr: make more robust
44387         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
44388         (Depends-on, configure.ac): Add needed prerequisites to use it.
44389         * modules/memchr-tests (Files, Depends-on, configure.ac):
44390         Likewise, to avoid implicit reliance on memchr module prereqs.
44391         * tests/test-memchr.c (main): Ensure proper masking.
44392         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
44393         reads.
44395         memchr: detect glibc Alpha bug
44396         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
44397         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
44398         Alpha.
44399         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
44400         * tests/test-memchr.c (main): Enhance test.
44401         Reported by Nelson H. F. Beebe.
44403 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
44405         fts, getcwd, glob: audit for dirfd returning -1
44406         * lib/fts.c (opendir): Remove #define; no longer used.
44407         (opendirat): New arg PDIR_FD.  All callers changed.
44408         (fts_build, _opendir2): Use new opendirat to avoid the need for
44409         dirfd, or for checking whether dirfd returns a negative value.
44410         Don't use opendir; always use openat followed by fdopendir.
44411         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
44412         it.
44413         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
44414         returns -1 here.
44415         * modules/fts (Depends-on): Remove dirfd.
44416         * modules/getcwd (Depends-on): Likewise.
44418 2010-09-13  Eric Blake  <eblake@redhat.com>
44420         float: fix broken MirBSD header
44421         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
44422         * doc/posix-headers/float.texi (float.h): Document it.
44424 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
44426         fts: use O_NOFOLLOW to avoid race condition when opening a directory
44427         * lib/fts.c (opendirat): New arg extra_flags.
44428         (__opendir2): Use it to avoid following symlinks when opening
44429         a directory, if symlinks are not supposed to be followed.  See
44430         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
44432         fdopendir: preserve argument fd before returning
44433         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
44434         (fdopendir_with_dup, fd_clone_opendir): New static functions.
44435         (fdopendir): Use them, arranging for FD to be open to the same
44436         directory that it was when it started.  (It might be temporarily
44437         closed while fdopendir is running, so this not thread- or
44438         signal-safe.)  Be careful to do the right thing even when file
44439         descriptors are scarce and dup fails with errno == EMFILE.  See
44440         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
44442 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
44444         regex: Pass the system regex if its only problem is 32-bit regoff_t.
44445         * NEWS: Document change.
44446         * m4/regex.m4: Disable test for regoff_t size.
44448 2010-09-13  Jim Meyering  <meyering@redhat.com>
44450         fts: don't operate on an invalid file descriptor after failed dup
44451         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
44452         negative file descriptor.
44454 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
44456         savedir: add streamsavedir, deprecate fdsavedir
44457         * NEWS: Mention deprecation of fdsavedir.
44458         * lib/savedir.c (streamsavedir): New extern function, whose name
44459         ends in "savedir" to be consistent with the others.  This differs
44460         from savedirstream in that it doesn't close its argument.  The
44461         next version of GNU tar will use this instead of fdsavedir, to
44462         avoid some race conditions and conserve file descriptors.
44463         (savedirstream): Reimplement as a wrapper around streamsavedir.
44464         (fdsavedir): Add a comment deprecating this function.  As far as
44465         I know, only GNU tar used it, and GNU tar doesn't need it any more.
44466         * lib/savedir.h (streamsavedir): New decl.
44467         (fdsavedir): Add a comment deprecating this.
44469 2010-09-10  Bruno Haible  <bruno@clisp.org>
44471         langinfo: Fix last commit.
44472         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
44473         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
44474         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44476 2010-09-10  Bruno Haible  <bruno@clisp.org>
44478         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
44479         * lib/progreloc.c (O_EXEC): Define fallback.
44481 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
44483         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
44484         * NEWS: Document recent changes to fcntl-h.
44485         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
44486         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
44487         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
44488         Similarly for O_SEARCH; this last was already true, but not documented.
44489         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
44490         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
44491         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
44492         Likewise.
44493         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
44494         is zero, not whether it is defined.
44495         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
44496         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
44497         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
44499 2010-09-10  Bruno Haible  <bruno@clisp.org>
44501         langinfo, nl_langinfo: Fix for IRIX 5.3.
44502         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
44503         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
44504         HAVE_LANGINFO_YESEXPR.
44505         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
44506         HAVE_LANGINFO_YESEXPR.
44507         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
44508         HAVE_LANGINFO_T_FMT_AMPM is 0.
44509         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
44510         HAVE_LANGINFO_YESEXPR is 0.
44511         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
44512         NOEXPR.
44513         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
44514         * doc/posix-functions/nl_langinfo.texi: Likewise.
44515         Reported by Eric Blake.
44517 2010-09-10  Bruno Haible  <bruno@clisp.org>
44519         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
44520         * doc/glibc-functions/login_tty.texi: Mention the include file problem
44521         on FreeBSD 8.0 and OpenBSD 4.6.
44522         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
44523         * m4/pty_h.m4 (gl_PTY_H): Likewise.
44524         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
44525         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
44526         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
44527         ac_includes_default.
44528         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
44530 2010-09-09  Eric Blake  <eblake@redhat.com>
44532         strsignal: work around NetBSD bug
44533         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
44534         * lib/string.in.h (includes): Likewise.
44535         * doc/posix-functions/strsignal.texi (strsignal): Document the
44536         bug.
44537         Reported by Nelson H. F. Beebe.
44539         gnulib-tool: work with NetBSD /bin/sh
44540         * gnulib-tool (func_cache_var, func_cache_lookup_module)
44541         (func_get_description, func_get_comment, func_get_status)
44542         (func_get_notice, func_get_applicability, func_get_filelist)
44543         (func_get_dependencies, func_get_autoconf_early_snippet)
44544         (func_get_autoconf_snippet, func_get_automake_snippet)
44545         (func_get_include_directive, func_get_link_directive)
44546         (func_get_license, func_get_maintainer, func_import): Avoid
44547         shell syntax errors from parsing syntax extensions.
44549 2010-09-09  Bruno Haible  <bruno@clisp.org>
44551         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
44552         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
44553         a reliable way to determine whether the 'alias' command works.
44555 2010-09-08  Jim Meyering  <meyering@redhat.com>
44557         init.sh: penalize a set-x-impaired shell; don't disqualify it
44558         * tests/init.sh: Too many shells corrupt application stderr when
44559         you set -x, so we can't afford to disqualify them, since at least
44560         on Irix-6.5, that would disqualify all bourne shells.
44561         Instead, use a two-pass approach.
44562         On the first pass, try to find a shell that meets the stricter
44563         condition that set -x does not corrupt stderr.
44564         If no shell meets the stricter condition, retest each candidate
44565         shell, but without that extra condition.  Finally, when
44566         VERBOSE=yes is requested and set -x might cause trouble, simply
44567         issue a warning and refrain from enabling debug output.
44569 2010-09-08  Eric Blake  <eblake@redhat.com>
44571         unsetenv: fix OpenBSD bug
44572         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
44573         * doc/posix-functions/unsetenv.texi (unsetenv): Update
44574         documentation.
44575         Reported by Jim Meyering.
44577         strtod: work around IRIX 6.5 bug
44578         * lib/strtod.c (strtod): Reparse number on shorter string if
44579         exponent parse was invalid.
44580         * tests/test-strtod.c (main): Add check for "0x1p 2".
44581         Reported by Tom G. Christensen.
44583         getopt: optimize previous patch
44584         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
44585         empty variable.  Speed up awk script.
44586         Reported by Paolo Bonzini.
44588 2010-09-08  Jim Meyering  <meyering@redhat.com>
44590         test.sh: disqualify shells for which set -x corrupts stderr
44591         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
44592         and OpenBSD 4.7.  They make it so with "set -x", environment settings
44593         appear in stderr output.  For example, this command:
44594             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
44595         prints "P=1" on those two systems:
44597 2010-09-08  Bruno Haible  <bruno@clisp.org>
44599         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
44600         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
44601         commands, because some shells ignore redirections when there is an
44602         error in the command lookup.
44603         Reported by Eric Blake.
44605 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
44607         * lib/regex.h: Fix a mention of `regex_compile' (should be
44608         `re_compile_pattern').
44609         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
44610         (re_set_registers): Correct name of parameter in comment.
44612         * doc/regex.texi: Add documentation for missing syntax flags.
44613         Remove commented-out documentation of defunct syntax option
44614         RE_NO_EMPTY_ALTS.
44615         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
44616         Add documentation of re_set_registers.
44617         Document trick to re-use a pattern buffer by setting fastmap manually.
44618         Update documentation of struct re_pattern_buffer per public members.
44619         Uncomment documentation of equivalence class operators and
44620         collating symbol operators, since they are now implemented,
44621         Explain leftmost-longest matching in relation to alternatives.
44622         Tidy documentation of substring matching.
44623         Remove POSIX documentation, which is done better in
44624         glibc, and refer the reader there. Keep BSD API documentation, as
44625         that is not readily available elsewhere.
44627 2010-09-07  Eric Blake  <eblake@redhat.com>
44629         getopt: handle POSIXLY_CORRECT set but not exported
44630         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
44631         export state of POSIXLY_CORRECT, due to bash set -o posix.
44632         Reported by Dustin J. Mitchell.
44634 2010-09-05  Bruno Haible  <bruno@clisp.org>
44636         gnulib-tool: Highlight the changed options.
44637         * gnulib-tool (func_usage): Display the --import, --add-import,
44638         --remove-import explanations in bold font.
44640 2010-09-06  Karl Berry  <karl@gnu.org>
44642         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
44644 2010-09-05  Bruno Haible  <bruno@clisp.org>
44646         uniwidth/width: Update comment.
44647         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
44648         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
44650 2010-09-05  Bruno Haible  <bruno@clisp.org>
44652         isinf, isnan: Relax license.
44653         * modules/isinf (License): Change from GPL to LGPL, with consent from
44654         Ben Pfaff.
44655         * modules/isnan (License): Likewise.
44656         Requested by Ludovic Courtès.
44658 2010-09-04  Bruno Haible  <bruno@clisp.org>
44660         gnulib-tool: Help migration from --import to --add-import or --update.
44661         * gnulib-tool: Emit a verbose error message when --import is used
44662         without any module name.
44664 2010-09-04  Bruno Haible  <bruno@clisp.org>
44666         Update doc about gnulib-tool.
44667         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
44668         'gnulib-tool --update' in more detail.
44669         Reported by Eric Blake.
44671 2010-09-04  Bruno Haible  <bruno@clisp.org>
44673         gnulib-tool: Change --import. New options --add/remove-import.
44674         * gnulib-tool: New options --add-import, --remove-import.
44675         (func_usage): Document them.
44676         (have_associative): Define always.
44677         (func_import): In import mode, don't merge the specified settings with
44678         the cached settings. Implement remove-import mode.
44679         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
44680         Explain when to use them versus --import.
44681         (Simple update): Use --add-import instead of --import.
44682         * NEWS: Mention the change.
44684 2010-09-04  Bruno Haible  <bruno@clisp.org>
44686         * doc/gnulib-tool.texi (Initial import): Update paragraph about
44687         separate gnulib.mk.
44689 2010-09-04  Bruno Haible  <bruno@clisp.org>
44691         gnulib-tool: Don't talk about CVS any more.
44692         * gnulib-tool (func_usage, func_import): Write "version control"
44693         instead of CVS.
44695 2010-09-04  Jim Meyering  <meyering@redhat.com>
44697         maint.mk: avoid obscure sc_copyright_check failure in coreutils
44698         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
44699         false positives (whose names may be ill-chosen) when searching
44700         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
44701         would cause a false-positive.
44703         avoid coreutils "make distcheck" failure
44704         Coreutils tests with an absolute build directory name that contains
44705         a space.  Not quoting this directory name caused a failure.
44706         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
44707         * tests/test-vc-list-files-cvs.sh: Likewise.
44709 2010-09-04  Bruno Haible  <bruno@clisp.org>
44711         gnulib-tool: Avoid error when run in a package without Makefile.am.
44712         * gnulib-tool: When collecting the m4dirs in a package that does not
44713         have a Makefile.am, eliminate those directories that contain no
44714         gnulib-cache.m4. Fix expression that counts these directories.
44716 2010-09-04  Bruno Haible  <bruno@clisp.org>
44718         update-copyright test: Improve output when perl is missing or too old.
44719         * tests/test-update-copyright.sh: Move test of Perl version down after
44720         the test whether Perl exists. Provide an explanation relating Perl's
44721         error message to Automake's SKIP: message.
44723 2010-09-04  Bruno Haible  <bruno@clisp.org>
44725         Don't augment PATH in TESTS_ENVIRONMENT.
44726         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
44727         set abs_aux_dir instead of augmenting PATH.
44728         * modules/vc-list-files-tests (Makefile.am): Likewise.
44729         * tests/test-update-copyright.sh: Augment PATH here.
44730         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
44731         path_prepend_.
44732         * tests/test-vc-list-files-git.sh: Likewise.
44734 2010-09-04  Jim Meyering  <meyering@redhat.com>
44736         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
44737         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
44739 2010-09-04  Bruno Haible  <bruno@clisp.org>
44741         strdup: Fix compilation error in C++ mode.
44742         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
44743         the macro.
44745 2010-09-04  Bruno Haible  <bruno@clisp.org>
44747         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
44748         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
44749         macro into a function.
44750         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
44752 2010-09-04  Bruno Haible  <bruno@clisp.org>
44754         Set PATH_SEPARATOR the same way autoconf does.
44755         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
44756         the value of PATH_SEPARATOR the same way autoconf-generated configure
44757         scripts do.
44758         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
44759         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
44761 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
44763         Set PATH_SEPARATOR the same way autoconf does.
44764         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
44765         the same way autoconf-generated configure scripts do.
44766         * posix-modules: Likewise.
44768 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
44770         hash: fix safe_hasher const typo
44771         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
44772         const; otherwise, there is a type error later.
44774 2010-09-02  Jim Meyering  <meyering@redhat.com>
44776         test-update-copyright.sh: require perl 5.8.0
44777         * tests/test-update-copyright.sh: Require 5.8.0,
44778         which Tom G. Christensen has confirmed is adequate,
44779         while 5.6.1 is not.
44781 2010-09-02  Eric Blake  <eblake@redhat.com>
44783         tests: init.sh improvements for re-exec'ing with zsh
44784         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
44785         -vx through shell re-exec.
44786         Reported by Tom G. Christensen.
44788         wctype: fix typo in previous commit
44789         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
44790         Reported by Ludovic Courtès.
44792 2010-09-02  Jim Meyering  <meyering@redhat.com>
44794         test-update-copyright.sh: skip test if Perl is too old
44795         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
44796         Reported by Tom G. Christensen.
44798 2010-09-02  Bruno Haible  <bruno@clisp.org>
44800         wctype: Avoid compilation error on IRIX 6.5.30.
44801         * lib/wctype.in.h (iswblank): Declare with a replacement if
44802         REPLACE_ISWBLANK is set.
44803         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
44804         declared. Set REPLACE_ISWBLANK.
44805         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
44806         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
44807         * doc/posix-headers/wctype.texi: Likewise.
44808         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44810 2010-09-01  Bruno Haible  <bruno@clisp.org>
44812         New module 'socketlib'.
44813         * modules/socketlib: New file.
44814         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
44815         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
44816         * modules/sockets (Depends-on): Add socketlib.
44817         Suggested by Sam Steingold <sds@gnu.org>.
44819 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
44821         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
44823         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
44824         when one needs search access to a directory but not read access.
44825         On systems where it is available, it works in some cases where
44826         O_RDONLY does not, namely on directories that are searchable but
44827         not readable, and which need only to be searchable.  If O_SEARCH
44828         is not available, fall back to the traditional method of using
44829         O_RDONLY.
44831         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
44832         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
44833         when opening a directory that needs only to be searchable.
44834         * lib/chdir-safer.c (chdir_no_follow): Likewise.
44835         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
44836         * lib/openat-proc.c (openat_proc_name): Likewise.
44837         * lib/openat.c (openat_needs_fchdir): Likewise.
44838         * lib/save-cwd.c (save_cwd): Likewise.
44839         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
44841 2010-08-28  Bruno Haible  <bruno@clisp.org>
44843         New module 'host-cpu-c-abi'.
44844         * modules/host-cpu-c-abi: New file.
44845         * m4/host-cpu-c-abi.m4: New file, based on part of
44846         clisp/src/m4/general.m4.
44847         Requested by Sam Steingold <sds@gnu.org>.
44849 2010-08-31  Eric Blake  <eblake@redhat.com>
44850         and Jim Meyering  <meyering@redhat.com>
44852         hash: factor, and guard against misbehaving hasher function
44853         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
44854         of table->hasher's return value.  Also protect against a hash value
44855         so large that adding it to table->bucket results in a NULL pointer.
44856         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
44857         Use it in place of open-coded check-and-abort.
44859 2010-08-30  Bruno Haible  <bruno@clisp.org>
44861         hash: silence spurious clang warning
44862         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
44863         Reported by Eric Blake.
44865 2010-08-30  Eric Blake  <eblake@redhat.com>
44867         strstr, memmem, strcasestr: avoid leaked shell message
44868         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
44869         FreeBSD.
44870         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44871         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44873         tests: silence clang warning
44874         * tests/test-malloca.c (do_allocation): Avoid dead store.
44876 2010-08-29  Bruno Haible  <bruno@clisp.org>
44878         gettext: Fix recent mistake.
44879         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
44881 2010-08-29  Bruno Haible  <bruno@clisp.org>
44883         selinux-h: Offer a --without-selinux option.
44884         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
44885         --without-selinux was specified, skip all tests and define
44886         HAVE_SELINUX_SELINUX_H to 0.
44887         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
44888         set LIB_SELINUX to empty.
44889         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
44890         gl_LIBSELINUX. If --without-selinux was specified, replace
44891         selinux/context.h.
44892         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
44894 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44895             Bruno Haible  <bruno@clisp.org>
44897         Make the module 'realloc-gnu' work again on AIX and OSF/1.
44898         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
44899         of HAVE_REALLOC.
44900         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
44901         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
44902         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
44903         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
44905 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44906             Bruno Haible  <bruno@clisp.org>
44908         Make the module 'calloc-gnu' work again on AIX and OSF/1.
44909         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
44910         HAVE_CALLOC.
44911         * lib/xmalloc.c: Update accordingly.
44912         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
44913         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
44914         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
44916 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44917             Bruno Haible  <bruno@clisp.org>
44919         Make the module 'malloc-gnu' work again on AIX and OSF/1.
44920         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
44921         HAVE_MALLOC.
44922         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
44923         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
44924         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
44926 2010-08-29  Bruno Haible  <bruno@clisp.org>
44928         Update modules list.
44929         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
44930         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
44931         (String handling <string.h>): Add astrxfrm.
44932         (File system functions): Add readlinkat.
44934 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44936         Tests for module 'realloc-gnu'.
44937         * modules/realloc-gnu-tests: New file.
44938         * tests/test-realloc-gnu.c: New file.
44940         Tests for module 'calloc-gnu'.
44941         * modules/calloc-gnu-tests: New file.
44942         * tests/test-calloc-gnu.c: New file.
44944         Tests for module 'malloc-gnu'.
44945         * modules/malloc-gnu-tests: New file.
44946         * tests/test-malloc-gnu.c: New file.
44948 2010-08-28  Bruno Haible  <bruno@clisp.org>
44950         Rename module 'realloc' -> 'realloc-gnu'.
44951         * modules/realloc-gnu: New file, copied from modules/realloc.
44952         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
44953         obsolete.
44954         * modules/mgetgroups (Depends-on): Update.
44955         * doc/posix-functions/realloc.texi: Update.
44956         * NEWS: Mention the change.
44958         Rename module 'calloc' -> 'calloc-gnu'.
44959         * modules/calloc-gnu: New file, copied from modules/calloc.
44960         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
44961         obsolete.
44962         * doc/posix-functions/calloc.texi: Update.
44963         * NEWS: Mention the change.
44965         Rename module 'malloc' -> 'malloc-gnu'.
44966         * modules/malloc-gnu: New file, copied from modules/malloc.
44967         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
44968         obsolete.
44969         * modules/argp (Depends-on): Update.
44970         * modules/regex (Depends-on): Update.
44971         * doc/posix-functions/malloc.texi: Update.
44972         * NEWS: Mention the change.
44974 2010-08-28  Eric Blake  <eblake@redhat.com>
44976         pread, pwrite: add missing dependency
44977         * modules/pread (Depends-on): Add extensions.
44978         * modules/pwrite (Depends-on): Likewise.
44980 2010-08-28  Bruno Haible  <bruno@clisp.org>
44982         unistr/u*-strchr: Fix tests dependencies.
44983         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
44984         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
44985         Reported by Ian Beckwith <ianb@erislabs.net>.
44987 2010-08-28  Bruno Haible  <bruno@clisp.org>
44989         read-file: Don't occupy too much unused memory.
44990         * lib/read-file.c (fread_file): Shrink the buffer at the end.
44992 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
44993             Eric Blake  <eblake@redhat.com>
44994             Bruno Haible  <bruno@clisp.org>
44996         read-file: Avoid memory reallocations with regular files.
44997         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
44998         (fread_file): With regular files, use the remaining length as the
44999         initial buffer size.  Check against overflow.
45000         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
45001         sys_stat.
45003 2010-08-28  Bruno Haible  <bruno@clisp.org>
45005         ftello: Relax license.
45006         * modules/ftello (License): Relax to LGPLv2+.
45007         Reported by Eric Blake.
45009 2010-08-28  Bruno Haible  <bruno@clisp.org>
45011         Avoid relocwrapper link errors due to gnulib replacement functions.
45012         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
45013         function.
45014         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45016 2010-08-28  Bruno Haible  <bruno@clisp.org>
45018         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
45019         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
45020         defined.
45021         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
45022         Suggested by Eric Blake.
45024 2010-08-28  Bruno Haible  <bruno@clisp.org>
45026         sys_socket, netdb: Ensure socklen_t gets defined.
45027         * modules/sys_socket (Depends-on): Add socklen.
45028         * modules/netdb (Depends-on): Likewise.
45029         * modules/getaddrinfo (Depends-on): Remove socklen.
45030         * modules/getsockopt (Depends-on): Likewise.
45031         * modules/setsockopt (Depends-on): Likewise.
45032         * tests/test-sys_socket.c: Check that socklen_t is defined.
45033         * tests/test-netdb.c: Likewise.
45034         * m4/socklen.m4: Update comments.
45035         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45037 2010-08-27  Eric Blake  <eblake@redhat.com>
45039         login_tty: add missing dependency
45040         * modules/login_tty (Depends-on): Add pty.
45042 2010-08-26  Eric Blake  <eblake@redhat.com>
45044         lib-symbol-versions: fix m4 quoting
45045         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
45046         format for AC_LINK_IFELSE.
45048         glob: fix compile test
45049         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
45051         btowc: fix missing file
45052         * modules/btowc (Files): Also ship locale-fr.m4.
45054         lseek: fix link test
45055         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
45056         AC_LINK_IFELSE.
45058         include_next: silence autoconf 2.68 warning
45059         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
45060         AC_COMPILE_IFELSE as special.
45061         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
45062         autoconf < 2.68.
45064         acl: fix compilation test
45065         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
45066         AC_COMPILE_IFELSE.
45068 2010-08-26  Bruno Haible  <bruno@clisp.org>
45070         Modernize AC_TRY_RUN invocations.
45071         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
45072         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
45073         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
45074         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
45075         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
45076         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
45077         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
45078         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
45079         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
45080         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
45081         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
45082         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
45083         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
45084         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
45085         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
45086         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
45087         gl_MBRLEN_NUL_RETVAL): Likewise.
45088         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
45089         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
45090         Likewise.
45091         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
45092         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
45093         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
45094         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
45095         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
45096         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
45097         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
45098         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
45099         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
45100         Likewise.
45101         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
45102         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
45103         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45104         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
45105         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
45106         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
45107         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
45108         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
45109         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
45110         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45112 2010-08-26  Bruno Haible  <bruno@clisp.org>
45114         Modernize AC_TRY_LINK invocations.
45115         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
45116         AC_TRY_LINK.
45117         * m4/argp.m4 (gl_ARGP): Likewise.
45118         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
45119         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
45120         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
45121         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45122         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45123         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
45124         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
45125         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
45126         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45127         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
45128         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45129         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
45130         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
45131         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
45132         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
45133         * m4/hostent.m4 (gl_HOSTENT): Likewise.
45134         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
45135         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
45136         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
45137         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
45138         Likewise.
45139         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
45140         Likewise.
45141         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
45142         Likewise.
45143         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
45144         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
45145         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
45146         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
45147         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
45148         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
45149         * m4/servent.m4 (gl_SERVENT): Likewise.
45150         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
45151         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
45152         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
45153         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
45154         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
45155         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
45156         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
45157         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
45158         * modules/tsearch-tests (configure.ac): Likewise.
45160 2010-08-26  Bruno Haible  <bruno@clisp.org>
45162         Modernize AC_TRY_COMPILE invocations.
45163         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
45164         AC_TRY_COMPILE.
45165         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
45166         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
45167         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
45168         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
45169         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
45170         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
45171         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
45172         * m4/lock.m4 (gl_LOCK): Likewise.
45173         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
45174         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45175         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
45176         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
45177         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
45178         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
45179         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
45180         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
45181         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
45182         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
45183         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
45184         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
45185         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
45186         extraneous semicolon.
45188 2010-08-26  Jim Meyering  <meyering@redhat.com>
45190         stat-time: relax license LGPL
45191         * modules/stat-time (License): Change from GPL to LGPL,
45192         with consent from all contributors, for use in libguile.
45193         Requested by Ludovic Courtès.
45195 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
45197         poll: return immediately on POLLHUP.
45198         * lib/poll.c (poll): Always set timeout before wait_timeout is
45199         computed.
45201 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45203         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
45204         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
45205         rmdir ("dir/.//"), unlinkat.
45207 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
45209         stdbool: avoid spurious failure with modern xlc
45210         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
45212 2010-08-24  Bruno Haible  <bruno@clisp.org>
45214         getloadavg: simplify code
45215         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
45216         gl_have_func. Update comments.
45218 2010-08-24  Eric Blake  <eblake@redhat.com>
45220         getloadavg: don't define SVR4 on cygwin
45221         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
45222         only define SVR4 when -lkvm is required.
45223         Reported by Yaakov Selkowitz.
45225 2010-08-24  Bruno Haible  <bruno@clisp.org>
45227         priv-set: fix comment
45228         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
45230 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
45232         priv-set: fix comments
45233         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
45234         to match code, as suggested by David Bartley in:
45235         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
45237 2010-08-23  Eric Blake  <eblake@redhat.com>
45239         stdbool: avoid rejecting clang
45240         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
45241         * tests/test-stdbool.c: Enable more tests if using the system
45242         <stdbool.h> instead of the gnulib replacement.
45243         (main): Move xlc bug test to a runtime test for all compilers.
45244         Reported by Anders Kaseorg.
45246         argz: fix shell quoting issue
45247         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
45248         Reported by Charles Wilson.
45250 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
45251             Erik Faye-Lund <kusmabite@gmail.com>
45253         poll, select: handle ERROR_BROKEN_PIPE.
45254         * lib/poll.c (win32_compute_revents): Return POLLHUP when
45255         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
45256         * lib/select.c (win32_compute_revents): Do not mark a pipe
45257         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
45259 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
45261         fts: allow compilation with C++
45262         * lib/fts_.h: Specify extern "C" linkage with C++.
45264 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45266         Fix gnulib-tool sed script de-commentation for AIX sed.
45267         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
45268         sed.
45270 2010-08-17  Eric Blake  <eblake@redhat.com>
45272         test-stddef: test for (some) offsetof bugs
45273         * tests/test-stddef.c: Enhance test to ensure correct type of
45274         offsetof.
45275         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
45276         that we are not fixing at this time.
45278 2010-08-15  Bruno Haible  <bruno@clisp.org>
45280         stpncpy: Allow stpncpy to be defined as a macro.
45281         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
45282         if it's already correctly declared.
45283         * lib/string.in.h (stpncpy): Undefine before redefining.
45284         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
45286 2010-08-14  Bruno Haible  <bruno@clisp.org>
45288         Rename module 'memxfrm' to 'amemxfrm'.
45289         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
45290         (amemxfrm): Renamed from memxfrm.
45291         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
45292         (amemxfrm): Renamed from memxfrm.
45293         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
45294         * NEWS: Mention the change.
45295         * MODULES.html.sh (String handling <string.h>): Update.
45296         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
45297         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
45298         * lib/unicase/u16-casexfrm.c: Likewise.
45299         * lib/unicase/u32-casexfrm.c: Likewise.
45300         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
45301         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
45302         * lib/uninorm/u16-normxfrm.c: Likewise.
45303         * lib/uninorm/u32-normxfrm.c: Likewise.
45304         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
45305         memxfrm.
45306         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
45307         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
45308         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
45309         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
45310         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
45311         Suggested by Paul Eggert.
45313 2010-08-14  Bruno Haible  <bruno@clisp.org>
45315         Tests for module 'astrxfrm'.
45316         * modules/astrxfrm-tests: New file.
45317         * tests/test-astrxfrm.c: New file.
45319         New module 'astrxfrm'.
45320         * lib/astrxfrm.h: New file.
45321         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
45322         * modules/astrxfrm: New file.
45324 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
45326         regex: Tweak doc.
45327         * doc/regex.texi (Overview): Don't mention regex.c.
45328         (GNU Regular Expression Compiling): Likewise.
45329         (Match-end-of-line Operator): Mention 'not_eol'.
45331 2010-08-14  Brian Gough  <bjg@gnu.org>
45332             Bruno Haible  <bruno@clisp.org>
45334         git-merge-changelog: add doc relating to use with bzr and hg.
45335         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
45337 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
45339         pthread: fix pthread.h creation for srcdir != builddir
45340         * modules/pthread (Makefile.am): Fix the rule to work also in a
45341         non-srcdir build.
45343 2010-08-13  Karl Berry  <karl@gnu.org>
45345         * doc/regex.texi (Predefined Syntaxes): @smallexample.
45346         * doc/posix-*/*: force line break before @url of POSIX
45347         specifications.
45348         Suggested by Werner Lemberg.
45350 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
45352         strtod: fix const diagnostic
45353         * lib/strtod.c (strtod): Don't assign const char * to char *,
45354         as this elicits a warning from GCC when warnings are enabled.
45356 2010-08-10  Pádraig Brady  <P@draigbrady.com>
45357         and Eric Blake  <eblake@redhat.com>
45359         copy-acl: ignore ENOTSUP on HP-UX
45360         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
45361         so that it is available for HP-UX.
45362         * lib/copy-acl.c (qcopy_acl): Use it.
45363         Reported by Patrick M. Callahan.
45365 2010-08-10  Eric Blake  <eblake@redhat.com>
45367         open, chown: relax license
45368         * modules/open (License): Change to LGPLv2+, with consent by all
45369         authors, for use in augeas.
45370         * modules/chown (License): Likewise.
45371         * modules/lchown (Likewise): Likewise.
45372         Requested by Adam Stokes.
45374 2010-08-09  Karl Berry  <karl@gnu.org>
45376         * build-aux/ar-lib: new file, import from Automake.
45377         * config/srclist.txt: autocheck for updates.
45379 2010-08-09  Eric Blake  <eblake@redhat.com>
45381         readlinkat: adjust client modules
45382         * modules/areadlinkat (Depends-on): Use readlinkat, not
45383         symlinkat.
45384         * modules/areadlinkat-with-size (Depends-on): Likewise.
45386         mknod: be more vocal about danger of running tests as root
45387         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
45388         root, since that is just asking for problems.
45389         Suggested by Bruno Haible, based on a report by Rainer Tammer.
45391         readlinkat: split into its own module
45392         * modules/symlinkat: Split readlinkat...
45393         * modules/readlinkat: ...into separate module.
45394         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
45395         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
45396         * lib/symlinkat.c (readlinkat): Move...
45397         * lib/readlinkat.c: ...into new file.
45398         * modules/symlinkat-tests: Split readlinkat test...
45399         * modules/readlinkat-tests: ...into separate module.
45400         * tests/test-symlinkat.c: Split...
45401         * tests/test-readlinkat.c: ...into new file.
45402         * NEWS: Document the split.
45403         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45404         * lib/unistd.in.h (readlinkat): Likewise.
45405         Suggested by Bruno Haible.
45407 2010-08-08  Bruno Haible  <bruno@clisp.org>
45409         memxfrm: Speed up.
45410         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
45411         that usually only one call to strxfrm is necessary for each string
45412         part.
45413         Reported by Paul Eggert <eggert@cs.ucla.edu>.
45415 2010-08-07  Karl Berry  <karl@gnu.org>
45417         * doc/posix-headers/limits.texi,
45418         * doc/posix-functions/malloc.texi,
45419         * doc/posix-functions/strsignal.texi: missing @item.
45420         * doc/ld-version-script.texi: spurious leading i.
45421         * doc/regex.texi (Interval Operators): no commas inside @var.
45423 2010-08-01  Bruno Haible  <bruno@clisp.org>
45425         Integrate the regex documentation.
45426         * doc/gnulib.texi: Define 'cn' index.
45427         (Regular expressions): New a chapter that includes regex.texi and
45428         regexprops-generic.texi.
45429         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
45430         syntax.
45432         Whitespace cleanup.
45433         * doc/regex.texi: Remove trailing spaces.
45435         Add regex documentation.
45436         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
45437         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
45438         Written by Kathy A. Hargreaves and Karl Berry.
45440 2010-08-01  Bruno Haible  <bruno@clisp.org>
45442         link: Update documentation.
45443         * doc/posix-functions/link.texi: Update regarding Solaris.
45445 2010-07-31  Bruno Haible  <bruno@clisp.org>
45447         Update modules list.
45448         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
45449         (String handling <string.h>): Add memcmp2, memxfrm.
45450         (Container data structures): Add xlist, xsublist, xoset.
45451         (Core language properties): Add alignof, unused-parameter.
45452         (Process control, Numeric conversion functions <stdlib.h>): Renamed
45453         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
45454         (Unibyte characters <ctype.h>): New section.
45455         (String handling <string.h>): New section.
45456         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
45457         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
45458         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
45459         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
45460         tan, tanh, tanl, y0, y1, yn.
45461         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
45462         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
45463         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
45464         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
45465         unlockpt, vdprintf, vdprintf-posix.
45466         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
45467         (File system functions): Add concat-filename, sys_file, sys_ioctl,
45468         xconcat-filename.
45469         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
45470         getdtablesize, pipe2, pipe2-safer.
45471         (Security): New section.
45472         (Networking functions): Add accept4.
45473         (Signal handling): Add sigpipe.
45474         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
45475         mbmemcasecoll.
45476         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
45477         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
45478         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
45479         pipe-filter-ii.
45480         (Misc): Add argp-version-etc, login_tty, parse-duration.
45482 2010-07-31  Bruno Haible  <bruno@clisp.org>
45484         Improve doc in MODULES.html.
45485         * modules/linkat (Description): Add the word "function".
45486         * modules/mkfifo (Description): Likewise.
45487         * modules/mknod (Description): Likewise.
45488         * modules/remove (Description): Likewise.
45489         * modules/renameat (Description): Likewise.
45490         * modules/stat (Description): Likewise.
45491         * modules/symlink (Description): Likewise.
45492         * modules/unlink (Description): Likewise.
45494 2010-07-31  Bruno Haible  <bruno@clisp.org>
45496         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
45497         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
45498         option --enable/disable-c++ instead of --enable/disable-cxx.
45499         * NEWS: Mention the change.
45501 2010-07-31  Bruno Haible  <bruno@clisp.org>
45503         readlink, areadlink: Relax test a bit.
45504         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
45505         alternative to ENOTDIR.
45506         * tests/test-areadlink.h (test_areadlink): Likewise.
45507         Reported by Rainer Tammer.
45509 2010-07-31  Bruno Haible  <bruno@clisp.org>
45511         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
45512         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
45513         character, perform the search using U_STRCHR.
45514         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
45515         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
45516         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
45517         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
45518         Suggested by Paolo Bonzini.
45520 2010-07-31  Bruno Haible  <bruno@clisp.org>
45522         unistr/u*-strstr: Fix dependencies.
45523         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
45524         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
45525         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
45527 2010-07-31  Bruno Haible  <bruno@clisp.org>
45529         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
45530         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
45531         the beginning of the loop.
45532         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
45533         cases in 'switch' statement.
45535         unistr/u8-strchr: Fix several bugs.
45536         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
45537         the string. When not found, return NULL, not a pointer near the end.
45539         More tests for unistr/u8-strchr.
45540         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
45541         that the function does not read past the first occurrence of the byte
45542         being searched.
45543         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
45544         * tests/unistr/test-u16-strchr.c (main): New function.
45545         * tests/unistr/test-u32-strchr.c (main): New function.
45547 2010-07-31  Bruno Haible  <bruno@clisp.org>
45549         posix-modules: Ignore backup files of documentation files.
45550         * posix-modules: grep only through files named *.texi.
45552 2010-07-31  Bruno Haible  <bruno@clisp.org>
45554         symlinkat: Fix documentation.
45555         * doc/posix-functions/readlinkat.texi: Fix module name.
45557 2010-07-31  Bruno Haible  <bruno@clisp.org>
45559         fchownat: Replace also when chown has the trailing slash bug.
45560         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
45561         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
45562         introduced on 2010-04-10.
45563         Reported by Rainer Tammer.
45565 2010-07-31  Bruno Haible  <bruno@clisp.org>
45567         linkat: Work around AIX 7.1 bug.
45568         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
45569         whether linkat handles trailing slash correctly. If not, replace linkat
45570         and define LINKAT_TRAILING_SLASH_BUG.
45571         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
45572         check whether (fd1,file1) points to a directory if file1 or file2 ends
45573         in a slash. Code taken from lib/link.c.
45574         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
45575         Reported by Rainer Tammer.
45577 2010-07-31  Bruno Haible  <bruno@clisp.org>
45579         Correctly determine whether pow is available in libc on AIX 7 with xlc.
45580         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
45581         This disables an xlc optimization that was causing wrong test results.
45582         Reported by Rainer Tammer.
45584 2010-07-31  Bruno Haible  <bruno@clisp.org>
45586         iconv: Work around AIX 6.1..7.1 bug.
45587         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
45588         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
45589         cross-compiling, guess no on all versions of AIX.
45590         Reported by Rainer Tammer.
45592 2010-07-31  Bruno Haible  <bruno@clisp.org>
45594         readlink: Relax test a bit.
45595         * tests/test-readlink.h (test_readlink): Allow different errno value
45596         when readlink is called with a file name that ends in / and refers to
45597         a file.
45598         Suggested by Eric Blake.
45599         Reported by Rainer Tammer.
45601 2010-07-31  Bruno Haible  <bruno@clisp.org>
45603         copysign: Does not require -lm on glibc systems.
45604         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
45605         gl_COMMON_DOUBLE_MATHFUNC.
45606         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
45608 2010-07-31  Bruno Haible  <bruno@clisp.org>
45610         duplocale: Work around AIX 7.1 bug.
45611         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
45612         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
45613         * lib/duplocale.c (rpl_duplocale): Update comment.
45614         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
45615         Reported by Rainer Tammer.
45617 2010-07-30  Bruno Haible  <bruno@clisp.org>
45619         dirfd: Avoid link error on AIX 7.1.
45620         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
45621         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
45622         exist, set REPLACE_DIRFD.
45623         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
45624         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
45625         * doc/posix-functions/dirfd.texi: Update.
45626         Reported by Rainer Tammer.
45628 2010-07-30  Eric Blake  <eblake@redhat.com>
45630         strtod: next round of AIX fixes
45631         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
45632         exponent.
45633         * tests/test-strtod.c (main): Enhance tests.
45634         * doc/posix-functions/strtod.texi (strtod): Document next bug.
45635         Reported by Rainer Tammer.
45637         futimens: fix configure check
45638         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
45639         Reported by Bruno Haible.
45641 2010-07-30  Bruno Haible  <bruno@clisp.org>
45643         getline: Update regarding AIX.
45644         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
45645         Reported by Rainer Tammer.
45647 2010-07-30  Bruno Haible  <bruno@clisp.org>
45649         wcwidth: Drop replacement on AIX 7.
45650         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
45651         AIX 7.
45652         Reported by Rainer Tammer.
45654 2010-07-30  Bruno Haible  <bruno@clisp.org>
45656         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
45657         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
45658         a 'char *'.
45659         Reported by Rainer Tammer.
45661 2010-07-30  Bruno Haible  <bruno@clisp.org>
45663         unlink: Update regarding AIX.
45664         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
45665         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
45666         Reported by Rainer Tammer.
45668 2010-07-30  Bruno Haible  <bruno@clisp.org>
45670         symlink: Update regarding AIX.
45671         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
45672         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
45673         Reported by Rainer Tammer.
45675 2010-07-30  Bruno Haible  <bruno@clisp.org>
45677         strndup: Update regarding AIX.
45678         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
45679         AIX 7.
45680         Reported by Rainer Tammer.
45682 2010-07-30  Bruno Haible  <bruno@clisp.org>
45684         stat: Update regarding AIX.
45685         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
45686         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
45687         Reported by Rainer Tammer.
45689 2010-07-30  Bruno Haible  <bruno@clisp.org>
45691         truncl: Fix autoconf test.
45692         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
45693         whether truncl works.
45694         Reported by Rainer Tammer.
45696 2010-07-30  Bruno Haible  <bruno@clisp.org>
45698         round: Update regarding AIX.
45699         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
45700         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
45701         Reported by Rainer Tammer.
45703 2010-07-30  Bruno Haible  <bruno@clisp.org>
45705         rename: Update regarding AIX.
45706         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
45707         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
45708         Reported by Rainer Tammer.
45710 2010-07-30  Bruno Haible  <bruno@clisp.org>
45712         printf.m4: Update regarding AIX.
45713         * m4/printf.m4: Update comments regarding AIX.
45714         Reported by Rainer Tammer.
45716 2010-07-30  Bruno Haible  <bruno@clisp.org>
45718         iconv: Update regarding AIX.
45719         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
45720         AIX 7.
45721         Reported by Rainer Tammer.
45723 2010-07-30  Bruno Haible  <bruno@clisp.org>
45725         getopt: Update regarding AIX.
45726         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
45727         no on AIX.
45728         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
45729         Reported by Rainer Tammer.
45731 2010-07-30  Bruno Haible  <bruno@clisp.org>
45733         ldexpl; Update regarding AIX.
45734         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
45735         on AIX 7.
45736         Reported by Rainer Tammer.
45738 2010-07-30  Bruno Haible  <bruno@clisp.org>
45740         frexpl: Update regarding AIX.
45741         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
45742         on AIX 7.
45743         Reported by Rainer Tammer.
45745 2010-07-30  Bruno Haible  <bruno@clisp.org>
45747         open, fopen: Update regarding AIX.
45748         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
45749         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
45750         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
45751         * doc/posix-functions/fopen.texi: Likewise.
45752         Reported by Rainer Tammer.
45754 2010-07-30  Bruno Haible  <bruno@clisp.org>
45756         chown: Update doc regarding AIX.
45757         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
45758         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
45759         Reported by Rainer Tammer.
45761 2010-07-30  Eric Blake  <eblake@redhat.com>
45763         strtod: fix bug in replacement function on AIX
45764         * lib/strtod.c (strtod): Special case broken "0x" parse in
45765         underlying strtod.
45766         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
45767         * doc/posix-functions/strtod.texi (strtod): Likewise.
45768         Reported by Rainer Tammer.
45770 2010-07-30  Bruno Haible  <bruno@clisp.org>
45772         mbrlen: Fix cross-compilation guess for AIX.
45773         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
45774         guess. Leftover from 2008-12-22.
45776 2010-07-30  Bruno Haible  <bruno@clisp.org>
45778         mbrtowc: Fix cross-compilation guess for AIX.
45779         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
45780         guess. Leftover from 2008-12-21.
45782 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
45784         init.sh: work around trap limitation of some shells
45785         * tests/init.sh (setup_): Move exit trap outside of shell function.
45787 2010-07-29  Eric Blake  <eblake@redhat.com>
45789         strtod: aid debugging
45790         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
45791         understanding why strtod is rejected.
45793 2010-07-28  Bruno Haible  <bruno@clisp.org>
45795         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
45796         * lib/unistr/u8-chr.c: Include <string.h>.
45797         * tests/unistr/test-u8-chr.c: Likewise.
45798         * tests/unistr/test-u16-chr.c: Likewise.
45799         * tests/unistr/test-u32-chr.c: Likewise.
45800         * tests/unistr/test-u8-strchr.c: Likewise.
45801         * tests/unistr/test-u16-strchr.c: Likewise.
45802         * tests/unistr/test-u32-strchr.c: Likewise.
45803         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
45804         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
45805         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
45806         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
45808 2010-07-28  Bruno Haible  <bruno@clisp.org>
45810         Use spaces for indentation, not tabs.
45811         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
45813 2010-07-27  Bruno Haible  <bruno@clisp.org>
45815         mbspcasecmp: Fix function specification.
45816         * lib/string.in.h (mbspcasecmp): Fix specification comment.
45817         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
45818         Reported by Eric Blake <eblake@redhat.com>.
45820 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
45822         timespec: use cast and not conditional, as truncation isn't possible
45823         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
45824         instead of a conditional.  Comment about the situation in more detail.
45825         This undoes most of the 2009-10-29 patch.
45827 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
45829         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
45830         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
45831         * lib/unistr/u8-strchr.c: Likewise.
45832         * modules/unistr/u8-chr: Depend on memchr.
45834         unistr/u*-strchr: add tests
45835         * modules/unistr/u8-strchr-tests: New file.
45836         * modules/unistr/u16-strchr-tests: New file.
45837         * modules/unistr/u32-strchr-tests: New file.
45838         * tests/unistr/test-strchr.h: New file.
45839         * tests/unistr/test-u8-strchr.c: New file.
45840         * tests/unistr/test-u16-strchr.c: New file.
45841         * tests/unistr/test-u32-strchr.c: New file.
45843         unistr/u*-chr: test multibyte sequences more
45844         * tests/unistr/test-chr.h: Do complete testing of the characters in the
45845         test vector.
45846         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
45847         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
45848         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
45850         unistr/u*-chr: test multibyte sequences
45851         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
45853         unistr/u*-chr: prepare for multibyte tests
45854         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
45855         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
45856         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
45857         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
45858         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
45859         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
45861 2010-07-18  Bruno Haible  <bruno@clisp.org>
45863         unistr/u8-strchr: Optimize non-ASCII argument case.
45864         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
45865         because the first byte often matches anyway.
45866         Reported by Pádraig Brady <P@draigbrady.com>.
45868 2010-07-15  Karl Berry  <karl@gnu.org>
45870         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
45872 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
45874         getcwd: on Solaris, work better if ancestors are inaccessible
45875         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
45876         buffer and size, try again with a large buffer.  This works better
45877         on Solaris, since its getcwd succeeds even if the path to the root
45878         is inaccessible, and this is helpful in common cases such as .zfs
45879         hidden directories.  Problem reported by J Chapman Flack in
45880         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
45881         Use system getcwd if it's declared, not merely if it's partly
45882         working; use the partly-working test only to avoid needless effort
45883         if the system getcwd fails.
45884         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
45885         comment that was already obsolete and is now even more obsolete.
45886         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
45887         now might call strdup.
45889 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
45891         pthread: Add enough so that coreutils/src/sort.c compiles.
45892         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
45893         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
45894         gnulib. Include <sched.h> and <time.h>, as per POSIX.
45895         Include <sys/types.h>, in case it defines pthread_t.
45896         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
45897         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
45898         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
45899         (pthread_rwlockattr_t, pthread_spinlock_t):
45900         New typedefs, if HAVE_PTHREAD_T is not defined.
45901         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
45902         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
45903         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
45904         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
45905         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
45906         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
45907         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
45908         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
45909         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
45910         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
45911         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
45912         New macros.
45913         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
45914         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
45915         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
45916         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
45917         (pthread_spin_unlock): New dummy functions.
45918         (pthread_create): Return EAGAIN; don't set errno.
45919         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
45920         require AC_C_INLINE.
45921         * modules/pthread (Depends-on): Add sched, time.
45922         (pthread.h): Use AM_V_GEN.
45924 2010-07-13  Bruno Haible  <bruno@clisp.org>
45926         striconveh: Don't malloc memory if the result buffer is sufficient.
45927         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
45928         buffer if its size is sufficient.
45929         Reported by Ludovic Courtès <ludo@gnu.org>.
45931 2010-07-13  Bruno Haible  <bruno@clisp.org>
45933         strtod: Add safety check.
45934         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
45936 2010-07-12  Bruno Haible  <bruno@clisp.org>
45938         Unify tests that set gl_cv_func_ldexpl_no_libm.
45939         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
45940         gl_FUNC_LDEXPL.
45941         (gl_FUNC_LDEXPL): Invoke it.
45942         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
45944 2010-07-12  Bruno Haible  <bruno@clisp.org>
45946         Unify tests that set gl_cv_func_ldexp_no_libm.
45947         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
45948         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
45949         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
45950         (configure.ac): Simply invoke gl_FUNC_LDEXP.
45951         * modules/strtod (Files): Add m4/ldexp.m4.
45953 2010-07-12  Bruno Haible  <bruno@clisp.org>
45955         Unify tests that set gl_cv_func_frexpl_no_libm.
45956         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
45957         gl_FUNC_FREXPL_NO_LIBM.
45958         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
45959         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
45961 2010-07-12  Bruno Haible  <bruno@clisp.org>
45963         Unify tests that set gl_cv_func_frexp_no_libm.
45964         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
45965         gl_FUNC_FREXP_NO_LIBM.
45966         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
45967         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
45969 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
45971         memcoll: clarify sizes versus lengths, document better, and tweak perf
45972         * lib/memcoll.c (strcoll_loop, memcoll0):
45973         Improve quality of descriptive comments.  Name variables
45974         consistently as to whether they are lengths (which do not include
45975         terminating null) versus sizes (which do).
45976         * lib/xmemcoll.c (xmemcoll0): Likewise.
45977         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
45978         returned when s1size == 0; this is easier to compile and saves
45979         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
45981 2010-07-12  Bruno Haible  <bruno@clisp.org>
45983         Tests for module '_Exit'.
45984         * modules/_Exit-tests: New file.
45985         * tests/test-_Exit.sh: New file.
45986         * tests/test-_Exit.c: New file.
45988         New module '_Exit'.
45989         * lib/stdlib.in.h (__attribute__): New macro.
45990         (_Exit): New declaration.
45991         * lib/_Exit.c: New file.
45992         * m4/_Exit.m4: New file.
45993         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
45994         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
45995         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
45996         * modules/_Exit: New file.
45997         * tests/test-stdlib-c++.cc (_Exit): Check signature.
45998         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
46000 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
46002         strtod: make it more-accurate typically, and don't require libm
46003         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
46004         Include limits.h.  Don't include string.h.
46005         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
46006         (locale_isspace): New function, so that no casts are needed to
46007         check whether *s is a space.
46008         (ldexp): Provide an unused dummy if not available.
46009         (scale_radix_exp, parse_number, underlying_strtod): New functions.
46010         (strtod): Use them.  This implementation prefers to use the
46011         underlying strtod if available, falling back on our own code
46012         only to fix known bugs.  This is more likely to produce an
46013         accurate result.  Also, it avoids the use of libm functions.
46014         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
46015         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
46016         was absent, but it caused a test failure with coreutils.
46017         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
46018         with libm.
46019         * modules/strtod (Makefile.am, Link): libm is no longer needed.
46020         * modules/strtod-tests (Makefile.am): Likewise.
46022 2010-07-11  Pádraig Brady  <P@draigBrady.com>
46023             Bruno Haible  <bruno@clisp.org>
46025         unistr/u8-strchr: Optimize ASCII argument case.
46026         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
46028 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
46030         (x)memcoll: minor tweaks
46031         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
46032         is after the type that it qualifies.
46033         (memcoll0): Likewise.
46034         * lib/memcoll.h (memcoll0): Likewise.
46035         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
46036         * lib/xmemcoll.h (xmemcoll0): Likewise.
46037         * lib/memcoll.c (memcoll0): Correct the comment.  This function
46038         differs from memcoll in that the NUL byte is part of the argument.
46039         Omit the abort-checks, as performance is a real issue here.  Plus,
46040         the checks were wrong anyway (an off-by-one error).  Omit local
46041         variable 'diff', as it's a bit clearer that way.
46042         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
46043         no longer needed.
46045 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
46047         (x)memcoll: speedup when input is known to be NUL delimited
46048         * lib/memcoll.c: Include stdlib.
46049         (memcoll0): New function.
46050         (strcoll_loop): New function, refactored for use in both memcoll
46051         and memcoll0.
46052         * lib/memcoll.h (memcoll0): Add prototype.
46053         * lib/xmemcoll.c (xmemcoll0): New function.
46054         (collate_error): New function, refactored for use in both xmemcoll
46055         and xmemcoll0.
46056         * lib/xmemcoll.h (xmemcoll0): Add prototype.
46057         * m4/memcoll.m4: add inline invocation.
46059 2010-07-06  Pádraig Brady  <P@draigBrady.com>
46061         * build-aux/bootstrap: Remove any local translations
46062         from the translation project synchronization directory,
46063         so that local only translations are not distributed.
46065 2010-07-04  Bruno Haible  <bruno@clisp.org>
46067         fsusage: Clarify which code applies to which platforms.
46068         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
46069         platform.
46070         * lib/fsusage.c (get_fs_usage): Likewise.
46072 2010-07-04  Bruno Haible  <bruno@clisp.org>
46074         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
46075         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
46076         Reported by Martin Lambers <marlam@marlam.de>.
46078 2010-07-04  Jim Meyering  <meyering@redhat.com>
46080         hash: once again explicitly disallow insertion of NULL
46081         * lib/hash.c (hash_insert0): Reinstate just-removed test:
46082         inserting a NULL pointer cannot work with these functions.
46083         Add a comment with details.
46084         This reverts part of the 2010-07-01 commit, 5bef1a35
46085         "hash: extend module to deal with non-pointer keys".
46087 2010-07-01  Bruno Haible  <bruno@clisp.org>
46089         stdbool: Update doc.
46090         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
46091         Info from Christian Weisgerber <naddy@mips.inka.de>.
46093 2010-07-01  Jim Meyering  <meyering@redhat.com>
46095         hash: extend module to deal with non-pointer keys
46096         * lib/hash.c (hash_insert0): New interface, much like hash_insert
46097         but that allows insertion of non-pointer entries.
46098         Do not disallow an ENTRY value of NULL.
46099         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
46100         * lib/hash.h (hash_insert0): Declare.
46102 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
46104         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
46105         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
46106         not present (i.e. with autoconf 2.59 and when using gettextize, not
46107         gnulib), require AC_GNU_SOURCE instead.
46109 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
46111         idpriv-drop: Fix tests.
46112         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
46113         not to the test-idpriv-droptemp program.
46115 2010-06-29  Bruno Haible  <bruno@clisp.org>
46117         string: Fix syntax error with g++ 2.96.
46118         * lib/string.in.h (__pure__): Remove definition.
46119         (_GL_ATTRIBUTE_PURE): New macro.
46120         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
46121         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
46122         Reported by Christian Weisgerber <naddy@mips.inka.de>.
46124 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
46126         unitypes: Fix bug introduced on 2010-05-18.
46127         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
46129 2010-06-22  Eric Blake  <eblake@redhat.com>
46131         memmem: slight optimization
46132         * lib/str-two-way.h (critical_factorization): Update comments.
46133         Reduce work during factorization phase.
46134         Reported by Carlos Bueno <carlos@bueno.org>.
46136 2010-06-21  Bruno Haible  <bruno@clisp.org>
46138         Fix HAVE_CALLOC_POSIX misnomer.
46139         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
46140         !HAVE_CALLOC_POSIX.
46141         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
46142         HAVE_CALLOC_POSIX.
46143         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
46144         instead of HAVE_CALLOC_POSIX.
46145         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
46146         HAVE_CALLOC_POSIX.
46148         Use modern idiom for calloc() replacement.
46149         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
46150         AC_FUNC_CALLOC.
46151         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
46152         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
46153         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
46154         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
46155         (gl_REPLACE_CALLOC): New macro.
46157 2010-06-21  Bruno Haible  <bruno@clisp.org>
46159         Fix HAVE_REALLOC_POSIX misnomer.
46160         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
46161         !HAVE_REALLOC_POSIX.
46162         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
46163         HAVE_REALLOC_POSIX.
46164         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
46165         instead of HAVE_REALLOC_POSIX.
46166         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
46167         HAVE_REALLOC_POSIX.
46169         Use modern idiom for realloc() replacement.
46170         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
46171         AC_FUNC_REALLOC.
46172         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
46173         Autoconf's AC_FUNC_REALLOC.
46174         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
46175         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
46176         (gl_REPLACE_REALLOC): New macro.
46177         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
46179 2010-06-21  Bruno Haible  <bruno@clisp.org>
46181         Fix HAVE_MALLOC_POSIX misnomer.
46182         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
46183         !HAVE_MALLOC_POSIX.
46184         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
46185         HAVE_MALLOC_POSIX.
46186         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
46187         instead of HAVE_MALLOC_POSIX.
46188         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
46189         HAVE_MALLOC_POSIX.
46191         Use modern idiom for malloc() replacement.
46192         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
46193         AC_FUNC_MALLOC.
46194         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
46195         Autoconf's AC_FUNC_MALLOC.
46196         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
46197         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
46198         (gl_REPLACE_MALLOC): New macro.
46199         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
46201 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
46203         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
46204         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
46205         This macro takes 3 arguments, not 4.
46207 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
46209         ipv6: fix detection under mingw
46210         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
46211         in6_addr.
46213 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
46215         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
46216         that strtod() works when cross-compiling to a glibc version known
46217         to work.
46219 2010-06-15  Bruno Haible  <bruno@clisp.org>
46221         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
46223 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
46225         select: Correct timeout.
46226         * lib/select.c (rpl_select): Compute wait_timeout correctly.
46228 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
46230         git-version-gen: init shell var to avoid env var influence
46231         * build-aux/git-version-gen (v): Init shell var to empty.
46233 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
46235         priv-set: Don't assume that priv.h exists merely because getppriv does.
46236         See Jan Andersen's bug report about AIX 5L in
46237         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
46238         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
46239         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
46240         * lib/priv-set.h: Likewise.
46241         * tests/test-priv-set.c: Likewise.
46243 2010-06-13  Bruno Haible  <bruno@clisp.org>
46245         relocatable: Make it easier to test whether to install wrappers.
46246         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
46247         RELOCATABLE_VIA_WRAPPER.
46249 2010-06-13  Bruno Haible  <bruno@clisp.org>
46251         gnulib-tool: Display specified modules and dependencies differently.
46252         * gnulib-tool (func_show_module_list): New function.
46253         (func_import, func_create_testdir): Invoke it.
46254         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
46256 2010-06-13  Bruno Haible  <bruno@clisp.org>
46258         gnulib-tool: Align code of func_import and func_create_testdir.
46259         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
46260         specified_modules.
46262 2010-06-12  Jim Meyering  <meyering@redhat.com>
46264         test-inttostr: avoid spurious failure on Solaris 9
46265         * tests/test-inttostr.c (main): Skip the test when snprintf fails
46266         to accept "%ju".  Reported by Bruno Haible.
46268 2010-06-11  Jim Meyering  <meyering@redhat.com>
46270         test-sys_socket: mark variables as used more readably
46271         * tests/test-sys_socket.c (main): Mark otherwise unused variables
46272         as "used" explicitly via (void) statement casts.  This is more
46273         readable than using them in an artificial return expression.
46274         Suggestion from Bruno Haible.
46276 2010-06-11  Bruno Haible  <bruno@clisp.org>
46278         Avoid some more warnings from "gcc -Wwrite-strings".
46279         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
46280         to 'const char *'.
46281         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
46282         * tests/test-c-strcasestr.c (main): Likewise.
46283         * tests/test-mbscasestr1.c (main): Likewise.
46284         * tests/test-mbscasestr2.c (main): Likewise.
46285         * tests/test-memmem.c (main): Likewise.
46286         * tests/test-strstr.c (main): Likewise.
46287         * tests/test-strcasestr.c (main): Likewise.
46289 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46291         init.sh: change framework_failure_ to fail with status 99, not 1
46292         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
46293         automake's parallel-tests rule that this is an unexpected failure,
46294         even if the test is listed in XFAIL_TESTS.
46296 2010-06-11  Jim Meyering  <meyering@redhat.com>
46298         test-inttostr: avoid warnings about 4-6KB literal strings
46299         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
46300         Include "macros.h", for its definition of ASSERT.
46301         (CK): s/assert/ASSERT/
46302         * modules/inttostr-tests (Files): Add macros.h.
46304         init.sh: don't use $ME_ or skip_ before they are defined
46305         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
46306         their first uses.  Also hoist their companions: warn_, fail_,
46307         framework_failure_, $stderr_fileno.  Prompted by a patch from
46308         Stefano Lattarini.
46310         test-sys_socket: avoid set-but-not-used warnings from gcc
46311         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
46312         avoid warning about set-but-not-used variables.
46314         test-xvasprintf: avoid 'const' discard warnings
46315         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
46316         "const" when assigning from literal strings.
46317         (test_xasprintf): Add "void" in function argument list to placate
46318         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
46320         tests: avoid compilation warnings in argmatch and exclude tests...
46321         in packages that define ARGMATCH_DIE_DECL, like coreutils.
46322         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
46323         Since it always exits, declare with the "noreturn" attribute.
46324         * tests/test-argmatch.c: Likewise.
46326         tests: avoid 'const' discard warnings in mbsstr tests
46327         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
46328         * tests/test-mbsstr2.c (main): Likewise.
46330         test-verify: avoid warning from gcc's -Wmissing-declarations
46331         * tests/test-verify.c (function): Declare to be static.
46333         test-inttostr.c: include <string.h> for use of strcmp
46334         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
46336         test-linkat: avoid failed assertion on "other" architectures
46337         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
46338         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
46339         sparc: https://bugs.launchpad.net/bugs/591968
46341 2010-06-11  Jim Meyering  <meyering@redhat.com>
46343         printf.m4: avoid autoconf's "Expanded Before Required" warning
46344         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
46345         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
46346         autoconf warning.
46348 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
46350         Replacement header templates are now named with ".in", not "_".
46351         * doc/gnulib-intro.texi: Correct.
46353 2010-06-10  Jim Meyering  <meyering@redhat.com>
46355         inttostr-tests: depend on snprintf, not snprintf-posix
46356         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
46357         snprintf-posix, to avoid this aclocal failure:
46358           missing file gnulib-tests/vasnprintf.c
46359           configure.ac:45: error: expected source file, required through \
46360           AC_LIBSOURCES, not found
46362 2010-06-10  Jim Meyering  <meyering@redhat.com>
46364         inttostr: add a new function, inttostr, and tests
46365         The namesake function was not available.  The existence of the
46366         template file, inttostr.c makes its addition nontrivial.
46367         * lib/anytostr.c: Rename from inttostr.c.
46368         (anytostr): Rename from inttostr.
46369         * lib/inttostr.c: New file.
46370         * modules/inttostr (Files): Add anytostr.c.
46371         (Makefile.am): Set lib_SOURCES instead of ...
46372         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
46373         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
46374         * lib/offtostr.c: Likewise.
46375         * lib/uinttostr.c: Likewise.
46376         * lib/umaxtostr.c: Likewise.
46377         * modules/inttostr-tests: New file.
46378         * tests/test-inttostr.c: New file.  Test these functions.
46380 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
46381             Bruno Haible  <bruno@clisp.org>
46383         Add "Extending Gnulib" chapter to manual.
46384         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
46385         chapter.
46386         (Extending Gnulib): New chapter.
46387         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
46388         chapter.
46390 2010-06-09  Bruno Haible  <bruno@clisp.org>
46392         Avoid relocwrapper link errors due to gnulib replacement functions.
46393         * lib/areadlink.c: Use the system's malloc, realloc functions.
46394         (areadlink): Set errno to ENOMEM explicitly.
46395         * modules/areadlink (Depends-on): Remove malloc-posix.
46396         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46398 2010-06-09  Bruno Haible  <bruno@clisp.org>
46400         Avoid relocwrapper link errors due to gnulib replacement functions.
46401         * lib/canonicalize-lgpl.c: Use the system's malloc function.
46402         * lib/malloca.c: Likewise.
46403         * lib/relocatable.c: Likewise.
46404         * lib/progreloc.c: Use the system's malloc, sprintf functions.
46405         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
46406         * lib/setenv.c: Use the system's malloc, realloc functions.
46407         * lib/strerror.c: Use the system's sprintf function.
46408         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46410 2010-06-04  Bruno Haible  <bruno@clisp.org>
46412         Prefer documented low-level autoconf macro names.
46413         * m4/lib-link.m4: Use m4_translit instead of translit.
46414         * m4/environ.m4: Likewise.
46415         * m4/mathfunc.m4: Likewise.
46416         * m4/onceonly.m4: Likewise.
46417         * m4/stdint.m4: Likewise.
46418         Suggested by Eric Blake.
46420 2010-06-04  Martin Lambers  <marlam@marlam.de>
46421             Bruno Haible  <bruno@clisp.org>
46423         havelib: Allow library names with '+' characters.
46424         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
46425         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
46427 2010-06-09  Bruno Haible  <bruno@clisp.org>
46429         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
46430         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
46431         realloc failed.
46433 2010-06-08  Peter Simons  <simons@cryp.to>
46435         maint.mk: make the news-check rule more configurable
46436         * top/maint.mk (news-check-lines-spec): New variable.
46437         (news-check): Use "sed -n 1,10p" in place of "head".
46439 2010-06-07  Jim Meyering  <meyering@redhat.com>
46441         do-release-commit-and-tag: fix typo in --help
46442         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
46444         regex: avoid new dead-code warning with gcc-4.6.0
46445         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
46446         if-block containing a while-loop.  It's been unused for at least
46447         5 years.
46449 2010-06-05  Bruno Haible  <bruno@clisp.org>
46451         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
46452         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
46454 2010-06-04  Bruno Haible  <bruno@clisp.org>
46456         Update to GNU gettext 0.18.1.
46457         * modules/gettext (configure.ac): Require gettext infrastructure from
46458         version 0.18.1.
46460 2010-06-03  Bruno Haible  <bruno@clisp.org>
46462         Don't use AC_LIBOBJ with file names in subdirectories.
46463         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
46464         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
46465         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
46466         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
46467         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
46468         gl_LIBUNISTRING_LIBSOURCE.
46469         (Makefile.am): Augment lib_SOURCES here, conditionally.
46470         * NEWS: Drop requirement for Automake option 'subdir-objects'.
46472 2010-06-03  Bruno Haible  <bruno@clisp.org>
46474         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
46475         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
46476         expansion does not end with a newline.
46477         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
46478         unnecessary newline.
46480 2010-06-03  Bruno Haible  <bruno@clisp.org>
46482         Reduce dependencies.
46483         * tests/test-quotearg.h: New file, extracted from
46484         tests/test-quotearg.c.
46485         * tests/test-quotearg-simple.c: New file, extracted from
46486         tests/test-quotearg.c.
46487         * tests/test-quotearg.c: Don't include <ctype.h>.
46488         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
46489         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
46490         use_quote_double_quotes, use_quotearg_colon): Moved to
46491         tests/test-quotearg.h.
46492         (results_g, flag_results, custom_quotes, custom_results): Moved
46493         to tests/test-quotearg-simple.c.
46494         (main): Moved the part that does not depend on gettext to
46495         tests/test-quotearg-simple.c. Return 77 if the test cannot be
46496         performed.
46497         * modules/quotearg-simple: New file.
46498         * modules/quotearg-simple-tests: New file.
46499         * modules/quotearg (Depends-on): Add quotearg-simple.
46500         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
46501         (Files): Add tests/test-quotearg.h.
46502         Reported by Paolo Bonzini.
46504 2010-06-03  Bruno Haible  <bruno@clisp.org>
46506         Reduce dependencies.
46507         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
46509 2010-06-03  Bruno Haible  <bruno@clisp.org>
46511         time: Undefine more broken macros.
46512         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
46513         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
46514         Reported by Eric Blake.
46516 2010-06-03  Bruno Haible  <bruno@clisp.org>
46518         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
46519         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
46520         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
46521         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
46522         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
46523         Reported by Ludovic Courtès <ludo@gnu.org>.
46525 2010-06-02  Eric Blake  <eblake@redhat.com>
46527         time: work with mingw + pthreads-win32 library
46528         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
46529         if timespec is defined only in pthread.h.
46530         * modules/time (Makefile.am): Substitute it.
46531         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
46532         <pthread.h>, when needed.
46533         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
46534         from the library.
46536 2010-05-31  Bruno Haible  <bruno@clisp.org>
46538         Avoid expanding two macros in the wrong order.
46539         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
46540         gl_LIBUNISTRING if it is defined.
46541         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
46542         autoconf >= 2.64.
46543         Reported by Ludovic Courtès <ludo@gnu.org>.
46545 2010-05-27  Jim Meyering  <meyering@redhat.com>
46547         maint.mk: also prohibit "#undef" of always-defined symbols
46548         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
46549         Allow more than one space before the symbol name.
46550         (sc_prohibit_always-defined_macros): Use grep's -E, now that
46551         the regexp uses alternation.
46553 2010-05-26  Eric Blake  <eblake@redhat.com>
46555         maint.mk: avoid echo -e
46556         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
46557         Convert all uses of echo -* to printf.
46558         Reported by Matthias Bolte.
46560 2010-05-25  Bruno Haible  <bruno@clisp.org>
46562         Update to GNU gettext 0.18, part 2.
46563         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
46564         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
46566 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46568         Add missing include in test-pwrite.c.
46569         * tests/test-pwrite.c: Include string.h, for strcmp.
46571 2010-05-24  Bruno Haible  <bruno@clisp.org>
46573         * NEWS: Mention requirement for Automake option 'subdir-objects'.
46575 2010-05-24  Bruno Haible  <bruno@clisp.org>
46577         Don't use conversion with transliteration in u{8,16,32}_strcoll.
46578         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
46579         iconveh_error argument.
46580         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
46581         U_STRCONV_TO_LOCALE.
46582         * lib/unistr/u16-strcoll.c: Likewise.
46583         * lib/unistr/u32-strcoll.c: Likewise.
46584         * modules/unistr/u8-strcoll (Depends-on): Add
46585         uniconv/u8-strconv-to-enc, localcharset. Remove
46586         uniconv/u8-strconv-to-locale.
46587         (configure.ac): Bump version number.
46588         * modules/unistr/u16-strcoll (Depends-on): Add
46589         uniconv/u16-strconv-to-enc, localcharset. Remove
46590         uniconv/u16-strconv-to-locale.
46591         (configure.ac): Bump version number.
46592         * modules/unistr/u32-strcoll (Depends-on): Add
46593         uniconv/u32-strconv-to-enc, localcharset. Remove
46594         uniconv/u32-strconv-to-locale.
46595         (configure.ac): Bump version number.
46597 2010-05-24  Bruno Haible  <bruno@clisp.org>
46599         Avoid a test failure on NetBSD 5.0.
46600         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
46601         an iconv() bug.
46603 2010-05-24  Bruno Haible  <bruno@clisp.org>
46605         Adjust #include directive style.
46606         * modules/regex (Includes): Recommend to write <regex.h>.
46608 2010-05-24  Bruno Haible  <bruno@clisp.org>
46610         regex: Don't require alloca.
46611         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
46612         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
46613         only inside if (0).
46615 2010-05-23  Jim Meyering  <meyering@redhat.com>
46617         test-renameat.c: include <sys/stat.h>
46618         * tests/test-renameat.c: Include <sys/stat.h>; required for
46619         definition of S_IS* macros.
46621 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
46623         Update maintainer documentation for 'relocatable-prog' module.
46624         * doc/relocatable-maint.texi: Update.
46625         Comments by Bruno Haible.
46627 2010-05-23  Bruno Haible  <bruno@clisp.org>
46629         git-merge-changelog: Enable --split-merged-entry by default.
46630         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
46631         (usage): Don't mention this option any more.
46632         Reported by Ralf Wildenhues.
46634 2010-05-23  Jim Meyering  <meyering@redhat.com>
46636         test-pwrite: do not leave behind a test file named "out"
46637         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
46638         The trivial-looking use of init.sh is really necessary.
46639         It ensures that the temporary file, "out", is created in
46640         a temporary directory, and removed upon termination.
46641         * tests/test-pwrite.sh: Re-add file.
46642         * modules/pwrite-tests: Reference it.
46644 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46646         Fix output redirection buglet in init.sh.
46647         * tests/init.sh: Fix redirection of stderr.
46649 2010-05-20  Simon Josefsson  <simon@josefsson.org>
46651         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
46653 2010-05-17  Simon Josefsson  <simon@josefsson.org>
46655         * modules/valgrind-tests: New file.
46656         * m4/valgrind-tests.m4: New file.
46657         * doc/valgrind-tests.texi: New file.
46658         * doc/gnulib.texi (Running self-tests under valgrind): New
46659         section.
46661 2010-05-19  Bruno Haible  <bruno@clisp.org>
46663         Clean up dead code in recent commit.
46664         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
46665         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
46666         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
46667         Suggested by Paolo Bonzini.
46669 2010-05-19  Bruno Haible  <bruno@clisp.org>
46671         Avoid valgrind error reports from libunistring.
46672         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
46673         * modules/libunistring (Files): Add it.
46674         * modules/libunistring-optional (Files): Likewise.
46676 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
46677             Bruno Haible  <bruno@clisp.org>
46679         New module 'libunistring-optional'.
46680         * modules/libunistring-optional: New file.
46681         * m4/libunistring-base.m4: New file.
46682         * m4/libunistring-optional.m4: New file.
46683         * lib/unicase.in.h: Renamed from lib/unicase.h.
46684         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
46685         * lib/unictype.in.h: Renamed from lib/unictype.h.
46686         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
46687         * lib/uniname.in.h: Renamed from lib/uniname.h.
46688         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
46689         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
46690         * lib/unistr.in.h: Renamed from lib/unistr.h.
46691         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
46692         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
46693         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
46694         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
46695         gl_LIBUNISTRING. If the library was found, determine the installed
46696         version and set LIBUNISTRING_VERSION.
46697         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
46698         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
46699         handle a configuration option --with-included-libunistring.
46700         * modules/libunistring (Files): Add m4/absolute-header.m4.
46701         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
46702         Add m4/libunistring-base.m4.
46703         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
46704         (Makefile.am): Build unicase.h from unicase.in.h.
46705         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
46706         Add m4/libunistring-base.m4.
46707         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
46708         (Makefile.am): Build uniconv.h from uniconv.in.h.
46709         * modules/unictype/base (Files): Use unictype.in.h instead of
46710         unictype.h. Add m4/libunistring-base.m4.
46711         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
46712         (Makefile.am): Build unictype.h from unictype.in.h.
46713         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
46714         Add m4/libunistring-base.m4.
46715         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
46716         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
46717         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
46718         Add m4/libunistring-base.m4.
46719         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
46720         (Makefile.am): Build uniname.h from uniname.in.h.
46721         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
46722         Add m4/libunistring-base.m4.
46723         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
46724         (Makefile.am): Build uninorm.h from uninorm.in.h.
46725         * modules/unistdio/base (Files): Use unistdio.in.h instead of
46726         unistdio.h. Add m4/libunistring-base.m4.
46727         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
46728         (Makefile.am): Build unistdio.h from unistdio.in.h.
46729         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
46730         Add m4/libunistring-base.m4.
46731         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
46732         (Makefile.am): Build unistr.h from unistr.in.h.
46733         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
46734         Add m4/libunistring-base.m4.
46735         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
46736         (Makefile.am): Build unitypes.h from unitypes.in.h.
46737         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
46738         Add m4/libunistring-base.m4.
46739         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
46740         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
46741         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
46742         uniwidth.h. Add m4/libunistring-base.m4.
46743         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
46744         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
46745         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
46746         instead of augmenting lib_SOURCES.
46747         * modules/unicase/empty-suffix-context: Likewise.
46748         * modules/unicase/locale-language: Likewise.
46749         * modules/unicase/tolower: Likewise.
46750         * modules/unicase/totitle: Likewise.
46751         * modules/unicase/toupper: Likewise.
46752         * modules/unicase/u8-casecmp: Likewise.
46753         * modules/unicase/u8-casecoll: Likewise.
46754         * modules/unicase/u8-casefold: Likewise.
46755         * modules/unicase/u8-casexfrm: Likewise.
46756         * modules/unicase/u8-ct-casefold: Likewise.
46757         * modules/unicase/u8-ct-tolower: Likewise.
46758         * modules/unicase/u8-ct-totitle: Likewise.
46759         * modules/unicase/u8-ct-toupper: Likewise.
46760         * modules/unicase/u8-is-cased: Likewise.
46761         * modules/unicase/u8-is-casefolded: Likewise.
46762         * modules/unicase/u8-is-lowercase: Likewise.
46763         * modules/unicase/u8-is-titlecase: Likewise.
46764         * modules/unicase/u8-is-uppercase: Likewise.
46765         * modules/unicase/u8-prefix-context: Likewise.
46766         * modules/unicase/u8-suffix-context: Likewise.
46767         * modules/unicase/u8-tolower: Likewise.
46768         * modules/unicase/u8-totitle: Likewise.
46769         * modules/unicase/u8-toupper: Likewise.
46770         * modules/unicase/u16-casecmp: Likewise.
46771         * modules/unicase/u16-casecoll: Likewise.
46772         * modules/unicase/u16-casefold: Likewise.
46773         * modules/unicase/u16-casexfrm: Likewise.
46774         * modules/unicase/u16-ct-casefold: Likewise.
46775         * modules/unicase/u16-ct-tolower: Likewise.
46776         * modules/unicase/u16-ct-totitle: Likewise.
46777         * modules/unicase/u16-ct-toupper: Likewise.
46778         * modules/unicase/u16-is-cased: Likewise.
46779         * modules/unicase/u16-is-casefolded: Likewise.
46780         * modules/unicase/u16-is-lowercase: Likewise.
46781         * modules/unicase/u16-is-titlecase: Likewise.
46782         * modules/unicase/u16-is-uppercase: Likewise.
46783         * modules/unicase/u16-prefix-context: Likewise.
46784         * modules/unicase/u16-suffix-context: Likewise.
46785         * modules/unicase/u16-tolower: Likewise.
46786         * modules/unicase/u16-totitle: Likewise.
46787         * modules/unicase/u16-toupper: Likewise.
46788         * modules/unicase/u32-casecmp: Likewise.
46789         * modules/unicase/u32-casecoll: Likewise.
46790         * modules/unicase/u32-casefold: Likewise.
46791         * modules/unicase/u32-casexfrm: Likewise.
46792         * modules/unicase/u32-ct-casefold: Likewise.
46793         * modules/unicase/u32-ct-tolower: Likewise.
46794         * modules/unicase/u32-ct-totitle: Likewise.
46795         * modules/unicase/u32-ct-toupper: Likewise.
46796         * modules/unicase/u32-is-cased: Likewise.
46797         * modules/unicase/u32-is-casefolded: Likewise.
46798         * modules/unicase/u32-is-lowercase: Likewise.
46799         * modules/unicase/u32-is-titlecase: Likewise.
46800         * modules/unicase/u32-is-uppercase: Likewise.
46801         * modules/unicase/u32-prefix-context: Likewise.
46802         * modules/unicase/u32-suffix-context: Likewise.
46803         * modules/unicase/u32-tolower: Likewise.
46804         * modules/unicase/u32-totitle: Likewise.
46805         * modules/unicase/u32-toupper: Likewise.
46806         * modules/unicase/ulc-casecmp: Likewise.
46807         * modules/unicase/ulc-casecoll: Likewise.
46808         * modules/unicase/ulc-casexfrm: Likewise.
46809         * modules/uniconv/u8-conv-from-enc: Likewise.
46810         * modules/uniconv/u8-conv-to-enc: Likewise.
46811         * modules/uniconv/u8-strconv-from-enc: Likewise.
46812         * modules/uniconv/u8-strconv-from-locale: Likewise.
46813         * modules/uniconv/u8-strconv-to-enc: Likewise.
46814         * modules/uniconv/u8-strconv-to-locale: Likewise.
46815         * modules/uniconv/u16-conv-from-enc: Likewise.
46816         * modules/uniconv/u16-conv-to-enc: Likewise.
46817         * modules/uniconv/u16-strconv-from-enc: Likewise.
46818         * modules/uniconv/u16-strconv-from-locale: Likewise.
46819         * modules/uniconv/u16-strconv-to-enc: Likewise.
46820         * modules/uniconv/u16-strconv-to-locale: Likewise.
46821         * modules/uniconv/u32-conv-from-enc: Likewise.
46822         * modules/uniconv/u32-conv-to-enc: Likewise.
46823         * modules/uniconv/u32-strconv-from-enc: Likewise.
46824         * modules/uniconv/u32-strconv-from-locale: Likewise.
46825         * modules/uniconv/u32-strconv-to-enc: Likewise.
46826         * modules/uniconv/u32-strconv-to-locale: Likewise.
46827         * modules/unictype/bidicategory-byname: Likewise.
46828         * modules/unictype/bidicategory-name: Likewise.
46829         * modules/unictype/bidicategory-of: Likewise.
46830         * modules/unictype/bidicategory-test: Likewise.
46831         * modules/unictype/block-list: Likewise.
46832         * modules/unictype/block-test: Likewise.
46833         * modules/unictype/category-C: Likewise.
46834         * modules/unictype/category-Cc: Likewise.
46835         * modules/unictype/category-Cf: Likewise.
46836         * modules/unictype/category-Cn: Likewise.
46837         * modules/unictype/category-Co: Likewise.
46838         * modules/unictype/category-Cs: Likewise.
46839         * modules/unictype/category-L: Likewise.
46840         * modules/unictype/category-Ll: Likewise.
46841         * modules/unictype/category-Lm: Likewise.
46842         * modules/unictype/category-Lo: Likewise.
46843         * modules/unictype/category-Lt: Likewise.
46844         * modules/unictype/category-Lu: Likewise.
46845         * modules/unictype/category-M: Likewise.
46846         * modules/unictype/category-Mc: Likewise.
46847         * modules/unictype/category-Me: Likewise.
46848         * modules/unictype/category-Mn: Likewise.
46849         * modules/unictype/category-N: Likewise.
46850         * modules/unictype/category-Nd: Likewise.
46851         * modules/unictype/category-Nl: Likewise.
46852         * modules/unictype/category-No: Likewise.
46853         * modules/unictype/category-P: Likewise.
46854         * modules/unictype/category-Pc: Likewise.
46855         * modules/unictype/category-Pd: Likewise.
46856         * modules/unictype/category-Pe: Likewise.
46857         * modules/unictype/category-Pf: Likewise.
46858         * modules/unictype/category-Pi: Likewise.
46859         * modules/unictype/category-Po: Likewise.
46860         * modules/unictype/category-Ps: Likewise.
46861         * modules/unictype/category-S: Likewise.
46862         * modules/unictype/category-Sc: Likewise.
46863         * modules/unictype/category-Sk: Likewise.
46864         * modules/unictype/category-Sm: Likewise.
46865         * modules/unictype/category-So: Likewise.
46866         * modules/unictype/category-Z: Likewise.
46867         * modules/unictype/category-Zl: Likewise.
46868         * modules/unictype/category-Zp: Likewise.
46869         * modules/unictype/category-Zs: Likewise.
46870         * modules/unictype/category-and: Likewise.
46871         * modules/unictype/category-and-not: Likewise.
46872         * modules/unictype/category-byname: Likewise.
46873         * modules/unictype/category-name: Likewise.
46874         * modules/unictype/category-none: Likewise.
46875         * modules/unictype/category-of: Likewise.
46876         * modules/unictype/category-or: Likewise.
46877         * modules/unictype/category-test: Likewise.
46878         * modules/unictype/combining-class: Likewise.
46879         * modules/unictype/ctype-alnum: Likewise.
46880         * modules/unictype/ctype-alpha: Likewise.
46881         * modules/unictype/ctype-blank: Likewise.
46882         * modules/unictype/ctype-cntrl: Likewise.
46883         * modules/unictype/ctype-digit: Likewise.
46884         * modules/unictype/ctype-graph: Likewise.
46885         * modules/unictype/ctype-lower: Likewise.
46886         * modules/unictype/ctype-print: Likewise.
46887         * modules/unictype/ctype-punct: Likewise.
46888         * modules/unictype/ctype-space: Likewise.
46889         * modules/unictype/ctype-upper: Likewise.
46890         * modules/unictype/ctype-xdigit: Likewise.
46891         * modules/unictype/decimal-digit: Likewise.
46892         * modules/unictype/digit: Likewise.
46893         * modules/unictype/mirror: Likewise.
46894         * modules/unictype/numeric: Likewise.
46895         * modules/unictype/property-alphabetic: Likewise.
46896         * modules/unictype/property-ascii-hex-digit: Likewise.
46897         * modules/unictype/property-bidi-arabic-digit: Likewise.
46898         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
46899         * modules/unictype/property-bidi-block-separator: Likewise.
46900         * modules/unictype/property-bidi-boundary-neutral: Likewise.
46901         * modules/unictype/property-bidi-common-separator: Likewise.
46902         * modules/unictype/property-bidi-control: Likewise.
46903         * modules/unictype/property-bidi-embedding-or-override: Likewise.
46904         * modules/unictype/property-bidi-eur-num-separator: Likewise.
46905         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
46906         * modules/unictype/property-bidi-european-digit: Likewise.
46907         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
46908         * modules/unictype/property-bidi-left-to-right: Likewise.
46909         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
46910         * modules/unictype/property-bidi-other-neutral: Likewise.
46911         * modules/unictype/property-bidi-pdf: Likewise.
46912         * modules/unictype/property-bidi-segment-separator: Likewise.
46913         * modules/unictype/property-bidi-whitespace: Likewise.
46914         * modules/unictype/property-byname: Likewise.
46915         * modules/unictype/property-combining: Likewise.
46916         * modules/unictype/property-composite: Likewise.
46917         * modules/unictype/property-currency-symbol: Likewise.
46918         * modules/unictype/property-dash: Likewise.
46919         * modules/unictype/property-decimal-digit: Likewise.
46920         * modules/unictype/property-default-ignorable-code-point: Likewise.
46921         * modules/unictype/property-deprecated: Likewise.
46922         * modules/unictype/property-diacritic: Likewise.
46923         * modules/unictype/property-extender: Likewise.
46924         * modules/unictype/property-format-control: Likewise.
46925         * modules/unictype/property-grapheme-base: Likewise.
46926         * modules/unictype/property-grapheme-extend: Likewise.
46927         * modules/unictype/property-grapheme-link: Likewise.
46928         * modules/unictype/property-hex-digit: Likewise.
46929         * modules/unictype/property-hyphen: Likewise.
46930         * modules/unictype/property-id-continue: Likewise.
46931         * modules/unictype/property-id-start: Likewise.
46932         * modules/unictype/property-ideographic: Likewise.
46933         * modules/unictype/property-ids-binary-operator: Likewise.
46934         * modules/unictype/property-ids-trinary-operator: Likewise.
46935         * modules/unictype/property-ignorable-control: Likewise.
46936         * modules/unictype/property-iso-control: Likewise.
46937         * modules/unictype/property-join-control: Likewise.
46938         * modules/unictype/property-left-of-pair: Likewise.
46939         * modules/unictype/property-line-separator: Likewise.
46940         * modules/unictype/property-logical-order-exception: Likewise.
46941         * modules/unictype/property-lowercase: Likewise.
46942         * modules/unictype/property-math: Likewise.
46943         * modules/unictype/property-non-break: Likewise.
46944         * modules/unictype/property-not-a-character: Likewise.
46945         * modules/unictype/property-numeric: Likewise.
46946         * modules/unictype/property-other-alphabetic: Likewise.
46947         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
46948         * modules/unictype/property-other-grapheme-extend: Likewise.
46949         * modules/unictype/property-other-id-continue: Likewise.
46950         * modules/unictype/property-other-id-start: Likewise.
46951         * modules/unictype/property-other-lowercase: Likewise.
46952         * modules/unictype/property-other-math: Likewise.
46953         * modules/unictype/property-other-uppercase: Likewise.
46954         * modules/unictype/property-paired-punctuation: Likewise.
46955         * modules/unictype/property-paragraph-separator: Likewise.
46956         * modules/unictype/property-pattern-syntax: Likewise.
46957         * modules/unictype/property-pattern-white-space: Likewise.
46958         * modules/unictype/property-private-use: Likewise.
46959         * modules/unictype/property-punctuation: Likewise.
46960         * modules/unictype/property-quotation-mark: Likewise.
46961         * modules/unictype/property-radical: Likewise.
46962         * modules/unictype/property-sentence-terminal: Likewise.
46963         * modules/unictype/property-soft-dotted: Likewise.
46964         * modules/unictype/property-space: Likewise.
46965         * modules/unictype/property-terminal-punctuation: Likewise.
46966         * modules/unictype/property-test: Likewise.
46967         * modules/unictype/property-titlecase: Likewise.
46968         * modules/unictype/property-unassigned-code-value: Likewise.
46969         * modules/unictype/property-unified-ideograph: Likewise.
46970         * modules/unictype/property-uppercase: Likewise.
46971         * modules/unictype/property-variation-selector: Likewise.
46972         * modules/unictype/property-white-space: Likewise.
46973         * modules/unictype/property-xid-continue: Likewise.
46974         * modules/unictype/property-xid-start: Likewise.
46975         * modules/unictype/property-zero-width: Likewise.
46976         * modules/unictype/scripts: Likewise.
46977         * modules/unictype/syntax-c-ident: Likewise.
46978         * modules/unictype/syntax-c-whitespace: Likewise.
46979         * modules/unictype/syntax-java-ident: Likewise.
46980         * modules/unictype/syntax-java-whitespace: Likewise.
46981         * modules/unilbrk/u8-possible-linebreaks: Likewise.
46982         * modules/unilbrk/u8-width-linebreaks: Likewise.
46983         * modules/unilbrk/u16-possible-linebreaks: Likewise.
46984         * modules/unilbrk/u16-width-linebreaks: Likewise.
46985         * modules/unilbrk/u32-possible-linebreaks: Likewise.
46986         * modules/unilbrk/u32-width-linebreaks: Likewise.
46987         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
46988         * modules/unilbrk/ulc-width-linebreaks: Likewise.
46989         * modules/uniname/uniname: Likewise.
46990         * modules/uninorm/canonical-decomposition: Likewise.
46991         * modules/uninorm/composition: Likewise.
46992         * modules/uninorm/decomposing-form: Likewise.
46993         * modules/uninorm/decomposition: Likewise.
46994         * modules/uninorm/filter: Likewise.
46995         * modules/uninorm/nfc: Likewise.
46996         * modules/uninorm/nfd: Likewise.
46997         * modules/uninorm/nfkc: Likewise.
46998         * modules/uninorm/nfkd: Likewise.
46999         * modules/uninorm/u8-normalize: Likewise.
47000         * modules/uninorm/u8-normcmp: Likewise.
47001         * modules/uninorm/u8-normcoll: Likewise.
47002         * modules/uninorm/u8-normxfrm: Likewise.
47003         * modules/uninorm/u16-normalize: Likewise.
47004         * modules/uninorm/u16-normcmp: Likewise.
47005         * modules/uninorm/u16-normcoll: Likewise.
47006         * modules/uninorm/u16-normxfrm: Likewise.
47007         * modules/uninorm/u32-normalize: Likewise.
47008         * modules/uninorm/u32-normcmp: Likewise.
47009         * modules/uninorm/u32-normcoll: Likewise.
47010         * modules/uninorm/u32-normxfrm: Likewise.
47011         * modules/unistdio/u8-asnprintf: Likewise.
47012         * modules/unistdio/u8-asprintf: Likewise.
47013         * modules/unistdio/u8-snprintf: Likewise.
47014         * modules/unistdio/u8-sprintf: Likewise.
47015         * modules/unistdio/u8-u8-asnprintf: Likewise.
47016         * modules/unistdio/u8-u8-asprintf: Likewise.
47017         * modules/unistdio/u8-u8-snprintf: Likewise.
47018         * modules/unistdio/u8-u8-sprintf: Likewise.
47019         * modules/unistdio/u8-u8-vasnprintf: Likewise.
47020         * modules/unistdio/u8-u8-vasprintf: Likewise.
47021         * modules/unistdio/u8-u8-vsnprintf: Likewise.
47022         * modules/unistdio/u8-u8-vsprintf: Likewise.
47023         * modules/unistdio/u8-vasnprintf: Likewise.
47024         * modules/unistdio/u8-vasprintf: Likewise.
47025         * modules/unistdio/u8-vsnprintf: Likewise.
47026         * modules/unistdio/u8-vsprintf: Likewise.
47027         * modules/unistdio/u16-asnprintf: Likewise.
47028         * modules/unistdio/u16-asprintf: Likewise.
47029         * modules/unistdio/u16-snprintf: Likewise.
47030         * modules/unistdio/u16-sprintf: Likewise.
47031         * modules/unistdio/u16-u16-asnprintf: Likewise.
47032         * modules/unistdio/u16-u16-asprintf: Likewise.
47033         * modules/unistdio/u16-u16-snprintf: Likewise.
47034         * modules/unistdio/u16-u16-sprintf: Likewise.
47035         * modules/unistdio/u16-u16-vasnprintf: Likewise.
47036         * modules/unistdio/u16-u16-vasprintf: Likewise.
47037         * modules/unistdio/u16-u16-vsnprintf: Likewise.
47038         * modules/unistdio/u16-u16-vsprintf: Likewise.
47039         * modules/unistdio/u16-vasnprintf: Likewise.
47040         * modules/unistdio/u16-vasprintf: Likewise.
47041         * modules/unistdio/u16-vsnprintf: Likewise.
47042         * modules/unistdio/u16-vsprintf: Likewise.
47043         * modules/unistdio/u32-asnprintf: Likewise.
47044         * modules/unistdio/u32-asprintf: Likewise.
47045         * modules/unistdio/u32-snprintf: Likewise.
47046         * modules/unistdio/u32-sprintf: Likewise.
47047         * modules/unistdio/u32-u32-asnprintf: Likewise.
47048         * modules/unistdio/u32-u32-asprintf: Likewise.
47049         * modules/unistdio/u32-u32-snprintf: Likewise.
47050         * modules/unistdio/u32-u32-sprintf: Likewise.
47051         * modules/unistdio/u32-u32-vasnprintf: Likewise.
47052         * modules/unistdio/u32-u32-vasprintf: Likewise.
47053         * modules/unistdio/u32-u32-vsnprintf: Likewise.
47054         * modules/unistdio/u32-u32-vsprintf: Likewise.
47055         * modules/unistdio/u32-vasnprintf: Likewise.
47056         * modules/unistdio/u32-vasprintf: Likewise.
47057         * modules/unistdio/u32-vsnprintf: Likewise.
47058         * modules/unistdio/u32-vsprintf: Likewise.
47059         * modules/unistdio/ulc-asnprintf: Likewise.
47060         * modules/unistdio/ulc-asprintf: Likewise.
47061         * modules/unistdio/ulc-fprintf: Likewise.
47062         * modules/unistdio/ulc-snprintf: Likewise.
47063         * modules/unistdio/ulc-sprintf: Likewise.
47064         * modules/unistdio/ulc-vasnprintf: Likewise.
47065         * modules/unistdio/ulc-vasprintf: Likewise.
47066         * modules/unistdio/ulc-vfprintf: Likewise.
47067         * modules/unistdio/ulc-vsnprintf: Likewise.
47068         * modules/unistdio/ulc-vsprintf: Likewise.
47069         * modules/unistr/u8-check: Likewise.
47070         * modules/unistr/u8-chr: Likewise.
47071         * modules/unistr/u8-cmp: Likewise.
47072         * modules/unistr/u8-cmp2: Likewise.
47073         * modules/unistr/u8-cpy: Likewise.
47074         * modules/unistr/u8-cpy-alloc: Likewise.
47075         * modules/unistr/u8-endswith: Likewise.
47076         * modules/unistr/u8-mblen: Likewise.
47077         * modules/unistr/u8-mbsnlen: Likewise.
47078         * modules/unistr/u8-mbtouc: Likewise.
47079         * modules/unistr/u8-mbtouc-unsafe: Likewise.
47080         * modules/unistr/u8-mbtoucr: Likewise.
47081         * modules/unistr/u8-move: Likewise.
47082         * modules/unistr/u8-next: Likewise.
47083         * modules/unistr/u8-prev: Likewise.
47084         * modules/unistr/u8-set: Likewise.
47085         * modules/unistr/u8-startswith: Likewise.
47086         * modules/unistr/u8-stpcpy: Likewise.
47087         * modules/unistr/u8-stpncpy: Likewise.
47088         * modules/unistr/u8-strcat: Likewise.
47089         * modules/unistr/u8-strchr: Likewise.
47090         * modules/unistr/u8-strcmp: Likewise.
47091         * modules/unistr/u8-strcoll: Likewise.
47092         * modules/unistr/u8-strcpy: Likewise.
47093         * modules/unistr/u8-strcspn: Likewise.
47094         * modules/unistr/u8-strdup: Likewise.
47095         * modules/unistr/u8-strlen: Likewise.
47096         * modules/unistr/u8-strmblen: Likewise.
47097         * modules/unistr/u8-strmbtouc: Likewise.
47098         * modules/unistr/u8-strncat: Likewise.
47099         * modules/unistr/u8-strncmp: Likewise.
47100         * modules/unistr/u8-strncpy: Likewise.
47101         * modules/unistr/u8-strnlen: Likewise.
47102         * modules/unistr/u8-strpbrk: Likewise.
47103         * modules/unistr/u8-strrchr: Likewise.
47104         * modules/unistr/u8-strspn: Likewise.
47105         * modules/unistr/u8-strstr: Likewise.
47106         * modules/unistr/u8-strtok: Likewise.
47107         * modules/unistr/u8-to-u16: Likewise.
47108         * modules/unistr/u8-to-u32: Likewise.
47109         * modules/unistr/u8-uctomb: Likewise.
47110         * modules/unistr/u16-check: Likewise.
47111         * modules/unistr/u16-chr: Likewise.
47112         * modules/unistr/u16-cmp: Likewise.
47113         * modules/unistr/u16-cmp2: Likewise.
47114         * modules/unistr/u16-cpy: Likewise.
47115         * modules/unistr/u16-cpy-alloc: Likewise.
47116         * modules/unistr/u16-endswith: Likewise.
47117         * modules/unistr/u16-mblen: Likewise.
47118         * modules/unistr/u16-mbsnlen: Likewise.
47119         * modules/unistr/u16-mbtouc: Likewise.
47120         * modules/unistr/u16-mbtouc-unsafe: Likewise.
47121         * modules/unistr/u16-mbtoucr: Likewise.
47122         * modules/unistr/u16-move: Likewise.
47123         * modules/unistr/u16-next: Likewise.
47124         * modules/unistr/u16-prev: Likewise.
47125         * modules/unistr/u16-set: Likewise.
47126         * modules/unistr/u16-startswith: Likewise.
47127         * modules/unistr/u16-stpcpy: Likewise.
47128         * modules/unistr/u16-stpncpy: Likewise.
47129         * modules/unistr/u16-strcat: Likewise.
47130         * modules/unistr/u16-strchr: Likewise.
47131         * modules/unistr/u16-strcmp: Likewise.
47132         * modules/unistr/u16-strcoll: Likewise.
47133         * modules/unistr/u16-strcpy: Likewise.
47134         * modules/unistr/u16-strcspn: Likewise.
47135         * modules/unistr/u16-strdup: Likewise.
47136         * modules/unistr/u16-strlen: Likewise.
47137         * modules/unistr/u16-strmblen: Likewise.
47138         * modules/unistr/u16-strmbtouc: Likewise.
47139         * modules/unistr/u16-strncat: Likewise.
47140         * modules/unistr/u16-strncmp: Likewise.
47141         * modules/unistr/u16-strncpy: Likewise.
47142         * modules/unistr/u16-strnlen: Likewise.
47143         * modules/unistr/u16-strpbrk: Likewise.
47144         * modules/unistr/u16-strrchr: Likewise.
47145         * modules/unistr/u16-strspn: Likewise.
47146         * modules/unistr/u16-strstr: Likewise.
47147         * modules/unistr/u16-strtok: Likewise.
47148         * modules/unistr/u16-to-u32: Likewise.
47149         * modules/unistr/u16-to-u8: Likewise.
47150         * modules/unistr/u16-uctomb: Likewise.
47151         * modules/unistr/u32-check: Likewise.
47152         * modules/unistr/u32-chr: Likewise.
47153         * modules/unistr/u32-cmp: Likewise.
47154         * modules/unistr/u32-cmp2: Likewise.
47155         * modules/unistr/u32-cpy: Likewise.
47156         * modules/unistr/u32-cpy-alloc: Likewise.
47157         * modules/unistr/u32-endswith: Likewise.
47158         * modules/unistr/u32-mblen: Likewise.
47159         * modules/unistr/u32-mbsnlen: Likewise.
47160         * modules/unistr/u32-mbtouc: Likewise.
47161         * modules/unistr/u32-mbtouc-unsafe: Likewise.
47162         * modules/unistr/u32-mbtoucr: Likewise.
47163         * modules/unistr/u32-move: Likewise.
47164         * modules/unistr/u32-next: Likewise.
47165         * modules/unistr/u32-prev: Likewise.
47166         * modules/unistr/u32-set: Likewise.
47167         * modules/unistr/u32-startswith: Likewise.
47168         * modules/unistr/u32-stpcpy: Likewise.
47169         * modules/unistr/u32-stpncpy: Likewise.
47170         * modules/unistr/u32-strcat: Likewise.
47171         * modules/unistr/u32-strchr: Likewise.
47172         * modules/unistr/u32-strcmp: Likewise.
47173         * modules/unistr/u32-strcoll: Likewise.
47174         * modules/unistr/u32-strcpy: Likewise.
47175         * modules/unistr/u32-strcspn: Likewise.
47176         * modules/unistr/u32-strdup: Likewise.
47177         * modules/unistr/u32-strlen: Likewise.
47178         * modules/unistr/u32-strmblen: Likewise.
47179         * modules/unistr/u32-strmbtouc: Likewise.
47180         * modules/unistr/u32-strncat: Likewise.
47181         * modules/unistr/u32-strncmp: Likewise.
47182         * modules/unistr/u32-strncpy: Likewise.
47183         * modules/unistr/u32-strnlen: Likewise.
47184         * modules/unistr/u32-strpbrk: Likewise.
47185         * modules/unistr/u32-strrchr: Likewise.
47186         * modules/unistr/u32-strspn: Likewise.
47187         * modules/unistr/u32-strstr: Likewise.
47188         * modules/unistr/u32-strtok: Likewise.
47189         * modules/unistr/u32-to-u16: Likewise.
47190         * modules/unistr/u32-to-u8: Likewise.
47191         * modules/unistr/u32-uctomb: Likewise.
47192         * modules/uniwbrk/u8-wordbreaks: Likewise.
47193         * modules/uniwbrk/u16-wordbreaks: Likewise.
47194         * modules/uniwbrk/u32-wordbreaks: Likewise.
47195         * modules/uniwbrk/ulc-wordbreaks: Likewise.
47196         * modules/uniwbrk/wordbreak-property: Likewise.
47197         * modules/uniwidth/u8-strwidth: Likewise.
47198         * modules/uniwidth/u8-width: Likewise.
47199         * modules/uniwidth/u16-strwidth: Likewise.
47200         * modules/uniwidth/u16-width: Likewise.
47201         * modules/uniwidth/u32-strwidth: Likewise.
47202         * modules/uniwidth/u32-width: Likewise.
47203         * modules/uniwidth/width: Likewise.
47204         * modules/unicase/cased-tests (Makefile.am): Link all test programs
47205         with $(LIBUNISTRING).
47206         * modules/unicase/ignorable-tests: Likewise.
47207         * modules/unicase/locale-language-tests: Likewise.
47208         * modules/unicase/tolower-tests: Likewise.
47209         * modules/unicase/totitle-tests: Likewise.
47210         * modules/unicase/toupper-tests: Likewise.
47211         * modules/unicase/u8-casecmp-tests: Likewise.
47212         * modules/unicase/u8-casecoll-tests: Likewise.
47213         * modules/unicase/u8-casefold-tests: Likewise.
47214         * modules/unicase/u8-is-cased-tests: Likewise.
47215         * modules/unicase/u8-is-casefolded-tests: Likewise.
47216         * modules/unicase/u8-is-lowercase-tests: Likewise.
47217         * modules/unicase/u8-is-titlecase-tests: Likewise.
47218         * modules/unicase/u8-is-uppercase-tests: Likewise.
47219         * modules/unicase/u8-tolower-tests: Likewise.
47220         * modules/unicase/u8-totitle-tests: Likewise.
47221         * modules/unicase/u8-toupper-tests: Likewise.
47222         * modules/unicase/u16-casecmp-tests: Likewise.
47223         * modules/unicase/u16-casecoll-tests: Likewise.
47224         * modules/unicase/u16-casefold-tests: Likewise.
47225         * modules/unicase/u16-is-cased-tests: Likewise.
47226         * modules/unicase/u16-is-casefolded-tests: Likewise.
47227         * modules/unicase/u16-is-lowercase-tests: Likewise.
47228         * modules/unicase/u16-is-titlecase-tests: Likewise.
47229         * modules/unicase/u16-is-uppercase-tests: Likewise.
47230         * modules/unicase/u16-tolower-tests: Likewise.
47231         * modules/unicase/u16-totitle-tests: Likewise.
47232         * modules/unicase/u16-toupper-tests: Likewise.
47233         * modules/unicase/u32-casecmp-tests: Likewise.
47234         * modules/unicase/u32-casecoll-tests: Likewise.
47235         * modules/unicase/u32-casefold-tests: Likewise.
47236         * modules/unicase/u32-is-cased-tests: Likewise.
47237         * modules/unicase/u32-is-casefolded-tests: Likewise.
47238         * modules/unicase/u32-is-lowercase-tests: Likewise.
47239         * modules/unicase/u32-is-titlecase-tests: Likewise.
47240         * modules/unicase/u32-is-uppercase-tests: Likewise.
47241         * modules/unicase/u32-tolower-tests: Likewise.
47242         * modules/unicase/u32-totitle-tests: Likewise.
47243         * modules/unicase/u32-toupper-tests: Likewise.
47244         * modules/unicase/ulc-casecmp-tests: Likewise.
47245         * modules/unicase/ulc-casecoll-tests: Likewise.
47246         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
47247         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
47248         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
47249         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
47250         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
47251         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
47252         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
47253         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
47254         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
47255         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
47256         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
47257         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
47258         * modules/unictype/bidicategory-byname-tests: Likewise.
47259         * modules/unictype/bidicategory-name-tests: Likewise.
47260         * modules/unictype/bidicategory-of-tests: Likewise.
47261         * modules/unictype/bidicategory-test-tests: Likewise.
47262         * modules/unictype/block-list-tests: Likewise.
47263         * modules/unictype/block-of-tests: Likewise.
47264         * modules/unictype/block-test-tests: Likewise.
47265         * modules/unictype/category-C-tests: Likewise.
47266         * modules/unictype/category-Cc-tests: Likewise.
47267         * modules/unictype/category-Cf-tests: Likewise.
47268         * modules/unictype/category-Cn-tests: Likewise.
47269         * modules/unictype/category-Co-tests: Likewise.
47270         * modules/unictype/category-Cs-tests: Likewise.
47271         * modules/unictype/category-L-tests: Likewise.
47272         * modules/unictype/category-Ll-tests: Likewise.
47273         * modules/unictype/category-Lm-tests: Likewise.
47274         * modules/unictype/category-Lo-tests: Likewise.
47275         * modules/unictype/category-Lt-tests: Likewise.
47276         * modules/unictype/category-Lu-tests: Likewise.
47277         * modules/unictype/category-M-tests: Likewise.
47278         * modules/unictype/category-Mc-tests: Likewise.
47279         * modules/unictype/category-Me-tests: Likewise.
47280         * modules/unictype/category-Mn-tests: Likewise.
47281         * modules/unictype/category-N-tests: Likewise.
47282         * modules/unictype/category-Nd-tests: Likewise.
47283         * modules/unictype/category-Nl-tests: Likewise.
47284         * modules/unictype/category-No-tests: Likewise.
47285         * modules/unictype/category-P-tests: Likewise.
47286         * modules/unictype/category-Pc-tests: Likewise.
47287         * modules/unictype/category-Pd-tests: Likewise.
47288         * modules/unictype/category-Pe-tests: Likewise.
47289         * modules/unictype/category-Pf-tests: Likewise.
47290         * modules/unictype/category-Pi-tests: Likewise.
47291         * modules/unictype/category-Po-tests: Likewise.
47292         * modules/unictype/category-Ps-tests: Likewise.
47293         * modules/unictype/category-S-tests: Likewise.
47294         * modules/unictype/category-Sc-tests: Likewise.
47295         * modules/unictype/category-Sk-tests: Likewise.
47296         * modules/unictype/category-Sm-tests: Likewise.
47297         * modules/unictype/category-So-tests: Likewise.
47298         * modules/unictype/category-Z-tests: Likewise.
47299         * modules/unictype/category-Zl-tests: Likewise.
47300         * modules/unictype/category-Zp-tests: Likewise.
47301         * modules/unictype/category-Zs-tests: Likewise.
47302         * modules/unictype/category-and-not-tests: Likewise.
47303         * modules/unictype/category-and-tests: Likewise.
47304         * modules/unictype/category-byname-tests: Likewise.
47305         * modules/unictype/category-name-tests: Likewise.
47306         * modules/unictype/category-none-tests: Likewise.
47307         * modules/unictype/category-of-tests: Likewise.
47308         * modules/unictype/category-or-tests: Likewise.
47309         * modules/unictype/category-test-withtable-tests: Likewise.
47310         * modules/unictype/combining-class-tests: Likewise.
47311         * modules/unictype/ctype-alnum-tests: Likewise.
47312         * modules/unictype/ctype-alpha-tests: Likewise.
47313         * modules/unictype/ctype-blank-tests: Likewise.
47314         * modules/unictype/ctype-cntrl-tests: Likewise.
47315         * modules/unictype/ctype-digit-tests: Likewise.
47316         * modules/unictype/ctype-graph-tests: Likewise.
47317         * modules/unictype/ctype-lower-tests: Likewise.
47318         * modules/unictype/ctype-print-tests: Likewise.
47319         * modules/unictype/ctype-punct-tests: Likewise.
47320         * modules/unictype/ctype-space-tests: Likewise.
47321         * modules/unictype/ctype-upper-tests: Likewise.
47322         * modules/unictype/ctype-xdigit-tests: Likewise.
47323         * modules/unictype/decimal-digit-tests: Likewise.
47324         * modules/unictype/digit-tests: Likewise.
47325         * modules/unictype/mirror-tests: Likewise.
47326         * modules/unictype/numeric-tests: Likewise.
47327         * modules/unictype/property-alphabetic-tests: Likewise.
47328         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
47329         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
47330         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
47331         * modules/unictype/property-bidi-block-separator-tests: Likewise.
47332         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
47333         * modules/unictype/property-bidi-common-separator-tests: Likewise.
47334         * modules/unictype/property-bidi-control-tests: Likewise.
47335         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
47336         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
47337         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
47338         * modules/unictype/property-bidi-european-digit-tests: Likewise.
47339         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
47340         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
47341         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
47342         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
47343         * modules/unictype/property-bidi-pdf-tests: Likewise.
47344         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
47345         * modules/unictype/property-bidi-whitespace-tests: Likewise.
47346         * modules/unictype/property-byname-tests: Likewise.
47347         * modules/unictype/property-combining-tests: Likewise.
47348         * modules/unictype/property-composite-tests: Likewise.
47349         * modules/unictype/property-currency-symbol-tests: Likewise.
47350         * modules/unictype/property-dash-tests: Likewise.
47351         * modules/unictype/property-decimal-digit-tests: Likewise.
47352         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
47353         * modules/unictype/property-deprecated-tests: Likewise.
47354         * modules/unictype/property-diacritic-tests: Likewise.
47355         * modules/unictype/property-extender-tests: Likewise.
47356         * modules/unictype/property-format-control-tests: Likewise.
47357         * modules/unictype/property-grapheme-base-tests: Likewise.
47358         * modules/unictype/property-grapheme-extend-tests: Likewise.
47359         * modules/unictype/property-grapheme-link-tests: Likewise.
47360         * modules/unictype/property-hex-digit-tests: Likewise.
47361         * modules/unictype/property-hyphen-tests: Likewise.
47362         * modules/unictype/property-id-continue-tests: Likewise.
47363         * modules/unictype/property-id-start-tests: Likewise.
47364         * modules/unictype/property-ideographic-tests: Likewise.
47365         * modules/unictype/property-ids-binary-operator-tests: Likewise.
47366         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
47367         * modules/unictype/property-ignorable-control-tests: Likewise.
47368         * modules/unictype/property-iso-control-tests: Likewise.
47369         * modules/unictype/property-join-control-tests: Likewise.
47370         * modules/unictype/property-left-of-pair-tests: Likewise.
47371         * modules/unictype/property-line-separator-tests: Likewise.
47372         * modules/unictype/property-logical-order-exception-tests: Likewise.
47373         * modules/unictype/property-lowercase-tests: Likewise.
47374         * modules/unictype/property-math-tests: Likewise.
47375         * modules/unictype/property-non-break-tests: Likewise.
47376         * modules/unictype/property-not-a-character-tests: Likewise.
47377         * modules/unictype/property-numeric-tests: Likewise.
47378         * modules/unictype/property-other-alphabetic-tests: Likewise.
47379         * modules/unictype/property-other-default-ignorable-code-point-tests:
47380         Likewise.
47381         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
47382         * modules/unictype/property-other-id-continue-tests: Likewise.
47383         * modules/unictype/property-other-id-start-tests: Likewise.
47384         * modules/unictype/property-other-lowercase-tests: Likewise.
47385         * modules/unictype/property-other-math-tests: Likewise.
47386         * modules/unictype/property-other-uppercase-tests: Likewise.
47387         * modules/unictype/property-paired-punctuation-tests: Likewise.
47388         * modules/unictype/property-paragraph-separator-tests: Likewise.
47389         * modules/unictype/property-pattern-syntax-tests: Likewise.
47390         * modules/unictype/property-pattern-white-space-tests: Likewise.
47391         * modules/unictype/property-private-use-tests: Likewise.
47392         * modules/unictype/property-punctuation-tests: Likewise.
47393         * modules/unictype/property-quotation-mark-tests: Likewise.
47394         * modules/unictype/property-radical-tests: Likewise.
47395         * modules/unictype/property-sentence-terminal-tests: Likewise.
47396         * modules/unictype/property-soft-dotted-tests: Likewise.
47397         * modules/unictype/property-space-tests: Likewise.
47398         * modules/unictype/property-terminal-punctuation-tests: Likewise.
47399         * modules/unictype/property-test-tests: Likewise.
47400         * modules/unictype/property-titlecase-tests: Likewise.
47401         * modules/unictype/property-unassigned-code-value-tests: Likewise.
47402         * modules/unictype/property-unified-ideograph-tests: Likewise.
47403         * modules/unictype/property-uppercase-tests: Likewise.
47404         * modules/unictype/property-variation-selector-tests: Likewise.
47405         * modules/unictype/property-white-space-tests: Likewise.
47406         * modules/unictype/property-xid-continue-tests: Likewise.
47407         * modules/unictype/property-xid-start-tests: Likewise.
47408         * modules/unictype/property-zero-width-tests: Likewise.
47409         * modules/unictype/scripts-tests: Likewise.
47410         * modules/unictype/syntax-c-ident-tests: Likewise.
47411         * modules/unictype/syntax-c-whitespace-tests: Likewise.
47412         * modules/unictype/syntax-java-ident-tests: Likewise.
47413         * modules/unictype/syntax-java-whitespace-tests: Likewise.
47414         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
47415         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
47416         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
47417         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
47418         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
47419         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
47420         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
47421         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
47422         * modules/uniname/uniname-tests: Likewise.
47423         * modules/uninorm/canonical-decomposition-tests: Likewise.
47424         * modules/uninorm/compat-decomposition-tests: Likewise.
47425         * modules/uninorm/composition-tests: Likewise.
47426         * modules/uninorm/decomposing-form-tests: Likewise.
47427         * modules/uninorm/decomposition-tests: Likewise.
47428         * modules/uninorm/filter-tests: Likewise.
47429         * modules/uninorm/nfc-tests: Likewise.
47430         * modules/uninorm/nfd-tests: Likewise.
47431         * modules/uninorm/nfkc-tests: Likewise.
47432         * modules/uninorm/nfkd-tests: Likewise.
47433         * modules/uninorm/u8-normcmp-tests: Likewise.
47434         * modules/uninorm/u8-normcoll-tests: Likewise.
47435         * modules/uninorm/u16-normcmp-tests: Likewise.
47436         * modules/uninorm/u16-normcoll-tests: Likewise.
47437         * modules/uninorm/u32-normcmp-tests: Likewise.
47438         * modules/uninorm/u32-normcoll-tests: Likewise.
47439         * modules/unistdio/u8-asnprintf-tests: Likewise.
47440         * modules/unistdio/u8-vasnprintf-tests: Likewise.
47441         * modules/unistdio/u8-vasprintf-tests: Likewise.
47442         * modules/unistdio/u8-vsnprintf-tests: Likewise.
47443         * modules/unistdio/u8-vsprintf-tests: Likewise.
47444         * modules/unistdio/u16-asnprintf-tests: Likewise.
47445         * modules/unistdio/u16-vasnprintf-tests: Likewise.
47446         * modules/unistdio/u16-vasprintf-tests: Likewise.
47447         * modules/unistdio/u16-vsnprintf-tests: Likewise.
47448         * modules/unistdio/u16-vsprintf-tests: Likewise.
47449         * modules/unistdio/u32-asnprintf-tests: Likewise.
47450         * modules/unistdio/u32-vasnprintf-tests: Likewise.
47451         * modules/unistdio/u32-vasprintf-tests: Likewise.
47452         * modules/unistdio/u32-vsnprintf-tests: Likewise.
47453         * modules/unistdio/u32-vsprintf-tests: Likewise.
47454         * modules/unistdio/ulc-asnprintf-tests: Likewise.
47455         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
47456         * modules/unistdio/ulc-vasprintf-tests: Likewise.
47457         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
47458         * modules/unistdio/ulc-vsprintf-tests: Likewise.
47459         * modules/unistr/u8-check-tests: Likewise.
47460         * modules/unistr/u8-chr-tests: Likewise.
47461         * modules/unistr/u8-cmp-tests: Likewise.
47462         * modules/unistr/u8-cmp2-tests: Likewise.
47463         * modules/unistr/u8-cpy-alloc-tests: Likewise.
47464         * modules/unistr/u8-cpy-tests: Likewise.
47465         * modules/unistr/u8-mblen-tests: Likewise.
47466         * modules/unistr/u8-mbsnlen-tests: Likewise.
47467         * modules/unistr/u8-mbtouc-tests: Likewise.
47468         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
47469         * modules/unistr/u8-mbtoucr-tests: Likewise.
47470         * modules/unistr/u8-move-tests: Likewise.
47471         * modules/unistr/u8-next-tests: Likewise.
47472         * modules/unistr/u8-prev-tests: Likewise.
47473         * modules/unistr/u8-set-tests: Likewise.
47474         * modules/unistr/u8-stpcpy-tests: Likewise.
47475         * modules/unistr/u8-stpncpy-tests: Likewise.
47476         * modules/unistr/u8-strcat-tests: Likewise.
47477         * modules/unistr/u8-strcmp-tests: Likewise.
47478         * modules/unistr/u8-strcoll-tests: Likewise.
47479         * modules/unistr/u8-strcpy-tests: Likewise.
47480         * modules/unistr/u8-strdup-tests: Likewise.
47481         * modules/unistr/u8-strlen-tests: Likewise.
47482         * modules/unistr/u8-strmblen-tests: Likewise.
47483         * modules/unistr/u8-strmbtouc-tests: Likewise.
47484         * modules/unistr/u8-strncat-tests: Likewise.
47485         * modules/unistr/u8-strncmp-tests: Likewise.
47486         * modules/unistr/u8-strncpy-tests: Likewise.
47487         * modules/unistr/u8-strnlen-tests: Likewise.
47488         * modules/unistr/u8-to-u16-tests: Likewise.
47489         * modules/unistr/u8-to-u32-tests: Likewise.
47490         * modules/unistr/u8-uctomb-tests: Likewise.
47491         * modules/unistr/u16-check-tests: Likewise.
47492         * modules/unistr/u16-chr-tests: Likewise.
47493         * modules/unistr/u16-cmp-tests: Likewise.
47494         * modules/unistr/u16-cmp2-tests: Likewise.
47495         * modules/unistr/u16-cpy-alloc-tests: Likewise.
47496         * modules/unistr/u16-cpy-tests: Likewise.
47497         * modules/unistr/u16-mblen-tests: Likewise.
47498         * modules/unistr/u16-mbsnlen-tests: Likewise.
47499         * modules/unistr/u16-mbtouc-tests: Likewise.
47500         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
47501         * modules/unistr/u16-mbtoucr-tests: Likewise.
47502         * modules/unistr/u16-move-tests: Likewise.
47503         * modules/unistr/u16-next-tests: Likewise.
47504         * modules/unistr/u16-prev-tests: Likewise.
47505         * modules/unistr/u16-set-tests: Likewise.
47506         * modules/unistr/u16-stpcpy-tests: Likewise.
47507         * modules/unistr/u16-stpncpy-tests: Likewise.
47508         * modules/unistr/u16-strcat-tests: Likewise.
47509         * modules/unistr/u16-strcmp-tests: Likewise.
47510         * modules/unistr/u16-strcoll-tests: Likewise.
47511         * modules/unistr/u16-strcpy-tests: Likewise.
47512         * modules/unistr/u16-strdup-tests: Likewise.
47513         * modules/unistr/u16-strlen-tests: Likewise.
47514         * modules/unistr/u16-strmblen-tests: Likewise.
47515         * modules/unistr/u16-strmbtouc-tests: Likewise.
47516         * modules/unistr/u16-strncat-tests: Likewise.
47517         * modules/unistr/u16-strncmp-tests: Likewise.
47518         * modules/unistr/u16-strncpy-tests: Likewise.
47519         * modules/unistr/u16-strnlen-tests: Likewise.
47520         * modules/unistr/u16-to-u32-tests: Likewise.
47521         * modules/unistr/u16-to-u8-tests: Likewise.
47522         * modules/unistr/u16-uctomb-tests: Likewise.
47523         * modules/unistr/u32-check-tests: Likewise.
47524         * modules/unistr/u32-chr-tests: Likewise.
47525         * modules/unistr/u32-cmp-tests: Likewise.
47526         * modules/unistr/u32-cmp2-tests: Likewise.
47527         * modules/unistr/u32-cpy-alloc-tests: Likewise.
47528         * modules/unistr/u32-cpy-tests: Likewise.
47529         * modules/unistr/u32-mblen-tests: Likewise.
47530         * modules/unistr/u32-mbsnlen-tests: Likewise.
47531         * modules/unistr/u32-mbtouc-tests: Likewise.
47532         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
47533         * modules/unistr/u32-mbtoucr-tests: Likewise.
47534         * modules/unistr/u32-move-tests: Likewise.
47535         * modules/unistr/u32-next-tests: Likewise.
47536         * modules/unistr/u32-prev-tests: Likewise.
47537         * modules/unistr/u32-set-tests: Likewise.
47538         * modules/unistr/u32-stpcpy-tests: Likewise.
47539         * modules/unistr/u32-stpncpy-tests: Likewise.
47540         * modules/unistr/u32-strcat-tests: Likewise.
47541         * modules/unistr/u32-strcmp-tests: Likewise.
47542         * modules/unistr/u32-strcoll-tests: Likewise.
47543         * modules/unistr/u32-strcpy-tests: Likewise.
47544         * modules/unistr/u32-strdup-tests: Likewise.
47545         * modules/unistr/u32-strlen-tests: Likewise.
47546         * modules/unistr/u32-strmblen-tests: Likewise.
47547         * modules/unistr/u32-strmbtouc-tests: Likewise.
47548         * modules/unistr/u32-strncat-tests: Likewise.
47549         * modules/unistr/u32-strncmp-tests: Likewise.
47550         * modules/unistr/u32-strncpy-tests: Likewise.
47551         * modules/unistr/u32-strnlen-tests: Likewise.
47552         * modules/unistr/u32-to-u16-tests: Likewise.
47553         * modules/unistr/u32-to-u8-tests: Likewise.
47554         * modules/unistr/u32-uctomb-tests: Likewise.
47555         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
47556         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
47557         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
47558         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
47559         * modules/uniwidth/u8-strwidth-tests: Likewise.
47560         * modules/uniwidth/u8-width-tests: Likewise.
47561         * modules/uniwidth/u16-strwidth-tests: Likewise.
47562         * modules/uniwidth/u16-width-tests: Likewise.
47563         * modules/uniwidth/u32-strwidth-tests: Likewise.
47564         * modules/uniwidth/u32-width-tests: Likewise.
47565         * modules/uniwidth/width-tests: Likewise.
47567 2010-05-18  Richard Jones  <rjones@redhat.com>
47569         doc: users.txt: list hivex
47570         * users.txt: Add hivex.
47572 2010-05-18  Richard Jones  <rjones@redhat.com>
47574         doc: users.txt: list febootstrap
47575         * users.txt: Add febootstrap.
47577 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
47579         bootstrap: fix an error when gnulib is not used as a git submodule
47580         * build-aux/bootstrap (gnulib_path): If its length is zero then
47581         assign "gnulib" to it.
47582         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
47584 2010-05-16  Bruno Haible  <bruno@clisp.org>
47586         Avoid autoconf warnings about AM_ICONV.
47587         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
47588         2.64.
47590 2010-05-16  Bruno Haible  <bruno@clisp.org>
47592         absolute-header: Make the macro usable in more situations.
47593         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
47594         from gl_ABSOLUTE_HEADER.
47595         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
47597 2010-05-16  James Youngman  <jay@gnu.org>
47599         doc: update users.txt
47600         * users.txt: Add CSSC.
47602 2010-05-16  Jim Meyering  <meyering@redhat.com>
47604         init.sh: fix an error in the previous change; add more comments
47605         * tests/init.sh: Compare exit code in loop against 9, not 2.
47606         Patch by Bruno Haible.
47607         Make the two tests more similar by adding an empty "then" clause.
47608         Add comments.
47610         init.sh: avoid unnecessary shell re-exec
47611         * tests/init.sh: Improve the re-exec-required check to first test the
47612         current shell.  If it passes the test, do not search for a shell that
47613         does pass, and do not re-exec.  This test is particularly contorted to
47614         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
47615         of $(...) evokes a syntax error and causes immediate shell exit with
47616         status 2.  Bruno Haible reported that the re-exec made it impossible
47617         to single-step through any init.sh-using script.
47619 2010-05-16  Bruno Haible  <bruno@clisp.org>
47621         Fix collision between gnulib's and libintl's printf replacements.
47622         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
47623         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
47624         (printf): When using GNU C, map the __printf__ function to rpl_printf
47625         via __asm__. When not using GNU C, define rpl_printf instead of
47626         __printf__.
47627         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
47628         commit.
47629         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
47630         commit.
47631         * m4/asm-underscore.m4: New file.
47632         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
47633         * modules/stdio (Files): Add m4/asm-underscore.m4.
47634         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
47635         Reported by Ben Pfaff.
47637 2010-05-16  Bruno Haible  <bruno@clisp.org>
47639         verify: Avoid skipping the test on openSUSE 11.0.
47640         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
47642 2010-05-13  Bruno Haible  <bruno@clisp.org>
47644         Avoid useless warnings from G++.
47645         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
47646         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
47647         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
47649 2010-05-11  Jim Meyering  <meyering@redhat.com>
47651         maint.mk: tweak preceding change
47652         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
47653         regexps tighter by anchoring at EOL, and make the new group "shy"
47654         for slightly decreased overhead.
47656 2010-05-11  Eric Blake  <eblake@redhat.com>
47658         maint.mk: gnulib doesn't guarantee NSIG
47659         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
47661 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
47663         test-pwrite.c: Remove unused variable declaration.
47664         * tests/test-pwrite.c (main): Remove read_buf declaration.
47666         Remove useless test-pwrite.sh file.
47667         * tests/test-pwrite.sh: Delete file.
47668         * modules/pwrite-tests: Remove references.
47669         Reported by Bruno Haible.
47671 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
47673         init.sh: fix a typo
47674         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
47676 2010-05-10  Jim Meyering  <meyering@redhat.com>
47678         maint.mk: avoid using a temporary file in the always-defined-macros check
47679         * top/maint.mk (.re-defmac): Remove rule.
47680         (gl_trap_): Remove definition.
47681         (sc_prohibit_always-defined_macros): Rewrite not to create and
47682         depend on a temporary file.  Instead, depend on GNU grep's ability
47683         to read a list of regular expressions from stdin when given "-f -".
47685 2010-05-09  Bruno Haible  <bruno@clisp.org>
47687         Update to GNU gettext 0.18, part 1.
47688         * m4/gettext.m4: Update to GNU gettext 0.18.
47689         * m4/intl.m4: Likewise.
47690         * m4/po.m4: Likewise.
47691         * modules/gettext (Files): Add m4/fcntl-o.m4.
47692         (configure.ac): Require gettext infrastructure from version 0.18.
47694 2010-05-09  Jim Meyering  <meyering@redhat.com>
47696         init.sh: enable MALLOC_PERTURB_
47697         * tests/init.sh: Enable glibc's malloc-perturbing option.
47699         maint.mk: improve sc_cross_check_PATH_usage_in_tests
47700         With my recent change in init.sh from the two-line form:
47701             -#   : ${srcdir=.}
47702             -#   . "$srcdir/init.sh"; path_prepend_ .
47703             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
47704         I noticed that using the one-line form would cause this test
47705         to fail with a false-positive, or to stop working altogether,
47706         depending on whether help-version changed or all the tests did.
47707         * top/maint.mk (_hv_regex): Remove this definition.
47708         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
47709         (_hv_regex_strong): Use a stronger regex to check for conformance.
47710         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
47711         Give a separate diagnostic for lack of conforming use.
47713         maint.mk: prohibit definition of symbols defined by gnulib
47714         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
47715         definition of symbols defined by gnulib.
47717 2010-05-09  Bruno Haible  <bruno@clisp.org>
47719         acl: Avoid test failure on Cygwin-hosted mingw.
47720         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
47722 2010-05-09  Bruno Haible  <bruno@clisp.org>
47724         error: Use system's fcntl function.
47725         * lib/error.c (fcntl): Undefine.
47727 2010-05-09  Jim Meyering  <meyering@redhat.com>
47729         verify: adjust formatting to be more consistent
47730         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
47731         argument-list '('s, and after one comma.
47733 2010-05-09  Bruno Haible  <bruno@clisp.org>
47735         error: More reliable output on mingw.
47736         * lib/error.c: Include <windows.h>.
47737         (is_open): New function.
47738         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
47739         defined.
47741 2010-05-09  Bruno Haible  <bruno@clisp.org>
47743         vasnprintf: Fix syntax errors in libintl build on mingw.
47744         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
47745         pad_ourselves and prec_ourselves after use.
47747 2010-05-08  Bruno Haible  <bruno@clisp.org>
47749         * lib/config.charset: Update comments for Cygwin 1.7.
47750         * lib/localcharset.c: Likewise.
47752 2010-05-07  Jim Meyering  <meyering@redhat.com>
47754         init.sh: improve comments
47755         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
47756         . "${srcdir=.}/init.sh"; path_prepend_ .
47757         Add a note about path_prepend_ and the alternative of using
47758         TESTS_ENVIRONMENT.
47760 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
47762         exclude: Unescape hashed patterns in wildcard mode.
47763         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
47764         to the hash list.
47765         * tests/test-exclude8.sh: New test case.
47766         * modules/exclude-tests: Add new test.
47768 2010-05-05  Eric Blake  <eblake@redhat.com>
47770         verify: automate tests
47771         * modules/verify-tests: New module.
47772         * tests/test-verify.sh: New file.
47773         * tests/test-verify.c: Guard each negative test with a unique id.
47774         Also avoid warning about unused left hand of comma expressions.
47776 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
47778         Further improvements to verify.h, suggested by Eric Blake.
47779         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
47780         the GL_* versions, to avoid collision with OpenGL.
47781         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
47782         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
47783         than testing merely whether it's defined.
47785         Modify verify.h to pacify gcc -Wredundant_decls.
47786         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
47787         These use the prefix "GL_" since they're likely to be useful elsewhere.
47788         We may need to break them out into a different .h file.
47789         (__COUNTER__): Define to 0 if the compiler doesn't support it.
47790         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
47791         of verify_function__.
47793 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
47795         Tests for module pwrite.
47796         * modules/pwrite-tests: New file.
47797         * tests/test-pwrite.sh: New file.
47798         * tests/test-pwrite.c: New file.
47800         New module pwrite.
47801         * lib/unistd.in.h (pwrite): New declaration.
47802         * lib/pwrite.c: New file, from glibc with modifications.
47803         * m4/pwrite.m4: New file.
47804         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
47805         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
47806         REPLACE_PWRITE.
47807         * modules/pwrite: New file.
47808         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
47809         REPLACE_PWRITE.
47810         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
47811         * doc/posix-functions/pwrite.texi: Mention the new module.
47813 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
47815         pread: Update documentation.
47816         * doc/posix-functions/pread.texi: Mention the 'pread' module.
47818 2010-05-04  Eric Blake  <eblake@redhat.com>
47820         docs: update cygwin progress
47821         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
47822         this bug.
47823         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
47824         Added in cygwin 1.7.2.
47825         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
47826         Likewise.
47827         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
47828         Likewise.
47829         * doc/glibc-functions/dup3.texi (dup3): Likewise.
47830         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
47831         * doc/glibc-functions/accept4.texi (accept4): Likewise.
47832         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
47833         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
47834         Mention nproc module.
47835         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
47836         bug in cygwin 1.7.5 addition.
47837         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
47838         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
47839         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
47840         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
47841         1.7.5.
47842         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
47843         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
47844         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
47845         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
47846         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
47847         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
47848         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
47849         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
47850         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
47851         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
47852         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
47853         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
47854         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
47855         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
47856         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
47857         Likewise.
47858         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
47859         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
47860         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
47861         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
47862         Likewise.
47863         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
47864         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
47865         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
47866         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
47867         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
47868         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
47869         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
47870         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
47871         Likewise.
47872         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
47873         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
47874         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
47875         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
47876         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
47877         Likewise.
47878         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
47879         Likewise.
47880         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
47881         Likewise.
47882         * doc/glibc-functions/xdrrec_endofrecord.texi
47883         (xdrrec_endofrecord): Likewise.
47884         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
47885         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
47886         Likewise.
47887         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
47888         Likewise.
47890 2010-05-04  Jim Meyering  <meyering@redhat.com>
47892         gendocs.sh: make its "-s FILE" option more useful
47893         * build-aux/gendocs.sh: When honoring the -s FILE option, update
47894         $PACKAGE to reflect the probably-different basename of "FILE".
47896 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
47898         bootstrap: don't ignore download_po_files failure
47899         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
47900         failure.
47902 2010-05-03  Jim Meyering  <meyering@redhat.com>
47904         maint.mk: allow to pass options to gendocs.sh
47905         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
47906         (gendocs_options_): New overridable variable.
47908         gnu-web-doc-update: don't ignore configure or build failure
47909         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
47911         announce-gen: backslash-escape '@'s in --help output
47912         * build-aux/announce-gen: Fix syntax errors.
47914         maint.mk, announce-gen: allow project-specific announcement mail headers
47915         * top/maint.mk (translation_project_): Define default.
47916         (announcement_Cc_, announcement_mail_headers_): Likewise.
47917         (announcement): Invoke announce-gen with new --mail-headers option.
47918         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
47920         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
47921         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
47922         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
47923         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
47924         line in the "err2" output file when running "make check" in verbose
47925         mode (i.e., with set -x enabled).
47927 2010-05-03  Bruno Haible  <bruno@clisp.org>
47929         wctob: Fix for weird platforms.
47930         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
47931         argument value.
47933 2010-05-03  Jim Meyering  <meyering@redhat.com>
47935         maint.mk: prohibit unwarranted use of <strings.h>
47936         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
47937         strings.h in a file that does not also use strcasecmp, strncasecmp,
47938         ffs or ffsll.
47940         maint.mk: remove obsolete comments
47941         * top/maint.mk: Remove stale, commented-out rules.
47943 2010-05-02  Bruno Haible  <bruno@clisp.org>
47945         wcwidth: Declare also when it's aliased.
47946         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
47947         macro.
47949 2010-05-02  Bruno Haible  <bruno@clisp.org>
47951         Fix regression from 2010-04-25.
47952         * gnulib-tool (func_modules_transitive_closure): Check the status of
47953         all modules, not only of the tests that are of the form foo-tests where
47954         foo is a module.
47956 2010-05-02  Bruno Haible  <bruno@clisp.org>
47958         wctob: Work around nasty Cygwin 1.7.2 bug.
47959         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
47960         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
47962 2010-05-01  Bruno Haible  <bruno@clisp.org>
47964         fpurge: Sharper test.
47965         * tests/test-fpurge.c (main): Add one more ftell check.
47966         * modules/fpurge-tests (Depends-on): Add ftell.
47967         Suggested by Eric Blake.
47969 2010-05-01  Bruno Haible  <bruno@clisp.org>
47971         ftello: Another test.
47972         * tests/test-ftello3.c: New file.
47973         * modules/ftello-tests (Files): Add it.
47974         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
47975         MOSTLYCLEANFILES.
47977         ftell: Another test.
47978         * tests/test-ftell3.c: New file.
47979         * modules/ftell-tests (Files): Add it.
47980         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
47981         MOSTLYCLEANFILES.
47983 2010-05-01  Bruno Haible  <bruno@clisp.org>
47985         ftell, ftello: Work around Solaris bug.
47986         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
47987         * lib/ftello.c: Include stdio-impl.h.
47988         (ftello): On Solaris, when _IOWRT is set, compute the result without
47989         looking at _IOREAD.
47990         * modules/ftello (Files): Add lib/stdio-impl.h.
47991         * doc/posix-functions/ftell.texi: Mention Solaris bug.
47992         * doc/posix-functions/ftello.texi: Likewise.
47993         Reported by Eric Blake.
47995 2010-05-01  Bruno Haible  <bruno@clisp.org>
47997         freading: Adapt to special meaning of _IOREAD flag on Solaris.
47998         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
47999         the _IOWRT flag is also set.
48001 2010-05-01  Bruno Haible  <bruno@clisp.org>
48003         Fix doc about a HP-UX stdio bug.
48004         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
48005         * doc/posix-functions/ftello.texi: Likewise.
48007 2010-05-01  Bruno Haible  <bruno@clisp.org>
48009         lseek test: Fix failure on Solaris.
48010         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
48011         output.
48013 2010-04-30  Jim Meyering  <meyering@redhat.com>
48015         bootstrap: don't ignore failure to generate po*/Makevars
48016         * build-aux/bootstrap (with_gettext): Don't ignore failure
48017         to create po/Makevars or runtime-po/Makevars.
48019 2010-04-29  Eric Blake  <eblake@redhat.com>
48021         headers: relax license to LGPLv2+
48022         * modules/fcntl-h (License): Relax license.
48023         * modules/getopt-posix (License): Likewise.
48024         * modules/locale (License): Likewise.
48025         * modules/math (License): Likewise.
48026         * modules/pty (License): Likewise.
48027         * modules/sched (License): Likewise.
48028         * modules/search (License): Likewise.
48029         * modules/spawn (License): Likewise.
48030         * modules/stdarg (License): Likewise.
48031         * modules/sysexits (License): Likewise.
48033 2010-04-29  Jim Meyering  <meyering@redhat.com>
48035         inttypes: relax license to LGPLv2+
48036         * modules/inttypes (License): Relax license.
48038 2010-04-29  Simon Josefsson  <simon@josefsson.org>
48040         * top/maint.mk (indent): Run twice to produce idempotent results.
48042 2010-04-28  Bruno Haible  <bruno@clisp.org>
48044         getdate: Generate getdate.c in the source directory.
48045         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
48046         MOSTLYCLEANFILES.
48047         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
48049 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
48051         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
48052         is not declared as a const *; avoid warnings in that case.
48054 2010-04-28  Eric Blake  <eblake@redhat.com>
48056         canonicalize-lgpl: avoid compiler warning
48057         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
48058         declaration' / 'extraneous semicolon' warning with some compilers.
48059         Reported by Andreas Gruenbacher.
48061 2010-04-28  Jim Meyering  <meyering@redhat.com>
48063         init.sh: ensure a more reliable exit status when exiting via trap
48064         * tests/init.sh (setup_): Don't rely on $? in signal handler.
48065         Inspired by patches from Dmitry V. Levin.
48066         Also trap on signal 3 (SIGQUIT).
48068 2010-04-27  Bruno Haible  <bruno@clisp.org>
48070         Update doc about utimes().
48071         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
48072         'utimens' module.
48073         Reported by Andreas Gruenbacher <agruen@suse.de>.
48075 2010-04-27  Eric Blake  <eblake@redhat.com>
48077         full-read, full-write: relax license
48078         * modules/full-read (License): Drop to LGPLv2+.
48079         * modules/full-write (License): Likewise.
48080         * modules/safe-read (License): Likewise.
48081         * modules/safe-write (License): Likewise.
48083         pthread: mention library for linking
48084         * modules/pthread (Link): Mention $(LIB_PTHREAD).
48086 2010-04-27  Jim Meyering  <meyering@redhat.com>
48088         maint.mk: fix a bug introduced in last change
48089         * top/maint.mk (gl_assured_headers_): Now that all names are on
48090         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
48091         is not anchored to end of word, it should be adequate.
48093         maint.mk: avoid side-effect in latest syntax-check
48094         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
48095         to run commands via $(shell...), and hence to incur cost only when
48096         the new rule is actually run.
48098         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
48099         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
48100         and use that to create a regexp used to detect all #if HAVE_..._H uses.
48101         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
48102         (gl_assured_headers_, az_, AZ_): Define.
48103         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
48105 2010-04-26  Jim Meyering  <jim@meyering.net>
48106             Bruno Haible  <bruno@clisp.org>
48108         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
48109         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
48110         Prompted by an exchange with Gilles Espinasse.
48112 2010-04-26  Jim Meyering  <meyering@redhat.com>
48114         git-version-gen: aesthetic tweak
48115         * build-aux/git-version-gen: Use "$nl" rather than a literal,
48116         so that the command remains on a single line.
48118 2010-04-26  Eric Blake  <eblake@redhat.com>
48120         git-version-gen: allow use on EBCDIC hosts
48121         * build-aux/git-version-gen (dirty): Use literal rather than tying
48122         ourselves to ascii.
48123         Reported by Steve Goetze.
48125 2010-04-25  Bruno Haible  <bruno@clisp.org>
48127         netdb: Add support for GNULIB_POSIXCHECK.
48128         * lib/netdb.in.h: Include warn-on-use.h.
48129         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
48130         functions are used when GNULIB_POSIXCHECK is defined and the
48131         getaddrinfo module is not in use.
48132         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
48133         freeaddrinfo, gai_strerror, getnameinfo are declared.
48134         * modules/netdb (Depends-on): Add warn-on-use.
48135         (Makefile.am): Include warn-on-use.h in netdb.h.
48137 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
48139         build: avoid "make check" failure without .git/ directory
48140         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
48141         there is no .git/ directory.
48143 2010-04-25  Bruno Haible  <bruno@clisp.org>
48145         ptsname: Fix misuse of ttyname_r.
48146         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
48147         of errno.
48149 2010-04-25  Bruno Haible  <bruno@clisp.org>
48151         ttyname_r: Make it work on Solaris 10.
48152         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
48153         if the system function has the POSIX declaration. Test whether the
48154         function fails if the buffer is less than 128 bytes large.
48155         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
48156         system's ttyname_r function. Provide a reasonably large buffer.
48157         * modules/ttyname_r (Depends-on): Add extensions.
48158         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
48160 2010-04-25  Bruno Haible  <bruno@clisp.org>
48162         Use the 'extensions' module for some more functions on Solaris.
48163         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
48164         module.
48165         * doc/posix-functions/ctime_r.texi: Likewise.
48166         * doc/posix-functions/getgrgid_r.texi: Likewise.
48167         * doc/posix-functions/getgrnam_r.texi: Likewise.
48168         * doc/posix-functions/getpwnam_r.texi: Likewise.
48169         * doc/posix-functions/getpwuid_r.texi: Likewise.
48170         * doc/posix-functions/readdir_r.texi: Likewise.
48171         * doc/posix-functions/sigwait.texi: Likewise.
48172         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
48173         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
48175 2010-04-25  Bruno Haible  <bruno@clisp.org>
48177         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
48178         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
48179         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
48180         * lib/ttyname_r.c: Include <limits.h>.
48181         (ttyname_r): Define using the system's ttyname_r function, if it exists
48182         and not on Solaris.
48183         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
48184         set.
48185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
48186         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
48187         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
48188         Reported by Simon Josefsson.
48190 2010-04-25  Bruno Haible  <bruno@clisp.org>
48192         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
48193         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
48194         * doc/posix-functions/ctime_r.texi: Likewise.
48195         * doc/posix-functions/getgrgid_r.texi: Likewise.
48196         * doc/posix-functions/getgrnam_r.texi: Likewise.
48197         * doc/posix-functions/getlogin_r.texi: Likewise.
48198         * doc/posix-functions/getpwnam_r.texi: Likewise.
48199         * doc/posix-functions/getpwuid_r.texi: Likewise.
48200         * doc/posix-functions/readdir_r.texi: Likewise.
48201         * doc/posix-functions/sigwait.texi: Likewise.
48202         * doc/posix-functions/ttyname_r.texi: Likewise.
48203         Reported by Simon Josefsson.
48205 2010-04-25  Bruno Haible  <bruno@clisp.org>
48207         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
48208         * gnulib-tool (func_usage): Document that --with-*-tests options apply
48209         also to --create-testdir.
48210         (func_acceptable): Don't consider the status of *-tests modules here.
48211         (func_modules_transitive_closure): Consider it here, before including a
48212         test module.
48213         (func_import, func_create_testdir): Set inc_all_direct_tests,
48214         inc_all_indirect_tests.
48215         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
48216         --create-testdir and --create-megatestdir.
48218 2010-04-25  Bruno Haible  <bruno@clisp.org>
48220         gnulib-tool: Add --without-*-tests options.
48221         * gnulib-tool (func_usage): Document the --without-*-tests options.
48222         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
48223         excl_unportable_tests): New variables.
48224         Fail if they are specified with --import or --update.
48225         (func_acceptable): Respect the excl_*_tests variables.
48226         (func_import): Set the excl_*_tests variables to empty.
48228 2010-04-25  Simon Josefsson  <simon@josefsson.org>
48229             Bruno Haible  <bruno@clisp.org>
48231         Work around a MacOS X 10.4 bug with openpty.
48232         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
48233         * tests/test-openpty.c (main): Close the master side explicitly.
48235 2010-04-25  Bruno Haible  <bruno@clisp.org>
48237         strnlen: Fix a C++ test error on MacOS X and Solaris.
48238         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
48239         the function is not declared.
48240         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
48241         Simon Josefsson.
48243 2010-04-24  Bruno Haible  <bruno@clisp.org>
48245         Avoid a gcc warning.
48246         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
48247         of correct type for %08lx directive.
48248         Reported by Eric Blake.
48250 2010-04-24  Bruno Haible  <bruno@clisp.org>
48252         vasnprintf: Correct errno value in case of out-of-memory.
48253         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
48254         or sprintf. Use the errno value from SNPRINTF or sprintf.
48255         Reported by Ian Beckwith <ianb@erislabs.net>.
48257 2010-04-24  Bruno Haible  <bruno@clisp.org>
48259         ansi-c++-opt: Find correct compiler when cross-compiling.
48260         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
48261         AC_CHECK_PROGS.
48262         Reported by Simon Josefsson.
48264 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
48266         vc-list-files: Add support for subversion
48267         * build-aux/vc-list-files: Use "svn list" to generate the list of
48268         files controlled by subversion.
48270 2010-04-23  Jim Meyering  <meyering@redhat.com>
48272         vc-list-files tests: convert to use init.sh
48273         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
48274         path_prepend_.
48275         Use Exit, not exit.
48276         Use skip_ rather than open coding it.
48277         Remove trap set-up and compare definitions.
48278         * tests/test-vc-list-files-git.sh: Likewise.
48279         * modules/vc-list-files-tests (Files): Add tests/init.sh.
48281 2010-04-22  Simon Josefsson  <simon@josefsson.org>
48283         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
48284         backup files.
48286 2010-04-21  Simon Josefsson  <simon@josefsson.org>
48288         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
48290 2010-04-20  Eric Blake  <eblake@redhat.com>
48292         tests: be robust to ignored SIGPIPE
48293         * tests/test-select-in.sh: Consume all output.
48294         * tests/test-lseek.sh: Check correct exit status, while avoiding
48295         EPIPE.
48297 2010-04-20  Simon Josefsson  <simon@josefsson.org>
48298             Bruno Haible  <bruno@clisp.org>
48300         visibility: Don't use -fvisibility if it leads to a warning.
48301         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
48302         yes, don't pretend that visibility works if it leads to a warning.
48303         Reported by Mike Gran <spk121@yahoo.com>.
48305 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
48307         * build-aux/bootstrap: Use "git -h" for testing for supported options
48308         instead of "git --help".  The short-form option only shows a summary,
48309         and doesn't layout the full man page.  Grep for the full option name
48310         in the summary, too.
48312 2010-04-19  Bruno Haible  <bruno@clisp.org>
48314         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
48315         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
48316         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
48317         mention of RELOCATABLE_STRIP.
48318         Reported by Sylvain Beucler <beuc@beuc.net>.
48320 2010-04-19  Bruno Haible  <bruno@clisp.org>
48322         * lib/diffseq.h: Fix typo in comment.
48323         Reported by Eric Blake.
48325 2010-04-19  Bruno Haible  <bruno@clisp.org>
48327         ioctl: Move autoconf macro to a .m4 file.
48328         * m4/ioctl.m4: New file, extracted from modules/ioctl.
48329         * modules/ioctl (Files): Add it.
48330         (configure.ac): Simply invoke gl_FUNC_IOCTL.
48331         Reported by Ian Beckwith <ianb@erislabs.net>.
48333 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
48334             Bruno Haible  <bruno@clisp.org>
48336         diffseq: Accommodate use-case with abstract arrays.
48337         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
48338         is not defined.
48339         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
48340         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
48342 2010-04-18  Bruno Haible  <bruno@clisp.org>
48344         * doc/posix-headers/stdbool.texi: More precise wording.
48346 2010-04-17  Jim Meyering  <meyering@redhat.com>
48348         maint.mk: use gnu-style indentation in an embedded perl script
48349         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
48350         Rename variable: s/two/last_two_bytes/
48352 2010-04-16  Eric Blake  <eblake@redhat.com>
48354         test-stdbool: skip test that fails with Solaris CC
48355         * tests/test-stdbool.c (f): Skip test that causes compilation
48356         error under buggy C++ compiler.
48357         * lib/stdbool.in.h: Document the limitation.
48358         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
48360         setenv: allow compilation with C++
48361         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
48362         register keyword.
48364         stdint: allow test to pass with C++
48365         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
48367         getopt: allow compilation with C++
48368         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
48369         struct.
48370         * lib/getopt.c (_getopt_internal_r): Use correct type.
48371         Reported by Dagobert Michelson, via Joel E. Denny.
48373 2010-04-16  Bruno Haible  <bruno@clisp.org>
48375         Override netdb.h always.
48376         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
48377         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
48378         Reported by Ludovic Courtès <ludo@gnu.org>.
48380 2010-04-15  Bruno Haible  <bruno@clisp.org>
48382         openpty: Fix mistake from 2010-03-21.
48383         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
48384         Reported by Simon Josefsson.
48386 2010-04-15  Eric Blake  <eblake@redhat.com>
48388         test-forkpty: fix expected signature
48389         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
48390         Reported by Simon Josefsson.
48392 2010-04-15  Jim Meyering  <meyering@redhat.com>
48394         maint.mk: texinfo_suffix_re_: correct the default regexp
48395         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
48397         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
48398         make it configurable via texinfo_suffix_re_.
48400 2010-04-14  Eric Blake  <eblake@redhat.com>
48402         strtok_r: relax license to LGPLv2+
48403         * modules/strtok_r (License): Relax license.
48404         Reported by Matthias Bolte.
48406 2010-04-14  Simon Josefsson  <simon@josefsson.org>
48408         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
48409         version 1.4.4 by default instead of requiring the libgcrypt
48410         version used during build.  This makes it possible to use the
48411         application with older but still binary compatible libgcrypt
48412         versions.
48414 2010-04-13  Eric Blake  <eblake@redhat.com>
48416         getopt-gnu: match recent glibc fixes and posix ruling
48417         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
48418         '+' handling, when requesting extensions.
48419         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
48420         'W;' handling.
48421         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
48422         * doc/posix-functions/getopt.texi (getopt): Document this.
48423         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
48424         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
48425         Likewise.
48427         getopt: merge bug fixes from glibc
48428         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
48429         diagnostics.  Honor '+:' correctly.  Reject ';'.
48431         getopt-posix: detect MacOS bug
48432         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
48433         optind when missing a required argument.
48434         * doc/posix-functions/getopt.texi (getopt): Document the bug.
48435         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
48436         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
48437         Likewise.
48439         getopt-posix: avoid spurious failure on Solaris
48440         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
48441         an indicator that setting optind=1 is sufficient for reset.
48443         getopt-posix: avoid spurious failure on FreeBSD
48444         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
48445         in POSIX mode, since the m4 test uses it.
48447         gnulib-tool: silence warning on BSD sh
48448         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
48450 2010-04-13  Jim Meyering  <meyering@redhat.com>
48452         doc: users.txt: GNU patch now uses gnulib
48453         * users.txt: Add patch.
48455 2010-04-12  Jim Meyering  <meyering@redhat.com>
48457         maint.mk: generate more concise timing data for syntax-check rules
48458         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
48459         " done" from each line that reports a syntax-check test duration.
48461 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
48463         git-version-gen: use "git update-index..." rather than "git status"
48464         * build-aux/git-version-gen: Use git update-index --refresh, not
48465         "git status".  With some versions of git, "git status" would fail
48466         to update the index and result in an unwarranted "-dirty" suffix.
48468 2010-04-11  Jim Meyering  <meyering@redhat.com>
48470         openat: correct formatting (no semantic change)
48471         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
48472         Suggested by Bruno Haible.
48474 2010-04-11  Bruno Haible  <bruno@clisp.org>
48476         Stricter declaration checking in testdirs.
48477         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48478         If for_tests is true, augment AM_CPPFLAGS to define
48479         GNULIB_STRICT_CHECKING.
48480         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
48481         GNULIB_STRICT_CHECKING is defined, verify that the function is
48482         declared.
48484 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
48485             Bruno Haible  <bruno@clisp.org>
48487         libunistring: Improve configure output.
48488         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
48489         Don't say "consider installing GNU libunistring" when checking again
48490         with libiconv.
48492 2010-04-11  Bruno Haible  <bruno@clisp.org>
48494         libunistring: Correct value of $LTLIBUNISTRING.
48495         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
48496         correct the value of $LTLIBUNISTRING.
48498 2010-04-11  Bruno Haible  <bruno@clisp.org>
48500         havelib: Add static libraries to LIBS in the right order.
48501         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
48502         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
48504 2010-04-11  Bruno Haible  <bruno@clisp.org>
48506         libunistring: Detect libunistring also when it depends on libiconv.
48507         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
48508         the second AC_LIB_HAVE_LINKFLAGS invocation.
48510 2010-04-11  James Youngman  <jay@gnu.org>
48512         close-stream: declare local scalars to be "const"
48513         * lib/close-stream.c (close_stream): Make boolean variables const
48514         to document the fact that we set but do not change them.
48516 2010-04-11  Bruno Haible  <bruno@clisp.org>
48518         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
48520 2010-04-11  Jim Meyering  <meyering@redhat.com>
48522         maint.mk: don't include dist-check.mk
48523         * top/maint.mk: Remove bogus include directive.
48525         maint.mk: improve empty-line-at-EOF check
48526         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
48527         solution, rather than tail+Perl-based one.  The latter would read
48528         a few kilobytes from the end of each file, and did not handle empty
48529         files properly.
48531         maint.mk: print the elapsed time for each syntax-check rule
48532         * top/maint.mk (sc_m_rules_): Save start time in a file.
48533         (sc_z_rules_): New rules: remove temp file and print elapsed time.
48534         (local-check): Interpose the .z rules
48536 2010-04-11  Jim Meyering  <meyering@redhat.com>
48538         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
48539         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
48540         empty file with one that ends in an empty line.
48542 2010-04-10  Bruno Haible  <bruno@clisp.org>
48544         mkdir: Make it work on mingw64.
48545         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
48546         * lib/mkdir.c: Update comment.
48547         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
48549 2010-04-10  Bruno Haible  <bruno@clisp.org>
48551         Don't override improved macro from newer autoconf.
48552         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
48553         autoconf >= 2.62.
48554         Reported by Joel E. Denny <jdenny@clemson.edu>.
48556 2010-04-10  Jim Meyering  <meyering@redhat.com>
48558         maint.mk: new syntax-check rule: prohibit empty lines at end of file
48559         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
48561         maint.mk: correct a diagnostic
48562         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
48563         in diagnostic; now use $prohibit.
48565 2010-04-10  Bruno Haible  <address@hidden>
48567         fchownat: Fix a C++ test error on Solaris 8.
48568         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
48569         the function does not exist.
48571 2010-04-10  Bruno Haible  <bruno@clisp.org>
48573         vasnprintf: Add more tests.
48574         * tests/test-vasnprintf-posix.c: Include <errno.h>.
48575         (test_function): Test converting an invalid wide string.
48577         vasnprintf: Correct handling of unconvertible wide string arguments.
48578         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
48579         VASNPRINTF.
48580         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
48581         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
48582         smaller than the expected maximum need for the directive. Set errno to
48583         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
48584         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
48585         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
48586         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
48587         * modules/vasnprintf (Files): Add m4/printf.m4.
48588         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
48590 2010-04-10  Bruno Haible  <bruno@clisp.org>
48592         vasnprintf: Fix crash in %ls directive.
48593         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
48594         string is passed as argument to %ls, with no precision and no width.
48595         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
48597 2010-04-10  Bruno Haible  <bruno@clisp.org>
48599         vasnprintf: Fix multiple test failures on mingw.
48600         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
48601         _snprintf, or snwprintf, not _snwprintf.
48603 2010-04-10  Bruno Haible  <bruno@clisp.org>
48605         write: Fix a C++ test error on mingw.
48606         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
48608 2010-04-10  Bruno Haible  <bruno@clisp.org>
48610         vasnprintf test: Reduce code duplication.
48611         * tests/test-vasnprintf.c (test_function): New function, extracted from
48612         test_vasnprintf.
48613         (test_vasnprintf, test_asnprintf): Invoke it.
48615 2010-04-10  Bruno Haible  <bruno@clisp.org>
48617         strnlen: Fix warning in C++ mode on MacOS X.
48618         * lib/string.in.h (strnlen): Use the modern idiom.
48619         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
48620         defining strnlen as a macro already in <config.h>.
48621         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48622         REPLACE_STRNLEN.
48623         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
48624         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
48626 2010-04-08  James Youngman  <jay@gnu.org>
48628         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
48629         the example.
48631 2010-04-09  Jim Meyering  <meyering@redhat.com>
48633         maint.mk: print better diagnostic when there is no $(_hv_file)
48634         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
48635         announce that when $(_hv_file) (aka help-version) does not exist.
48637         init.sh: run tr in the "C" locale to avoid multibyte interpretation
48638         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
48639         not try to interpret its random input bytes.  Jarno Rajahalme reported
48640         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
48641         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
48642         (mktempd_): Likewise, just in case.
48644         ftruncate: add two years to projected module removal date: 2012
48645         * m4/ftruncate.m4: Adjust comments.
48647         ftruncate: mark module as obsolete; even MinGW provides it, now
48648         * modules/ftruncate (Status): Obsolete.
48649         (Notice): Say that.
48650         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
48651         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
48653 2010-04-08  Bruno Haible  <bruno@clisp.org>
48655         Fix side effects from tests-related modules.
48656         * modules/dprintf-posix (Comment): New section.
48657         * modules/fprintf-posix (Comment): Likewise.
48658         * modules/obstack-printf-posix (Comment): Likewise.
48659         * modules/printf-posix (Comment): Likewise.
48660         * modules/snprintf-posix (Comment): Likewise.
48661         * modules/sprintf-posix (Comment): Likewise.
48662         * modules/vasnprintf-posix (Comment): Likewise.
48663         * modules/vasprintf-posix (Comment): Likewise.
48664         * modules/vdprintf-posix (Comment): Likewise.
48665         * modules/vfprintf-posix (Comment): Likewise.
48666         * modules/vprintf-posix (Comment): Likewise.
48667         * modules/vsnprintf-posix (Comment): Likewise.
48668         * modules/vsprintf-posix (Comment): Likewise.
48669         * modules/xprintf-posix (Comment): Likewise.
48670         * modules/xvasprintf-posix (Comment): Likewise.
48671         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
48672         * modules/floorf-tests (Depends-on): Likewise.
48673         * modules/round-tests (Depends-on): Likewise.
48674         * modules/roundf-tests (Depends-on): Likewise.
48675         * modules/trunc-tests (Depends-on): Likewise.
48676         * modules/truncf-tests (Depends-on): Likewise.
48677         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
48678         'fprintf-posix' module is not present.
48679         * tests/test-floorf2.c (check): Likewise.
48680         * tests/test-trunc2.c (check): Likewise.
48681         * tests/test-truncf2.c (check): Likewise.
48682         * tests/test-round2.c (equal): Likewise.
48683         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
48685 2010-04-07  Karl Berry  <karl@gnu.org>
48687         * config/srclist.txt,
48688         * config/srclistvars.sh,
48689         * config/srclist-update: doc fixes.
48691 2010-04-07  Jim Meyering  <meyering@redhat.com>
48693         maint.mk: add a PATH crosschecking syntax-check rule
48694         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
48695         Useful if you use a test like the one in help-version (coreutils,
48696         diffutils, grep, gzip) that ensures $(VERSION) matches what is
48697         printed by prog --version.
48699 2010-04-06  Bruno Haible  <bruno@clisp.org>
48701         Fix link error on mingw.
48702         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
48703         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
48705 2010-04-06  Bruno Haible  <bruno@clisp.org>
48707         Assume rmdir exists.
48708         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
48710 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
48712         doc: update users.txt
48713         * users.txt: Add gcal.
48715 2010-04-06  Jim Meyering  <meyering@redhat.com>
48717         init.sh: simply unset TMPDIR rather than risking env -i
48718         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
48719         although it probably works fine on all Unix-based systems, some
48720         systems (Cygwin?) cannot tolerate a totally cleared environment.
48721         Suggestion from Eric Blake.
48723 2010-04-06  Jim Meyering  <meyering@redhat.com>
48725         init.sh: portability fix: use env's POSIX-specified -i option not -u
48726         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
48727         than unportable env -u.  Solaris 5.11's env lacks support for -u.
48729 2010-04-05  Bruno Haible  <bruno@clisp.org>
48731         btowc: Work around Cygwin 1.7.2 bug.
48732         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
48733         does not map NUL to 0.
48734         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
48736 2010-04-05  Bruno Haible  <bruno@clisp.org>
48738         Make the multithread modules work on Cygwin 1.7.2.
48739         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
48740         imported symbols can be declared weak, so that it returns "no" on
48741         Cygwin 1.7.2.
48743 2010-04-05  Bruno Haible  <bruno@clisp.org>
48745         Use the module 'strncat'.
48746         * modules/unistr/u8-strncat (Depends-on): Add strncat.
48748         Tests for module 'strncat'.
48749         * modules/strncat-tests: New file.
48750         * tests/test-strncat.c: New file.
48752         New module 'strncat'.
48753         * lib/string.in.h (strncat): New declaration.
48754         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
48755         * m4/strncat.m4: New file, based on m4/memchr.m4.
48756         * modules/strncat: New file.
48757         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
48758         is declared.
48759         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
48760         REPLACE_STRNCAT.
48761         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
48762         REPLACE_STRNCAT.
48763         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
48764         module.
48765         * tests/test-string-c++.cc: Check signature of strncat.
48767 2010-04-05  Jim Meyering  <meyering@redhat.com>
48769         xstrtoumax-tests: convert to use init.sh
48770         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
48771         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
48772         Use Exit, not exit.
48773         Remove uses of $EXEEXT and "./" to run a program in the current dir.
48775         xstrtoimax-tests: convert to use init.sh
48776         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
48777         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
48778         Use Exit, not exit.
48779         Remove uses of $EXEEXT and "./" to run a program in the current dir.
48781 2010-04-05  Bruno Haible  <bruno@clisp.org>
48783         sys_socket: Avoid #define replacements in C++ mode.
48784         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
48785         warning to the function if possible, rather than #defining the symbol
48786         to a dysfunctional alias.
48788 2010-04-05  Bruno Haible  <bruno@clisp.org>
48790         fseeko: Fix C++ test error on mingw.
48791         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
48792         gl_FUNC_FSEEKO.
48793         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
48794         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
48795         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
48796         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
48798 2010-04-05  Bruno Haible  <bruno@clisp.org>
48800         duplocale: Improve test output.
48801         * tests/test-duplocale.c (main): Print reason for skipped test.
48803 2010-04-05  Bruno Haible  <bruno@clisp.org>
48805         Assume rmdir exists.
48806         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
48807         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
48809 2010-04-05  Bruno Haible  <bruno@clisp.org>
48811         Fix link error on Solaris 8 with cc.
48812         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
48814 2010-04-05  Bruno Haible  <bruno@clisp.org>
48816         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
48817         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
48819 2010-04-05  Bruno Haible  <bruno@clisp.org>
48821         vasprintf: Update documentation.
48822         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
48824 2010-04-05  Bruno Haible  <bruno@clisp.org>
48826         ptsname: Improve test.
48827         * tests/test-ptsname.c (main): Also try the various master names of BSD
48828         systems.
48830 2010-04-05  Bruno Haible  <bruno@clisp.org>
48832         memchr: Avoid a possible C++ test error.
48833         * lib/string.in.h (memchr): Provide declaration if function is missing.
48834         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
48835         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
48836         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
48837         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
48839 2010-04-05  Bruno Haible  <bruno@clisp.org>
48841         strtok_r: Improve idiom.
48842         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
48843         AC_LIBOBJ is used.
48845 2010-04-05  Bruno Haible  <bruno@clisp.org>
48847         strdup: Improve idiom.
48848         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
48849         AC_LIBOBJ is used.
48850         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
48851         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
48852         when AC_LIBOBJ is used.
48854 2010-04-05  Bruno Haible  <bruno@clisp.org>
48856         mbsinit, mbrtowc, wcrtomb: Improve idioms.
48857         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
48858         don't set REPLACE_MBSINIT to 1.
48859         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
48860         don't set REPLACE_MBRTOWC to 1.
48861         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
48862         exist, don't set REPLACE_MBSRTOWCS to 1.
48863         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
48864         exist, don't set REPLACE_MBSNRTOWCS to 1.
48865         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
48866         don't set REPLACE_WCRTOMB to 1.
48867         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
48868         exist, don't set REPLACE_WCSRTOMBS to 1.
48869         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
48870         exist, don't set REPLACE_WCSNRTOMBS to 1.
48872 2010-04-05  Bruno Haible  <bruno@clisp.org>
48874         ldexpl: Improve idiom.
48875         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
48876         make sure to set HAVE_DECL_LDEXPL to 0.
48878 2010-04-05  Jim Meyering  <meyering@redhat.com>
48880         xstrtol-tests: convert to use init.sh
48881         * modules/xstrtol-tests (Files): Add tests/init.sh.
48882         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
48883         Use Exit, not exit.
48884         Remove uses of $EXEEXT and "./" to run a program in the current dir.
48886         atexit-tests: convert to use init.sh
48887         * modules/atexit-tests (Files): Add tests/init.sh.
48888         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
48889         Use Exit, not exit.
48890         Remove uses of $EXEEXT and "./" to run a program in the current dir.
48892         init.sh: fix typo
48893         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
48895         init.sh: make it easier for a test script to write to the tty, ...
48896         when using automake's parallel-tests mode.
48897         * tests/init.sh (stderr_fileno_): Define overridable variable.
48898         (warn_): New function, to use it.
48899         (fail_, skip_, framework_failure_): Use warn_.
48901 2010-04-04  Bruno Haible  <bruno@clisp.org>
48903         btowc: Avoid warning.
48904         * lib/btowc.c: Include <stdlib.h>.
48905         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
48907 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
48908             Bruno Haible  <bruno@clisp.org>
48910         wchar: Port to NetBSD 1.5.
48911         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
48912         * lib/wctype.in.h (WEOF): Likewise.
48914 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
48915             Bruno Haible  <bruno@clisp.org>
48917         Port extended stdio to NetBSD 1.5.
48918         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
48919         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
48920         older.
48922 2010-04-04  Bruno Haible  <bruno@clisp.org>
48924         string: Remove unused substitution.
48925         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
48926         HAVE_DECL_STRERROR.
48927         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
48929 2010-04-04  Bruno Haible  <bruno@clisp.org>
48931         strtod: Avoid a possible C++ test error.
48932         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
48933         set REPLACE_STRTOD.
48935 2010-04-04  Bruno Haible  <bruno@clisp.org>
48937         strerror: Update documentation.
48938         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
48940 2010-04-04  Bruno Haible  <bruno@clisp.org>
48942         stdio: Fix some C++ test errors on Solaris 8 with GCC.
48943         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
48944         _GL_CXXALIAS_SYS_CAST.
48946 2010-04-04  Bruno Haible  <bruno@clisp.org>
48948         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
48949         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
48950         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
48951         REPLACE_FREXPL to 1.
48952         * doc/posix-functions/frexpl.texi: Update documentation.
48954 2010-04-04  Bruno Haible  <bruno@clisp.org>
48956         math: Fix some C++ test errors on Solaris 8 and Cygwin.
48957         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
48959 2010-04-04  Bruno Haible  <bruno@clisp.org>
48961         Implement nanosleep for native Windows.
48962         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
48964 2010-04-04  Bruno Haible  <bruno@clisp.org>
48966         math: Fix some C++ test errors on Solaris 8.
48967         * lib/math.in.h (truncf, trunc): Use simpler idiom.
48969 2010-04-04  Bruno Haible  <bruno@clisp.org>
48971         math: Fix some C++ test errors on Cygwin.
48972         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
48973         truncl): Provide declaration if the system does not have it.
48974         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
48975         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
48976         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
48977         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
48978         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
48979         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
48980         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
48981         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
48982         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
48983         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
48984         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
48985         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
48986         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
48987         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
48988         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
48989         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
48990         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
48991         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
48992         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
48993         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
48994         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
48995         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
48997 2010-04-04  Bruno Haible  <bruno@clisp.org>
48999         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
49000         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
49001         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
49002         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
49003         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
49004         * m4/isinf.m4 (gl_ISINF): Likewise.
49005         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
49007 2010-04-04  Bruno Haible  <bruno@clisp.org>
49009         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
49010         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
49012 2010-04-04  Bruno Haible  <bruno@clisp.org>
49014         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
49015         * modules/tmpfile (configure.ac): Update.
49017         tmpfile: Fix C++ test error on mingw.
49018         * lib/stdio.in.h (tmpfile): New declaration.
49019         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
49020         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
49021         * modules/tmpfile (Depends-on): Add stdio.
49022         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
49023         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
49024         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
49025         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
49026         REPLACE_TMPFILE.
49027         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
49029 2010-04-04  Bruno Haible  <bruno@clisp.org>
49031         ioctl: Fix C++ test error on mingw.
49032         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
49033         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
49034         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
49036 2010-04-03  Bruno Haible  <bruno@clisp.org>
49038         wcwidth: Fix C++ test error on mingw.
49039         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
49040         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
49041         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
49043 2010-04-03  Bruno Haible  <bruno@clisp.org>
49045         nanosleep: Fix C++ test error on mingw.
49046         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
49047         * lib/time.in.h (nanosleep): Use modern idiom.
49048         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
49049         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
49050         REPLACE_NANOSLEEP to 1.
49051         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
49052         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
49054 2010-04-03  Bruno Haible  <bruno@clisp.org>
49056         strptime: Fix C++ test error on mingw.
49057         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
49058         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
49059         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
49060         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
49061         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
49062         not REPLACE_STRPTIME.
49063         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
49064         REPLACE_STRPTIME.
49066 2010-04-03  Bruno Haible  <bruno@clisp.org>
49068         timegm: Fix C++ test error on mingw.
49069         * lib/time.in.h (timegm): Use modern idiom.
49070         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
49071         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
49072         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
49073         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
49075 2010-04-03  Bruno Haible  <bruno@clisp.org>
49077         timegm: Assume declaration if function exists.
49078         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
49079         if it exists. Don't clobber ac_cv_func_timegm.
49081 2010-04-03  Bruno Haible  <bruno@clisp.org>
49083         time_r: Fix C++ test error on mingw.
49084         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
49085         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
49086         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
49087         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
49088         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
49090 2010-04-03  Bruno Haible  <bruno@clisp.org>
49092         time_r: Minor updates.
49093         * modules/time_r (Description): Mention the provided functions.
49094         * lib/time_r.c: Don't include <string.h>.
49095         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
49096         * doc/posix-functions/localtime_r.texi: Likewise.
49098 2010-04-03  Bruno Haible  <bruno@clisp.org>
49100         time: Fix regression introduced on 2010-03-08.
49101         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
49102         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
49104 2010-04-03  Jim Meyering  <meyering@redhat.com>
49106         maint.mk: don't silently disable project-specific syntax-check rules
49107         * top/maint.mk (_prohibit_regexp): Define, to help people realize
49108         that they need to convert their project-specific syntax-check rules
49109         to use the new _sc_search_regexp.
49111 2010-04-03  Bruno Haible  <bruno@clisp.org>
49113         fchdir: Fix regression introduced on 2010-03-08.
49114         * lib/unistd.in.h (fchdir): Fix declaration.
49115         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
49116         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
49117         REPLACE_FCHDIR.
49118         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
49119         REPLACE_FCHDIR.
49121 2010-04-03  Bruno Haible  <bruno@clisp.org>
49123         getpagesize: Fix C++ test error on mingw.
49124         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
49125         system does not declare the function.
49126         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
49127         declared.
49128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49129         HAVE_DECL_GETPAGESIZE.
49130         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
49132 2010-04-03  Bruno Haible  <bruno@clisp.org>
49134         stdio: Make C++ tests work on mingw.
49135         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
49136         does not declare the function.
49138 2010-04-03  Bruno Haible  <bruno@clisp.org>
49140         ftello: Fix C++ test error on mingw.
49141         * lib/stdio.in.h (ftello): Use modern idiom.
49142         * lib/ftello.c (ftello): Renamed from rpl_ftello.
49143         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
49144         is missing and that it needs to be replaced.
49145         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
49146         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
49147         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
49149 2010-04-03  Bruno Haible  <bruno@clisp.org>
49151         fseeko: Fix C++ test error on mingw.
49152         * lib/stdio.in.h (fseeko): Use modern idiom.
49153         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
49154         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
49155         is missing and that it needs to be replaced.
49156         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
49157         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
49158         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
49160 2010-04-03  Bruno Haible  <bruno@clisp.org>
49162         mkstemp: Fix C++ test error on mingw.
49163         * lib/stdlib.in.h (mkstemp): Use modern idiom.
49164         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
49165         function is missing and that it needs to be replaced.
49166         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
49167         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
49169 2010-04-03  Bruno Haible  <bruno@clisp.org>
49171         stpncpy: Fix C++ test error on mingw.
49172         * lib/string.in.h (stpncpy): Use modern idiom.
49173         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
49174         function is missing and that it needs to be replaced.
49175         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49176         REPLACE_STPNCPY.
49177         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
49179 2010-04-03  Bruno Haible  <bruno@clisp.org>
49181         sys_stat: Fix C++ test error on mingw.
49182         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
49183         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
49185 2010-04-03  Bruno Haible  <bruno@clisp.org>
49187         pty: Update doc.
49188         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
49190 2010-04-03  Bruno Haible  <bruno@clisp.org>
49192         unistd: Fix C++ test error on mingw.
49193         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
49195 2010-04-03  Bruno Haible  <bruno@clisp.org>
49197         Update doc regarding mingw.
49198         * doc/glibc-functions/openpty.texi: Update regarding mingw.
49199         * doc/glibc-functions/login_tty.texi: Likewise.
49200         * doc/glibc-functions/forkpty.texi: Likewise.
49202 2010-04-03  Bruno Haible  <bruno@clisp.org>
49204         stdlib: Avoid compilation failure of c-strtold on mingw.
49205         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
49207 2010-04-03  Bruno Haible  <bruno@clisp.org>
49209         locale: Make C++ tests work on Cygwin and mingw.
49210         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
49211         cannot provide the function.
49212         Reported by Simon Josefsson.
49214 2010-04-03  Bruno Haible  <bruno@clisp.org>
49216         localename: Port to MacOS X 10.6.
49217         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
49218         memory layout of the locales in MacOS X 10.6 as well.
49219         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
49221 2010-04-02  Bruno Haible  <bruno@clisp.org>
49223         gnulib-tool: Ensure that long-running tests are executed last.
49224         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
49225         running tests after the one for the other tests.
49227 2010-04-02  Bruno Haible  <bruno@clisp.org>
49229         gnulib-tool: Ensure the tests in the main directory are executed first.
49230         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
49231         start with the current directory.
49233 2010-04-02  Bruno Haible  <bruno@clisp.org>
49235         Tests for module 'havelib', moved here from GNU gettext.
49236         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
49237         modifications.
49238         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
49239         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
49240         with modifications.
49241         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
49242         modifications.
49243         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
49244         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
49245         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
49246         with modifications.
49247         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
49248         with modifications.
49249         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
49250         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
49251         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
49252         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
49253         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
49254         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
49255         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
49256         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
49257         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
49258         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
49259         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
49260         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
49261         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
49262         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
49263         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
49264         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
49265         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
49266         with modifications.
49267         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
49268         with modifications.
49269         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
49270         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
49271         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
49272         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
49273         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
49274         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
49275         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
49276         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
49277         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
49278         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
49279         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
49280         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
49281         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
49282         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
49283         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
49284         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
49285         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
49286         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
49287         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
49288         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
49289         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
49290         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
49291         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
49292         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
49293         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
49294         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
49295         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
49296         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
49297         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
49298         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
49299         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
49300         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
49301         * tests/havelib/rpathx/rpathx.c: New file, from
49302         gettext/autoconf-lib-link.
49303         * tests/havelib/rpathx/Makefile.am: New file, from
49304         gettext/autoconf-lib-link.
49305         * tests/havelib/rpathx/configure.ac: New file, from
49306         gettext/autoconf-lib-link with modifications.
49307         * tests/havelib/rpathy/rpathy.c: New file, from
49308         gettext/autoconf-lib-link.
49309         * tests/havelib/rpathy/Makefile.am: New file, from
49310         gettext/autoconf-lib-link.
49311         * tests/havelib/rpathy/configure.ac: New file, from
49312         gettext/autoconf-lib-link with modifications.
49313         * tests/havelib/rpathz/rpathz.c: New file, from
49314         gettext/autoconf-lib-link.
49315         * tests/havelib/rpathz/Makefile.am: New file, from
49316         gettext/autoconf-lib-link.
49317         * tests/havelib/rpathz/configure.ac: New file, from
49318         gettext/autoconf-lib-link with modifications.
49319         * tests/havelib/rpathlx/usex.c: New file, from
49320         gettext/autoconf-lib-link.
49321         * tests/havelib/rpathlx/Makefile.am: New file, from
49322         gettext/autoconf-lib-link.
49323         * tests/havelib/rpathlx/configure.ac: New file, from
49324         gettext/autoconf-lib-link with modifications.
49325         * tests/havelib/rpathly/usey.c: New file, from
49326         gettext/autoconf-lib-link.
49327         * tests/havelib/rpathly/Makefile.am: New file, from
49328         gettext/autoconf-lib-link.
49329         * tests/havelib/rpathly/configure.ac: New file, from
49330         gettext/autoconf-lib-link with modifications.
49331         * tests/havelib/rpathlz/usez.c: New file, from
49332         gettext/autoconf-lib-link.
49333         * tests/havelib/rpathlz/Makefile.am: New file, from
49334         gettext/autoconf-lib-link.
49335         * tests/havelib/rpathlz/configure.ac: New file, from
49336         gettext/autoconf-lib-link with modifications.
49337         * tests/havelib/rpathlyx/usey.c: New file, from
49338         gettext/autoconf-lib-link.
49339         * tests/havelib/rpathlyx/Makefile.am: New file, from
49340         gettext/autoconf-lib-link.
49341         * tests/havelib/rpathlyx/configure.ac: New file, from
49342         gettext/autoconf-lib-link with modifications.
49343         * tests/havelib/rpathlzyx/usez.c: New file, from
49344         gettext/autoconf-lib-link.
49345         * tests/havelib/rpathlzyx/Makefile.am: New file, from
49346         gettext/autoconf-lib-link.
49347         * tests/havelib/rpathlzyx/configure.ac: New file, from
49348         gettext/autoconf-lib-link with modifications.
49349         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
49350         with modifications.
49352 2010-04-02  Bruno Haible  <bruno@clisp.org>
49354         gnulib-tool: Create distributed built sources also for the tests.
49355         * gnulib-tool (func_create_testdir): Also generate distributed built
49356         sources in the tests directory.
49358 2010-04-02  Bruno Haible  <bruno@clisp.org>
49360         gnulib-tool: Obey user's environment variables.
49361         * gnulib-tool (func_create_testdir): When creating built sources,
49362         respect the environment variables for autoconf, automake, etc. given by
49363         the user.
49365 2010-04-02  Bruno Haible  <bruno@clisp.org>
49367         gnulib-tool: Provide the value of --m4-base to modules.
49368         * gnulib-tool (func_import, func_create_testdir): Emit a definition
49369         of gl_m4_base.
49371 2010-04-02  Eric Blake  <eblake@redhat.com>
49373         maint.mk: fix some fallout
49374         * NEWS: Document the incompatible change, and its effect on cfg.mk.
49375         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
49377 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
49379         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
49380         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
49381         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
49382         (sc_cast_of_x_alloc_return_value): Likewise.
49383         (sc_cast_of_alloca_return_value): Likewise.
49384         (sc_space_tab): Likewise.
49385         (sc_prohibit_atoi_atof): Likewise.
49386         (sc_prohibit_magic_number_exit): Likewise.
49387         (sc_error_exit_success): Likewise.
49388         (sc_file_system): Likewise.
49389         (sc_prohibit_have_config_h): Likewise.
49390         (sc_require_config_h): Likewise.
49391         (sc_prohibit_HAVE_MBRTOWC): Likewise.
49392         (sc_obsolete_symbols): Likewise.
49393         (sc_changelog): Likewise.
49394         (sc_program_name): Likewise.
49395         (sc_the_the): Likewise.
49396         (sc_trailing_blank): Likewise.
49397         (sc_two_space_separator_in_usage): Likewise.
49398         (sc_useless_cpp_parens): Likewise.
49399         (sc_GPL_version): Likewise.
49400         (sc_GFDL_version): Likewise.
49401         (sc_texinfo_acronym): Likewise.
49402         (sc_prohibit_cvs_keyword): Likewise.
49403         (sc_prohibit_stat_st_blocks): Likewise.
49404         (sc_prohibit_S_IS_definition): Likewise.
49405         (sc_redundant_const): Likewise.
49406         (sc_makefile_TAB_only_indentation): Likewise.
49407         (sc_m4_quote_check): Likewise.
49408         (sc_makefile_path_separator_check): Likewise.
49409         (sc_copyright_check): Likewise.
49410         (sc_Wundef_boolean): Likewise.
49411         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
49413         maint.mk: match 0 or more whitespace-before-function-call '('
49414         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
49415         that have zero or two-and-more spaces between the function name
49416         and the open parenthesis.
49417         (sc_error_message_warn_fatal): Likewise.
49418         (sc_error_message_uppercase): Likewise.
49419         (sc_error_message_period): Likewise.
49421 2010-03-31  Eric Blake  <eblake@redhat.com>
49423         maint.mk: check for [ as well as test
49424         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
49425         Based on a libvirt report by Matthias Bolte.
49427         gnumakefile: don't squelch _version output
49428         * top/GNUmakefile (_version): Create one-shot dependency rather
49429         than using $(shell) when version must be regenerated.
49430         (_autoreconf): Run verbosely, by default.
49432         sys_time: avoid compiler warnings
49433         * lib/sys_time.in.h (includes): Ensure gcc pragma is
49434         unconditional, fixing regression from 2010-03-29.
49435         Reported by Simon Josefsson.
49437 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
49439         maint.mk: s/_header_without_use/_sc_header_without_use/
49440         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
49441         (sc_prohibit_assert_without_use): Use the new name.
49442         (sc_prohibit_close_stream_without_use): Likewise.
49443         (sc_prohibit_getopt_without_use): Likewise.
49444         (sc_prohibit_quotearg_without_use): Likewise.
49445         (sc_prohibit_quote_without_use): Likewise.
49446         (sc_prohibit_long_options_without_use): Likewise.
49447         (sc_prohibit_inttostr_without_use): Likewise.
49448         (sc_prohibit_ignore_value_without_use): Likewise.
49449         (sc_prohibit_error_without_use): Likewise.
49450         (sc_prohibit_xalloc_without_use): Likewise.
49451         (sc_prohibit_hash_without_use): Likewise.
49452         (sc_prohibit_hash_pjw_without_use): Likewise.
49453         (sc_prohibit_safe_read_without_use): Likewise.
49454         (sc_prohibit_argmatch_without_use): Likewise.
49455         (sc_prohibit_canonicalize_without_use): Likewise.
49456         (sc_prohibit_root_dev_ino_without_use): Likewise.
49457         (sc_prohibit_openat_without_use): Likewise.
49458         (sc_prohibit_c_ctype_without_use): Likewise.
49459         (sc_prohibit_signal_without_use): Likewise.
49460         (sc_prohibit_intprops_without_use): Likewise.
49462 2010-03-30  Eric Blake  <eblake@redhat.com>
49464         maint: improve module indicators
49465         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
49466         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
49467         columns, and avoid extra macro expansion.
49469         fdopendir: work around FreeBSD bug
49470         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
49471         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
49472         * modules/dirent (Makefile.am): Substitute it.
49473         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
49474         declaration.
49475         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
49476         fix.
49477         Reported by Christian Weisgerber <naddy@mips.inka.de>.
49479 2010-03-29  Bruno Haible  <bruno@clisp.org>
49481         Emit #pragma system_header after the inclusion guard, not before.
49482         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
49483         guard that spans the entire file, not before. This enables an
49484         optimization in GCC's preprocessor.
49485         * lib/ctype.in.h: Likewise.
49486         * lib/dirent.in.h: Likewise.
49487         * lib/errno.in.h: Likewise.
49488         * lib/float.in.h: Likewise.
49489         * lib/getopt.in.h: Likewise.
49490         * lib/iconv.in.h: Likewise.
49491         * lib/langinfo.in.h: Likewise.
49492         * lib/locale.in.h: Likewise.
49493         * lib/math.in.h: Likewise.
49494         * lib/netdb.in.h: Likewise.
49495         * lib/netinet_in.in.h: Likewise.
49496         * lib/pty.in.h: Likewise.
49497         * lib/sched.in.h: Likewise.
49498         * lib/se-selinux.in.h: Likewise.
49499         * lib/search.in.h: Likewise.
49500         * lib/spawn.in.h: Likewise.
49501         * lib/stdarg.in.h: Likewise.
49502         * lib/stdint.in.h: Likewise.
49503         * lib/string.in.h: Likewise.
49504         * lib/strings.in.h: Likewise.
49505         * lib/sys_file.in.h: Likewise.
49506         * lib/sys_ioctl.in.h: Likewise.
49507         * lib/sys_time.in.h: Likewise.
49508         * lib/sys_times.in.h: Likewise.
49509         * lib/sys_utsname.in.h: Likewise.
49510         * lib/sys_wait.in.h: Likewise.
49511         * lib/sysexits.in.h: Likewise.
49512         * lib/wctype.in.h: Likewise.
49514 2010-03-28  James Youngman  <jay@gnu.org>
49516         save-cwd: don't leak a file descriptor when the caller execs.
49517         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
49518         saved file descriptor.
49519         * modules/save-cwd (Depends-on): Depend on cloexec.
49521 2010-03-29  Bruno Haible  <bruno@clisp.org>
49523         Remove vestiges of fts-lgpl module.
49524         * lib/fts_.h: Assume GNULIB_FTS is 1.
49525         * lib/fts.c: Likewise.
49526         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
49528 2010-03-28  Bruno Haible  <bruno@clisp.org>
49530         Fix definition of tests witness macro.
49531         * gnulib-tool (func_import): Fix definition of witness macro.
49533 2010-03-28  Bruno Haible  <bruno@clisp.org>
49535         Fix ioctl's protoype on glibc systems.
49536         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
49537         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
49538         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
49539         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
49540         signature. If not, arrange to replace the ioctl function.
49541         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
49542         REPLACE_IOCTL.
49543         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
49544         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
49545         Reported by Ludovic Courtès <ludo@gnu.org>.
49547 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
49549         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
49550         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
49551         made it so grep -r --include=GLOB* ... did not work.
49553 2010-03-26  Jim Meyering  <meyering@redhat.com>
49554             Eric Blake  <eblake@redhat.com>
49556         maint.mk: prohibit use of test's -o and -a operators
49557         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
49559 2010-03-28  Bruno Haible  <bruno@clisp.org>
49561         Remove unused GNULIB_XYZ macro definitions.
49562         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
49563         invocation.
49565 2010-03-28  Bruno Haible  <bruno@clisp.org>
49567         Mark privileged tests modules.
49568         * modules/idpriv-drop-tests (Status): New section.
49569         * modules/idpriv-droptemp-tests (Status): New section.
49571 2010-03-28  Bruno Haible  <bruno@clisp.org>
49573         Split C++ tests into separate tests modules.
49574         * modules/dirent-c++-tests: New file, extracted from
49575         modules/dirent-tests.
49576         * modules/dirent-tests: Depend on it.
49577         * modules/fcntl-h-c++-tests: New file, extracted from
49578         modules/fcntl-h-tests.
49579         * modules/fcntl-h-tests: Depend on it.
49580         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
49581         * modules/glob-tests: Depend on it.
49582         * modules/iconv-h-c++-tests: New file, extracted from
49583         modules/iconv-h-tests.
49584         * modules/iconv-h-tests: Depend on it.
49585         * modules/langinfo-c++-tests: New file, extracted from
49586         modules/langinfo-tests.
49587         * modules/langinfo-tests: Depend on it.
49588         * modules/locale-c++-tests: New file, extracted from
49589         modules/locale-tests.
49590         * modules/locale-tests: Depend on it.
49591         * modules/math-c++-tests: New file, extracted from modules/math-tests.
49592         * modules/math-tests: Depend on it.
49593         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
49594         * modules/pty-tests: Depend on it.
49595         * modules/search-c++-tests: New file, extracted from
49596         modules/search-tests.
49597         * modules/search-tests: Depend on it.
49598         * modules/signal-c++-tests: New file, extracted from
49599         modules/signal-tests.
49600         * modules/signal-tests: Depend on it.
49601         * modules/spawn-c++-tests: New file, extracted from
49602         modules/spawn-tests.
49603         * modules/spawn-tests: Depend on it.
49604         * modules/stdio-c++-tests: New file, extracted from
49605         modules/stdio-tests.
49606         * modules/stdio-tests: Depend on it.
49607         * modules/stdlib-c++-tests: New file, extracted from
49608         modules/stdlib-tests.
49609         * modules/stdlib-tests: Depend on it.
49610         * modules/string-c++-tests: New file, extracted from
49611         modules/string-tests.
49612         * modules/string-tests: Depend on it.
49613         * modules/sys_ioctl-c++-tests: New file, extracted from
49614         modules/sys_ioctl-tests.
49615         * modules/sys_ioctl-tests: Depend on it.
49616         * modules/sys_select-c++-tests: New file, extracted from
49617         modules/sys_select-tests.
49618         * modules/sys_select-tests: Depend on it.
49619         * modules/sys_socket-c++-tests: New file, extracted from
49620         modules/sys_socket-tests.
49621         * modules/sys_socket-tests: Depend on it.
49622         * modules/sys_stat-c++-tests: New file, extracted from
49623         modules/sys_stat-tests.
49624         * modules/sys_stat-tests: Depend on it.
49625         * modules/sys_time-c++-tests: New file, extracted from
49626         modules/sys_time-tests.
49627         * modules/sys_time-tests: Depend on it.
49628         * modules/time-c++-tests: New file, extracted from modules/time-tests.
49629         * modules/time-tests: Depend on it.
49630         * modules/unistd-c++-tests: New file, extracted from
49631         modules/unistd-tests.
49632         * modules/unistd-tests: Depend on it.
49633         * modules/wchar-c++-tests: New file, extracted from
49634         modules/wchar-tests.
49635         * modules/wchar-tests: Depend on it.
49636         * modules/wctype-c++-tests: New file, extracted from
49637         modules/wctype-tests.
49638         * modules/wctype-tests: Depend on it.
49639         Reported by Simon Josefsson.
49641 2010-03-28  Bruno Haible  <bruno@clisp.org>
49643         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
49644         * gnulib-tool (func_exists_module): New function, extracted from
49645         func_verify_module.
49646         (func_verify_module): Use it.
49647         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
49648         'foo' only if 'foo' exists.
49649         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
49650         module.
49652 2010-03-28  Bruno Haible  <bruno@clisp.org>
49654         gnulib-tool: Add support for special categories of tests.
49655         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
49656         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
49657         (func_usage): Document them.
49658         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
49659         inc_unportable_tests, inc_all_tests): New variables.
49660         (func_acceptable): Consider these variables.
49661         (func_modules_transitive_closure): Make it work when the 'Status' field
49662         consists of multiple words.
49663         (func_import): Store and restore the values of inc_cxx_tests,
49664         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
49665         inc_all_tests in gnulib-comp.m4.
49666         (func_create_testdir): Set inc_all_tests to true.
49667         * doc/gnulib.texi (Extra tests modules): New section.
49668         Suggested by Jim Meyering.
49670 2010-03-28  Bruno Haible  <bruno@clisp.org>
49672         ansi-c++-opt: Allow turning off the C++ build by default.
49673         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
49674         gl_CXX_CHOICE_DEFAULT_NO is defined.
49675         Requested by Eric Blake.
49677 2010-03-28  Bruno Haible  <bruno@clisp.org>
49679         unistd: Avoid #define replacements in C++ mode.
49680         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
49681         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
49682         setsockopt, shutdown, select): In C++, attach a warning to the function
49683         if possible, rather than #defining the symbol to a dysfunctional alias.
49684         Reported by John W. Eaton <jwe@gnu.org>.
49686 2010-03-28  Bruno Haible  <bruno@clisp.org>
49688         Fix link errors on mingw.
49689         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
49690         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
49691         $(LIBSOCKET).
49692         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
49693         $(LIBSOCKET).
49695 2010-03-28  Bruno Haible  <bruno@clisp.org>
49696             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49698         lib-ignore: Determine different options for different compilers.
49699         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
49700         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
49701         Add comments.
49702         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
49703         * NEWS: Mention the change.
49705 2010-03-27  Bruno Haible  <bruno@clisp.org>
49707         Remove unused GNULIB_XYZ macro definitions.
49708         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
49709         * modules/fseek (configure.ac): Likewise.
49710         * modules/ioctl (configure.ac): Likewise.
49711         * modules/open (configure.ac): Likewise.
49712         * modules/stdlib-safer (configure.ac): Likewise.
49714 2010-03-27  Bruno Haible  <bruno@clisp.org>
49716         Add a remark about certain modules.
49717         * modules/malloc (Comment): New section.
49718         * modules/realloc (Comment): Likewise.
49719         * modules/sigpipe (Comment): Likewise.
49721 2010-03-27  Bruno Haible  <bruno@clisp.org>
49723         Resolve conflict between the two kinds of module indicators.
49724         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
49725         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
49726         * modules/canonicalize (configure.ac): Invoke
49727         gl_MODULE_INDICATOR_FOR_TESTS.
49728         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
49729         GNULIB_XYZ.
49730         * tests/test-dirent-c++.cc: Likewise.
49731         * tests/test-dirent-safer.c: Likewise.
49732         * tests/test-dup2.c: Likewise.
49733         * tests/test-fchdir.c: Likewise.
49734         * tests/test-fcntl-h-c++.cc: Likewise.
49735         * tests/test-getopt.c: Likewise.
49736         * tests/test-getopt.h: Likewise.
49737         * tests/test-langinfo-c++.cc: Likewise.
49738         * tests/test-locale-c++.cc: Likewise.
49739         * tests/test-math-c++.cc: Likewise.
49740         * tests/test-pty-c++.cc: Likewise.
49741         * tests/test-search-c++.cc: Likewise.
49742         * tests/test-signal-c++.cc: Likewise.
49743         * tests/test-spawn-c++.cc: Likewise.
49744         * tests/test-stdio-c++.cc: Likewise.
49745         * tests/test-stdlib-c++.cc: Likewise.
49746         * tests/test-string-c++.cc: Likewise.
49747         * tests/test-sys_ioctl-c++.cc: Likewise.
49748         * tests/test-sys_select-c++.cc: Likewise.
49749         * tests/test-sys_socket-c++.cc: Likewise.
49750         * tests/test-sys_stat-c++.cc: Likewise.
49751         * tests/test-sys_time-c++.cc: Likewise.
49752         * tests/test-time-c++.cc: Likewise.
49753         * tests/test-unistd-c++.cc: Likewise.
49754         * tests/test-wchar-c++.cc: Likewise.
49755         * tests/uninorm/test-u8-nfc.c: Likewise.
49756         * tests/uninorm/test-u8-nfd.c: Likewise.
49757         * tests/uninorm/test-u8-nfkc.c: Likewise.
49758         * tests/uninorm/test-u8-nfkd.c: Likewise.
49759         * tests/uninorm/test-u16-nfc.c: Likewise.
49760         * tests/uninorm/test-u16-nfd.c: Likewise.
49761         * tests/uninorm/test-u16-nfkc.c: Likewise.
49762         * tests/uninorm/test-u16-nfkd.c: Likewise.
49763         * tests/uninorm/test-u32-nfc.c: Likewise.
49764         * tests/uninorm/test-u32-nfc-big.c: Likewise.
49765         * tests/uninorm/test-u32-nfd.c: Likewise.
49766         * tests/uninorm/test-u32-nfd-big.c: Likewise.
49767         * tests/uninorm/test-u32-nfkc.c: Likewise.
49768         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
49769         * tests/uninorm/test-u32-nfkd.c: Likewise.
49770         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
49771         * tests/uninorm/test-u32-normalize-big.c: Likewise.
49773 2010-03-27  Bruno Haible  <bruno@clisp.org>
49775         Distinguish two kinds of module indicators.
49776         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
49777         gl_MODULE_INDICATOR.
49778         (gl_MODULE_INDICATOR): New macro.
49779         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
49780         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
49781         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
49782         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
49783         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
49784         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
49785         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
49786         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
49787         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
49788         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
49789         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
49790         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
49791         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
49792         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
49793         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
49794         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
49795         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
49796         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
49797         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
49798         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
49799         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
49800         * modules/cloexec (configure.ac): Likewise.
49801         * modules/getopt-gnu (configure.ac): Likewise.
49802         * modules/uninorm/u8-normalize (configure.ac): Likewise.
49803         * modules/uninorm/u16-normalize (configure.ac): Likewise.
49804         * modules/uninorm/u32-normalize (configure.ac): Likewise.
49805         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
49807 2010-03-27  Bruno Haible  <bruno@clisp.org>
49809         New module description field 'Comment'.
49810         * gnulib-tool: New option --extract-comment.
49811         (func_usage): Document it.
49812         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
49813         (func_get_comment): New function.
49814         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
49816 2010-03-27  Bruno Haible  <bruno@clisp.org>
49818         Addendum to 2010-02-07 commit.
49819         * gnulib-tool (func_usage): Document --extract-applicability option.
49821 2010-03-27  Bruno Haible  <bruno@clisp.org>
49823         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
49824         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
49825         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
49826         rather than link errors.
49828 2010-03-27  Bruno Haible  <bruno@clisp.org>
49830         Avoid side effects from tests-related modules on the compilation of lib.
49831         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
49832         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
49833         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
49834         parameter. Emit into AM_CPPFLAGS a definition of the designated C
49835         macro.
49836         (func_import): Define a witness macro. Assign it a value that depends
49837         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
49838         tests-related modules.
49839         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
49840         Reported by Jim Meyering.
49842 2010-03-27  Bruno Haible  <bruno@clisp.org>
49844         Factorize common .m4 code.
49845         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
49846         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
49847         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
49848         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
49849         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
49850         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
49851         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
49852         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
49853         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
49854         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
49855         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
49856         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
49857         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
49858         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
49859         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
49860         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
49861         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
49862         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
49863         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
49864         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
49865         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
49866         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
49867         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
49868         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
49869         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
49870         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
49871         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
49872         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
49873         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
49874         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
49875         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
49876         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
49878 2010-03-27  Bruno Haible  <bruno@clisp.org>
49880         Fix a compilation error on Cygwin with g++ >= 4.3.
49881         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
49882         if it is undefined or if we alias it to chmod.
49883         (lstat): Don't warn about the use of this function if it is undefined
49884         or if we alias it to stat.
49885         Reported by Simon Josefsson.
49887 2010-03-27  Bruno Haible  <bruno@clisp.org>
49889         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
49890         * modules/getlogin (configure.ac): Update.
49892         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
49893         * modules/getlogin_r (configure.ac): Update.
49895         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
49896         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
49897         * modules/inet_ntop (configure.ac): Update.
49899         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
49900         * modules/inet_pton (configure.ac): Update.
49902         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
49903         * modules/mbslen (configure.ac): Update.
49905         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
49906         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
49907         * modules/forkpty (configure.ac): Update.
49908         * modules/openpty (configure.ac): Update.
49910 2010-03-26  Simon Josefsson  <simon@josefsson.org>
49912         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
49913         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
49915 2010-03-25  Eric Blake  <eblake@redhat.com>
49917         maint: use pragma consistently across replacement headers
49918         * lib/ctype.in.h (system_header): Hoist for consistent placement.
49919         * lib/dirent.in.h (system_header): Likewise.
49920         * lib/errno.in.h (system_header): Likewise.
49921         * lib/float.in.h (system_header): Likewise.
49922         * lib/getopt.in.h (system_header): Likewise.
49923         * lib/iconv.in.h (system_header): Likewise.
49924         * lib/inttypes.in.h (system_header): Likewise.
49925         * lib/langinfo.in.h (system_header): Likewise.
49926         * lib/locale.in.h (system_header): Likewise.
49927         * lib/math.in.h (system_header): Likewise.
49928         * lib/netdb.in.h (system_header): Likewise.
49929         * lib/netinet_in.in.h (system_header): Likewise.
49930         * lib/pty.in.h (system_header): Likewise.
49931         * lib/sched.in.h (system_header): Likewise.
49932         * lib/se-selinux.in.h (system_header): Likewise.
49933         * lib/search.in.h (system_header): Likewise.
49934         * lib/spawn.in.h (system_header): Likewise.
49935         * lib/stdarg.in.h (system_header): Likewise.
49936         * lib/stdint.in.h (system_header): Likewise.
49937         * lib/string.in.h (system_header): Likewise.
49938         * lib/strings.in.h (system_header): Likewise.
49939         * lib/sys_file.in.h (system_header): Likewise.
49940         * lib/sys_ioctl.in.h (system_header): Likewise.
49941         * lib/sys_socket.in.h (system_header): Likewise.
49942         * lib/sys_times.in.h (system_header): Likewise.
49943         * lib/sys_utsname.in.h (system_header): Likewise.
49944         * lib/sys_wait.in.h (system_header): Likewise.
49945         * lib/sysexits.in.h (system_header): Likewise.
49946         * lib/unistd.in.h (system_header): Likewise.
49947         * lib/wctype.in.h (system_header): Likewise.
49949         arpa/inet: fix mingw compilation warning
49950         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
49951         Reported by Matthew Bolte.
49953 2010-03-25  Bruno Haible  <bruno@clisp.org>
49955         Avoid collision between gnulib wrapper and libintl wrapper.
49956         * lib/printf.c (printf): Don't define if a printf wrapper is already
49957         defined in intl/printf.c.
49958         Reported by Michel Boaventura <michel@michelboaventura.com>.
49960 2010-03-25  Bruno Haible  <bruno@clisp.org>
49962         Use ANSI C.
49963         * lib/readutmp.h (getutent): Provide ANSI C prototype.
49965 2010-03-25  Bruno Haible  <bruno@clisp.org>
49967         Minor formatting changes.
49968         * lib/acosl.c: Insert space before function argument list.
49969         * lib/argz.c: Likewise.
49970         * lib/asinl.c: Likewise.
49971         * lib/expl.c: Likewise.
49972         * lib/gen-uni-tables.c: Likewise.
49973         * lib/gettext.h: Likewise.
49974         * lib/glthread/lock.h: Likewise.
49975         * lib/tanl.c: Likewise.
49976         * lib/uniname/uniname.c: Likewise.
49977         * tests/test-idpriv-drop.c: Likewise.
49978         * tests/test-idpriv-droptemp.c: Likewise.
49979         * tests/test-lock.c: Likewise.
49980         * tests/test-tls.c: Likewise.
49981         * lib/argp-help.c: Insert space before function-like macro argument
49982         list.
49983         * lib/memcmp.c: Likewise.
49984         * tests/test-base64.c: Likewise.
49985         * lib/localename.c: Insert space before sizeof's argument list.
49986         * lib/safe-alloc.h: Likewise.
49987         * lib/file-set.h: Insert space before macro argument list.
49988         * tests/test-argp.c: Likewise.
49989         * lib/argp-namefrob.h: Insert space before function parameter list.
49990         * lib/getaddrinfo.c: Likewise.
49991         * lib/netdb.in.h: Likewise.
49992         * lib/parse-duration.h: Likewise.
49993         * lib/parse-duration.c: Likewise.
49994         * lib/poll.c: Likewise.
49995         * lib/select.c: Likewise.
49996         * lib/trim.h: Likewise.
49997         * tests/test-usleep.c: Likewise.
49998         * lib/ldexpl.c: Insert space before function parameter list and before
49999         function argument list.
50000         * lib/logl.c: Likewise.
50001         * lib/sqrtl.c: Likewise.
50002         * lib/trim.c: Likewise.
50003         * lib/cosl.c: Use GNU style indentation. Insert space before function
50004         argument list.
50005         * lib/sinl.c: Likewise.
50006         * lib/tsearch.c: Insert space after 'for'.
50007         Reported by Jim Meyering.
50009 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
50011         * maint.mk (sc_Wundef_boolean): Check for the presence of the
50012         config header before grepping, as it's not present before
50013         autoreconf/configure are run.  Reported by Simon Josefsson.
50015 2010-03-23  Bruno Haible  <bruno@clisp.org>
50017         pt_chown: Make it work with automake < 1.11.
50018         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
50019         Reported by Simon Josefsson.
50021 2010-03-23  Bruno Haible  <bruno@clisp.org>
50023         pt_chown: Don't depend on GPLed modules.
50024         * lib/pt_chown.c: Don't include idpriv.h.
50025         (main): Don't drop privileges.
50026         * modules/pt_chown (Depends-on): Remove idpriv-drop.
50027         Reported by Simon Josefsson.
50029 2010-03-24  Simon Josefsson  <simon@josefsson.org>
50031         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
50032         suggestions from karl@freefriends.org (Karl Berry).
50034 2010-03-22  Eric Blake  <eblake@redhat.com>
50036         gethostname: further tweaks
50037         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
50038         are overriding gethostname.
50039         Suggested by Bruno Haible.
50041 2010-03-21  Bruno Haible  <bruno@clisp.org>
50043         Fix comments.
50044         * lib/forkpty.c (rpl_forkpty): Fix comment.
50045         * lib/openpty.c (rpl_openpty): Likewise.
50046         Reported by Eric Blake.
50048 2010-03-22  Eric Blake  <eblake@redhat.com>
50050         gethostname: fix build on mingw
50051         * lib/unistd.in.h (includes): Work around fact that mingw
50052         <winsock2.h> re-includes <unistd.h>, by avoiding any
50053         redeclarations if we are being included by <winsock2.h>.
50054         Reported by Matthias Bolte.
50056 2010-03-21  Bruno Haible  <bruno@clisp.org>
50058         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
50059         * lib/forkpty.c (forkpty): New replacement function, from glibc with
50060         modifications.
50061         * lib/pty.in.h (forkpty): Update declaration. Add comments.
50062         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
50063         provide the replacement.
50064         * modules/forkpty (Depends-on): Add openpty, login_tty.
50065         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
50066         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
50067         * doc/glibc-functions/forkpty.texi: More supported platforms.
50068         * config/srclist.txt: Add forkpty.c (commented).
50070 2010-03-21  Bruno Haible  <bruno@clisp.org>
50072         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
50073         (Makefile.am): Verify that PTY_LIB is defined.
50075         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
50077 2010-03-21  Bruno Haible  <bruno@clisp.org>
50079         Tests for module 'login_tty'.
50080         * modules/login_tty-tests: New file.
50081         * tests/test-login_tty.c: New file.
50083         New module 'login_tty'.
50084         * lib/login_tty.c: New file.
50085         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
50086         * modules/login_tty: New file.
50087         * doc/glibc-functions/login_tty.texi: Mention the new module.
50089 2010-03-21  Bruno Haible  <bruno@clisp.org>
50091         login_tty: Documentation.
50092         * doc/glibc-functions/login_tty.texi: New file.
50093         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
50095 2010-03-21  Bruno Haible  <bruno@clisp.org>
50097         pty: Consistent macro naming.
50098         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
50099         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
50100         * modules/pty (configure.ac): Update.
50102 2010-03-21  Bruno Haible  <bruno@clisp.org>
50104         Tests for openpty: Make stricter.
50105         * tests/test-openpty.c (main): Add test of canonical processing and
50106         erase.
50107         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
50109         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
50110         * lib/openpty.c (openpty): New replacement function.
50111         * lib/pty.in.h: Include <termios.h>.
50112         (openpty): Update declaration. Add comments.
50113         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
50114         is not declared, arrange to provide the replacement. Check for _getpty
50115         and posix_openpt.
50116         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
50117         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
50118         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
50119         * modules/pty-tests (test_pty_c___LDADD): New variable.
50120         * doc/glibc-functions/openpty.texi: More supported platforms.
50122 2010-03-21  Bruno Haible  <bruno@clisp.org>
50124         setenv: Tweaks.
50125         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
50126         the test program.
50127         * doc/posix-functions/setenv.texi: Update platforms list.
50129 2010-03-21  Bruno Haible  <bruno@clisp.org>
50131         New module 'unlockpt'.
50132         * lib/unlockpt.c: New file, from glibc with modifications.
50133         * m4/unlockpt.m4: New file.
50134         * modules/unlockpt: New file.
50135         * lib/stdlib.in.h (unlockpt): New declaration.
50136         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
50137         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
50138         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
50139         HAVE_UNLOCKPT.
50140         * doc/posix-functions/unlockpt.texi: Mention the new module.
50141         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
50142         * config/srclist.txt: Add unlockpt.c (commented).
50144 2010-03-21  Jim Meyering  <meyering@redhat.com>
50146         maint.mk: prohibit inclusion of "intprops.h" without use
50147         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
50149 2010-03-21  Bruno Haible  <bruno@clisp.org>
50151         New module 'grantpt'.
50152         * lib/grantpt.c: New file, from glibc with modifications.
50153         * m4/grantpt.m4: New file.
50154         * modules/grantpt: New file.
50155         * lib/stdlib.in.h (grantpt): New declaration.
50156         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
50157         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
50158         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
50159         HAVE_GRANTPT.
50160         * doc/posix-functions/grantpt.texi: Mention the new module.
50161         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
50162         * config/srclist.txt: Add grantpt.c (commented).
50164 2010-03-21  Bruno Haible  <bruno@clisp.org>
50166         New module 'pt_chown'.
50167         * lib/pt_chown.c: New file, from glibc with modifications.
50168         * lib/pty-private.h: New file, from glibc with modifications.
50169         * modules/pt_chown: New file.
50170         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
50172 2010-03-21  Bruno Haible  <bruno@clisp.org>
50174         Tests for module 'ptsname'.
50175         * modules/ptsname-tests: New file.
50176         * tests/test-ptsname.c: New file.
50178         New module 'ptsname'.
50179         * lib/ptsname.c: New file, from glibc with modifications.
50180         * m4/ptsname.m4: New file.
50181         * modules/ptsname: New file.
50182         * lib/stdlib.in.h (ptsname): New declaration.
50183         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
50184         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
50185         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
50186         HAVE_PTSNAME.
50187         * doc/posix-functions/ptsname.texi: Mention the new module.
50188         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
50189         * config/srclist.txt: Add ptsname.c (commented).
50191 2010-03-21  Bruno Haible  <bruno@clisp.org>
50193         Tests for module 'ttyname_r'.
50194         * modules/ttyname_r-tests: New file.
50195         * tests/test-ttyname_r.c: New file.
50197         New module 'ttyname_r'.
50198         * lib/ttyname_r.c: New file.
50199         * m4/ttyname_r.m4: New file.
50200         * modules/ttyname_r: New file.
50201         * lib/unistd.in.h (ttyname_r): New declaration.
50202         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
50203         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
50204         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
50205         HAVE_TTYNAME_R.
50206         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
50207         * doc/posix-functions/ttyname_r.texi: Mention the new module.
50209 2010-03-20  Bruno Haible  <bruno@clisp.org>
50211         signal: Undefine macro definitions in C++ mode.
50212         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
50213         sigfillset): Undefine macro definitions from the system header in C++
50214         mode.
50215         Reported by John W. Eaton <jwe@gnu.org>.
50217 2010-03-20  Bruno Haible  <bruno@clisp.org>
50219         Ensure no #include statements inside extern "C" { ... }.
50220         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
50221         contain #include statements.
50222         * lib/time.in.h: Likewise.
50224 2010-03-20  Bruno Haible  <bruno@clisp.org>
50226         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
50227         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
50228         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
50229         Reported by John W. Eaton <jwe@gnu.org>.
50231 2010-03-20  Bruno Haible  <bruno@clisp.org>
50233         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
50234         Reported by Jim Meyering.
50236 2010-03-20  Bruno Haible  <bruno@clisp.org>
50238         pipe: Set errno upon failure.
50239         * lib/pipe.h: Specify that when -1 is returned, errno is set.
50240         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
50241         errno value in error message.
50243 2010-03-20  Bruno Haible  <bruno@clisp.org>
50244             Jim Meyering  <meyering@redhat.com>
50246         lchown: Avoid "unused variable" warning.
50247         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
50249 2010-03-20  Bruno Haible  <bruno@clisp.org>
50251         Work around unlink() bug on MacOS X 10.5.6.
50252         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
50253         attempting to unlink a parent directory.
50254         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
50255         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
50256         activate for the replacement function.
50257         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
50259 2010-03-20  Bruno Haible  <bruno@clisp.org>
50261         Fix link errors on Solaris 8.
50262         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
50263         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
50265 2010-03-19  Jim Meyering  <meyering@redhat.com>
50267         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
50268         The _LIBC implementation of build_range_exp correctly honors the
50269         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
50270         However, the non-_LIBC implementation would ignore that syntax-bit
50271         flag and return REG_ERANGE unconditionally.
50272         This change makes it honor that flag.
50273         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
50274         Make two pointer parameters "const".
50275         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
50276         (parse_bracket_exp): Update caller.
50278         regex.m4: correct the reversed range endpoint ([b-a]) test
50279         * m4/regex.m4: When requiring that [b-a] evoke failure,
50280         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
50281         test pass once again for x86-based systems.
50283 2010-03-19  Bruno Haible  <bruno@clisp.org>
50285         scandir: Fix link error on Solaris 8.
50286         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
50287         macros.
50289 2010-03-19  Bruno Haible  <bruno@clisp.org>
50291         getusershell: Fix documentation.
50292         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
50293         module.
50294         * doc/glibc-functions/setusershell.texi: Likewise.
50296         getusershell: Provide declaration, missing on Solaris 9.
50297         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
50298         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
50299         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
50300         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
50301         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50302         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
50303         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
50304         HAVE_GETUSERSHELL.
50305         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
50307 2010-03-19  Bruno Haible  <bruno@clisp.org>
50309         wctype: Provide iswblank function.
50310         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
50311         exists and is fine.
50312         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
50313         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
50314         * tests/test-wctype.c (main): Re-enable the iswblank tests.
50315         * doc/posix-functions/iswblank.texi: Update.
50317 2010-03-19  Bruno Haible  <bruno@clisp.org>
50319         Tests of module 'pty' in C++ mode.
50320         * modules/pty-tests: New file.
50321         * tests/test-pty-c++.cc: New file.
50322         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
50324 2010-03-19  Eric Blake  <eblake@redhat.com>
50326         logb: fix documentation
50327         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
50328         1.5 declaration bug.
50330         forkpty, openpty: prefer glibc's const-safe prototype
50331         * lib/forkpty.c (rpl_forkpty): New file.
50332         * lib/openpty.c (rpl_openpty): Likewise.
50333         * modules/forkpty (Files): Distribute it.
50334         * modules/openpty (Files): Likewise.
50335         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
50336         check...
50337         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
50338         replacement for non-const BSD signature.
50339         * modules/pty (Makefile.am): Substitute witnesses.
50340         * lib/pty.in.h (forkpty, openpty): Declare replacements.
50341         * tests/test-forkpty.c: Update signature check.
50342         * tests/test-openpty.c: Likewise.
50343         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
50344         * doc/glibc-functions/openpty.texi (openpty): Likewise.
50346         forkpty, openpty: split functions into new modules
50347         * modules/pty (Makefile.am): Substitute new witnesses.
50348         (Libraries): Move library detection...
50349         * modules/forkpty: ...into new module.
50350         * modules/openpty: Another new module.
50351         * modules/pty-tests: Rename and split...
50352         * modules/forkpty-tests: ...to this...
50353         * modules/openpty-tests: ...and this.
50354         * tests/test-pty.c: Rename and split...
50355         * tests/test-forkpty.c: ...to this...
50356         * tests/test-openpty.c: ...and this.
50357         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
50358         (gl_PTY): Split library searching...
50359         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
50360         (gl_FORKPTY, gl_OPENPTY): New macros.
50361         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
50362         * NEWS: Mention the split.
50363         * MODULES.html.sh (Misc): Document the modules.
50364         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
50365         * doc/glibc-functions/openpty.texi (openpty): Likewise.
50367         pty: improve replacement header
50368         * lib/pty.in.h: New file.
50369         * modules/pty (Files): Ship it.
50370         (Makefile.am): Always build replacement.
50371         * m4/pty.m4: Rename...
50372         * m4/pty_h.m4: ...to this.
50373         (gl_PTY): Modernize setting of witness macros; update check of
50374         forkpty to take proper advantage of cache.
50375         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
50377         getopt: avoid compiler warning
50378         * lib/getopt.c (attribute_hidden): Remove unused macro.
50380 2010-03-18  Bruno Haible  <bruno@clisp.org>
50382         Fix link errors on Solaris 8.
50383         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
50384         * modules/search-tests (test_search_c___LDADD): Likewise.
50385         * modules/signal-tests (test_signal_c___LDADD): Likewise.
50386         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
50387         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
50388         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
50389         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
50390         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
50391         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
50393 2010-03-18  Bruno Haible  <bruno@clisp.org>
50395         Fix bug introduced on 2010-03-14.
50396         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
50397         (gl_SPAWN_H): Require it.
50398         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
50399         Reported by Simon Josefsson.
50401 2010-03-18  Bruno Haible  <bruno@clisp.org>
50403         Fix typo introduced on 2009-12-31.
50404         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
50405         posix_spawn_file_actions_adddup2.
50407 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
50408         and Eric Blake  <eblake@redhat.com>
50410         test-vc-list-files-git: make more robust
50411         * tests/test-vc-list-files-git.sh: Unset problematic environment
50412         variables.  Chain commands together.
50414 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
50416         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
50417         `AC_CHECK_DECL' invocation.
50419 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
50421         * lib/inttostr.c (inttostr): Make sure the invocation of verify
50422         appears before executable statements. Suggested by Petr Sumbera
50423         <Petr.Sumbera@Sun.COM>.
50425 2010-03-14  Bruno Haible  <bruno@clisp.org>
50427         * tests/test-flock.c (test_exclusive): Comment out a test that causes
50428         portability problems. Instead use a simpler test.
50429         (main): Check that invalid arguments are rejected only on Linux.
50431 2010-03-14  Bruno Haible  <bruno@clisp.org>
50433         Fix bug introduced on 2009-12-31.
50434         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
50435         gl_PREREQ_SYS_H_WINSOCK2 always.
50436         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
50437         SYS_SOCKET_H variable.
50438         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
50439         Update comments.
50440         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
50441         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
50442         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
50443         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
50444         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
50446 2010-03-14  Bruno Haible  <bruno@clisp.org>
50448         Fix values returned by sinl, cosl.
50449         * lib/trigl.h: Add specification comments.
50450         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
50451         that combines the values from the precomputed table with the values of
50452         the Chebyshev polynomials.
50454 2010-03-14  Bruno Haible  <bruno@clisp.org>
50456         Fix compilation error when modules 'posix_spawn[p]' are not used.
50457         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
50458         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
50460 2010-03-14  Bruno Haible  <bruno@clisp.org>
50462         Fix compilation error on mingw when module 'time_r' is not used.
50463         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
50464         is 1.
50465         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
50466         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
50467         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
50468         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
50470 2010-03-14  Bruno Haible  <bruno@clisp.org>
50472         Fix compilation error with Sun C.
50473         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
50474         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
50475         instead of GCC specific ULONG_LONG_MAX.
50476         * lib/xstrtoll.c: Likewise.
50477         * lib/xstrtoull.c: Likewise.
50479 2010-03-13  Bruno Haible  <bruno@clisp.org>
50481         Allow the user to disable C++ code and tests.
50482         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
50483         (gl_PROG_ANSI_CXX): Require it.
50485 2010-03-13  Bruno Haible  <bruno@clisp.org>
50487         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
50488         cases.
50490 2010-03-13  Bruno Haible  <bruno@clisp.org>
50492         Test that gnulib does not break the standard C++ headers.
50493         * tests/test-locale-c++2.cc: New file.
50494         * modules/locale-tests (Files): Add it.
50495         (Makefile.am): Compile it for test-locale-c++.
50496         * tests/test-math-c++2.cc: New file.
50497         * modules/math-tests (Files): Add it.
50498         (Makefile.am): Compile it for test-math-c++.
50499         * tests/test-signal-c++2.cc: New file.
50500         * modules/signal-tests (Files): Add it.
50501         (Makefile.am): Compile it for test-signal-c++.
50502         * tests/test-stdio-c++2.cc: New file.
50503         * modules/stdio-tests (Files): Add it.
50504         (Makefile.am): Compile it for test-stdio-c++.
50505         * tests/test-stdlib-c++2.cc: New file.
50506         * modules/stdlib-tests (Files): Add it.
50507         (Makefile.am): Compile it for test-stdlib-c++.
50508         * tests/test-string-c++2.cc: New file.
50509         * modules/string-tests (Files): Add it.
50510         (Makefile.am): Compile it for test-string-c++.
50511         * tests/test-time-c++2.cc: New file.
50512         * modules/time-tests (Files): Add it.
50513         (Makefile.am): Compile it for test-time-c++.
50514         Reported by John W. Eaton <jwe@gnu.org>.
50516 2010-03-13  Bruno Haible  <bruno@clisp.org>
50518         * gnulib-tool (func_usage): Clarify which options are available for
50519         --create-testdir and --create-megatestdir.
50521 2010-03-13  Bruno Haible  <bruno@clisp.org>
50523         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
50524         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
50525         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
50526         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
50527         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
50528         when appropriate.
50529         Reported by Jim Meyering.
50531 2010-03-12  Simon Josefsson  <simon@josefsson.org>
50533         * gnulib-tool (func_import): Explain origin of code.
50535 2010-03-12  Bruno Haible  <bruno@clisp.org>
50537         Fix problem with automake's definition of CXXLINK.
50538         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
50539         Reported by Simon Josefsson and Ludovic Courtès.
50541 2010-03-12  Bruno Haible  <bruno@clisp.org>
50543         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
50544         stable releases.
50546 2010-03-11  Bruno Haible  <bruno@clisp.org>
50548         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
50549         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
50550         whether the system provides one variant or multiple variants of the
50551         function.
50552         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
50553         C++ compilers.
50554         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
50555         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
50556         Reported by Jim Meyering.
50558 2010-03-09  Simon Josefsson  <simon@josefsson.org>
50560         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
50562 2010-03-08  Bruno Haible  <bruno@clisp.org>
50564         gnulib-tool: Add support for --libtool in --create-testdir.
50565         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
50566         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
50568 2010-03-08  Eric Blake  <eblake@redhat.com>
50570         gnulib-tool.texi: mention possibility of git submodule
50571         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
50572         submodules.
50573         * doc/.gitignore: Ignore another generated file.
50575 2010-03-08  Karl Berry  <karl@gnu.org>
50577         * doc/gnulib-tool.texi (VCS Issues): Mention third option
50578         of committing gnulib files while skipping others.
50580 2010-03-07  Bruno Haible  <bruno@clisp.org>
50582         Tests of module 'wctype' in C++ mode.
50583         * tests/test-wctype-c++.cc: New file.
50584         * modules/wctype-tests (Files): Add it and tests/signature.h.
50585         (Depends-on): Add ansi-c++-opt.
50586         (Makefile.am): Arrange to compile and run test-wctype-c++.
50588         Tests of module 'wchar' in C++ mode.
50589         * tests/test-wchar-c++.cc: New file.
50590         * modules/wchar-tests (Files): Add it and tests/signature.h.
50591         (Depends-on): Add ansi-c++-opt.
50592         (Makefile.am): Arrange to compile and run test-wchar-c++.
50593         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
50594         gl_MODULE_INDICATOR.
50596         Tests of module 'unistd' in C++ mode.
50597         * tests/test-unistd-c++.cc: New file.
50598         * modules/unistd-tests (Files): Add it and tests/signature.h.
50599         (Depends-on): Add ansi-c++-opt.
50600         (Makefile.am): Arrange to compile and run test-unistd-c++.
50601         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
50602         gl_MODULE_INDICATOR.
50604         Tests of module 'time' in C++ mode.
50605         * tests/test-time-c++.cc: New file.
50606         * modules/time-tests (Files): Add it and tests/signature.h.
50607         (Depends-on): Add ansi-c++-opt.
50608         (Makefile.am): Arrange to compile and run test-time-c++.
50609         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
50611         Tests of module 'sys_time' in C++ mode.
50612         * tests/test-sys_time-c++.cc: New file.
50613         * modules/sys_time-tests (Files): Add it and tests/signature.h.
50614         (Depends-on): Add ansi-c++-opt.
50615         (Makefile.am): Arrange to compile and run test-sys_time-c++.
50616         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
50617         gl_MODULE_INDICATOR.
50619         Tests of module 'sys_stat' in C++ mode.
50620         * tests/test-sys_stat-c++.cc: New file.
50621         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
50622         (Depends-on): Add ansi-c++-opt.
50623         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
50624         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
50625         gl_MODULE_INDICATOR.
50627         Tests of module 'sys_socket' in C++ mode.
50628         * tests/test-sys_socket-c++.cc: New file.
50629         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
50630         (Depends-on): Add ansi-c++-opt.
50631         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
50632         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
50633         gl_MODULE_INDICATOR.
50635         Tests of module 'sys_select' in C++ mode.
50636         * tests/test-sys_select-c++.cc: New file.
50637         * modules/sys_select-tests (Files): Add it and tests/signature.h.
50638         (Depends-on): Add ansi-c++-opt.
50639         (Makefile.am): Arrange to compile and run test-sys_select-c++.
50640         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
50641         gl_MODULE_INDICATOR.
50643         Tests of module 'sys_ioctl' in C++ mode.
50644         * tests/test-sys_ioctl-c++.cc: New file.
50645         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
50646         (Depends-on): Add ansi-c++-opt.
50647         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
50648         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
50649         gl_MODULE_INDICATOR.
50651         Tests of module 'string' in C++ mode.
50652         * tests/test-string-c++.cc: New file.
50653         * modules/string-tests (Files): Add it and tests/signature.h.
50654         (Depends-on): Add ansi-c++-opt.
50655         (Makefile.am): Arrange to compile and run test-string-c++.
50656         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
50657         gl_MODULE_INDICATOR.
50659         Tests of module 'stdlib' in C++ mode.
50660         * tests/test-stdlib-c++.cc: New file.
50661         * modules/stdlib-tests (Files): Add it and tests/signature.h.
50662         (Depends-on): Add ansi-c++-opt.
50663         (Makefile.am): Arrange to compile and run test-stdlib-c++.
50664         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
50665         gl_MODULE_INDICATOR.
50667         Tests of module 'stdio' in C++ mode.
50668         * tests/test-stdio-c++.cc: New file.
50669         * modules/stdio-tests (Files): Add it and tests/signature.h.
50670         (Depends-on): Add ansi-c++-opt.
50671         (Makefile.am): Arrange to compile and run test-stdio-c++.
50672         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
50673         gl_MODULE_INDICATOR.
50675         Tests of module 'spawn' in C++ mode.
50676         * tests/test-spawn-c++.cc: New file.
50677         * modules/spawn-tests (Files): Add it and tests/signature.h.
50678         (Depends-on): Add ansi-c++-opt.
50679         (Makefile.am): Arrange to compile and run test-spawn-c++.
50680         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
50681         gl_MODULE_INDICATOR.
50683         Tests of module 'signal' in C++ mode.
50684         * tests/test-signal-c++.cc: New file.
50685         * modules/signal-tests (Files): Add it and tests/signature.h.
50686         (Depends-on): Add ansi-c++-opt.
50687         (Makefile.am): Arrange to compile and run test-signal-c++.
50688         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
50689         gl_MODULE_INDICATOR.
50691         Tests of module 'search' in C++ mode.
50692         * tests/test-search-c++.cc: New file.
50693         * modules/search-tests (Files): Add it and tests/signature.h.
50694         (Depends-on): Add ansi-c++-opt.
50695         (Makefile.am): Arrange to compile and run test-search-c++.
50696         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
50697         gl_MODULE_INDICATOR.
50699         Tests of module 'math' in C++ mode.
50700         * tests/test-math-c++.cc: New file.
50701         * modules/math-tests (Files): Add it and tests/signature.h.
50702         (Depends-on): Add ansi-c++-opt.
50703         (Makefile.am): Arrange to compile and run test-math-c++.
50704         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
50706         Tests of module 'locale' in C++ mode.
50707         * tests/test-locale-c++.cc: New file.
50708         * modules/locale-tests (Files): Add it and tests/signature.h.
50709         (Depends-on): Add ansi-c++-opt.
50710         (Makefile.am): Arrange to compile and run test-locale-c++.
50711         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
50712         gl_MODULE_INDICATOR.
50714         Tests of module 'langinfo' in C++ mode.
50715         * tests/test-langinfo-c++.cc: New file.
50716         * modules/langinfo-tests (Files): Add it and tests/signature.h.
50717         (Depends-on): Add ansi-c++-opt.
50718         (Makefile.am): Arrange to compile and run test-langinfo-c++.
50719         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
50720         gl_MODULE_INDICATOR.
50722         Tests of module 'iconv-h' in C++ mode.
50723         * tests/test-iconv-h-c++.cc: New file.
50724         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
50725         (Depends-on): Add ansi-c++-opt.
50726         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
50728         Tests of module 'glob' in C++ mode.
50729         * tests/test-glob-c++.cc: New file.
50730         * modules/glob-tests (Files): Add it.
50731         (Depends-on): Add ansi-c++-opt.
50732         (Makefile.am): Arrange to compile and run test-glob-c++.
50734         Tests of module 'fcntl-h' in C++ mode.
50735         * tests/test-fcntl-h-c++.cc: New file.
50736         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
50737         (Depends-on): Add ansi-c++-opt.
50738         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
50739         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
50740         gl_MODULE_INDICATOR.
50742         Tests of module 'dirent' in C++ mode.
50743         * tests/test-dirent-c++.cc: New file.
50744         * modules/dirent-tests (Files): Add it and tests/signature.h.
50745         (Depends-on): Add ansi-c++-opt.
50746         (Makefile.am): Arrange to compile and run test-dirent-c++.
50747         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
50748         gl_MODULE_INDICATOR.
50750         New module 'ansi-c++-opt'.
50751         * modules/ansi-c++-opt: New file.
50752         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
50754         Document C++ namespace mode.
50755         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
50757         wctype: Avoid #define replacements in C++ mode.
50758         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
50759         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
50760         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
50761         In C++, define a namespaced alias symbol.
50762         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
50763         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
50764         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
50765         rule.
50767         wchar: Avoid #define replacements in C++ mode.
50768         * lib/wchar.in.h: Include c++defs.h.
50769         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
50770         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
50771         symbol.
50772         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
50773         * modules/wchar (Depends-on): Add c++defs.
50774         (Makefile.am): Update wchar.h rule.
50776         unistd: Avoid #define replacements in C++ mode.
50777         * lib/unistd.in.h: Include c++defs.h.
50778         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
50779         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
50780         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
50781         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
50782         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
50783         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
50784         symbol.
50785         (environ): Update.
50786         * modules/unistd (Depends-on): Add c++defs.
50787         (Makefile.am): Update unistd.h rule.
50789         time: Avoid #define replacements in C++ mode.
50790         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
50791         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
50792         define a namespaced alias symbol.
50793         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
50794         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
50795         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
50796         * modules/time (Depends-on): Add c++defs, warn-on-use.
50797         (Makefile.am): Update time.h rule.
50798         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
50799         * modules/nanosleep (configure.ac): Likewise.
50800         * modules/strptime (configure.ac): Likewise.
50801         * modules/timegm (configure.ac): Likewise.
50803         sys_time: Avoid #define replacements in C++ mode.
50804         * lib/sys_time.in.h: Include c++defs.h.
50805         (gettimeofday): In C++, define a namespaced alias symbol.
50806         * modules/sys_time (Depends-on): Add c++defs.
50807         (Makefile.am): Update sys/time.h rule.
50809         sys_stat: Avoid #define replacements in C++ mode.
50810         * lib/sys_stat.in.h: Include c++defs.h.
50811         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
50812         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
50813         namespaced alias symbol.
50814         In C++, define a namespaced alias symbol.
50815         * modules/sys_stat (Depends-on): Add c++defs.
50816         (Makefile.am): Update sys/stat.h rule.
50818         sys_socket: Avoid #define replacements in C++ mode.
50819         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
50820         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
50821         definitions also when the system has a <sys/socket.h>.
50822         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
50823         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
50824         In C++, define a namespaced alias symbol.
50825         * modules/sys_socket (Depends-on): Add c++defs.
50826         (Makefile.am): Update sys/socket.h rule.
50828         sys_select: Avoid #define replacements in C++ mode.
50829         * lib/sys_select.in.h: Include c++defs.h. Enable the function
50830         definitions also when the system has a <sys/select.h>.
50831         (select): In C++, define a namespaced alias symbol.
50832         * modules/sys_select (Depends-on): Add c++defs.
50833         (Makefile.am): Update sys/select.h rule.
50835         sys_ioctl: Avoid #define replacements in C++ mode.
50836         * lib/sys_ioctl.in.h: Include c++defs.h.
50837         (ioctl): In C++, define a namespaced alias symbol.
50838         * modules/sys_ioctl (Depends-on): Add c++defs.
50839         (Makefile.am): Update sys/ioctl.h rule.
50841         string: Avoid #define replacements in C++ mode.
50842         * lib/string.in.h: Include c++defs.h.
50843         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
50844         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
50845         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
50846         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
50847         strsignal, strverscmp): In C++, define a namespaced alias symbol.
50848         * modules/string (Depends-on): Add c++defs.
50849         (Makefile.am): Update string.h rule.
50851         stdlib: Avoid #define replacements in C++ mode.
50852         * lib/stdlib.in.h: Include c++defs.h.
50853         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
50854         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
50855         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
50856         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
50857         symbol.
50858         * modules/stdlib (Depends-on): Add c++defs.
50859         (Makefile.am): Update stdlib.h rule.
50861         stdio: Avoid #define replacements in C++ mode.
50862         * lib/stdio.in.h: Include c++defs.h.
50863         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
50864         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
50865         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
50866         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
50867         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
50868         namespaced alias symbol.
50869         * modules/stdio (Depends-on): Add c++defs.
50870         (Makefile.am): Update stdio.h rule.
50872         spawn: Avoid #define replacements in C++ mode.
50873         * lib/spawn.in.h: Include c++defs.h.
50874         (posix_spawn, posix_spawnp, posix_spawnattr_init,
50875         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
50876         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
50877         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
50878         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
50879         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
50880         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
50881         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
50882         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
50883         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
50884         In C++, define a namespaced alias symbol.
50885         * modules/spawn (Depends-on): Add c++defs.
50886         (Makefile.am): Update spawn.h rule.
50888         signal: Avoid #define replacements in C++ mode.
50889         * lib/signal.in.h: Include c++defs.h.
50890         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
50891         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
50892         namespaced alias symbol.
50893         * modules/signal (Depends-on): Add c++defs.
50894         (Makefile.am): Update signal.h rule.
50896         search: Avoid #define replacements in C++ mode.
50897         * lib/search.in.h: Include c++defs.h.
50898         (_gl_search_compar_fn, _gl_search_action_fn): New types.
50899         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
50900         symbol.
50901         * modules/search (Depends-on): Add c++defs.
50902         (Makefile.am): Update search.h rule.
50904         math: Avoid #define replacements in C++ mode.
50905         * lib/math.in.h: Include c++defs.h.
50906         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
50907         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
50908         trunc, truncl): In C++, define a namespaced alias symbol.
50909         * modules/math (Depends-on): Add c++defs.
50910         (Makefile.am): Update math.h rule.
50912         locale: Avoid #define replacements in C++ mode.
50913         * lib/locale.in.h: Include c++defs.h.
50914         (duplocale): In C++, define a namespaced alias symbol.
50915         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
50916         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
50917         * modules/locale (Depends-on): Add c++defs.
50918         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
50920         langinfo: Avoid #define replacements in C++ mode.
50921         * lib/langinfo.in.h: Include c++defs.h.
50922         (nl_langinfo): In C++, define a namespaced alias symbol.
50923         * modules/langinfo (Depends-on): Add c++defs.
50924         (Makefile.am): Update langinfo.h rule.
50926         iconv-h: Avoid #define replacements in C++ mode.
50927         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
50928         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
50929         symbol.
50930         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
50931         whenever iconv is present.
50932         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
50933         (Makefile.am): Update iconv.h rule.
50935         glob: Avoid #define replacements in C++ mode.
50936         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
50937         (_gl_glob_errfunc_fn): New type.
50938         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
50939         symbol.
50940         * modules/glob (Depends-on): Add c++defs, warn-on-use.
50941         (Makefile.am): Update glob.h rule.
50943         fcntl-h: Avoid #define replacements in C++ mode.
50944         * lib/fcntl.in.h: Include c++defs.h.
50945         (fcntl, open, openat): In C++, define a namespaced alias symbol.
50946         * modules/fcntl-h (Depends-on): Add c++defs.
50947         (Makefile.am): Update fcntl.h rule.
50949         dirent: Avoid #define replacements in C++ mode.
50950         * lib/dirent.in.h: Include c++defs.h.
50951         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
50952         namespaced alias symbol.
50953         (dirfd): Update declaration.
50954         * modules/dirent (Depends-on): Add c++defs.
50955         (Makefile.am): Update dirent.h rule.
50957         ctype: Make it usable in C++ code.
50958         * lib/ctype.in.h: Include c++defs.h.
50959         (isblank): Declare as extern "C".
50960         * modules/ctype (Depends-on): Add c++defs.
50961         (Makefile.am): Update ctype.h rule.
50963         New module 'c++defs'.
50964         * modules/c++defs: New file.
50965         * build-aux/c++defs.h: New file.
50966         Reported by John W. Eaton <jwe@gnu.org>.
50968 2010-03-07  Bruno Haible  <bruno@clisp.org>
50970         logb: Provide missing declaration for Cygwin.
50971         * lib/math.in.h (logb): New declaration.
50972         * m4/logb.m4: New file.
50973         * modules/logb (Files): Add m4/logb.m4.
50974         (Depends-on): Add math.
50975         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
50976         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
50977         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
50978         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
50979         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
50981 2010-03-07  Bruno Haible  <bruno@clisp.org>
50983         Fix test-cond link error.
50984         * tests/test-cond.c: Include <stdio.h>.
50986 2010-03-07  Bruno Haible  <bruno@clisp.org>
50988         Fix test-dirent-safer link error.
50989         * modules/dirent-safer-tests (Makefile.am): Define
50990         test_dirent_safer_LDADD.
50992 2010-03-07  Bruno Haible  <bruno@clisp.org>
50994         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
50995         among default module list.
50997 2010-03-07  Bruno Haible  <bruno@clisp.org>
50999         Fix link error on platforms with GNU libiconv.
51000         * modules/unistr/u8-strcoll-tests (Makefile): Define
51001         test_u8_strcoll_LDADD.
51002         * modules/unistr/u16-strcoll-tests (Makefile): Define
51003         test_u16_strcoll_LDADD.
51004         * modules/unistr/u32-strcoll-tests (Makefile): Define
51005         test_u32_strcoll_LDADD.
51007 2010-03-07  Bruno Haible  <bruno@clisp.org>
51009         Use POSIX declarations for socket functions.
51010         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
51011         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
51012         rpl_sendto): Change declaration to match POSIX.
51013         * lib/connect.c (rpl_connect): Likewise.
51014         * lib/accept.c (rpl_accept): Likewise.
51015         * lib/bind.c (rpl_bind): Likewise.
51016         * lib/getpeername.c (rpl_getpeername): Likewise.
51017         * lib/getsockname.c (rpl_getsockname): Likewise.
51018         * lib/recv.c (rpl_recv): Likewise.
51019         * lib/send.c (rpl_send): Likewise.
51020         * lib/recvfrom.c (rpl_recvfrom): Likewise.
51021         * lib/sendto.c (rpl_sendto): Likewise.
51023 2010-03-06  Bruno Haible  <bruno@clisp.org>
51025         Clarify access, euidaccess, faccessat.
51026         * doc/posix-functions/faccessat.texi: Mention security problem under
51027         "Other problems", not "Portability problems".
51028         * doc/posix-functions/access.texi: Likewise. Mention a related security
51029         problem.
51030         * doc/glibc-functions/euidaccess.texi: Mention security problems.
51031         * lib/euidaccess.c: Add comments about platforms.
51032         * lib/unistd.in.h (access, euidaccess): Add warnings.
51034 2010-03-07  Bruno Haible  <bruno@clisp.org>
51036         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
51037         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
51038         (POSIX_SPAWN_SETSCHEDULER): Likewise.
51039         (POSIX_SPAWN_USEVFORK): Define in a way that works when
51040         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
51041         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
51042         declare when POSIX_SPAWN_SETSCHEDULER is zero.
51043         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
51044         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
51045         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
51046         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
51047         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
51048         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
51049         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
51050         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
51051         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
51052         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
51053         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
51054         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
51055         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
51056         Likewise.
51057         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
51058         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
51059         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
51060         Likewise.
51061         * tests/test-spawn.c (main): Make it work when
51062         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
51064 2010-03-07  Bruno Haible  <bruno@clisp.org>
51066         Fix incorrect Makefile.am generation in German locale.
51067         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51068         Execute sed command with character range in C locale.
51070 2010-03-06  Bruno Haible  <bruno@clisp.org>
51072         Tests for module 'iconv-h'.
51073         * modules/iconv-h-tests: New file.
51074         * tests/test-iconv-h.c: New file.
51076         New module 'iconv-h'.
51077         * modules/iconv-h: New file.
51078         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
51079         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
51080         (configure.ac): Remove gl_ICONV_H.
51081         (Makefile.am): Remove rule for iconv.h.
51083 2010-03-06  Bruno Haible  <bruno@clisp.org>
51085         More consistent naming of *.m4 files.
51086         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
51087         * modules/wctype (Files): Update.
51089         More consistent naming of *.m4 files.
51090         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
51091         * modules/wchar (Files): Update.
51093 2010-03-06  Jim Meyering  <meyering@redhat.com>
51095         euidaccess: relax license to LGPLv2+
51096         * modules/euidaccess (License): Relax to LGPLv2+.
51098 2010-03-06  Bruno Haible  <bruno@clisp.org>
51100         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
51101         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
51102         (Makefile.am): Augment lib_SOURCES instead.
51104 2010-03-04  Jim Meyering  <meyering@redhat.com>
51106         utime: remove obsolete module
51107         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
51108         unnecessary for years, and has been marked as obsolete for 10 months.
51109         * modules/utime: Remove file.
51110         * lib/utime.c: Remove file.
51111         * m4/utime.m4: Remove file.
51112         * m4/utimes-null.m4: Remove file.
51113         * doc/posix-functions/utime.texi (utime): Remove reference to
51114         the module.  Move the sole "fixed by gnulib" item into the
51115         "problems not fixed by Gnulib" list.
51116         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
51118 2010-03-05  Simon Josefsson  <simon@josefsson.org>
51120         * modules/exit (License): Relax license to LGPLv2+.
51121         (Status): Mark as obsolete.
51122         * NEWS: Mention deprecated 'exit' module.
51123         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
51124         of now obsolete 'exit'.
51126 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51128         fts-lgpl: remove unused module
51129         * modules/fts-lgpl: Remove.
51130         * MODULES.html.sh (func_all_modules): Adjust.
51131         * check-module (find_included_lib_files): Adjust.
51132         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
51134 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
51136         copy-acl: enhance Solaris ACL error handling
51137         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
51138         * lib/set-mode-acl.c (qset_acl): Likewise.
51140 2010-03-02  Bruno Haible  <bruno@clisp.org>
51142         spawn: Don't override the system defined values on FreeBSD 8.
51143         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
51144         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
51145         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
51146         if HAVE_POSIX_SPAWN is 1.
51147         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
51149 2010-03-01  Bruno Haible  <bruno@clisp.org>
51151         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
51152         regarding Automake.
51154 2010-02-25  Bruno Haible  <bruno@clisp.org>
51156         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
51157         * gnulib-tool: Define 'echo' as a function only before the ksh alias
51158         setting, not afterwards.
51159         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
51161 2010-02-24  Eric Blake  <eblake@redhat.com>
51163         bootstrap, git-version-gen: use timestamp
51164         * build-aux/git-version-gen (scriptversion): Force UTC.
51165         * build-aux/bootstrap (scriptversion): New variable.
51167         bootstrap: allow older git
51168         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
51169         older than 1.6.4.  Requested by the libvirt project.
51171 2010-02-23  Eric Blake  <eblake@redhat.com>
51173         warn-on-use: work with old autoconf
51174         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
51175         AS_VAR semantics of autoconf 2.60.
51176         Reported by Bruno Haible.
51178         bootstrap: improve some comments
51179         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
51180         clarification comments.
51182         gettimeofday: provide correct function
51183         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
51184         when replacement is declared, otherwise provide gettimeofday.
51185         Reported by Michael Goffioul.
51187 2010-02-23  Jim Meyering  <meyering@redhat.com>
51189         lib-ignore: relax license to "unlimited", not LGPLv2+
51190         * modules/lib-ignore (License): Relax to "unlimited".
51192 2010-02-23  Jim Meyering  <meyering@redhat.com>
51194         lib-ignore: relax license to LGPLv2+
51195         * modules/lib-ignore (License): Relax to LGPLv2+.
51197 2010-02-22  Eric Blake  <eblake@redhat.com>
51199         lseek: avoid bash 3.2 broken pipe bug
51200         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
51201         warning from bash 3.2.
51202         Reported by Ben Pfaff, with analysis from Bruno Haible.
51204         bootstrap: support non-FSF copyright holder
51205         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
51206         bootstrap.conf override of COPYRIGHT_HOLDER.
51207         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
51209         bootstrap: interoperate with gettext 0.14.1
51210         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
51212         bootstrap: allow for alternate submodule location
51213         * build-aux/bootstrap (gnulib_path): New variable; use instead of
51214         hardcoding submodule location.
51215         (gnulib_mk): Allow direct use of Makefile.am.
51217         bootstrap: use GNULIB_SRCDIR to reduce disk usage
51218         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
51219         rather than reconfiguring where the submodule points.
51221         gettimeofday: restore support for platforms that lack function
51222         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
51223         replacement if function is missing.
51224         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
51225         * modules/sys_time (Makefile.am): Substitute it.
51226         * lib/sys_time.in.h (gettimeofday): Check it.
51227         Reported by Michael Goffioul.
51229 2010-02-21  Bruno Haible  <bruno@clisp.org>
51231         * lib/stdio.in.h (obstack_printf): Fix typo.
51233 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
51235         vc-list-files: use bzr ls's -R option
51236         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
51237         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
51239 2010-02-21  Jim Meyering  <meyering@redhat.com>
51241         init.sh: fix EXEEXT shims to work also for names like test-prog
51242         * tests/init.sh: Re-exec a better shell, when needed.
51243         If the current shell lacks support for posix $(...), an init.sh-using
51244         test will now try to find a shell that supports that.  If EXEEXT is
51245         nonempty, we also require support for hyphen-in-alias-name and shell
51246         substitutions like ${var#glob}.  Failure to find such a shell results
51247         in a skipped test.
51249 2010-02-21  Bruno Haible  <bruno@clisp.org>
51251         Really work around "broken pipe" error message from bash 3.2.
51252         * gnulib-tool (func_reset_sigpipe): Remove function.
51253         (echo): In bash 3.2, define to a function that uses printf.
51254         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
51256 2010-02-20  Bruno Haible  <bruno@clisp.org>
51258         Restore support for automake 1.9.6 with autoconf 2.61.
51259         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
51260         Reported by James Youngman <jay@gnu.org>.
51262 2010-02-20  Bruno Haible  <bruno@clisp.org>
51264         Improve *printf warning condition.
51265         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
51266         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
51267         and the function is overridden due to SIGPIPE emulation.
51269 2010-02-20  Bruno Haible  <bruno@clisp.org>
51271         * lib/stdio.in.h: Tweak comments.
51273 2010-02-19  Bruno Haible  <bruno@clisp.org>
51275         Make it easier to find modules. New gnulib-tool option '--find'.
51276         * gnulib-tool: New option --find.
51277         (func_usage): Document it.
51278         (func_sanitize_modulelist): New function, extracted from
51279         func_all_modules.
51280         (func_all_modules): Invoke it.
51281         * doc/gnulib-tool.texi (Which modules?): New node.
51283 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
51285         * lib/sys_select.in.h: Provide select replacement even if
51286         sys/select.h exists on a system, for Interix.
51288 2010-02-18  Jim Meyering  <meyering@redhat.com>
51290         init.sh: don't use $(...) just yet
51291         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
51292         to accommodate e.g., Solaris' /bin/sh.
51294 2010-02-17  Bruno Haible  <bruno@clisp.org>
51296         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
51297         Reported by Ludovic Courtès <ludo@gnu.org>.
51299 2010-02-16  Simon Josefsson  <simon@josefsson.org>
51301         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
51302         linking with -lintl.
51304 2010-02-17  Simon Josefsson  <simon@josefsson.org>
51306         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
51307         if not provided by the system's netdb.h.  Reported by
51308         ludo@gnu.org (Ludovic Courtès).
51310 2010-02-15  Jim Meyering  <meyering@redhat.com>
51312         init.sh: improve portability and efficiency
51313         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
51314         "dummy" in a for loop.
51315         Use '!', not '^' to select the complement of a character set used
51316         in a "case" statement.
51317         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
51318         Suggestions from Eric Blake.
51320         init.sh: automatically accommodate programs with the .exe suffix
51321         Automatically arrange for an invocation of "prog" to execute the
51322         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
51323         may use the simpler "prog", yet still work when built on a system
51324         that requires specifying the added suffix.
51325         Do this by constructing a function named "prog" that invokes
51326         "prog.exe" for each .exe file in selected directories.
51327         * tests/init.sh (find_exe_basenames_): New function.
51328         (create_exe_shim_functions_): New function.
51329         (path_prepend_): Use it.
51331         maint.mk: mark syntax-check sc_*.m rules as .PHONY
51332         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
51333         "make -t syntax-check" doesn't create a ton of sc_*.m files.
51335 2010-02-14  Jim Meyering  <meyering@redhat.com>
51337         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
51338         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
51339         (sc_prohibit_hash_pjw_without_use): New rule.
51341         maint.mk: allow the default upload destination dir to be overridden
51342         * top/maint.mk (upload_dest_dir_): Define with a default that
51343         preserves the status quo.
51344         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
51345         Reported by Peter Simons.
51347         maint.mk: prohibit inclusion of "hash.h" without_use
51348         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
51350 2010-02-10  Jim Meyering  <meyering@redhat.com>
51352         maint.mk: prohibit inclusion of "ignore-value.h" without_use
51353         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
51355 2010-02-09  Eric Blake  <ebb9@byu.net>
51356         and Bruno Haible  <bruno@clisp.org>
51358         obstack-printf-posix: ensure declaration
51359         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
51360         extracted from gl_FUNC_OBSTACK_PRINTF.
51361         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
51362         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
51363         Likewise.
51364         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
51365         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
51366         0.
51368 2010-02-08  Bruno Haible  <bruno@clisp.org>
51370         gnulib-tool: Fix typo in 2010-02-07 commit.
51371         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
51372         Reported by Eric Blake.
51374 2010-02-07  Bruno Haible  <bruno@clisp.org>
51376         gnulib-tool: Fix up caching patches.
51377         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
51378         option --no-cache. Use associative arrays when supported by the shell.
51379         (sed_comments): New variable.
51380         (modcache): Renamed from do_cache.
51381         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
51382         abbreviate unnecessarily.
51383         (have_associative): New variable.
51384         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
51385         way also for ksh and zsh.
51386         (func_init_sed_convert_to_cache_statements): New function, extracted
51387         from func_cache_lookup_module. Add support for associative arrays.
51388         Don't set the c_MODULE_cached variable here. Ignore all lines before
51389         the first field header. Remove only the final newline, not all trailing
51390         newlines. Support empty fields correctly. Limit the use of 'eval' to
51391         assignments.
51392         (func_get_description, func_get_status, func_get_notice,
51393         func_get_applicability, func_get_filelist, func_get_dependencies,
51394         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
51395         func_get_automake_snippet, func_get_include_directive,
51396         func_get_link_directive, func_get_license, func_get_maintainer):
51397         Update documentation. List the unoptimized code first. Add support for
51398         associative arrays. Limit the use of 'eval' to assignments.
51399         (func_get_applicability): Undo stylistic pessimisations.
51400         (func_get_automake_snippet, func_get_include_directive): Reduce code
51401         duplication.
51402         (func_modules_transitive_closure, func_modules_add_dummy,
51403         func_modules_notice, func_modules_to_filelist, func_add_file,
51404         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
51405         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
51406         func_create_testdir, func_create_megatestdir): Update documentation.
51408 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51410         * gnulib-tool (func_cache_lookup_module): Store the module name
51411         belonging to the cache variable; error out if two different
51412         module names map to the same cache variable name.
51414 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51416         gnulib-tool: Make caching optional.
51417         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
51418         Update matching short versions of --no-changelog.
51419         (func_usage): Update.
51420         (sed_extract_cache_prog): Renamed from ...
51421         (sed_extract_prog): ... this; revert to old extraction script.
51422         (func_get_description, func_get_status)
51423         (func_get_notice, func_get_applicability, func_get_filelist)
51424         (func_get_dependencies, func_get_autoconf_early_snippet)
51425         (func_get_autoconf_snippet, func_get_automake_snippet)
51426         (func_get_include_directive, func_get_link_directive)
51427         (func_get_license, func_get_maintainer): If $do_cache is false,
51428         use old, non-caching extraction scripts.
51429         Suggestion by Bruno Haible.
51431 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51433         gnulib-tool: cache module metainformation.
51434         * gnulib-tool (sed_extract_prog): Match newline before each
51435         header, and rewrite header to a shell variable suffix.
51436         (func_cache_var, func_cache_lookup_module): New functions,
51437         to turn a module name into a cache variable prefix, and to
51438         look up and cache module metainformation.
51439         (func_get_description, func_get_status)
51440         (func_get_notice, func_get_applicability, func_get_filelist)
51441         (func_get_dependencies, func_get_autoconf_early_snippet)
51442         (func_get_autoconf_snippet, func_get_automake_snippet)
51443         (func_get_include_directive, func_get_link_directive)
51444         (func_get_license, func_get_maintainer): Use
51445         func_cache_lookup_module.
51447 2010-02-07  Bruno Haible  <bruno@clisp.org>
51449         fnctl: Fix missing dependency.
51450         * modules/fcntl (Depends-on): Add getdtablesize.
51451         Reported by John W. Eaton <jwe@gnu.org>.
51453 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
51455         Argp: fix recognition of short alias options.
51457         * lib/argp-parse.c (convert_options): Fix improper use of
51458         `|' between character values.
51459         * tests/test-argp.c (group1_option): New alias option
51460         --read (-r).
51461         (group1_parser): Special handling for 'r'.
51462         (test15): New test case.
51463         (test_fun): Add test15.
51464         * tests/test-argp-2.sh: Update expected --help and --usage
51465         outputs.
51467 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
51469         * tests/test-argp.c: Fix indentation.
51471 2010-02-04  Eric Blake  <ebb9@byu.net>
51473         gettimeofday: expose type of second argument
51474         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
51475         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
51476         * tests/test-gettimeofday.c: Use it to silence warning.
51477         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
51478         the issue.
51480 2010-02-03  Jim Meyering  <meyering@redhat.com>
51482         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
51483         * lib/regcomp.c (TYPE_SIGNED): Define.
51484         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
51486         regcomp.c: avoid a new -Wshadow warning
51487         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
51489 2010-02-01  Jim Meyering  <meyering@redhat.com>
51491         removing useless parentheses in cpp #define directives
51492         For motivation, see commit c0221df4, "define STREQ(a,b)
51493         consistently, removing useless parentheses"
51494         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
51495         * lib/mountlist.c (MNT_IGNORE): Likewise.
51496         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
51498 2010-02-01  Eric Blake  <ebb9@byu.net>
51500         sys_time: use link-warning
51501         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
51502         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
51503         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
51504         * modules/sys_time (Depends-on): Add warn-on-use.
51505         (Makefile.am): Always build replacement.
51506         (configure.ac): Update substitutions.
51507         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
51508         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
51509         bother with SYS_TIME_H.
51510         * modules/gettimeofday (configure.ac): Declare indicator.
51511         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
51512         in use.
51514         closein-tests: silence compiler warning
51515         * tests/test-closein.c (main): Ignore fread result.
51516         * modules/closein-tests (Depends-on): Add ignore-value.
51518         tests: silence warning about system return
51519         * tests/test-areadlink-with-size.c (main): Ignore system result.
51520         * tests/test-areadlink.c (main): Likewise.
51521         * tests/test-areadlinkat-with-size.c (main): Likewise.
51522         * tests/test-areadlinkat.c (main): Likewise.
51523         * tests/test-canonicalize-lgpl.c (main): Likewise.
51524         * tests/test-canonicalize.c (main): Likewise.
51525         * tests/test-chown.c (main): Likewise.
51526         * tests/test-fchownat.c (main): Likewise.
51527         * tests/test-fdutimensat.c (main): Likewise.
51528         * tests/test-fstatat.c (main): Likewise.
51529         * tests/test-futimens.c (main): Likewise.
51530         * tests/test-lchown.c (main): Likewise.
51531         * tests/test-link.c (main): Likewise.
51532         * tests/test-linkat.c (main): Likewise.
51533         * tests/test-lstat.c (main): Likewise.
51534         * tests/test-mkdir.c (main): Likewise.
51535         * tests/test-mkdirat.c (main): Likewise.
51536         * tests/test-mkfifo.c (main): Likewise.
51537         * tests/test-mkfifoat.c (main): Likewise.
51538         * tests/test-mknod.c (main): Likewise.
51539         * tests/test-readlink.c (main): Likewise.
51540         * tests/test-remove.c (main): Likewise.
51541         * tests/test-rename.c (main): Likewise.
51542         * tests/test-renameat.c (main): Likewise.
51543         * tests/test-rmdir.c (main): Likewise.
51544         * tests/test-symlink.c (main): Likewise.
51545         * tests/test-symlinkat.c (main): Likewise.
51546         * tests/test-unlink.c (main): Likewise.
51547         * tests/test-unlinkat.c (main): Likewise.
51548         * tests/test-utimens.c (main): Likewise.
51549         * tests/test-utimensat.c (main): Likewise.
51550         * modules/areadlink-tests (Depends-on): Add ignore-value.
51551         * modules/areadlink-with-size-tests (Depends-on): Likewise.
51552         * modules/areadlinkat-tests (Depends-on): Likewise.
51553         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
51554         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
51555         * modules/canonicalize-tests (Depends-on): Likewise.
51556         * modules/chown-tests (Depends-on): Likewise.
51557         * modules/fdutimensat-tests (Depends-on): Likewise.
51558         * modules/futimens-tests (Depends-on): Likewise.
51559         * modules/lchown-tests (Depends-on): Likewise.
51560         * modules/link-tests (Depends-on): Likewise.
51561         * modules/linkat-tests (Depends-on): Likewise.
51562         * modules/lstat-tests (Depends-on): Likewise.
51563         * modules/mkdir-tests (Depends-on): Likewise.
51564         * modules/mkfifo-tests (Depends-on): Likewise.
51565         * modules/mkfifoat-tests (Depends-on): Likewise.
51566         * modules/mknod-tests (Depends-on): Likewise.
51567         * modules/openat-tests (Depends-on): Likewise.
51568         * modules/readlink-tests (Depends-on): Likewise.
51569         * modules/remove-tests (Depends-on): Likewise.
51570         * modules/rename-tests (Depends-on): Likewise.
51571         * modules/renameat-tests (Depends-on): Likewise.
51572         * modules/rmdir-tests (Depends-on): Likewise.
51573         * modules/symlink-tests (Depends-on): Likewise.
51574         * modules/symlinkat-tests (Depends-on): Likewise.
51575         * modules/unlink-tests (Depends-on): Likewise.
51576         * modules/utimens-tests (Depends-on): Likewise.
51577         * modules/utimensat-tests (Depends-on): Likewise.
51579 2010-01-31  Bruno Haible  <bruno@clisp.org>
51581         Perform the same test for many <math.h> functions.
51582         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
51583         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
51584         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
51585         of gl_MATHFUNC.
51586         * modules/acos (configure.ac): Likewise.
51587         * modules/asin (configure.ac): Likewise.
51588         * modules/atan (configure.ac): Likewise.
51589         * modules/atan2 (configure.ac): Likewise.
51590         * modules/cbrt (configure.ac): Likewise.
51591         * modules/copysign (configure.ac): Likewise.
51592         * modules/cos (configure.ac): Likewise.
51593         * modules/cosh (configure.ac): Likewise.
51594         * modules/erf (configure.ac): Likewise.
51595         * modules/erfc (configure.ac): Likewise.
51596         * modules/exp (configure.ac): Likewise.
51597         * modules/fmod (configure.ac): Likewise.
51598         * modules/hypot (configure.ac): Likewise.
51599         * modules/j0 (configure.ac): Likewise.
51600         * modules/j1 (configure.ac): Likewise.
51601         * modules/jn (configure.ac): Likewise.
51602         * modules/lgamma (configure.ac): Likewise.
51603         * modules/log (configure.ac): Likewise.
51604         * modules/log10 (configure.ac): Likewise.
51605         * modules/log1p (configure.ac): Likewise.
51606         * modules/pow (configure.ac): Likewise.
51607         * modules/remainder (configure.ac): Likewise.
51608         * modules/sin (configure.ac): Likewise.
51609         * modules/sinh (configure.ac): Likewise.
51610         * modules/tan (configure.ac): Likewise.
51611         * modules/tanh (configure.ac): Likewise.
51612         * modules/y0 (configure.ac): Likewise.
51613         * modules/y1 (configure.ac): Likewise.
51614         * modules/yn (configure.ac): Likewise.
51615         Suggested by Paolo Bonzini.
51617 2010-01-31  Bruno Haible  <bruno@clisp.org>
51619         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
51621 2010-01-31  Bruno Haible  <bruno@clisp.org>
51623         Work around getdelim() bug on FreeBSD 8.0.
51624         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
51625         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
51626         not work.
51627         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
51628         is 1.
51629         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
51630         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
51631         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
51632         a non-zero size.
51633         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
51635 2010-01-31  Bruno Haible  <bruno@clisp.org>
51637         Work around getline() bug on FreeBSD 8.0.
51638         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
51639         and a non-zero size.
51640         * tests/test-getline.c (main): Likewise.
51641         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
51642         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
51644 2010-01-28  Eric Blake  <ebb9@byu.net>
51646         regex: fix build failure
51647         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
51648         platforms.
51650 2010-01-28  Jim Meyering  <meyering@redhat.com>
51652         regex: do not ignore memory allocation failure
51653         * lib/regex_internal.c (create_cd_newstate): Detect
51654         re_node_set_init_copy failure.   Extracted from glibc commit
51655         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
51657         regex: sync more white-space changes from libc
51658         * lib/regex_internal.c: White-space only changes.
51659         * lib/regexec.c: Likewise.
51661         regex: add many uses of __attribute_warn_unused_result__
51662         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
51663         * lib/regexec.c: Likewise.
51664         Extracted from a messy glibc commit.
51666         regcomp.c: spelling and merge-artifact from glibc
51667         * lib/regcomp.c: Merge remainder of glibc's
51668         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
51670         regcomp.c: sync white-space changes from glibc
51671         * lib/regcomp.c: Merge to accommodate white space
51672         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
51674         regcomp.c: do not ignore internal return values
51675         * lib/regcomp.c: Do not ignore internal return values.
51676         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
51677         but without its white-space changes and spelling fixes.
51679         regex_internal.h: define __attribute_warn_unused_result__
51680         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
51682         maint: add a syntax-check rule to check for vulnerable Makefile.in
51683         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
51685 2010-01-27  Jim Meyering  <meyering@redhat.com>
51687         ncftpput-ftp: clean up spaces
51688         * build-aux/ncftpput-ftp: Make Copyright line consistent.
51689         Remove trailing blanks.
51691 2010-01-27  Simon Josefsson  <simon@josefsson.org>
51693         * build-aux/git-version-gen: Fix copyright statement.
51694         * build-aux/gnupload: Likewise.
51695         * tests/test-arcfour.c: Likewise.
51696         * tests/test-arctwo.c: Likewise.
51697         * tests/test-count-one-bits.c: Likewise.
51698         * tests/test-crc.c: Likewise.
51699         * tests/test-des.c: Likewise.
51700         * tests/test-gc-arcfour.c: Likewise.
51701         * tests/test-gc-arctwo.c: Likewise.
51702         * tests/test-gc-des.c: Likewise.
51703         * tests/test-gc-hmac-md5.c: Likewise.
51704         * tests/test-gc-hmac-sha1.c: Likewise.
51705         * tests/test-gc-md2.c: Likewise.
51706         * tests/test-gc-md4.c: Likewise.
51707         * tests/test-gc-md5.c: Likewise.
51708         * tests/test-gc-pbkdf2-sha1.c: Likewise.
51709         * tests/test-gc-rijndael.c: Likewise.
51710         * tests/test-gc-sha1.c: Likewise.
51711         * tests/test-gc.c: Likewise.
51712         * tests/test-gethostname.c: Likewise.
51713         * tests/test-gettimeofday.c: Likewise.
51714         * tests/test-hash.c: Likewise.
51715         * tests/test-hmac-md5.c: Likewise.
51716         * tests/test-hmac-sha1.c: Likewise.
51717         * tests/test-md2.c: Likewise.
51718         * tests/test-md4.c: Likewise.
51719         * tests/test-md5.c: Likewise.
51720         * tests/test-memchr.c: Likewise.
51721         * tests/test-memchr2.c: Likewise.
51722         * tests/test-memcmp.c: Likewise.
51723         * tests/test-memmem.c: Likewise.
51724         * tests/test-memrchr.c: Likewise.
51725         * tests/test-rawmemchr.c: Likewise.
51726         * tests/test-read-file.c: Likewise.
51727         * tests/test-rijndael.c: Likewise.
51728         * tests/test-sockets.c: Likewise.
51729         * tests/test-strchrnul.c: Likewise.
51730         * tests/test-strstr.c: Likewise.
51731         * tests/test-strtod.c: Likewise.
51732         * build-aux/ncftpput-ftp: Likewise.
51734 2010-01-26  Eric Blake  <ebb9@byu.net>
51736         ignore-value: update recommended header name
51737         * modules/ignore-value (Include): Only use <> for headers that
51738         exist in glibc.
51740 2010-01-26  Jim Meyering  <meyering@redhat.com>
51742         test-userspec.c: avoid compiler warnings
51743         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
51744         and "initialization discards qualifiers..." warnings.
51745         Put the first "uid" in its own scope, and make char* members "const".
51747 2010-01-25  Bruno Haible  <bruno@clisp.org>
51749         gnulib-tool: Make warning diagnostics consistent.
51750         * gnulib-tool (func_warning): New function.
51751         Use it everywhere where gnulib-tool produces output to stderr and it is
51752         not a fatal error.
51754 2010-01-25  Bruno Haible  <bruno@clisp.org>
51756         Fix test dependencies.
51757         * modules/xstrtol-tests (Depends-on): Add inttypes.
51758         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
51760 2010-01-25  Pádraig Brady  <P@draigBrady.com>
51762         syntax-check: detect incorrect boolean macro values in config.h
51763         * modules/maintainer-makefile (configure.ac): Parameterize the location
51764         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
51765         The logic is from Eric Blake and the location indicated by Jim Meyering.
51766         Note the more natural CONFIG_HEADER name is prohibited by automake
51767         for backwards compatibility reasons.
51768         * top/maint.mk (sc_Wundef_boolean): New rule.
51770 2010-01-25  Jim Meyering  <meyering@redhat.com>
51772         bootstrap: detect MacOS 10.6's shasum, too
51773         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
51774         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
51776 2010-01-23  Jim Meyering  <meyering@redhat.com>
51778         xstrtoll: new module
51779         * modules/xstrtoll: New file.
51780         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
51781         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
51782         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
51783         ./configure fails if you use this module and lack "long long".
51784         * modules/xstrtoll-tests: New module.
51785         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
51786         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
51787         new init.sh-based test framework.
51789 2010-01-24  Bruno Haible  <bruno@clisp.org>
51791         Tests for module 'yn'.
51792         * modules/yn-tests: New file.
51793         * tests/test-yn.c: New file.
51795         Tests for module 'y1'.
51796         * modules/y1-tests: New file.
51797         * tests/test-y1.c: New file.
51799         Tests for module 'y0'.
51800         * modules/y0-tests: New file.
51801         * tests/test-y0.c: New file.
51803         Tests for module 'tanh'.
51804         * modules/tanh-tests: New file.
51805         * tests/test-tanh.c: New file.
51807         Tests for module 'tan'.
51808         * modules/tan-tests: New file.
51809         * tests/test-tan.c: New file.
51811         Tests for module 'sqrt'.
51812         * modules/sqrt-tests: New file.
51813         * tests/test-sqrt.c: New file.
51815         Tests for module 'sinh'.
51816         * modules/sinh-tests: New file.
51817         * tests/test-sinh.c: New file.
51819         Tests for module 'sin'.
51820         * modules/sin-tests: New file.
51821         * tests/test-sin.c: New file.
51823         Tests for module 'rint'.
51824         * modules/rint-tests: New file.
51825         * tests/test-rint.c: New file.
51827         Tests for module 'remainder'.
51828         * modules/remainder-tests: New file.
51829         * tests/test-remainder.c: New file.
51831         Tests for module 'pow'.
51832         * modules/pow-tests: New file.
51833         * tests/test-pow.c: New file.
51835         Tests for module 'nextafter'.
51836         * modules/nextafter-tests: New file.
51837         * tests/test-nextafter.c: New file.
51839         Tests for module 'modf'.
51840         * modules/modf-tests: New file.
51841         * tests/test-modf.c: New file.
51843         Tests for module 'logb'.
51844         * modules/logb-tests: New file.
51845         * tests/test-logb.c: New file.
51847         Tests for module 'log1p'.
51848         * modules/log1p-tests: New file.
51849         * tests/test-log1p.c: New file.
51851         Tests for module 'log10'.
51852         * modules/log10-tests: New file.
51853         * tests/test-log10.c: New file.
51855         Tests for module 'log'.
51856         * modules/log-tests: New file.
51857         * tests/test-log.c: New file.
51859         Tests for module 'lgamma'.
51860         * modules/lgamma-tests: New file.
51861         * tests/test-lgamma.c: New file.
51863         Tests for module 'ldexp'.
51864         * modules/ldexp-tests: New file.
51865         * tests/test-ldexp.c: New file.
51867         Tests for module 'jn'.
51868         * modules/jn-tests: New file.
51869         * tests/test-jn.c: New file.
51871         Tests for module 'j1'.
51872         * modules/j1-tests: New file.
51873         * tests/test-j1.c: New file.
51875         Tests for module 'j0'.
51876         * modules/j0-tests: New file.
51877         * tests/test-j0.c: New file.
51879         Tests for module 'hypot'.
51880         * modules/hypot-tests: New file.
51881         * tests/test-hypot.c: New file.
51883         Tests for module 'fmod'.
51884         * modules/fmod-tests: New file.
51885         * tests/test-fmod.c: New file.
51887         Tests for module 'fabs'.
51888         * modules/fabs-tests: New file.
51889         * tests/test-fabs.c: New file.
51891         Tests for module 'exp'.
51892         * modules/exp-tests: New file.
51893         * tests/test-exp.c: New file.
51895         Tests for module 'erfc'.
51896         * modules/erfc-tests: New file.
51897         * tests/test-erfc.c: New file.
51899         Tests for module 'erf'.
51900         * modules/erf-tests: New file.
51901         * tests/test-erf.c: New file.
51903         Tests for module 'cosh'.
51904         * modules/cosh-tests: New file.
51905         * tests/test-cosh.c: New file.
51907         Tests for module 'cos'.
51908         * modules/cos-tests: New file.
51909         * tests/test-cos.c: New file.
51911         Tests for module 'copysign'.
51912         * modules/copysign-tests: New file.
51913         * tests/test-copysign.c: New file.
51915         Tests for module 'cbrt'.
51916         * modules/cbrt-tests: New file.
51917         * tests/test-cbrt.c: New file.
51919         Tests for module 'atan2'.
51920         * modules/atan2-tests: New file.
51921         * tests/test-atan2.c: New file.
51923         Tests for module 'atan'.
51924         * modules/atan-tests: New file.
51925         * tests/test-atan.c: New file.
51927         Tests for module 'asin'.
51928         * modules/asin-tests: New file.
51929         * tests/test-asin.c: New file.
51931         Tests for module 'acos'.
51932         * modules/acos-tests: New file.
51933         * tests/test-acos.c: New file.
51935 2010-01-24  Bruno Haible  <bruno@clisp.org>
51937         Fix tests for common <math.h> functions.
51938         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
51939         code snippet that references the function pointer, rather than merely
51940         calling the function. Substitute the FUNC_LIBM variable.
51941         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
51942         * modules/acos (configure.ac): Likewise.
51943         * modules/asin (configure.ac): Likewise.
51944         * modules/atan (configure.ac): Likewise.
51945         * modules/atan2 (configure.ac): Likewise.
51946         * modules/cbrt (configure.ac): Likewise.
51947         * modules/copysign (configure.ac): Likewise.
51948         * modules/cos (configure.ac): Likewise.
51949         * modules/cosh (configure.ac): Likewise.
51950         * modules/erf (configure.ac): Likewise.
51951         * modules/erfc (configure.ac): Likewise.
51952         * modules/exp (configure.ac): Likewise.
51953         * modules/fabs (configure.ac): Likewise.
51954         * modules/fmod (configure.ac): Likewise.
51955         * modules/hypot (configure.ac): Likewise.
51956         * modules/j0 (configure.ac): Likewise.
51957         * modules/j1 (configure.ac): Likewise.
51958         * modules/jn (configure.ac): Likewise.
51959         * modules/ldexp (configure.ac): Likewise.
51960         * modules/lgamma (configure.ac): Likewise.
51961         * modules/log (configure.ac): Likewise.
51962         * modules/log10 (configure.ac): Likewise.
51963         * modules/log1p (configure.ac): Likewise.
51964         * modules/logb (configure.ac): Likewise.
51965         * modules/modf (configure.ac): Likewise.
51966         * modules/nextafter (configure.ac): Likewise.
51967         * modules/pow (configure.ac): Likewise.
51968         * modules/remainder (configure.ac): Likewise.
51969         * modules/rint (configure.ac): Likewise.
51970         * modules/sin (configure.ac): Likewise.
51971         * modules/sinh (configure.ac): Likewise.
51972         * modules/tan (configure.ac): Likewise.
51973         * modules/tanh (configure.ac): Likewise.
51974         * modules/y0 (configure.ac): Likewise.
51975         * modules/y1 (configure.ac): Likewise.
51976         * modules/yn (configure.ac): Likewise.
51978 2010-01-24  Bruno Haible  <bruno@clisp.org>
51980         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
51981         * tests/test-acosl.c (x): New variable.
51982         (main): Store argument in x and fetch it from x.
51983         * tests/test-asinl.c (x): New variable.
51984         (main): Store argument in x and fetch it from x.
51985         * tests/test-atanl.c (x): New variable.
51986         (main): Store argument in x and fetch it from x.
51987         * tests/test-cosl.c (x): New variable.
51988         (main): Store argument in x and fetch it from x.
51989         * tests/test-expl.c (x): New variable.
51990         (main): Store argument in x and fetch it from x.
51991         * tests/test-logl.c (x): New variable.
51992         (main): Store argument in x and fetch it from x.
51993         * tests/test-sinl.c (x): New variable.
51994         (main): Store argument in x and fetch it from x.
51995         * tests/test-sqrtl.c (x): New variable.
51996         (main): Store argument in x and fetch it from x.
51997         * tests/test-tanl.c (x): New variable.
51998         (main): Store argument in x and fetch it from x.
52000 2010-01-24  Bruno Haible  <bruno@clisp.org>
52002         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
52003         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
52004         assignments to the initial TESTS_ENVIRONMENT.
52005         * doc/gnulib.texi (Unit test modules): Document it.
52006         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
52007         TESTS_ENVIRONMENT.
52008         * modules/btowc-tests (Makefile.am): Likewise.
52009         * modules/c-stack-tests (Makefile.am): Likewise.
52010         * modules/c-strcase-tests (Makefile.am): Likewise.
52011         * modules/copy-file-tests (Makefile.am): Likewise.
52012         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
52013         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
52014         * modules/mbrtowc-tests (Makefile.am): Likewise.
52015         * modules/mbscasecmp-tests (Makefile.am): Likewise.
52016         * modules/mbscasestr-tests (Makefile.am): Likewise.
52017         * modules/mbschr-tests (Makefile.am): Likewise.
52018         * modules/mbscspn-tests (Makefile.am): Likewise.
52019         * modules/mbsinit-tests (Makefile.am): Likewise.
52020         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
52021         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
52022         * modules/mbspbrk-tests (Makefile.am): Likewise.
52023         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
52024         * modules/mbsrchr-tests (Makefile.am): Likewise.
52025         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
52026         * modules/mbsspn-tests (Makefile.am): Likewise.
52027         * modules/mbsstr-tests (Makefile.am): Likewise.
52028         * modules/nl_langinfo-tests (Makefile.am): Likewise.
52029         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
52030         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
52031         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
52032         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
52033         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
52034         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
52035         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
52036         * modules/wcrtomb-tests (Makefile.am): Likewise.
52037         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
52038         * modules/wcsrtombs-tests (Makefile.am): Likewise.
52039         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
52040         assignments from TESTS_ENVIRONMENT.
52041         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
52042         augmentation.
52043         * modules/argp-version-etc-tests (Makefile.am): Likewise.
52044         * modules/atexit-tests (Makefile.am): Likewise.
52045         * modules/binary-io-tests (Makefile.am): Likewise.
52046         * modules/closein-tests (Makefile.am): Likewise.
52047         * modules/dprintf-posix-tests (Makefile.am): Likewise.
52048         * modules/exclude-tests (Makefile.am): Likewise.
52049         * modules/fflush-tests (Makefile.am): Likewise.
52050         * modules/fpending-tests (Makefile.am): Likewise.
52051         * modules/fprintf-posix-tests (Makefile.am): Likewise.
52052         * modules/freadahead-tests (Makefile.am): Likewise.
52053         * modules/freadptr-tests (Makefile.am): Likewise.
52054         * modules/freadseek-tests (Makefile.am): Likewise.
52055         * modules/fseek-tests (Makefile.am): Likewise.
52056         * modules/fseeko-tests (Makefile.am): Likewise.
52057         * modules/ftell-tests (Makefile.am): Likewise.
52058         * modules/ftello-tests (Makefile.am): Likewise.
52059         * modules/idpriv-drop-tests (Makefile.am): Likewise.
52060         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
52061         * modules/lseek-tests (Makefile.am): Likewise.
52062         * modules/parse-duration-tests (Makefile.am): Likewise.
52063         * modules/perror-tests (Makefile.am): Likewise.
52064         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
52065         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
52066         * modules/pipe-tests (Makefile.am): Likewise.
52067         * modules/pread-tests (Makefile.am): Likewise.
52068         * modules/printf-posix-tests (Makefile.am): Likewise.
52069         * modules/select-tests (Makefile.am): Likewise.
52070         * modules/sigpipe-tests (Makefile.am): Likewise.
52071         * modules/tsearch-tests (Makefile.am): Likewise.
52072         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
52073         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
52074         * modules/uniname/uniname-tests (Makefile.am): Likewise.
52075         * modules/uniwidth/width-tests (Makefile.am): Likewise.
52076         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
52077         * modules/version-etc-tests (Makefile.am): Likewise.
52078         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
52079         * modules/vprintf-posix-tests (Makefile.am): Likewise.
52080         * modules/xalloc-die-tests (Makefile.am): Likewise.
52081         * modules/xprintf-posix-tests (Makefile.am): Likewise.
52082         * modules/xstrtoimax-tests (Makefile.am): Likewise.
52083         * modules/xstrtol-tests (Makefile.am): Likewise.
52084         * modules/xstrtoumax-tests (Makefile.am): Likewise.
52085         * modules/yesno-tests (Makefile.am): Likewise.
52086         Suggested by Jim Meyering.
52088 2010-01-24  Bruno Haible  <bruno@clisp.org>
52090         More documentation.
52091         * doc/gnulib.texi (Writing modules): New chapter.
52092         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
52093         the new chapter.
52095 2010-01-24  Jim Meyering  <meyering@redhat.com>
52097         maint.mk: do not prepend "./" after filtering
52098         * top/maint.mk (_prepend_srcdir_prefix): New variable
52099         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
52100         "./" when $(srcdir) is ".".
52102         define STREQ(a,b) consistently, removing useless parentheses
52103         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
52104         since the only risk is that "a" or "b" contains an unparenthesized
52105         comma, but if either did that, STREQ would have 3 or more arguments.
52106         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
52107         * lib/fts.c (STREQ): Remove unnecessary parentheses.
52108         * lib/hash-triple.c (STREQ): Likewise.
52109         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
52110         * lib/getugroups.c (STREQ): Likewise.
52112 2010-01-23  Jim Meyering  <meyering@redhat.com>
52114         maint.mk: fix syntax-check in a non-srcdir build directory
52115         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
52116         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
52118 2010-01-22  Jim Meyering  <meyering@redhat.com>
52120         userspec: add unit tests
52121         * tests/test-userspec.c: New file.
52122         * modules/userspec-tests: Likewise.
52124 2010-01-21  Jim Meyering  <meyering@redhat.com>
52126         maint.mk: handle source file names containing "." robustly
52127         * top/maint.mk (_dot_escaped_srcdir): Define.
52128         (VC_LIST): Use it in LHS of sed substitution.
52130 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
52132         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
52133         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
52134         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
52135         from a non-srcdir build.
52137 2010-01-20  Eric Blake  <ebb9@byu.net>
52139         warn-on-use: use instead of link-warning
52140         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
52141         * modules/unistd (Depends-on, Makefile.am): Likewise.
52142         * modules/arpa_inet (Depends-on): Replace link-warning with
52143         warn-on-use.
52144         (Makefile.am): Update rules accordingly.
52145         * modules/ctype (Depends-on, Makefile.am): Likewise.
52146         * modules/dirent (Depends-on, Makefile.am): Likewise.
52147         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
52148         * modules/inttypes (Depends-on, Makefile.am): Likewise.
52149         * modules/langinfo (Depends-on, Makefile.am): Likewise.
52150         * modules/locale (Depends-on, Makefile.am): Likewise.
52151         * modules/math (Depends-on, Makefile.am): Likewise.
52152         * modules/search (Depends-on, Makefile.am): Likewise.
52153         * modules/signal (Depends-on, Makefile.am): Likewise.
52154         * modules/spawn (Depends-on, Makefile.am): Likewise.
52155         * modules/stdlib (Depends-on, Makefile.am): Likewise.
52156         * modules/string (Depends-on, Makefile.am): Likewise.
52157         * modules/strings (Depends-on, Makefile.am): Likewise.
52158         * modules/sys_file (Depends-on, Makefile.am): Likewise.
52159         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
52160         * modules/sys_select (Depends-on, Makefile.am): Likewise.
52161         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
52162         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
52163         * modules/sys_times (Depends-on, Makefile.am): Likewise.
52164         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
52165         * modules/wchar (Depends-on, Makefile.am): Likewise.
52166         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
52167         should be poisoned.
52168         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
52169         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
52170         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
52171         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52172         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
52173         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
52174         * m4/math_h.m4 (gl_MATH_H): Likewise.
52175         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
52176         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
52177         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
52178         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
52179         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
52180         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
52181         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
52182         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
52183         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
52184         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52185         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52186         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
52187         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
52188         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
52189         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
52190         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
52191         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
52192         GL_LINK_WARNING.
52193         * lib/ctype.in.h: Likewise.
52194         * lib/dirent.in.h: Likewise.
52195         * lib/fcntl.in.h: Likewise.
52196         * lib/inttypes.in.h: Likewise.
52197         * lib/langinfo.in.h: Likewise.
52198         * lib/locale.in.h: Likewise.
52199         * lib/math.in.h: Likewise.
52200         * lib/search.in.h: Likewise.
52201         * lib/signal.in.h: Likewise.
52202         * lib/spawn.in.h: Likewise.
52203         * lib/stdio.in.h: Likewise.
52204         * lib/stdlib.in.h: Likewise.
52205         * lib/string.in.h: Likewise.
52206         * lib/strings.in.h: Likewise.
52207         * lib/sys_file.in.h: Likewise.
52208         * lib/sys_ioctl.in.h: Likewise.
52209         * lib/sys_select.in.h: Likewise.
52210         * lib/sys_socket.in.h: Likewise.
52211         * lib/sys_stat.in.h: Likewise.
52212         * lib/sys_times.in.h: Likewise.
52213         * lib/sys_utsname.in.h: Likewise.
52214         * lib/unistd.in.h: Likewise.
52215         * lib/wchar.in.h: Likewise.
52217 2010-01-20  Bruno Haible  <bruno@clisp.org>
52219         Avoid duplicate -lm.
52220         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
52221         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
52222         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
52223         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
52224         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
52225         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
52226         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
52227         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
52228         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
52229         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
52230         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
52231         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
52232         Reported by Paolo Bonzini.
52234 2010-01-19  Bruno Haible  <bruno@clisp.org>
52236         langinfo, nl_langinfo: Relicense under LGPLv2+.
52237         * modules/langinfo (License): Change to LGPLv2+.
52238         * modules/nl_langinfo (License): Likewise.
52239         Patch by David Lutterkort <lutter@redhat.com>.
52241 2010-01-19  Bruno Haible  <bruno@clisp.org>
52243         Avoid compilation error with cc on OSF/1 5.1.
52244         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
52245         statement, not before.
52246         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52248 2010-01-18  Bruno Haible  <bruno@clisp.org>
52250         Avoid a link error due to the __printf__ symbol.
52251         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
52252         and 2.6.x.
52253         (__format__, __printf__): Remove definitions.
52254         * lib/argp-fmtstream.h: Likewise.
52255         * lib/argp.h: Likewise.
52256         * lib/error.h: Likewise.
52257         * lib/vasnprintf.h: Likewise.
52258         * lib/xprintf.h: Likewise.
52259         * lib/xvasprintf.h: Likewise.
52260         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52262 2010-01-18  Bruno Haible  <bruno@clisp.org>
52264         Tests for module 'tanl'.
52265         * modules/tanl-tests: New file.
52266         * tests/test-tanl.c: New file.
52268         Tests for module 'sqrtl'.
52269         * modules/sqrtl-tests: New file.
52270         * tests/test-sqrtl.c: New file.
52272         Tests for module 'sinl'.
52273         * modules/sinl-tests: New file.
52274         * tests/test-sinl.c: New file.
52276         Tests for module 'logl'.
52277         * modules/logl-tests: New file.
52278         * tests/test-logl.c: New file.
52280         Tests for module 'expl'.
52281         * modules/expl-tests: New file.
52282         * tests/test-expl.c: New file.
52284         Tests for module 'cosl'.
52285         * modules/cosl-tests: New file.
52286         * tests/test-cosl.c: New file.
52288         Tests for module 'atanl'.
52289         * modules/atanl-tests: New file.
52290         * tests/test-atanl.c: New file.
52292         Tests for module 'asinl'.
52293         * modules/asinl-tests: New file.
52294         * tests/test-asinl.c: New file.
52296         Tests for module 'acosl'.
52297         * modules/acosl-tests: New file.
52298         * tests/test-acosl.c: New file.
52300         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
52301         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
52302         tanl): Use the standard gnulib idiom.
52303         * lib/cosl.c: Don't include trigl.c and sincosl.c.
52304         * lib/sinl.c: Likewise.
52305         * lib/tanl.c: Don't include trigl.c.
52306         (kernel_tanl): Make static.
52307         * lib/sincosl.c: Include trigl.h first.
52308         * lib/trigl.c: Likewise.
52309         * m4/acosl.m4: New file.
52310         * m4/asinl.m4: New file.
52311         * m4/atanl.m4: New file.
52312         * m4/cosl.m4: New file.
52313         * m4/expl.m4: New file.
52314         * m4/logl.m4: New file.
52315         * m4/sinl.m4: New file.
52316         * m4/sqrtl.m4: New file.
52317         * m4/tanl.m4: New file.
52318         * m4/mathl.m4: Remove file.
52319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
52320         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
52321         Don't initialize GNULIB_MATHL.
52322         * modules/acosl: New file.
52323         * modules/asinl: New file.
52324         * modules/atanl: New file.
52325         * modules/cosl: New file.
52326         * modules/expl: New file.
52327         * modules/logl: New file.
52328         * modules/sinl: New file.
52329         * modules/sqrtl: New file.
52330         * modules/tanl: New file.
52331         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
52332         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
52333         substitute GNULIB_MATHL.
52334         * modules/mathl: Rewritten.
52335         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
52336         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
52337         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
52338         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
52339         * doc/posix-functions/expl.texi: Mention the 'expl' module.
52340         * doc/posix-functions/logl.texi: Mention the 'logl' module.
52341         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
52342         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
52343         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
52345 2010-01-18  Bruno Haible  <bruno@clisp.org>
52347         sqrt: Make gl_FUNC_SQRT requirable.
52348         * m4/sqrt.m4: New file.
52349         * modules/sqrt (Files): Add it.
52350         (configure.ac): Invoke gl_FUNC_SQRT.
52352 2010-01-18  Bruno Haible  <bruno@clisp.org>
52354         New modules for common <math.h> functions.
52355         * m4/mathfunc.m4: New file.
52356         * modules/acos: New file.
52357         * modules/asin: New file.
52358         * modules/atan: New file.
52359         * modules/atan2: New file.
52360         * modules/cbrt: New file.
52361         * modules/copysign: New file.
52362         * modules/cos: New file.
52363         * modules/cosh: New file.
52364         * modules/erf: New file.
52365         * modules/erfc: New file.
52366         * modules/exp: New file.
52367         * modules/fabs: New file.
52368         * modules/fmod: New file.
52369         * modules/hypot: New file.
52370         * modules/j0: New file.
52371         * modules/j1: New file.
52372         * modules/jn: New file.
52373         * modules/ldexp: New file.
52374         * modules/lgamma: New file.
52375         * modules/log: New file.
52376         * modules/log10: New file.
52377         * modules/log1p: New file.
52378         * modules/logb: New file.
52379         * modules/modf: New file.
52380         * modules/nextafter: New file.
52381         * modules/pow: New file.
52382         * modules/remainder: New file.
52383         * modules/rint: New file.
52384         * modules/sin: New file.
52385         * modules/sinh: New file.
52386         * modules/sqrt: New file.
52387         * modules/tan: New file.
52388         * modules/tanh: New file.
52389         * modules/y0: New file.
52390         * modules/y1: New file.
52391         * modules/yn: New file.
52392         * doc/posix-functions/acos.texi: Mention the 'acos' module.
52393         * doc/posix-functions/asin.texi: Mention the 'asin' module.
52394         * doc/posix-functions/atan.texi: Mention the 'atan' module.
52395         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
52396         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
52397         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
52398         * doc/posix-functions/cos.texi: Mention the 'cos' module.
52399         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
52400         * doc/posix-functions/erf.texi: Mention the 'erf' module.
52401         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
52402         * doc/posix-functions/exp.texi: Mention the 'exp' module.
52403         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
52404         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
52405         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
52406         * doc/posix-functions/j0.texi: Mention the 'j0' module.
52407         * doc/posix-functions/j1.texi: Mention the 'j1' module.
52408         * doc/posix-functions/jn.texi: Mention the 'jn' module.
52409         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
52410         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
52411         * doc/posix-functions/log.texi: Mention the 'log' module.
52412         * doc/posix-functions/log10.texi: Mention the 'log10' module.
52413         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
52414         * doc/posix-functions/logb.texi: Mention the 'logb' module.
52415         * doc/posix-functions/modf.texi: Mention the 'modf' module.
52416         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
52417         * doc/posix-functions/pow.texi: Mention the 'pow' module.
52418         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
52419         * doc/posix-functions/rint.texi: Mention the 'rint' module.
52420         * doc/posix-functions/sin.texi: Mention the 'sin' module.
52421         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
52422         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
52423         * doc/posix-functions/tan.texi: Mention the 'tan' module.
52424         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
52425         * doc/posix-functions/y0.texi: Mention the 'y0' module.
52426         * doc/posix-functions/y1.texi: Mention the 'y1' module.
52427         * doc/posix-functions/yn.texi: Mention the 'yn' module.
52429 2010-01-18  Jim Meyering  <meyering@redhat.com>
52431         ignore-value: relax license to LGPLv2+
52432         * modules/ignore-value (License): Relax to LGPLv2+.
52434         getdate: don't leak when TZ contains two or more '"'s
52435         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
52436         double quote in TZ after the first one.
52438         readtokens: do not leak internal token_lengths buffer
52439         * lib/readtokens.c (readtokens): Free the local, lengths,
52440         when the supplied "token_lengths" parameter is NULL.
52442 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52444         Fix a couple of missing LIBTHREAD link failures on AIX.
52445         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
52446         $(LIBTHREAD).
52447         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
52449         Link test-poll against INET_PTON_LIB.
52450         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
52451         for inet_pton on Solaris 10.
52453 2010-01-17  Bruno Haible  <bruno@clisp.org>
52455         unistdio/*-sprintf: Fix typo in module description.
52456         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
52457         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
52458         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
52459         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
52460         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
52461         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
52462         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
52463         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52465 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52467         gnulib-tool: fix filelist for AIX, HP-UX ksh.
52468         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
52469         variables in shell case patterns, for AIX and HP-UX ksh.
52471         Split large sed scripts, for HP-UX sed.
52472         * modules/stdio: Split sed scripts around 50 sed commands,
52473         to avoid HP-UX limit of 99 commands, in the near future.
52474         * modules/string: Likewise.
52475         * modules/unistd: Likewise.
52477         gnulib-tool: avoid writing in the current directory.
52478         * gnulib-tool (func_emit_lib_Makefile_am)
52479         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
52480         not in the current directory, so concurrent gnulib-tool
52481         instances do not interfere.
52483 2010-01-16  Jim Meyering  <meyering@redhat.com>
52485         doc: update users.txt
52486         * users.txt: Add grep.
52487         (diffutils, gzip): Update URLs.
52489 2010-01-12  Bruno Haible  <bruno@clisp.org>
52491         posix_spawn: Avoid test failure on Cygwin.
52492         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
52493         characters.
52494         Reported by Simon Josefsson.
52496 2010-01-12  Bruno Haible  <bruno@clisp.org>
52498         * tests/test-cond.c (main): When skipping the test, show the reason.
52500 2010-01-12  Simon Josefsson  <simon@josefsson.org>
52502         * lib/striconv.c (str_cd_iconv): Avoid if before free.
52504 2010-01-12  Simon Josefsson  <simon@josefsson.org>
52506         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
52507         VC_LIST_ALWAYS_EXCLUDE_REGEX.
52509 2010-01-12  Eric Blake  <ebb9@byu.net>
52511         build: guarantee AS_VAR_IF
52512         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
52513         (gl_AS_VAR_IF): Move...
52514         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
52515         Reported by Simon Josefsson.
52517 2010-01-12  Simon Josefsson  <simon@josefsson.org>
52519         * lib/stdio.in.h: Fix typo.
52521 2010-01-12  Simon Josefsson  <simon@josefsson.org>
52523         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
52524         libgpg-error.
52526 2010-01-12  Simon Josefsson  <simon@josefsson.org>
52528         * tests/test-xalloc-die.sh: Use $EXEEXT.
52530 2010-01-12  Simon Josefsson  <simon@josefsson.org>
52531             Bruno Haible  <bruno@clisp.org>
52533         getlogin, getlogin_r: Avoid test failure.
52534         * tests/test-getlogin.c: Include <stdio.h>.
52535         (main): Skip the test when the function fails because stdin is not a
52536         tty.
52537         * tests/test-getlogin_r.c: Include <stdio.h>.
52538         (main): Skip the test when the function fails because stdin is not a
52539         tty.
52541 2010-01-11  Eric Blake  <ebb9@byu.net>
52543         tests: avoid more large file warnings
52544         * tests/test-fflush.c: Avoid warning about ftell use.
52545         * tests/test-fseek.c: Avoid warning about fseek use.
52547 2010-01-10  Bruno Haible  <bruno@clisp.org>
52549         nproc: Work better on Linux when /proc and /sys are not mounted.
52550         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
52551         as lower bound when, on glibc/Linux systems,
52552         sysconf (_SC_NPROCESSORS_CONF) returns 1.
52553         Suggested by Pádraig Brady <P@draigbrady.com>.
52554         Reported by Dmitry V. Levin <ldv@altlinux.org>.
52556         nproc: Refactor.
52557         * lib/nproc.c (num_processors_via_affinity_mask): New function,
52558         extracted from num_processors.
52559         (num_processors): Call it.
52561 2010-01-11  Jim Meyering  <meyering@redhat.com>
52563         utimecmp: avoid new warning from upcoming gcc-4.5.0
52564         * lib/utimecmp.c (BILLION): Define using #define rather than an
52565         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
52567 2010-01-11  Eric Blake  <ebb9@byu.net>
52569         math: add portability warnings for classification macros
52570         * modules/math (Depends-on): Add warn-on-use.
52571         (Makefile.am): Provide new substitutions.
52572         * m4/math_h.m4 (gl_MATH_H): Require inline.
52573         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
52574         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
52575         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
52576         implement warnings.
52578         unistd: warn on use of environ without module
52579         * modules/unistd (Depends-on): Add warn-on-use.
52580         (Makefile.am): Provide new substitutions.
52581         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
52582         * lib/unistd.in.h (environ): Wrap with a warning helper function.
52584         stdio: warn on suspicious uses
52585         * modules/stdio (Depends-on): Add warn-on-use.
52586         (Makefile.am): Provide new substitutions.
52587         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
52588         fseeko.
52589         * lib/stdio.in.h (gets): Always warn on use.
52590         (fseek, ftell): Adjust when warnings are issued, and honor
52591         _GL_NO_LARGE_FILES as a way to silence the warning.
52592         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
52593         any warning about large file offsets.
52594         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
52595         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
52596         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
52597         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
52598         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
52599         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
52600         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
52601         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
52603         warn-on-use: new module
52604         * modules/warn-on-use: New file.
52605         * build-aux/warn-on-use.h: Likewise.
52606         * m4/warn-on-use.m4: Likewise.
52607         * MODULES.html.sh (Support for building): Mention it.
52609 2010-01-10  Bruno Haible  <bruno@clisp.org>
52611         Tests for module 'unistr/u32-strdup'.
52612         * modules/unistr/u32-strdup-tests: New file.
52613         * tests/unistr/test-u32-strdup.c: New file.
52615         Tests for module 'unistr/u16-strdup'.
52616         * modules/unistr/u16-strdup-tests: New file.
52617         * tests/unistr/test-u16-strdup.c: New file.
52619         Tests for module 'unistr/u8-strdup'.
52620         * modules/unistr/u8-strdup-tests: New file.
52621         * tests/unistr/test-u8-strdup.c: New file.
52622         * tests/unistr/test-strdup.h: New file.
52624         Tests for module 'unistr/u32-strncmp'.
52625         * modules/unistr/u32-strncmp-tests: New file.
52626         * tests/unistr/test-u32-strncmp.c: New file.
52628         Tests for module 'unistr/u16-strncmp'.
52629         * modules/unistr/u16-strncmp-tests: New file.
52630         * tests/unistr/test-u16-strncmp.c: New file.
52632         Tests for module 'unistr/u8-strncmp'.
52633         * modules/unistr/u8-strncmp-tests: New file.
52634         * tests/unistr/test-u8-strncmp.c: New file.
52635         * tests/unistr/test-strncmp.h: New file.
52637         Tests for module 'unistr/u32-strcoll'.
52638         * modules/unistr/u32-strcoll-tests: New file.
52639         * tests/unistr/test-u32-strcoll.c: New file.
52641         Tests for module 'unistr/u16-strcoll'.
52642         * modules/unistr/u16-strcoll-tests: New file.
52643         * tests/unistr/test-u16-strcoll.c: New file.
52645         Tests for module 'unistr/u8-strcoll'.
52646         * modules/unistr/u8-strcoll-tests: New file.
52647         * tests/unistr/test-u8-strcoll.c: New file.
52649         Tests for module 'unistr/u32-strcmp'.
52650         * modules/unistr/u32-strcmp-tests: New file.
52651         * tests/unistr/test-u32-strcmp.c: New file.
52652         * tests/unistr/test-u32-strcmp.h: New file.
52654         Tests for module 'unistr/u16-strcmp'.
52655         * modules/unistr/u16-strcmp-tests: New file.
52656         * tests/unistr/test-u16-strcmp.c: New file.
52657         * tests/unistr/test-u16-strcmp.h: New file.
52659         Tests for module 'unistr/u8-strcmp'.
52660         * modules/unistr/u8-strcmp-tests: New file.
52661         * tests/unistr/test-u8-strcmp.c: New file.
52662         * tests/unistr/test-u8-strcmp.h: New file.
52663         * tests/unistr/test-strcmp.h: New file.
52665         Tests for module 'unistr/u32-strncat'.
52666         * modules/unistr/u32-strncat-tests: New file.
52667         * tests/unistr/test-u32-strncat.c: New file.
52669         Tests for module 'unistr/u16-strncat'.
52670         * modules/unistr/u16-strncat-tests: New file.
52671         * tests/unistr/test-u16-strncat.c: New file.
52673         Tests for module 'unistr/u8-strncat'.
52674         * modules/unistr/u8-strncat-tests: New file.
52675         * tests/unistr/test-u8-strncat.c: New file.
52676         * tests/unistr/test-strncat.h: New file.
52678         Tests for module 'unistr/u32-strcat'.
52679         * modules/unistr/u32-strcat-tests: New file.
52680         * tests/unistr/test-u32-strcat.c: New file.
52682         Tests for module 'unistr/u16-strcat'.
52683         * modules/unistr/u16-strcat-tests: New file.
52684         * tests/unistr/test-u16-strcat.c: New file.
52686         Tests for module 'unistr/u8-strcat'.
52687         * modules/unistr/u8-strcat-tests: New file.
52688         * tests/unistr/test-u8-strcat.c: New file.
52689         * tests/unistr/test-strcat.h: New file.
52691         Tests for module 'unistr/u32-stpncpy'.
52692         * modules/unistr/u32-stpncpy-tests: New file.
52693         * tests/unistr/test-u32-stpncpy.c: New file.
52695         Tests for module 'unistr/u16-stpncpy'.
52696         * modules/unistr/u16-stpncpy-tests: New file.
52697         * tests/unistr/test-u16-stpncpy.c: New file.
52699         Tests for module 'unistr/u8-stpncpy'.
52700         * modules/unistr/u8-stpncpy-tests: New file.
52701         * tests/unistr/test-u8-stpncpy.c: New file.
52702         * tests/unistr/test-stpncpy.h: New file.
52704         Tests for module 'unistr/u32-strncpy'.
52705         * modules/unistr/u32-strncpy-tests: New file.
52706         * tests/unistr/test-u32-strncpy.c: New file.
52708         Tests for module 'unistr/u16-strncpy'.
52709         * modules/unistr/u16-strncpy-tests: New file.
52710         * tests/unistr/test-u16-strncpy.c: New file.
52712         Tests for module 'unistr/u8-strncpy'.
52713         * modules/unistr/u8-strncpy-tests: New file.
52714         * tests/unistr/test-u8-strncpy.c: New file.
52715         * tests/unistr/test-strncpy.h: New file.
52717         Tests for module 'unistr/u32-stpcpy'.
52718         * modules/unistr/u32-stpcpy-tests: New file.
52719         * tests/unistr/test-u32-stpcpy.c: New file.
52721         Tests for module 'unistr/u16-stpcpy'.
52722         * modules/unistr/u16-stpcpy-tests: New file.
52723         * tests/unistr/test-u16-stpcpy.c: New file.
52725         Tests for module 'unistr/u8-stpcpy'.
52726         * modules/unistr/u8-stpcpy-tests: New file.
52727         * tests/unistr/test-u8-stpcpy.c: New file.
52728         * tests/unistr/test-stpcpy.h: New file.
52730         Tests for module 'unistr/u32-strcpy'.
52731         * modules/unistr/u32-strcpy-tests: New file.
52732         * tests/unistr/test-u32-strcpy.c: New file.
52734         Tests for module 'unistr/u16-strcpy'.
52735         * modules/unistr/u16-strcpy-tests: New file.
52736         * tests/unistr/test-u16-strcpy.c: New file.
52738         Tests for module 'unistr/u8-strcpy'.
52739         * modules/unistr/u8-strcpy-tests: New file.
52740         * tests/unistr/test-u8-strcpy.c: New file.
52741         * tests/unistr/test-strcpy.h: New file.
52743         Tests for module 'unistr/u32-strnlen'.
52744         * modules/unistr/u32-strnlen-tests: New file.
52745         * tests/unistr/test-u32-strnlen.c: New file.
52747         Tests for module 'unistr/u16-strnlen'.
52748         * modules/unistr/u16-strnlen-tests: New file.
52749         * tests/unistr/test-u16-strnlen.c: New file.
52751         Tests for module 'unistr/u8-strnlen'.
52752         * modules/unistr/u8-strnlen-tests: New file.
52753         * tests/unistr/test-u8-strnlen.c: New file.
52754         * tests/unistr/test-strnlen.h: New file.
52756         Tests for module 'unistr/u32-strlen'.
52757         * modules/unistr/u32-strlen-tests: New file.
52758         * tests/unistr/test-u32-strlen.c: New file.
52760         Tests for module 'unistr/u16-strlen'.
52761         * modules/unistr/u16-strlen-tests: New file.
52762         * tests/unistr/test-u16-strlen.c: New file.
52764         Tests for module 'unistr/u8-strlen'.
52765         * modules/unistr/u8-strlen-tests: New file.
52766         * tests/unistr/test-u8-strlen.c: New file.
52768         Tests for module 'unistr/u32-prev'.
52769         * modules/unistr/u32-prev-tests: New file.
52770         * tests/unistr/test-u32-prev.c: New file.
52772         Tests for module 'unistr/u16-prev'.
52773         * modules/unistr/u16-prev-tests: New file.
52774         * tests/unistr/test-u16-prev.c: New file.
52776         Tests for module 'unistr/u8-prev'.
52777         * modules/unistr/u8-prev-tests: New file.
52778         * tests/unistr/test-u8-prev.c: New file.
52780         Tests for module 'unistr/u32-next'.
52781         * modules/unistr/u32-next-tests: New file.
52782         * tests/unistr/test-u32-next.c: New file.
52784         Tests for module 'unistr/u16-next'.
52785         * modules/unistr/u16-next-tests: New file.
52786         * tests/unistr/test-u16-next.c: New file.
52788         Tests for module 'unistr/u8-next'.
52789         * modules/unistr/u8-next-tests: New file.
52790         * tests/unistr/test-u8-next.c: New file.
52792         Tests for module 'unistr/u32-strmbtouc'.
52793         * modules/unistr/u32-strmbtouc-tests: New file.
52794         * tests/unistr/test-u32-strmbtouc.c: New file.
52796         Tests for module 'unistr/u16-strmbtouc'.
52797         * modules/unistr/u16-strmbtouc-tests: New file.
52798         * tests/unistr/test-u16-strmbtouc.c: New file.
52800         Tests for module 'unistr/u8-strmbtouc'.
52801         * modules/unistr/u8-strmbtouc-tests: New file.
52802         * tests/unistr/test-u8-strmbtouc.c: New file.
52804         Tests for module 'unistr/u32-strmblen'.
52805         * modules/unistr/u32-strmblen-tests: New file.
52806         * tests/unistr/test-u32-strmblen.c: New file.
52808         Tests for module 'unistr/u16-strmblen'.
52809         * modules/unistr/u16-strmblen-tests: New file.
52810         * tests/unistr/test-u16-strmblen.c: New file.
52812         Tests for module 'unistr/u8-strmblen'.
52813         * modules/unistr/u8-strmblen-tests: New file.
52814         * tests/unistr/test-u8-strmblen.c: New file.
52816         Tests for module 'unistr/u32-cpy-alloc'.
52817         * modules/unistr/u32-cpy-alloc-tests: New file.
52818         * tests/unistr/test-u32-cpy-alloc.c: New file.
52820         Tests for module 'unistr/u16-cpy-alloc'.
52821         * modules/unistr/u16-cpy-alloc-tests: New file.
52822         * tests/unistr/test-u16-cpy-alloc.c: New file.
52824         Tests for module 'unistr/u8-cpy-alloc'.
52825         * modules/unistr/u8-cpy-alloc-tests: New file.
52826         * tests/unistr/test-u8-cpy-alloc.c: New file.
52827         * tests/unistr/test-cpy-alloc.h: New file.
52829         Tests for module 'unistr/u32-mbsnlen'.
52830         * modules/unistr/u32-mbsnlen-tests: New file.
52831         * tests/unistr/test-u32-mbsnlen.c: New file.
52833         Tests for module 'unistr/u16-mbsnlen'.
52834         * modules/unistr/u16-mbsnlen-tests: New file.
52835         * tests/unistr/test-u16-mbsnlen.c: New file.
52837         Tests for module 'unistr/u8-mbsnlen'.
52838         * modules/unistr/u8-mbsnlen-tests: New file.
52839         * tests/unistr/test-u8-mbsnlen.c: New file.
52841         Tests for module 'unistr/u32-chr'.
52842         * modules/unistr/u32-chr-tests: New file.
52843         * tests/unistr/test-u32-chr.c: New file.
52845         Tests for module 'unistr/u16-chr'.
52846         * modules/unistr/u16-chr-tests: New file.
52847         * tests/unistr/test-u16-chr.c: New file.
52849         Tests for module 'unistr/u8-chr'.
52850         * modules/unistr/u8-chr-tests: New file.
52851         * tests/unistr/test-u8-chr.c: New file.
52852         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
52854         Tests for module 'unistr/u32-cmp2'.
52855         * modules/unistr/u32-cmp2-tests: New file.
52856         * tests/unistr/test-u32-cmp2.c: New file.
52858         Tests for module 'unistr/u16-cmp2'.
52859         * modules/unistr/u16-cmp2-tests: New file.
52860         * tests/unistr/test-u16-cmp2.c: New file.
52862         Tests for module 'unistr/u8-cmp2'.
52863         * modules/unistr/u8-cmp2-tests: New file.
52864         * tests/unistr/test-u8-cmp2.c: New file.
52865         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
52867         Tests for module 'unistr/u32-cmp'.
52868         * modules/unistr/u32-cmp-tests: New file.
52869         * tests/unistr/test-u32-cmp.c: New file.
52871         Tests for module 'unistr/u16-cmp'.
52872         * modules/unistr/u16-cmp-tests: New file.
52873         * tests/unistr/test-u16-cmp.c: New file.
52875         Tests for module 'unistr/u8-cmp'.
52876         * modules/unistr/u8-cmp-tests: New file.
52877         * tests/unistr/test-u8-cmp.c: New file.
52878         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
52880         Tests for module 'unistr/u32-set'.
52881         * modules/unistr/u32-set-tests: New file.
52882         * tests/unistr/test-u32-set.c: New file.
52884         Tests for module 'unistr/u16-set'.
52885         * modules/unistr/u16-set-tests: New file.
52886         * tests/unistr/test-u16-set.c: New file.
52888         Tests for module 'unistr/u8-set'.
52889         * modules/unistr/u8-set-tests: New file.
52890         * tests/unistr/test-u8-set.c: New file.
52891         * tests/unistr/test-set.h: New file.
52893         Tests for module 'unistr/u32-move'.
52894         * modules/unistr/u32-move-tests: New file.
52895         * tests/unistr/test-u32-move.c: New file.
52897         Tests for module 'unistr/u16-move'.
52898         * modules/unistr/u16-move-tests: New file.
52899         * tests/unistr/test-u16-move.c: New file.
52901         Tests for module 'unistr/u8-move'.
52902         * modules/unistr/u8-move-tests: New file.
52903         * tests/unistr/test-u8-move.c: New file.
52904         * tests/unistr/test-move.h: New file.
52906         Tests for module 'unistr/u32-cpy'.
52907         * modules/unistr/u32-cpy-tests: New file.
52908         * tests/unistr/test-u32-cpy.c: New file.
52910         Tests for module 'unistr/u16-cpy'.
52911         * modules/unistr/u16-cpy-tests: New file.
52912         * tests/unistr/test-u16-cpy.c: New file.
52914         Tests for module 'unistr/u8-cpy'.
52915         * modules/unistr/u8-cpy-tests: New file.
52916         * tests/unistr/test-u8-cpy.c: New file.
52917         * tests/unistr/test-cpy.h: New file.
52919 2010-01-09  Bruno Haible  <bruno@clisp.org>
52921         Tests for module 'unistr/u32-uctomb'.
52922         * modules/unistr/u32-uctomb-tests: New file.
52923         * tests/unistr/test-u32-uctomb.c: New file.
52925         Tests for module 'unistr/u16-uctomb'.
52926         * modules/unistr/u16-uctomb-tests: New file.
52927         * tests/unistr/test-u16-uctomb.c: New file.
52929         Tests for module 'unistr/u8-uctomb'.
52930         * modules/unistr/u8-uctomb-tests: New file.
52931         * tests/unistr/test-u8-uctomb.c: New file.
52933         Tests for module 'unistr/u32-mbtoucr'.
52934         * modules/unistr/u32-mbtoucr-tests: New file.
52935         * tests/unistr/test-u32-mbtoucr.c: New file.
52937         Tests for module 'unistr/u16-mbtoucr'.
52938         * modules/unistr/u16-mbtoucr-tests: New file.
52939         * tests/unistr/test-u16-mbtoucr.c: New file.
52941         Tests for module 'unistr/u8-mbtoucr'.
52942         * modules/unistr/u8-mbtoucr-tests: New file.
52943         * tests/unistr/test-u8-mbtoucr.c: New file.
52945         Tests for module 'unistr/u32-mbtouc'.
52946         * modules/unistr/u32-mbtouc-tests: New file.
52947         * tests/unistr/test-u32-mbtouc.c: New file.
52949         Tests for module 'unistr/u16-mbtouc'.
52950         * modules/unistr/u16-mbtouc-tests: New file.
52951         * tests/unistr/test-u16-mbtouc.c: New file.
52953         Tests for module 'unistr/u8-mbtouc'.
52954         * modules/unistr/u8-mbtouc-tests: New file.
52955         * tests/unistr/test-u8-mbtouc.c: New file.
52957         Tests for module 'unistr/u32-mbtouc-unsafe'.
52958         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
52959         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
52960         * tests/unistr/test-u32-mbtouc.h: New file.
52962         Tests for module 'unistr/u16-mbtouc-unsafe'.
52963         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
52964         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
52965         * tests/unistr/test-u16-mbtouc.h: New file.
52967         Tests for module 'unistr/u8-mbtouc-unsafe'.
52968         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
52969         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
52970         * tests/unistr/test-u8-mbtouc.h: New file.
52972         Tests for module 'unistr/u32-mblen'.
52973         * modules/unistr/u32-mblen-tests: New file.
52974         * tests/unistr/test-u32-mblen.c: New file.
52976         Tests for module 'unistr/u16-mblen'.
52977         * modules/unistr/u16-mblen-tests: New file.
52978         * tests/unistr/test-u16-mblen.c: New file.
52980         Tests for module 'unistr/u8-mblen'.
52981         * modules/unistr/u8-mblen-tests: New file.
52982         * tests/unistr/test-u8-mblen.c: New file.
52984         Tests for module 'unistr/u32-to-u16'.
52985         * modules/unistr/u32-to-u16-tests: New file.
52986         * tests/unistr/test-u32-to-u16.c: New file.
52988         Tests for module 'unistr/u32-to-u8'.
52989         * modules/unistr/u32-to-u8-tests: New file.
52990         * tests/unistr/test-u32-to-u8.c: New file.
52992         Tests for module 'unistr/u16-to-u32'.
52993         * modules/unistr/u16-to-u32-tests: New file.
52994         * tests/unistr/test-u16-to-u32.c: New file.
52996         Tests for module 'unistr/u16-to-u8'.
52997         * modules/unistr/u16-to-u8-tests: New file.
52998         * tests/unistr/test-u16-to-u8.c: New file.
53000         Tests for module 'unistr/u8-to-u32'.
53001         * modules/unistr/u8-to-u32-tests: New file.
53002         * tests/unistr/test-u8-to-u32.c: New file.
53004         Tests for module 'unistr/u8-to-u16'.
53005         * modules/unistr/u8-to-u16-tests: New file.
53006         * tests/unistr/test-u8-to-u16.c: New file.
53008         Tests for module 'unistr/u32-check'.
53009         * modules/unistr/u32-check-tests: New file.
53010         * tests/unistr/test-u32-check.c: New file.
53012         Tests for module 'unistr/u16-check'.
53013         * modules/unistr/u16-check-tests: New file.
53014         * tests/unistr/test-u16-check.c: New file.
53016         Tests for module 'unistr/u8-check'.
53017         * modules/unistr/u8-check-tests: New file.
53018         * tests/unistr/test-u8-check.c: New file.
53020         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
53021         (category_equals): New function.
53022         (main): Add more tests.
53023         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
53025         * tests/unictype/test-bidi_byname.c (main): Add more tests.
53027 2010-01-10  Bruno Haible  <bruno@clisp.org>
53029         unistr/u*-strcoll: Try harder to distinguish different strings.
53030         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
53031         compare s1 and s2 to see if they are different.
53033 2010-01-10  Bruno Haible  <bruno@clisp.org>
53035         unistr/u*-stpncpy: Fix the return value.
53036         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
53037         description of the return value consistent with stpncpy in glibc.
53038         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
53039         written non-NUL unit.
53041 2010-01-10  Bruno Haible  <bruno@clisp.org>
53043         unistr/u*-next: Add missing dependencies.
53044         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
53045         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
53046         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
53048 2010-01-10  Bruno Haible  <bruno@clisp.org>
53050         unistr/u8-mbsnlen: Fix return value for incomplete character.
53051         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
53052         u8_mblen.
53053         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
53054         Remove unistr/u8-mblen.
53055         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
53056         u16_mblen.
53057         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
53058         Remove unistr/u16-mblen.
53060 2010-01-10  Bruno Haible  <bruno@clisp.org>
53062         wchar: Fix compilation error when <wchar.h> is used from coreutils.
53063         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
53064         Reported by Brian Gough <bjg@gnu.org> and
53065         Chris Clayton <chris2553@googlemail.com> via
53066         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
53068 2010-01-09  Bruno Haible  <bruno@clisp.org>
53070         unistr/u16-to-u32: Reject invalid input.
53071         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
53072         u16_mbtouc.
53073         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
53074         Remove unistr/u16-mbtouc.
53076         unistr/u16-to-u8: Reject invalid input.
53077         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
53078         u16_mbtouc.
53079         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
53080         Remove unistr/u16-mbtouc.
53082         unistr/u8-to-u32: Reject invalid input.
53083         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
53084         u8_mbtouc.
53085         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
53086         Remove unistr/u8-mbtouc.
53088         unistr/u8-to-u16: Reject invalid input.
53089         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
53090         u8_mbtouc.
53091         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
53092         Remove unistr/u8-mbtouc.
53094 2010-01-09  Bruno Haible  <bruno@clisp.org>
53096         Tests for module 'getlogin'.
53097         * modules/getlogin-tests: New file.
53098         * tests/test-getlogin.c: New file.
53100         New module 'getlogin'.
53101         * lib/unistd.in.h (getlogin): New declaration.
53102         * lib/getlogin.c: New file.
53103         * m4/getlogin.m4: New file.
53104         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
53105         HAVE_GETLOGIN.
53106         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
53107         HAVE_GETLOGIN.
53108         * modules/getlogin: New file.
53109         * doc/posix-functions/getlogin.texi: Mention the new module.
53110         Reported by John W. Eaton <jwe@gnu.org>.
53112 2010-01-09  Bruno Haible  <bruno@clisp.org>
53114         getlogin_r: Support for native Windows.
53115         * lib/getlogin_r.c: Include <windows.h>
53116         (getlogin_r): Implement for native Windows.
53117         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
53118         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
53119         via John W. Eaton <jwe@gnu.org>.
53121 2010-01-09  Bruno Haible  <bruno@clisp.org>
53123         getlogin_r: Small fixes.
53124         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
53125         succeeds.
53126         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
53127         before testing whether getlogin_r is declared. No need to set
53128         HAVE_DECL_GETLOGIN_R to 1.
53129         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
53131 2010-01-09  Bruno Haible  <bruno@clisp.org>
53133         * lib/unistd.in.h (getlogin_r): Add comment.
53135 2010-01-09  Bruno Haible  <bruno@clisp.org>
53137         Tests for module 'getlogin_r'.
53138         * modules/getlogin_r-tests: New file.
53139         * tests/test-getlogin_r.c: New file.
53141 2010-01-09  Jim Meyering  <meyering@redhat.com>
53143         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
53144         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
53145         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
53147 2010-01-08  Simon Josefsson  <simon@josefsson.org>
53149         * lib/dup2.c (rpl_dup2): Improve comment.
53151 2010-01-08  Eric Blake  <ebb9@byu.net>
53153         maint.mk: allow packages to add makefile @@ exceptions
53154         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
53155         (sc_makefile_check): Rename...
53156         (sc_makefile_at_at_check): ...to this, and use hook.
53158         dup2: work around mingw bug
53159         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
53160         Reported by Simon Josefsson.
53162 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
53164         glob: Fix C++ compilation.
53165         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
53166         C++.
53168 2010-01-07  Bruno Haible  <bruno@clisp.org>
53170         Fix indentation of wctype.in.h, broken since 2007-01-06.
53171         * lib/wctype.in.h: Fix indentation of preprocessor directives.
53173 2010-01-07  Bruno Haible  <bruno@clisp.org>
53175         mbslen: Avoid collision with system function.
53176         * lib/string.in.h [MirBSD]: Include <wchar.h>.
53177         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
53178         * m4/mbslen.m4: New file.
53179         * modules/mbslen (Files): Add it.
53180         (configure.ac): Invoke gl_MBSLEN.
53181         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
53182         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
53183         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
53184         via Ian Beckwith <ianb@erislabs.net>.
53186 2010-01-07  Bruno Haible  <bruno@clisp.org>
53188         dirent: Document the last fix.
53189         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
53191 2010-01-07  Bruno Haible  <bruno@clisp.org>
53193         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
53194         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
53195         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
53196         va_list are defined.
53197         * doc/posix-headers/stdio.texi: Document the bug of missing types.
53198         Reported by Eric Blake.
53200 2010-01-07  Bruno Haible  <bruno@clisp.org>
53202         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
53203         * modules/xlist (Depends-on): Add 'list',
53204         * modules/xoset (Depends-on): Add 'oset'.
53205         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53207 2010-01-07  Bruno Haible  <bruno@clisp.org>
53209         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
53210         * doc/posix-functions/strncasecmp.texi: Likewise.
53212 2010-01-07  Bruno Haible  <bruno@clisp.org>
53214         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
53216 2010-01-07  John W. Eaton  <jwe@octave.org>
53218         wctype: allow C++ use
53219         * lib/wctype.in.h: Add extern "C" block for C++.
53221 2010-01-06  Eric Blake  <ebb9@byu.net>
53223         maint.mk: detect incorrect GFDL usage
53224         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
53226 2010-01-06  Jim Meyering  <meyering@redhat.com>
53227         and Eric Blake  <ebb9@byu.net>
53229         maint.mk: ignore multi-line copyright in NEWS
53230         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
53232 2010-01-06  Eric Blake  <ebb9@byu.net>
53234         select: add missing dependency
53235         * modules/select-tests (Depends-on): Move sockets dependency...
53236         * modules/select (Depends-on): ...here.
53237         Reported by Ian Beckwith.
53239         doc: regenerate INSTALL
53240         * doc/INSTALL: Reflect recent autoconf update.
53241         * doc/INSTALL.ISO: Likewise.
53242         * doc/INSTALL.UTF-8: Likewise.
53244         pread: fix compilation on glibc
53245         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
53246         Reported by Ralf Wildenhues.
53248         dirent: fix test failure
53249         * lib/dirent.in.h (includes): Guarantee ino_t.
53250         Reported by Ralf Wildenhues.
53252 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
53254         linkat, renameat: avoid bad free
53255         * lib/at-func2.c (at_func2): Fix typo.
53256         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
53258 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53260         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
53261         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
53262         to avoid failure of symlink test later.
53264 2010-01-06  Eric Blake  <ebb9@byu.net>
53266         stdio, unistd: guarantee ssize_t
53267         * lib/unistd.in.h (includes): Ensure that types required by POSIX
53268         2008 are exposed when needed.
53269         * lib/stdio.in.h (includes): Likewise.
53270         Reported by Ralf Wildenhues.
53272 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
53274         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
53275         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
53276         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
53278 2010-01-06  Jim Meyering  <meyering@redhat.com>
53280         readtokens: this module *does* require xalloc.h
53281         It uses only functions that were omitted by the old syntax-check rule.
53282         * lib/readtokens.c: Include "xalloc.h" once again.
53283         * modules/readtokens (Depends-on): Add xalloc.
53284         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
53286 2010-01-05  Eric Blake  <ebb9@byu.net>
53288         maint: support 'make announcement' from a VPATH build
53289         * top/maint.mk (announcement): Look for correct NEWS file.
53291 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
53293         utimens (fdutimens): ignore a negative FD, per contract
53294         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
53295         when we have a valid file descriptor.  Otherwise, using a brand
53296         new glibc (with just-patched futimens that now fails with EBADF)
53297         would cause this function to fail with ENOSYS.
53298         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
53299         See also http://bugzilla.redhat.com/552320.
53301 2010-01-05  Eric Blake  <ebb9@byu.net>
53303         strcase: document what it provides
53304         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
53305         gnulib module.
53306         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
53307         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
53309 2010-01-05  Jim Meyering  <meyering@redhat.com>
53311         maint: remove useless inclusions of "xalloc.h"
53312         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
53313         * lib/readtokens.c: Likewise.
53314         * lib/same.c: Likewise.
53315         * modules/getloadavg (Depends-on): Remove xalloc.
53316         * modules/readtokens: Likewise.
53317         * modules/same: Likewise.
53319         maint.mk: include 4 more function names in alloca.h-checking regexp
53320         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
53321         regexp.  Before, we would give a false-positive (saying alloca.h
53322         is included unnecessarily) when the only uses involved omitted symbols.
53324         xalloc.h: use consistent formatting
53325         * lib/xalloc.h: Move declarations to start in the first column.
53327 2010-01-05  Eric Blake  <ebb9@byu.net>
53329         mkdir: avoid xalloc
53330         * lib/mkdir.c (includes): Drop unused header.
53331         Reported by John W. Eaton.
53333 2010-01-04  Jim Meyering  <meyering@redhat.com>
53335         nl_langinfo: avoid configure-time syntax error
53336         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
53337         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
53338         the empty string.  Don't let that provoke a shell syntax error.
53340         regcomp, regexec, fnmatch: avoid array bounds read error
53341         * lib/regcomp.c (build_equiv_class): From glibc:
53342         Use only the low 24 bits of a findidx return value as an index
53343         into the weights array.  Patch by Ulrich Drepper:
53344         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
53345         * lib/regexec.c (check_node_accept_bytes): Likewise.
53346         * lib/fnmatch_loop.c (FCT): Likewise.
53348         regcomp: skip collseq lookup when there are no rules
53349         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
53350         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
53352         regcomp: recognize ill-formed { } expressions
53353         * lib/regcomp.c (parse_dup_op): From glibc:
53354         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
53356         regcomp: fix typo in comment
53357         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
53358         s/satisfy/satisfies/.
53360         regcomp: sync from glibc: remove dead store
53361         * lib/regcomp.c (duplicate_node_closure): Remove useless
53362         search_duplicated_node call and dead store.
53364         regcomp: sync from glibc; always use nl_langinfo
53365         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
53366         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
53367         * modules/regex (Depends-on): Add nl_langinfo.
53369 2010-01-04  Eric Blake  <ebb9@byu.net>
53371         fdopendir: fix configure test
53372         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
53374 2010-01-01  Bruno Haible  <bruno@clisp.org>
53376         wchar: Remove unused configure check.
53377         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
53379 2010-01-01  Eric Blake  <ebb9@byu.net>
53381         headers: make check of system header explicit
53382         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
53383         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
53384         ourselves.
53385         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
53386         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53387         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
53388         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
53389         internals.
53390         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
53391         missing.
53392         Suggested by Bruno Haible.
53394 2010-01-01  Jim Meyering  <meyering@redhat.com>
53396         ChangeLog: tweak to eliminate unnecessary copyright line
53397         * ChangeLog: Remove a copyright line that was mistakenly updated
53398         by today's update-copyright run.  Reported by Eric Blake.
53400         test-update-copyright: don't let envvar setting cause test failure
53401         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
53403 2010-01-01  Bruno Haible  <bruno@clisp.org>
53405         localename: Avoid gcc warning.
53406         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
53407         function if it is not used.
53409 2010-01-01  Jim Meyering  <meyering@redhat.com>
53411         update nearly all FSF copyright year lists to include 2010
53412         Use the same procedure as for 2009, outlined in
53413         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
53415         version-etc: set COPYRIGHT_YEAR to 2010
53416         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
53418 2009-12-31  Eric Blake  <ebb9@byu.net>
53420         doc: correct availability of cygwin 1.5.x getopt
53421         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
53422         variables.
53423         * doc/posix-functions/opterr.texi (opterr): Likewise.
53424         * doc/posix-functions/optind.texi (optind): Likewise.
53425         * doc/posix-functions/optopt.texi (optopt): Likewise.
53426         * doc/posix-functions/tzname.texi (tzname): Likewise.
53428         openat: update maintainer
53429         * modules/openat (Maintainer): Add myself.
53431         utimens: avoid shadowing warning
53432         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
53433         buffers into one, to avoid shadowing, as well as avoiding a
53434         redundant stat.
53435         Reported by Jim Meyering.
53437         test-dup2: avoid compiler warning
53438         * tests/test-dup2.c (is_inheritable): Only define if used.
53440 2010-01-01  Bruno Haible  <bruno@clisp.org>
53442         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
53443         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
53444         defined, use wctomb instead of wcrtomb.
53446 2010-01-01  Bruno Haible  <bruno@clisp.org>
53448         iconv: Reject native Solaris iconv.
53449         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
53450         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
53452 2009-12-31  Bruno Haible  <bruno@clisp.org>
53454         * tests/test-signal.c (main): Remove test of 'SIG'.
53456 2009-12-31  Bruno Haible  <bruno@clisp.org>
53458         spawn: Fix incomplete fix.
53459         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
53460         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
53461         warnings for GNULIB_POSIXCHECK again.
53462         Reported by Eric Blake.
53464 2009-12-31  Bruno Haible  <bruno@clisp.org>
53466         Avoid namespace pollution on glibc systems.
53467         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
53468         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
53469         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
53470         glibc systems.
53472 2009-12-31  Bruno Haible  <bruno@clisp.org>
53474         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
53475         (gl_REPLACE_WCHAR_H): Turn into a no-op.
53476         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
53477         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
53478         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
53479         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
53480         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
53482 2009-12-31  Bruno Haible  <bruno@clisp.org>
53484         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
53485         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
53486         afterwards.
53488 2009-12-31  Bruno Haible  <bruno@clisp.org>
53490         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
53491         SYS_UTSNAME_H.
53493 2009-12-31  Bruno Haible  <bruno@clisp.org>
53495         spawn: Fix misapplied patch.
53496         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
53497         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
53498         warnings for GNULIB_POSIXCHECK.
53500 2009-12-31  Bruno Haible  <bruno@clisp.org>
53502         times: Update after sys_times changed.
53503         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
53504         * modules/times (Files): Add it.
53505         (configure.ac): Invoke gl_FUNC_TIMES.
53507 2009-12-31  Bruno Haible  <bruno@clisp.org>
53509         Use AC_C_INLINE where necessary.
53510         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
53511         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53512         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
53513         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
53514         * m4/mbfile.m4 (gl_MBFILE): Likewise.
53515         * m4/mbiter.m4 (gl_MBITER): Likewise.
53516         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53517         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
53518         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
53519         * modules/u64 (configure.ac): Likewise.
53521 2009-12-31  Bruno Haible  <bruno@clisp.org>
53523         Use AC_C_INLINE instead of module 'inline' where possible.
53524         * modules/inline (Description): Clarify purpose.
53525         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
53526         * modules/count-one-bits (Depends-on): Remove inline.
53527         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
53528         * modules/openat (Depends-on): Remove inline.
53529         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
53530         instead of depending on module 'inline'.
53531         * modules/filevercmp (Depends-on, configure.ac): Likewise.
53532         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
53533         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
53534         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
53535         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
53536         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
53537         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
53538         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
53539         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
53540         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
53541         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
53542         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
53543         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
53544         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
53545         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
53546         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
53547         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
53548         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
53549         Likewise.
53550         * modules/unictype/property-ascii-hex-digit (Depends-on,
53551         configure.ac): Likewise.
53552         * modules/unictype/property-bidi-arabic-digit (Depends-on,
53553         configure.ac): Likewise.
53554         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
53555         configure.ac): Likewise.
53556         * modules/unictype/property-bidi-block-separator (Depends-on,
53557         configure.ac): Likewise.
53558         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
53559         configure.ac): Likewise.
53560         * modules/unictype/property-bidi-common-separator (Depends-on,
53561         configure.ac): Likewise.
53562         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
53563         Likewise.
53564         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
53565         configure.ac): Likewise.
53566         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
53567         configure.ac): Likewise.
53568         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
53569         configure.ac): Likewise.
53570         * modules/unictype/property-bidi-european-digit (Depends-on,
53571         configure.ac): Likewise.
53572         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
53573         configure.ac): Likewise.
53574         * modules/unictype/property-bidi-left-to-right (Depends-on,
53575         configure.ac): Likewise.
53576         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
53577         configure.ac): Likewise.
53578         * modules/unictype/property-bidi-other-neutral (Depends-on,
53579         configure.ac): Likewise.
53580         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
53581         Likewise.
53582         * modules/unictype/property-bidi-segment-separator (Depends-on,
53583         configure.ac): Likewise.
53584         * modules/unictype/property-bidi-whitespace (Depends-on,
53585         configure.ac): Likewise.
53586         * modules/unictype/property-combining (Depends-on, configure.ac):
53587         Likewise.
53588         * modules/unictype/property-composite (Depends-on, configure.ac):
53589         Likewise.
53590         * modules/unictype/property-currency-symbol (Depends-on,
53591         configure.ac): Likewise.
53592         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
53593         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
53594         Likewise.
53595         * modules/unictype/property-default-ignorable-code-point (Depends-on,
53596         configure.ac): Likewise.
53597         * modules/unictype/property-deprecated (Depends-on, configure.ac):
53598         Likewise.
53599         * modules/unictype/property-diacritic (Depends-on, configure.ac):
53600         Likewise.
53601         * modules/unictype/property-extender (Depends-on, configure.ac):
53602         Likewise.
53603         * modules/unictype/property-format-control (Depends-on, configure.ac):
53604         Likewise.
53605         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
53606         Likewise.
53607         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
53608         Likewise.
53609         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
53610         Likewise.
53611         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
53612         Likewise.
53613         * modules/unictype/property-hyphen (Depends-on, configure.ac):
53614         Likewise.
53615         * modules/unictype/property-id-continue (Depends-on, configure.ac):
53616         Likewise.
53617         * modules/unictype/property-id-start (Depends-on, configure.ac):
53618         Likewise.
53619         * modules/unictype/property-ideographic (Depends-on, configure.ac):
53620         Likewise.
53621         * modules/unictype/property-ids-binary-operator (Depends-on,
53622         configure.ac): Likewise.
53623         * modules/unictype/property-ids-trinary-operator (Depends-on,
53624         configure.ac): Likewise.
53625         * modules/unictype/property-ignorable-control (Depends-on,
53626         configure.ac): Likewise.
53627         * modules/unictype/property-iso-control (Depends-on, configure.ac):
53628         Likewise.
53629         * modules/unictype/property-join-control (Depends-on, configure.ac):
53630         Likewise.
53631         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
53632         Likewise.
53633         * modules/unictype/property-line-separator (Depends-on, configure.ac):
53634         Likewise.
53635         * modules/unictype/property-logical-order-exception (Depends-on,
53636         configure.ac): Likewise.
53637         * modules/unictype/property-lowercase (Depends-on, configure.ac):
53638         Likewise.
53639         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
53640         * modules/unictype/property-non-break (Depends-on, configure.ac):
53641         Likewise.
53642         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
53643         Likewise.
53644         * modules/unictype/property-numeric (Depends-on, configure.ac):
53645         Likewise.
53646         * modules/unictype/property-other-alphabetic (Depends-on,
53647         configure.ac): Likewise.
53648         * modules/unictype/property-other-default-ignorable-code-point
53649         (Depends-on, configure.ac): Likewise.
53650         * modules/unictype/property-other-grapheme-extend (Depends-on,
53651         configure.ac): Likewise.
53652         * modules/unictype/property-other-id-continue (Depends-on,
53653         configure.ac): Likewise.
53654         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
53655         Likewise.
53656         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
53657         Likewise.
53658         * modules/unictype/property-other-math (Depends-on, configure.ac):
53659         Likewise.
53660         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
53661         Likewise.
53662         * modules/unictype/property-paired-punctuation (Depends-on,
53663         configure.ac): Likewise.
53664         * modules/unictype/property-paragraph-separator (Depends-on,
53665         configure.ac): Likewise.
53666         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
53667         Likewise.
53668         * modules/unictype/property-pattern-white-space (Depends-on,
53669         configure.ac): Likewise.
53670         * modules/unictype/property-private-use (Depends-on, configure.ac):
53671         Likewise.
53672         * modules/unictype/property-punctuation (Depends-on, configure.ac):
53673         Likewise.
53674         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
53675         Likewise.
53676         * modules/unictype/property-radical (Depends-on, configure.ac):
53677         Likewise.
53678         * modules/unictype/property-sentence-terminal (Depends-on,
53679         configure.ac): Likewise.
53680         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
53681         Likewise.
53682         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
53683         * modules/unictype/property-terminal-punctuation (Depends-on,
53684         configure.ac): Likewise.
53685         * modules/unictype/property-titlecase (Depends-on, configure.ac):
53686         Likewise.
53687         * modules/unictype/property-unassigned-code-value (Depends-on,
53688         configure.ac): Likewise.
53689         * modules/unictype/property-unified-ideograph (Depends-on,
53690         configure.ac): Likewise.
53691         * modules/unictype/property-uppercase (Depends-on, configure.ac):
53692         Likewise.
53693         * modules/unictype/property-variation-selector (Depends-on,
53694         configure.ac): Likewise.
53695         * modules/unictype/property-white-space (Depends-on, configure.ac):
53696         Likewise.
53697         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
53698         Likewise.
53699         * modules/unictype/property-xid-start (Depends-on, configure.ac):
53700         Likewise.
53701         * modules/unictype/property-zero-width (Depends-on, configure.ac):
53702         Likewise.
53703         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
53704         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
53705         Likewise.
53707 2009-12-31  Bruno Haible  <bruno@clisp.org>
53709         Remove unnecessary AC_C_INLINE invocation.
53710         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
53711         since 2009-08-21.
53713 2009-12-31  Jim Meyering  <meyering@redhat.com>
53715         maint.mk: don't require explicit gpg_key_ID in cfg.mk
53716         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
53717         With this change, we can all remove the gpg_key_ID = ... definition
53718         from our respective cfg.mk files.
53720         maint.mk: create announcement template in ~/, not in /tmp
53721         * top/maint.mk (emit_upload_commands): Adjust.
53722         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
53723         Remove temporary file, .ci-msg.
53725 2009-12-31  Eric Blake  <ebb9@byu.net>
53727         link-warning: always build headers with link warnings
53728         * modules/arpa_inet (Makefile.am): Always build replacement
53729         header.
53730         * modules/ctype (Makefile.am): Likewise.
53731         * modules/dirent (Makefile.am): Likewise.
53732         * modules/inttypes (Makefile.am): Likewise.
53733         * modules/langinfo (Makefile.am): Likewise.
53734         * modules/locale (Makefile.am): Likewise.
53735         * modules/spawn (Makefile.am): Likewise.
53736         * modules/sys_file (Makefile.am): Likewise.
53737         * modules/sys_ioctl (Makefile.am): Likewise.
53738         * modules/sys_select (Makefile.am): Likewise.
53739         * modules/sys_socket (Makefile.am): Likewise.
53740         * modules/sys_times (Makefile.am): Likewise.
53741         * modules/sys_utsname (Makefile.am): Likewise.
53742         * modules/sys_wait (Makefile.am): Likewise.
53743         * modules/wchar (Makefile.am): Likewise.
53744         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
53745         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
53746         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
53747         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
53748         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
53749         Likewise.
53750         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
53751         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
53752         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
53753         Likewise.
53754         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
53755         Likewise.
53756         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
53757         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
53758         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
53759         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53760         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
53761         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
53762         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
53763         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
53764         (gl_WCHAR_H_DEFAULTS): Likewise.
53766 2009-12-31  Eric Blake  <ebb9@byu.net>
53768         signal, spawn: use link warnings
53769         * lib/signal.in.h (sigset_t): Make unconditional.
53770         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
53771         (sigpending, sigprocmask, sigaction): Add link warnings.
53772         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
53773         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
53774         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
53775         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
53776         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
53777         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
53778         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
53779         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
53780         (posix_spawn_file_actions_destroy)
53781         (posix_spawn_file_actions_addopen)
53782         (posix_spawn_file_actions_addclose)
53783         (posix_spawn_file_actions_adddup2): Likewise.
53784         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
53785         * tests/test-signal.c (main): Enhance test.
53787         spawn: improve wrapper support
53788         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
53789         (gl_SPAWN_H_DEFAULTS): New defaults.
53790         * modules/spawn (Makefile.am): Substitute them.
53791         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
53792         Only declare if missing or broken.
53794         sys_times, sys_utsname: use include_next
53795         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
53796         header.
53797         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
53798         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
53799         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
53800         * modules/sys_times (Depends-on): Add include_next.
53801         (Makefile.am): Substitute additional values.
53802         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
53803         * lib/sys_times.in.h (includes): Include native header, if
53804         available.
53805         * lib/sys_utsname.in.h (includes): Likewise.
53806         * tests/test-sys_times.c (main): Enhance test.
53808         fdutimensat: revert prior patch
53809         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
53810         utimens.h.
53811         Reported by Bruno Haible.
53813 2009-12-30  Eric Blake  <ebb9@byu.net>
53815         sys_wait: drop link-warning dependency
53816         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
53817         link-warning efforts.
53818         * lib/sys_wait.in.h: Likewise.
53820         fdutimensat: remove bogus dependency
53821         * modules/fdutimensat (Depends-on): Drop inline.
53823         unistd: fix typo
53824         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
53826 2009-12-30  Bruno Haible  <bruno@clisp.org>
53828         Fix compilation error with Solaris cc.
53829         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
53830         * lib/unicase/u16-is-invariant.c: Likewise.
53831         * lib/unicase/u32-is-invariant.c: Likewise.
53832         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
53834 2009-12-30  Bruno Haible  <bruno@clisp.org>
53836         Fix test crash.
53837         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
53838         locales.
53839         Reported by Simon Josefsson <simon@josefsson.org>.
53841 2009-12-30  Bruno Haible  <bruno@clisp.org>
53843         Fix compilation error on most platforms.
53844         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
53845         Reported by Simon Josefsson <simon@josefsson.org>
53846         and Nelson H. F. Beebe <beebe@math.utah.edu>.
53848 2009-12-30  Eric Blake  <ebb9@byu.net>
53850         futimens, utimensat: work around ntfs-3g bug
53851         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
53852         a ctime bug is present, and expand workaround to cover ntfs-3g.
53853         * lib/utimens.c (fdutimens, lutimens): Likewise.
53854         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
53855         (validate_timespec): Adjust return value.
53856         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
53857         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
53858         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
53860 2009-12-29  Eric Blake  <ebb9@byu.net>
53862         link-warning: make usage consistent
53863         * modules/ctype (Depends-on): Add link-warning.
53864         (Makefile.am): Update rules accordingly.
53865         * modules/langinfo (Depends-on, Makefile.am): Likewise.
53866         * modules/locale (Depends-on, Makefile.am): Likewise.
53867         * modules/sys_file (Makefile.am): Likewise.
53868         * modules/getopt-posix (Makefile.am): Delete unused link warning
53869         efforts.
53870         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
53871         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
53872         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
53873         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
53875         stdio: remove unused variables
53876         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
53877         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
53878         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
53880         tests: test more substitute headers
53881         * modules/ctype-tests: New file.
53882         * modules/dirent-tests: Likewise.
53883         * modules/spawn-tests: Likewise.
53884         * modules/sys_file-tests: Likewise.
53885         * modules/sys_ioctl-tests: Likewise.
53886         * modules/sys_wait-tests: Likewise.
53887         * tests/test-ctype.c: Likewise.
53888         * tests/test-dirent.c: Likewise.
53889         * tests/test-spawn.c: Likewise.
53890         * tests/test-sys_file.c: Likewise.
53891         * tests/test-sys_ioctl.c: Likewise.
53892         * tests/test-sys_wait.c: Likewise.
53893         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
53894         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
53895         whether or not flock is in use.
53897         tests: remove License section from module
53898         * modules/arpa_inet-tests: Remove unneeded section.
53899         * modules/byteswap-tests: Likewise.
53900         * modules/ceilf-tests: Likewise.
53901         * modules/ceill-tests: Likewise.
53902         * modules/crypto/des-tests: Likewise.
53903         * modules/crypto/gc-arcfour-tests: Likewise.
53904         * modules/crypto/gc-arctwo-tests: Likewise.
53905         * modules/crypto/gc-des-tests: Likewise.
53906         * modules/crypto/gc-hmac-md5-tests: Likewise.
53907         * modules/crypto/gc-hmac-sha1-tests: Likewise.
53908         * modules/crypto/gc-md2-tests: Likewise.
53909         * modules/crypto/gc-md4-tests: Likewise.
53910         * modules/crypto/gc-md5-tests: Likewise.
53911         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
53912         * modules/crypto/gc-rijndael-tests: Likewise.
53913         * modules/crypto/gc-sha1-tests: Likewise.
53914         * modules/crypto/gc-tests: Likewise.
53915         * modules/crypto/md2-tests: Likewise.
53916         * modules/crypto/md4-tests: Likewise.
53917         * modules/fcntl-h-tests: Likewise.
53918         * modules/floorf-tests: Likewise.
53919         * modules/floorl-tests: Likewise.
53920         * modules/frexp-nolibm-tests: Likewise.
53921         * modules/frexp-tests: Likewise.
53922         * modules/frexpl-nolibm-tests: Likewise.
53923         * modules/frexpl-tests: Likewise.
53924         * modules/getaddrinfo-tests: Likewise.
53925         * modules/inttypes-tests: Likewise.
53926         * modules/isfinite-tests: Likewise.
53927         * modules/isinf-tests: Likewise.
53928         * modules/ldexpl-tests: Likewise.
53929         * modules/locale-tests: Likewise.
53930         * modules/math-tests: Likewise.
53931         * modules/netdb-tests: Likewise.
53932         * modules/netinet_in-tests: Likewise.
53933         * modules/printf-frexp-tests: Likewise.
53934         * modules/printf-frexpl-tests: Likewise.
53935         * modules/priv-set-tests: Likewise.
53936         * modules/random_r-tests: Likewise.
53937         * modules/round-tests: Likewise.
53938         * modules/roundf-tests: Likewise.
53939         * modules/roundl-tests: Likewise.
53940         * modules/search-tests: Likewise.
53941         * modules/select-tests: Likewise.
53942         * modules/signal-tests: Likewise.
53943         * modules/stdbool-tests: Likewise.
53944         * modules/stddef-tests: Likewise.
53945         * modules/stdint-tests: Likewise.
53946         * modules/stdio-tests: Likewise.
53947         * modules/stdlib-tests: Likewise.
53948         * modules/string-tests: Likewise.
53949         * modules/strings-tests: Likewise.
53950         * modules/sys_select-tests: Likewise.
53951         * modules/sys_socket-tests: Likewise.
53952         * modules/sys_stat-tests: Likewise.
53953         * modules/sys_time-tests: Likewise.
53954         * modules/sys_utsname-tests: Likewise.
53955         * modules/sysexits-tests: Likewise.
53956         * modules/time-tests: Likewise.
53957         * modules/trunc-tests: Likewise.
53958         * modules/truncf-tests: Likewise.
53959         * modules/truncl-tests: Likewise.
53960         * modules/tsearch-tests: Likewise.
53961         * modules/unistd-tests: Likewise.
53962         * modules/wchar-tests: Likewise.
53963         * modules/wctype-tests: Likewise.
53965         tests: fix license on several tests
53966         * tests/test-des.c: Update to GPLv3+.
53967         * tests/test-flock.c: Likewise.
53968         * tests/test-fsync.c: Likewise.
53969         * tests/test-futimens.h: Likewise.
53970         * tests/test-gc-arcfour.c: Likewise.
53971         * tests/test-gc-arctwo.c: Likewise.
53972         * tests/test-gc-des.c: Likewise.
53973         * tests/test-gc-hmac-md5.c: Likewise.
53974         * tests/test-gc-hmac-sha1.c: Likewise.
53975         * tests/test-gc-md2.c: Likewise.
53976         * tests/test-gc-md4.c: Likewise.
53977         * tests/test-gc-md5.c: Likewise.
53978         * tests/test-gc-pbkdf2-sha1.c: Likewise.
53979         * tests/test-gc-rijndael.c: Likewise.
53980         * tests/test-gc-sha1.c: Likewise.
53981         * tests/test-gc.c: Likewise.
53982         * tests/test-getcwd.c: Likewise.
53983         * tests/test-link.c: Likewise.
53984         * tests/test-link.h: Likewise.
53985         * tests/test-lutimens.h: Likewise.
53986         * tests/test-md2.c: Likewise.
53987         * tests/test-md4.c: Likewise.
53988         * tests/test-mkdir.h: Likewise.
53989         * tests/test-rename.c: Likewise.
53990         * tests/test-rename.h: Likewise.
53991         * tests/test-safe-alloc.c: Likewise.
53992         * tests/test-utimens-common.h: Likewise.
53993         * tests/test-utimens.h: Likewise.
53995         maint: sync license texts
53996         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
53997         * doc/gpl-3.0.texi: Revert copyright year update.
53998         * doc/lgpl-3.0.texi: Likewise.
54000 2009-12-29  Jim Meyering  <meyering@redhat.com>
54002         update nearly all FSF copyright year lists to include 2009
54003         The files named by the following are exempted:
54004             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
54005               test -f "$dst" && { echo "$dst"; continue; }
54006               test -d "$dst" || continue
54007               echo "$dst"/$(basename "$src")
54008             done > exempt
54009             git ls-files tests/unictype >> exempt
54010         In the remaining files, convert to all-interval notation if
54011         - there is already at least one year interval like 2000-2003
54012         - the file is maintained by me
54013         - the file is in lib/uni*/, where that style already prevails
54014         Otherwise, use update-copyright's default.
54016 2009-12-29  Simon Josefsson  <simon@josefsson.org>
54017         and Eric Blake  <ebb9@byu.net>
54019         tests: don't require debug system() to pass
54020         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
54021         * tests/test-rmdir.h (test_rmdir_func): Likewise.
54022         * tests/test-unlink.h (test_unlink_func): Likewise.
54023         * tests/test-fstatat.c (main): ...into callers.
54024         * tests/test-lstat.c (main): Likewise.
54025         * tests/test-rmdir.c (main): Likewise.
54026         * tests/test-unlink.c (main): Likewise.
54027         * tests/test-unlinkat.c (main): Likewise.
54028         * tests/test-areadlink-with-size.c (main): Don't require a
54029         debug-only system call to pass, aiding cross-testing to mingw.
54030         * tests/test-areadlink.c (main): Likewise.
54031         * tests/test-areadlinkat-with-size.c (main): Likewise.
54032         * tests/test-areadlinkat.c (main): Likewise.
54033         * tests/test-canonicalize-lgpl.c (main): Likewise.
54034         * tests/test-canonicalize.c (main): Likewise.
54035         * tests/test-chown.c (main): Likewise.
54036         * tests/test-fchownat.c (main): Likewise.
54037         * tests/test-lchown.c (main): Likewise.
54038         * tests/test-fdutimensat.c (main): Likewise.
54039         * tests/test-futimens.c (main): Likewise.
54040         * tests/test-link.c (main): Likewise.
54041         * tests/test-linkat.c (main): Likewise.
54042         * tests/test-mkdir.c (main): Likewise.
54043         * tests/test-mkdirat.c (main): Likewise.
54044         * tests/test-mkfifo.c (main): Likewise.
54045         * tests/test-mkfifoat.c (main): Likewise.
54046         * tests/test-mknod.c (main): Likewise.
54047         * tests/test-readlink.c (main): Likewise.
54048         * tests/test-remove.c (main): Likewise.
54049         * tests/test-rename.c (main): Likewise.
54050         * tests/test-renameat.c (main): Likewise.
54051         * tests/test-symlink.c (main): Likewise.
54052         * tests/test-symlinkat.c (main): Likewise.
54053         * tests/test-utimens.c (main): Likewise.
54054         * tests/test-utimensat.c (main): Likewise.
54056 2009-12-29  Simon Josefsson  <simon@josefsson.org>
54058         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
54059         on $(UNUSED_PARAMETER_H) to avoid build failure.
54061 2009-12-28  Jim Meyering  <meyering@redhat.com>
54063         update-copyright: you may specify a max. line length other than 72
54064         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
54066         maint: use consistent FSF copyright line syntax
54067         * lib/posixtm.c: Add missing comma in FSF copyright line.
54068         * lib/posixtm.h: Likewise.
54069         * lib/getugroups.c: Add missing ", Inc.".
54071         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
54072         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
54073         FSF copyright line.  Remove trailing blanks.
54075 2009-12-28  Eric Blake  <ebb9@byu.net>
54077         test-dup2: reduce dependencies
54078         * modules/cloexec (Configure.ac): Set witness.
54079         * modules/dup2-tests (Depends-on): Drop cloexec.
54080         * tests/test-dup2.c (main): Skip portion of test if cloexec module
54081         not present.
54082         Suggested by Bruno Haible.
54084 2009-12-26  Bruno Haible  <bruno@clisp.org>
54086         Remove an unneeded dependency.
54087         * modules/fseterr (Depends-on): Remove dup2.
54089 2009-12-26  Eric Blake  <ebb9@byu.net>
54091         tests: use macros.h in more places
54092         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
54093         (ASSERT_STREAM): Provide default of stderr.
54094         * tests/test-dirent-safer.c: Include macros.h, using alternate
54095         stream for assertions.
54096         * tests/test-dup-safer.c: Likewise.
54097         * tests/test-freopen-safer.c: Likewise.
54098         * tests/test-getopt.c: Likewise.
54099         * tests/test-openat-safer.c: Likewise.
54100         * tests/test-pipe.c: Likewise.
54101         * tests/test-popen-safer.c: Likewise.
54102         * modules/dirent-safer-tests (Files): Include macros.h.
54103         * modules/unistd-safer-tests (Files): Likewise.
54104         * modules/freopen-safer-tests (Files): Likewise.
54105         * modules/getopt-posix-tests (Files): Likewise.
54106         * modules/openat-safer-tests (Files): Likewise.
54107         * modules/pipe-tests (Files): Likewise.
54109 2009-12-26  Bruno Haible  <bruno@clisp.org>
54111         javacomp: Portability fix.
54112         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
54113         that it also works on Solaris.
54115 2009-12-26  Bruno Haible  <bruno@clisp.org>
54117         localename: Fix storage allocation of gl_locale_name_thread's result.
54118         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
54119         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
54120         all platforms that have 'uselocale'.
54121         (gl_locale_name_thread_unsafe): New function, extracted from
54122         gl_locale_name_thread.
54123         (gl_locale_name_thread): Call struniq on all platforms that have
54124         'uselocale'.
54125         * tests/test-localename.c (test_locale_name_thread): Check that the
54126         resulting strings are permanently allocated.
54127         * modules/localename-tests (Depends-on): Add strdup.
54129 2009-12-26  Bruno Haible  <bruno@clisp.org>
54131         * tests/test-localename.c (categories): Fill in the strings.
54133 2009-12-26  Jim Meyering  <meyering@redhat.com>
54135         isdir: complete the removal of m4/isdir.m4
54136         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
54138         isdir: clean up, since at least grep still uses it
54139         * lib/isdir.c: Include "isdir.h".
54140         (S_ISDIR): Remove now-unneeded definition.
54141         * modules/isdir (Files): Add lib/isdir.h.
54142         * lib/isdir.h: New file, with declaration.
54143         * m4/isdir.m4: Remove file -- unneeded.
54145 2009-12-25  Bruno Haible  <bruno@clisp.org>
54147         selinux-h: Make generated .h files standalone.
54148         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
54149         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
54150         * lib/se-selinux.in.h: Likewise.
54151         * modules/selinux-h (Depends-on): Add unused-parameter.
54152         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
54153         selinux/selinux.h and selinux/context.h.
54154         Suggested by Eric Blake.
54156 2009-12-25  Bruno Haible  <bruno@clisp.org>
54158         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
54159         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
54160         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
54161         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
54162         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
54164 2009-12-24  Bruno Haible  <bruno@clisp.org>
54166         openat: Fix warning.
54167         * lib/openat-proc.c: Include <unistd.h>.
54169 2009-12-24  Bruno Haible  <bruno@clisp.org>
54171         New module 'unused-parameter'.
54172         * build-aux/unused-parameter.h: New file, extracted from earlier
54173         gnulib-common.m4.
54174         * modules/unused-parameter: New file.
54175         * lib/unistr.h: Include unused-parameter.h.
54176         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
54177         _GL_UNUSED.
54178         * modules/unistr/base (Depends-on): Add unused-parameter.
54180 2009-12-24  Bruno Haible  <bruno@clisp.org>
54182         Add missing dependencies to 'extensions' module.
54183         * m4/extensions.m4: Add comment.
54184         * modules/accept4 (Depends-on): Add extensions.
54185         * modules/dup3 (Depends-on): Likewise.
54186         * modules/fcntl (Depends-on): Likewise.
54187         * modules/futimens (Depends-on): Likewise.
54188         * modules/mknod (Depends-on): Likewise.
54189         * modules/pipe2 (Depends-on): Likewise.
54190         * modules/stat-time (Depends-on): Likewise.
54191         * modules/strcasestr-simple (Depends-on): Likewise.
54192         * modules/strsignal (Depends-on): Likewise.
54193         * modules/utimensat (Depends-on): Likewise.
54194         * modules/localcharset (Depends-on): Likewise. Needed because of
54195         gl_FCNTL_O_FLAGS.
54196         * modules/wcrtomb (Depends-on): Likewise. Needed because of
54197         AC_TYPE_MBSTATE_T.
54198         * modules/wcsnrtombs (Depends-on): Likewise.
54199         * modules/wcsrtombs (Depends-on): Likewise.
54201 2009-12-24  Bruno Haible  <bruno@clisp.org>
54203         binary-io: Avoid gcc warning due to SET_BINARY.
54204         * lib/binary-io.h (SET_BINARY): Cast the result to void.
54205         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
54207 2009-12-24  Bruno Haible  <bruno@clisp.org>
54209         Avoid future namespace pollution on glibc systems.
54210         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
54211         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
54212         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
54213         glibc systems.
54215 2009-12-24  Bruno Haible  <bruno@clisp.org>
54217         Refactor common macros used in tests.
54218         * tests/macros.h: New file.
54219         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
54220         and/or <stdlib.h>, if appropriate.
54221         (ASSERT, SIZEOF): Remove macros.
54222         * tests/test-areadlink-with-size.c: Likewise.
54223         * tests/test-areadlinkat.c: Likewise.
54224         * tests/test-areadlinkat-with-size.c: Likewise.
54225         * tests/test-argmatch.c: Likewise.
54226         * tests/test-argv-iter.c: Likewise.
54227         * tests/test-array-mergesort.c: Likewise.
54228         * tests/test-array_list.c: Likewise.
54229         * tests/test-array_oset.c: Likewise.
54230         * tests/test-avltree_list.c: Likewise.
54231         * tests/test-avltree_oset.c: Likewise.
54232         * tests/test-avltreehash_list.c: Likewise.
54233         * tests/test-base64.c: Likewise.
54234         * tests/test-binary-io.c: Likewise.
54235         * tests/test-bitrotate.c: Likewise.
54236         * tests/test-btowc.c: Likewise.
54237         * tests/test-byteswap.c: Likewise.
54238         * tests/test-c-ctype.c: Likewise.
54239         * tests/test-c-stack.c: Likewise.
54240         * tests/test-c-strcasecmp.c: Likewise.
54241         * tests/test-c-strcasestr.c: Likewise.
54242         * tests/test-c-strncasecmp.c: Likewise.
54243         * tests/test-c-strstr.c: Likewise.
54244         * tests/test-canonicalize-lgpl.c: Likewise.
54245         * tests/test-canonicalize.c: Likewise.
54246         * tests/test-carray_list.c: Likewise.
54247         * tests/test-ceilf1.c: Likewise.
54248         * tests/test-ceilf2.c: Likewise.
54249         * tests/test-ceill.c: Likewise.
54250         * tests/test-chown.c: Likewise.
54251         * tests/test-cloexec.c: Likewise.
54252         * tests/test-copy-acl.c: Likewise.
54253         * tests/test-copy-file.c: Likewise.
54254         * tests/test-count-one-bits.c: Likewise.
54255         * tests/test-dprintf-posix.c: Likewise.
54256         * tests/test-dup2.c: Likewise.
54257         * tests/test-dup3.c: Likewise.
54258         * tests/test-duplocale.c: Likewise.
54259         * tests/test-fbufmode.c: Likewise.
54260         * tests/test-fchdir.c: Likewise.
54261         * tests/test-fchownat.c: Likewise.
54262         * tests/test-fcntl-safer.c: Likewise.
54263         * tests/test-fcntl.c: Likewise.
54264         * tests/test-fdopendir.c: Likewise.
54265         * tests/test-fdutimensat.c: Likewise.
54266         * tests/test-fflush2.c: Likewise.
54267         * tests/test-file-has-acl.c: Likewise.
54268         * tests/test-filevercmp.c: Likewise.
54269         * tests/test-flock.c: Likewise.
54270         * tests/test-floorf1.c: Likewise.
54271         * tests/test-floorf2.c: Likewise.
54272         * tests/test-floorl.c: Likewise.
54273         * tests/test-fnmatch.c: Likewise.
54274         * tests/test-fopen.h: Likewise.
54275         * tests/test-fpending.c: Likewise.
54276         * tests/test-fprintf-posix.c: Likewise.
54277         * tests/test-fpurge.c: Likewise.
54278         * tests/test-freadable.c: Likewise.
54279         * tests/test-freadahead.c: Likewise.
54280         * tests/test-freading.c: Likewise.
54281         * tests/test-freadptr.c: Likewise.
54282         * tests/test-freadptr2.c: Likewise.
54283         * tests/test-freadseek.c: Likewise.
54284         * tests/test-freopen.c: Likewise.
54285         * tests/test-frexp.c: Likewise.
54286         * tests/test-frexpl.c: Likewise.
54287         * tests/test-fseek.c: Likewise.
54288         * tests/test-fseeko.c: Likewise.
54289         * tests/test-fstatat.c: Likewise.
54290         * tests/test-fstrcmp.c: Likewise.
54291         * tests/test-fsync.c: Likewise.
54292         * tests/test-ftell.c: Likewise.
54293         * tests/test-ftello.c: Likewise.
54294         * tests/test-func.c: Likewise.
54295         * tests/test-futimens.c: Likewise.
54296         * tests/test-fwritable.c: Likewise.
54297         * tests/test-fwriting.c: Likewise.
54298         * tests/test-getcwd.c: Likewise.
54299         * tests/test-getdate.c: Likewise.
54300         * tests/test-getdelim.c: Likewise.
54301         * tests/test-getdtablesize.c: Likewise.
54302         * tests/test-getgroups.c: Likewise.
54303         * tests/test-getline.c: Likewise.
54304         * tests/test-getndelim2.c: Likewise.
54305         * tests/test-glob.c: Likewise.
54306         * tests/test-hash.c: Likewise.
54307         * tests/test-i-ring.c: Likewise.
54308         * tests/test-iconv-utf.c: Likewise.
54309         * tests/test-iconv.c: Likewise.
54310         * tests/test-idpriv-drop.c: Likewise.
54311         * tests/test-idpriv-droptemp.c: Likewise.
54312         * tests/test-inet_ntop.c: Likewise.
54313         * tests/test-inet_pton.c: Likewise.
54314         * tests/test-isblank.c: Likewise.
54315         * tests/test-isfinite.c: Likewise.
54316         * tests/test-isinf.c: Likewise.
54317         * tests/test-isnan.c: Likewise.
54318         * tests/test-isnand.h: Likewise.
54319         * tests/test-isnanf.h: Likewise.
54320         * tests/test-isnanl.h: Likewise.
54321         * tests/test-lchown.c: Likewise.
54322         * tests/test-ldexpl.c: Likewise.
54323         * tests/test-link.c: Likewise.
54324         * tests/test-linkat.c: Likewise.
54325         * tests/test-linked_list.c: Likewise.
54326         * tests/test-linkedhash_list.c: Likewise.
54327         * tests/test-localename.c: Likewise.
54328         * tests/test-lseek.c: Likewise.
54329         * tests/test-lstat.c: Likewise.
54330         * tests/test-mbmemcasecmp.c: Likewise.
54331         * tests/test-mbmemcasecoll.c: Likewise.
54332         * tests/test-mbrtowc.c: Likewise.
54333         * tests/test-mbscasecmp.c: Likewise.
54334         * tests/test-mbscasestr1.c: Likewise.
54335         * tests/test-mbscasestr2.c: Likewise.
54336         * tests/test-mbscasestr3.c: Likewise.
54337         * tests/test-mbscasestr4.c: Likewise.
54338         * tests/test-mbschr.c: Likewise.
54339         * tests/test-mbscspn.c: Likewise.
54340         * tests/test-mbsinit.c: Likewise.
54341         * tests/test-mbsncasecmp.c: Likewise.
54342         * tests/test-mbsnrtowcs.c: Likewise.
54343         * tests/test-mbspbrk.c: Likewise.
54344         * tests/test-mbspcasecmp.c: Likewise.
54345         * tests/test-mbsrchr.c: Likewise.
54346         * tests/test-mbsrtowcs.c: Likewise.
54347         * tests/test-mbsspn.c: Likewise.
54348         * tests/test-mbsstr1.c: Likewise.
54349         * tests/test-mbsstr2.c: Likewise.
54350         * tests/test-mbsstr3.c: Likewise.
54351         * tests/test-memchr.c: Likewise.
54352         * tests/test-memchr2.c: Likewise.
54353         * tests/test-memcmp.c: Likewise.
54354         * tests/test-memmem.c: Likewise.
54355         * tests/test-memrchr.c: Likewise.
54356         * tests/test-mkdir.c: Likewise.
54357         * tests/test-mkdirat.c: Likewise.
54358         * tests/test-mkfifo.c: Likewise.
54359         * tests/test-mkfifoat.c: Likewise.
54360         * tests/test-mknod.c: Likewise.
54361         * tests/test-nanosleep.c: Likewise.
54362         * tests/test-nl_langinfo.c: Likewise.
54363         * tests/test-obstack-printf.c: Likewise.
54364         * tests/test-open.c: Likewise.
54365         * tests/test-openat.c: Likewise.
54366         * tests/test-pipe-filter-gi1.c: Likewise.
54367         * tests/test-pipe-filter-gi2-main.c: Likewise.
54368         * tests/test-pipe-filter-ii1.c: Likewise.
54369         * tests/test-pipe-filter-ii2-main.c: Likewise.
54370         * tests/test-pipe2.c: Likewise.
54371         * tests/test-popen.h: Likewise.
54372         * tests/test-posixtm.c: Likewise.
54373         * tests/test-pread.c: Likewise.
54374         * tests/test-printf-frexp.c: Likewise.
54375         * tests/test-printf-frexpl.c: Likewise.
54376         * tests/test-printf-posix.c: Likewise.
54377         * tests/test-priv-set.c: Likewise.
54378         * tests/test-quotearg.c: Likewise.
54379         * tests/test-random_r.c: Likewise.
54380         * tests/test-rawmemchr.c: Likewise.
54381         * tests/test-rbtree_list.c: Likewise.
54382         * tests/test-rbtree_oset.c: Likewise.
54383         * tests/test-rbtreehash_list.c: Likewise.
54384         * tests/test-readlink.c: Likewise.
54385         * tests/test-remove.c: Likewise.
54386         * tests/test-rename.c: Likewise.
54387         * tests/test-renameat.c: Likewise.
54388         * tests/test-rmdir.c: Likewise.
54389         * tests/test-round1.c: Likewise.
54390         * tests/test-roundf1.c: Likewise.
54391         * tests/test-roundl.c: Likewise.
54392         * tests/test-safe-alloc.c: Likewise.
54393         * tests/test-sameacls.c: Likewise.
54394         * tests/test-set-mode-acl.c: Likewise.
54395         * tests/test-setenv.c: Likewise.
54396         * tests/test-sigaction.c: Likewise.
54397         * tests/test-signbit.c: Likewise.
54398         * tests/test-sleep.c: Likewise.
54399         * tests/test-snprintf-posix.c: Likewise.
54400         * tests/test-snprintf.c: Likewise.
54401         * tests/test-sprintf-posix.c: Likewise.
54402         * tests/test-stat-time.c: Likewise.
54403         * tests/test-stat.c: Likewise.
54404         * tests/test-strcasestr.c: Likewise.
54405         * tests/test-strchrnul.c: Likewise.
54406         * tests/test-strerror.c: Likewise.
54407         * tests/test-striconv.c: Likewise.
54408         * tests/test-striconveh.c: Likewise.
54409         * tests/test-striconveha.c: Likewise.
54410         * tests/test-strsignal.c: Likewise.
54411         * tests/test-strstr.c: Likewise.
54412         * tests/test-strtod.c: Likewise.
54413         * tests/test-strverscmp.c: Likewise.
54414         * tests/test-symlink.c: Likewise.
54415         * tests/test-symlinkat.c: Likewise.
54416         * tests/test-trunc1.c: Likewise.
54417         * tests/test-trunc2.c: Likewise.
54418         * tests/test-truncf1.c: Likewise.
54419         * tests/test-truncf2.c: Likewise.
54420         * tests/test-truncl.c: Likewise.
54421         * tests/test-uname.c: Likewise.
54422         * tests/test-unlink.c: Likewise.
54423         * tests/test-unlinkat.c: Likewise.
54424         * tests/test-unsetenv.c: Likewise.
54425         * tests/test-usleep.c: Likewise.
54426         * tests/test-utimens.c: Likewise.
54427         * tests/test-utimensat.c: Likewise.
54428         * tests/test-vasnprintf-posix.c: Likewise.
54429         * tests/test-vasnprintf-posix2.c: Likewise.
54430         * tests/test-vasnprintf.c: Likewise.
54431         * tests/test-vasprintf-posix.c: Likewise.
54432         * tests/test-vasprintf.c: Likewise.
54433         * tests/test-vdprintf-posix.c: Likewise.
54434         * tests/test-vfprintf-posix.c: Likewise.
54435         * tests/test-vprintf-posix.c: Likewise.
54436         * tests/test-vsnprintf-posix.c: Likewise.
54437         * tests/test-vsnprintf.c: Likewise.
54438         * tests/test-vsprintf-posix.c: Likewise.
54439         * tests/test-wcrtomb.c: Likewise.
54440         * tests/test-wcsnrtombs.c: Likewise.
54441         * tests/test-wcsrtombs.c: Likewise.
54442         * tests/test-wctype.c: Likewise.
54443         * tests/test-wcwidth.c: Likewise.
54444         * tests/test-xfprintf-posix.c: Likewise.
54445         * tests/test-xmemdup0.c: Likewise.
54446         * tests/test-xprintf-posix.c: Likewise.
54447         * tests/test-xvasprintf.c: Likewise.
54448         * tests/unicase/test-locale-language.c: Likewise.
54449         * tests/unicase/test-mapping-part1.h: Likewise.
54450         * tests/unicase/test-predicate-part1.h: Likewise.
54451         * tests/unicase/test-u8-casecmp.c: Likewise.
54452         * tests/unicase/test-u8-casecoll.c: Likewise.
54453         * tests/unicase/test-u8-casefold.c: Likewise.
54454         * tests/unicase/test-u8-is-cased.c: Likewise.
54455         * tests/unicase/test-u8-is-casefolded.c: Likewise.
54456         * tests/unicase/test-u8-is-lowercase.c: Likewise.
54457         * tests/unicase/test-u8-is-titlecase.c: Likewise.
54458         * tests/unicase/test-u8-is-uppercase.c: Likewise.
54459         * tests/unicase/test-u8-tolower.c: Likewise.
54460         * tests/unicase/test-u8-totitle.c: Likewise.
54461         * tests/unicase/test-u8-toupper.c: Likewise.
54462         * tests/unicase/test-u16-casecmp.c: Likewise.
54463         * tests/unicase/test-u16-casecoll.c: Likewise.
54464         * tests/unicase/test-u16-casefold.c: Likewise.
54465         * tests/unicase/test-u16-is-cased.c: Likewise.
54466         * tests/unicase/test-u16-is-casefolded.c: Likewise.
54467         * tests/unicase/test-u16-is-lowercase.c: Likewise.
54468         * tests/unicase/test-u16-is-titlecase.c: Likewise.
54469         * tests/unicase/test-u16-is-uppercase.c: Likewise.
54470         * tests/unicase/test-u16-tolower.c: Likewise.
54471         * tests/unicase/test-u16-totitle.c: Likewise.
54472         * tests/unicase/test-u16-toupper.c: Likewise.
54473         * tests/unicase/test-u32-casecmp.c: Likewise.
54474         * tests/unicase/test-u32-casecoll.c: Likewise.
54475         * tests/unicase/test-u32-casefold.c: Likewise.
54476         * tests/unicase/test-u32-is-cased.c: Likewise.
54477         * tests/unicase/test-u32-is-casefolded.c: Likewise.
54478         * tests/unicase/test-u32-is-lowercase.c: Likewise.
54479         * tests/unicase/test-u32-is-titlecase.c: Likewise.
54480         * tests/unicase/test-u32-is-uppercase.c: Likewise.
54481         * tests/unicase/test-u32-tolower.c: Likewise.
54482         * tests/unicase/test-u32-totitle.c: Likewise.
54483         * tests/unicase/test-u32-toupper.c: Likewise.
54484         * tests/unicase/test-ulc-casecmp.c: Likewise.
54485         * tests/unicase/test-ulc-casecoll.c: Likewise.
54486         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
54487         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
54488         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
54489         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
54490         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
54491         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
54492         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
54493         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
54494         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
54495         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
54496         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
54497         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
54498         * tests/unictype/test-bidi_byname.c: Likewise.
54499         * tests/unictype/test-bidi_name.c: Likewise.
54500         * tests/unictype/test-bidi_of.c: Likewise.
54501         * tests/unictype/test-bidi_test.c: Likewise.
54502         * tests/unictype/test-block_list.c: Likewise.
54503         * tests/unictype/test-block_of.c: Likewise.
54504         * tests/unictype/test-block_test.c: Likewise.
54505         * tests/unictype/test-categ_and.c: Likewise.
54506         * tests/unictype/test-categ_and_not.c: Likewise.
54507         * tests/unictype/test-categ_byname.c: Likewise.
54508         * tests/unictype/test-categ_name.c: Likewise.
54509         * tests/unictype/test-categ_none.c: Likewise.
54510         * tests/unictype/test-categ_of.c: Likewise.
54511         * tests/unictype/test-categ_or.c: Likewise.
54512         * tests/unictype/test-categ_test_withtable.c: Likewise.
54513         * tests/unictype/test-combining.c: Likewise.
54514         * tests/unictype/test-decdigit.c: Likewise.
54515         * tests/unictype/test-digit.c: Likewise.
54516         * tests/unictype/test-mirror.c: Likewise.
54517         * tests/unictype/test-numeric.c: Likewise.
54518         * tests/unictype/test-pr_byname.c: Likewise.
54519         * tests/unictype/test-pr_test.c: Likewise.
54520         * tests/unictype/test-predicate-part1.h: Likewise.
54521         * tests/unictype/test-scripts.c: Likewise.
54522         * tests/unictype/test-sy_c_ident.c: Likewise.
54523         * tests/unictype/test-sy_java_ident.c: Likewise.
54524         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
54525         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
54526         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
54527         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
54528         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
54529         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
54530         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
54531         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
54532         * tests/uninorm/test-canonical-decomposition.c: Likewise.
54533         * tests/uninorm/test-compat-decomposition.c: Likewise.
54534         * tests/uninorm/test-composition.c: Likewise.
54535         * tests/uninorm/test-decomposing-form.c: Likewise.
54536         * tests/uninorm/test-decomposition.c: Likewise.
54537         * tests/uninorm/test-u8-nfc.c: Likewise.
54538         * tests/uninorm/test-u8-nfd.c: Likewise.
54539         * tests/uninorm/test-u8-nfkc.c: Likewise.
54540         * tests/uninorm/test-u8-nfkd.c: Likewise.
54541         * tests/uninorm/test-u8-normcmp.c: Likewise.
54542         * tests/uninorm/test-u8-normcoll.c: Likewise.
54543         * tests/uninorm/test-u16-nfc.c: Likewise.
54544         * tests/uninorm/test-u16-nfd.c: Likewise.
54545         * tests/uninorm/test-u16-nfkc.c: Likewise.
54546         * tests/uninorm/test-u16-nfkd.c: Likewise.
54547         * tests/uninorm/test-u16-normcmp.c: Likewise.
54548         * tests/uninorm/test-u16-normcoll.c: Likewise.
54549         * tests/uninorm/test-u32-nfc.c: Likewise.
54550         * tests/uninorm/test-u32-nfd.c: Likewise.
54551         * tests/uninorm/test-u32-nfkc.c: Likewise.
54552         * tests/uninorm/test-u32-nfkd.c: Likewise.
54553         * tests/uninorm/test-u32-normalize-big.c: Likewise.
54554         * tests/uninorm/test-u32-normcmp.c: Likewise.
54555         * tests/uninorm/test-u32-normcoll.c: Likewise.
54556         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
54557         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
54558         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
54559         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
54560         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
54561         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
54562         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
54563         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
54564         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
54565         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
54566         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
54567         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
54568         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
54569         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
54570         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
54571         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
54572         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
54573         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
54574         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
54575         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
54576         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
54577         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
54578         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
54579         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
54580         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
54581         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
54582         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
54583         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
54584         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
54585         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
54586         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
54587         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
54588         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
54589         * tests/uniwidth/test-u8-strwidth.c: Likewise.
54590         * tests/uniwidth/test-u8-width.c: Likewise.
54591         * tests/uniwidth/test-u16-strwidth.c: Likewise.
54592         * tests/uniwidth/test-u16-width.c: Likewise.
54593         * tests/uniwidth/test-u32-strwidth.c: Likewise.
54594         * tests/uniwidth/test-u32-width.c: Likewise.
54595         * tests/uniwidth/test-uc_width.c: Likewise.
54596         * tests/uniwidth/test-uc_width2.c: Likewise.
54597         * modules/acl-tests (Files): Add tests/macros.h.
54598         * modules/areadlink-tests (Files): Likewise.
54599         * modules/areadlink-with-size-tests (Files): Likewise.
54600         * modules/areadlinkat-tests (Files): Likewise.
54601         * modules/areadlinkat-with-size-tests (Files): Likewise.
54602         * modules/argmatch-tests (Files): Likewise.
54603         * modules/argv-iter-tests (Files): Likewise.
54604         * modules/array-list-tests (Files): Likewise.
54605         * modules/array-mergesort-tests (Files): Likewise.
54606         * modules/array-oset-tests (Files): Likewise.
54607         * modules/avltree-list-tests (Files): Likewise.
54608         * modules/avltree-oset-tests (Files): Likewise.
54609         * modules/avltreehash-list-tests (Files): Likewise.
54610         * modules/base64-tests (Files): Likewise.
54611         * modules/binary-io-tests (Files): Likewise.
54612         * modules/bitrotate-tests (Files): Likewise.
54613         * modules/btowc-tests (Files): Likewise.
54614         * modules/byteswap-tests (Files): Likewise.
54615         * modules/c-ctype-tests (Files): Likewise.
54616         * modules/c-stack-tests (Files): Likewise.
54617         * modules/c-strcase-tests (Files): Likewise.
54618         * modules/c-strcasestr-tests (Files): Likewise.
54619         * modules/c-strstr-tests (Files): Likewise.
54620         * modules/canonicalize-lgpl-tests (Files): Likewise.
54621         * modules/canonicalize-tests (Files): Likewise.
54622         * modules/carray-list-tests (Files): Likewise.
54623         * modules/ceilf-tests (Files): Likewise.
54624         * modules/ceill-tests (Files): Likewise.
54625         * modules/chown-tests (Files): Likewise.
54626         * modules/cloexec-tests (Files): Likewise.
54627         * modules/copy-file-tests (Files): Likewise.
54628         * modules/count-one-bits-tests (Files): Likewise.
54629         * modules/dprintf-posix-tests (Files): Likewise.
54630         * modules/dup2-tests (Files): Likewise.
54631         * modules/dup3-tests (Files): Likewise.
54632         * modules/duplocale-tests (Files): Likewise.
54633         * modules/fbufmode-tests (Files): Likewise.
54634         * modules/fchdir-tests (Files): Likewise.
54635         * modules/fcntl-safer-tests (Files): Likewise.
54636         * modules/fcntl-tests (Files): Likewise.
54637         * modules/fdopendir-tests (Files): Likewise.
54638         * modules/fdutimensat-tests (Files): Likewise.
54639         * modules/fflush-tests (Files): Likewise.
54640         * modules/filevercmp-tests (Files): Likewise.
54641         * modules/flock-tests (Files): Likewise.
54642         * modules/floorf-tests (Files): Likewise.
54643         * modules/floorl-tests (Files): Likewise.
54644         * modules/fnmatch-tests (Files): Likewise.
54645         * modules/fopen-safer-tests (Files): Likewise.
54646         * modules/fopen-tests (Files): Likewise.
54647         * modules/fpending-tests (Files): Likewise.
54648         * modules/fprintf-posix-tests (Files): Likewise.
54649         * modules/fpurge-tests (Files): Likewise.
54650         * modules/freadable-tests (Files): Likewise.
54651         * modules/freadahead-tests (Files): Likewise.
54652         * modules/freading-tests (Files): Likewise.
54653         * modules/freadptr-tests (Files): Likewise.
54654         * modules/freadseek-tests (Files): Likewise.
54655         * modules/freopen-tests (Files): Likewise.
54656         * modules/frexp-nolibm-tests (Files): Likewise.
54657         * modules/frexp-tests (Files): Likewise.
54658         * modules/frexpl-nolibm-tests (Files): Likewise.
54659         * modules/frexpl-tests (Files): Likewise.
54660         * modules/fseek-tests (Files): Likewise.
54661         * modules/fseeko-tests (Files): Likewise.
54662         * modules/fstrcmp-tests (Files): Likewise.
54663         * modules/fsync-tests (Files): Likewise.
54664         * modules/ftell-tests (Files): Likewise.
54665         * modules/ftello-tests (Files): Likewise.
54666         * modules/func-tests (Files): Likewise.
54667         * modules/futimens-tests (Files): Likewise.
54668         * modules/fwritable-tests (Files): Likewise.
54669         * modules/fwriting-tests (Files): Likewise.
54670         * modules/getcwd-tests (Files): Likewise.
54671         * modules/getdate-tests (Files): Likewise.
54672         * modules/getdelim-tests (Files): Likewise.
54673         * modules/getdtablesize-tests (Files): Likewise.
54674         * modules/getgroups-tests (Files): Likewise.
54675         * modules/getline-tests (Files): Likewise.
54676         * modules/getndelim2-tests (Files): Likewise.
54677         * modules/glob-tests (Files): Likewise.
54678         * modules/hash-tests (Files): Likewise.
54679         * modules/i-ring-tests (Files): Likewise.
54680         * modules/iconv-tests (Files): Likewise.
54681         * modules/iconv_open-utf-tests (Files): Likewise.
54682         * modules/idpriv-drop-tests (Files): Likewise.
54683         * modules/idpriv-droptemp-tests (Files): Likewise.
54684         * modules/inet_ntop-tests (Files): Likewise.
54685         * modules/inet_pton-tests (Files): Likewise.
54686         * modules/isblank-tests (Files): Likewise.
54687         * modules/isfinite-tests (Files): Likewise.
54688         * modules/isinf-tests (Files): Likewise.
54689         * modules/isnan-tests (Files): Likewise.
54690         * modules/isnand-nolibm-tests (Files): Likewise.
54691         * modules/isnand-tests (Files): Likewise.
54692         * modules/isnanf-nolibm-tests (Files): Likewise.
54693         * modules/isnanf-tests (Files): Likewise.
54694         * modules/isnanl-nolibm-tests (Files): Likewise.
54695         * modules/isnanl-tests (Files): Likewise.
54696         * modules/lchown-tests (Files): Likewise.
54697         * modules/ldexpl-tests (Files): Likewise.
54698         * modules/link-tests (Files): Likewise.
54699         * modules/linkat-tests (Files): Likewise.
54700         * modules/linked-list-tests (Files): Likewise.
54701         * modules/linkedhash-list-tests (Files): Likewise.
54702         * modules/localename-tests (Files): Likewise.
54703         * modules/lseek-tests (Files): Likewise.
54704         * modules/lstat-tests (Files): Likewise.
54705         * modules/mbmemcasecmp-tests (Files): Likewise.
54706         * modules/mbmemcasecoll-tests (Files): Likewise.
54707         * modules/mbrtowc-tests (Files): Likewise.
54708         * modules/mbscasecmp-tests (Files): Likewise.
54709         * modules/mbscasestr-tests (Files): Likewise.
54710         * modules/mbschr-tests (Files): Likewise.
54711         * modules/mbscspn-tests (Files): Likewise.
54712         * modules/mbsinit-tests (Files): Likewise.
54713         * modules/mbsncasecmp-tests (Files): Likewise.
54714         * modules/mbsnrtowcs-tests (Files): Likewise.
54715         * modules/mbspbrk-tests (Files): Likewise.
54716         * modules/mbspcasecmp-tests (Files): Likewise.
54717         * modules/mbsrchr-tests (Files): Likewise.
54718         * modules/mbsrtowcs-tests (Files): Likewise.
54719         * modules/mbsspn-tests (Files): Likewise.
54720         * modules/mbsstr-tests (Files): Likewise.
54721         * modules/memchr-tests (Files): Likewise.
54722         * modules/memchr2-tests (Files): Likewise.
54723         * modules/memcmp-tests (Files): Likewise.
54724         * modules/memmem-tests (Files): Likewise.
54725         * modules/memrchr-tests (Files): Likewise.
54726         * modules/mkdir-tests (Files): Likewise.
54727         * modules/mkfifo-tests (Files): Likewise.
54728         * modules/mkfifoat-tests (Files): Likewise.
54729         * modules/mknod-tests (Files): Likewise.
54730         * modules/nanosleep-tests (Files): Likewise.
54731         * modules/nl_langinfo-tests (Files): Likewise.
54732         * modules/obstack-printf-tests (Files): Likewise.
54733         * modules/open-tests (Files): Likewise.
54734         * modules/openat-tests (Files): Likewise.
54735         * modules/pipe-filter-gi-tests (Files): Likewise.
54736         * modules/pipe-filter-ii-tests (Files): Likewise.
54737         * modules/pipe2-tests (Files): Likewise.
54738         * modules/popen-safer-tests (Files): Likewise.
54739         * modules/popen-tests (Files): Likewise.
54740         * modules/posixtm-tests (Files): Likewise.
54741         * modules/pread-tests (Files): Likewise.
54742         * modules/printf-frexp-tests (Files): Likewise.
54743         * modules/printf-frexpl-tests (Files): Likewise.
54744         * modules/printf-posix-tests (Files): Likewise.
54745         * modules/priv-set-tests (Files): Likewise.
54746         * modules/quotearg-tests (Files): Likewise.
54747         * modules/random_r-tests (Files): Likewise.
54748         * modules/rawmemchr-tests (Files): Likewise.
54749         * modules/rbtree-list-tests (Files): Likewise.
54750         * modules/rbtree-oset-tests (Files): Likewise.
54751         * modules/rbtreehash-list-tests (Files): Likewise.
54752         * modules/readlink-tests (Files): Likewise.
54753         * modules/remove-tests (Files): Likewise.
54754         * modules/rename-tests (Files): Likewise.
54755         * modules/renameat-tests (Files): Likewise.
54756         * modules/rmdir-tests (Files): Likewise.
54757         * modules/round-tests (Files): Likewise.
54758         * modules/roundf-tests (Files): Likewise.
54759         * modules/roundl-tests (Files): Likewise.
54760         * modules/safe-alloc-tests (Files): Likewise.
54761         * modules/setenv-tests (Files): Likewise.
54762         * modules/sigaction-tests (Files): Likewise.
54763         * modules/signbit-tests (Files): Likewise.
54764         * modules/sleep-tests (Files): Likewise.
54765         * modules/snprintf-posix-tests (Files): Likewise.
54766         * modules/snprintf-tests (Files): Likewise.
54767         * modules/sprintf-posix-tests (Files): Likewise.
54768         * modules/stat-tests (Files): Likewise.
54769         * modules/stat-time-tests (Files): Likewise.
54770         * modules/strcasestr-tests (Files): Likewise.
54771         * modules/strchrnul-tests (Files): Likewise.
54772         * modules/strerror-tests (Files): Likewise.
54773         * modules/striconv-tests (Files): Likewise.
54774         * modules/striconveh-tests (Files): Likewise.
54775         * modules/striconveha-tests (Files): Likewise.
54776         * modules/strsignal-tests (Files): Likewise.
54777         * modules/strstr-tests (Files): Likewise.
54778         * modules/strtod-tests (Files): Likewise.
54779         * modules/strverscmp-tests (Files): Likewise.
54780         * modules/symlink-tests (Files): Likewise.
54781         * modules/symlinkat-tests (Files): Likewise.
54782         * modules/trunc-tests (Files): Likewise.
54783         * modules/truncf-tests (Files): Likewise.
54784         * modules/truncl-tests (Files): Likewise.
54785         * modules/uname-tests (Files): Likewise.
54786         * modules/unicase/cased-tests (Files): Likewise.
54787         * modules/unicase/ignorable-tests (Files): Likewise.
54788         * modules/unicase/locale-language-tests (Files): Likewise.
54789         * modules/unicase/tolower-tests (Files): Likewise.
54790         * modules/unicase/totitle-tests (Files): Likewise.
54791         * modules/unicase/toupper-tests (Files): Likewise.
54792         * modules/unicase/u8-casecmp-tests (Files): Likewise.
54793         * modules/unicase/u8-casecoll-tests (Files): Likewise.
54794         * modules/unicase/u8-casefold-tests (Files): Likewise.
54795         * modules/unicase/u8-is-cased-tests (Files): Likewise.
54796         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
54797         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
54798         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
54799         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
54800         * modules/unicase/u8-tolower-tests (Files): Likewise.
54801         * modules/unicase/u8-totitle-tests (Files): Likewise.
54802         * modules/unicase/u8-toupper-tests (Files): Likewise.
54803         * modules/unicase/u16-casecmp-tests (Files): Likewise.
54804         * modules/unicase/u16-casecoll-tests (Files): Likewise.
54805         * modules/unicase/u16-casefold-tests (Files): Likewise.
54806         * modules/unicase/u16-is-cased-tests (Files): Likewise.
54807         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
54808         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
54809         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
54810         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
54811         * modules/unicase/u16-tolower-tests (Files): Likewise.
54812         * modules/unicase/u16-totitle-tests (Files): Likewise.
54813         * modules/unicase/u16-toupper-tests (Files): Likewise.
54814         * modules/unicase/u32-casecmp-tests (Files): Likewise.
54815         * modules/unicase/u32-casecoll-tests (Files): Likewise.
54816         * modules/unicase/u32-casefold-tests (Files): Likewise.
54817         * modules/unicase/u32-is-cased-tests (Files): Likewise.
54818         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
54819         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
54820         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
54821         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
54822         * modules/unicase/u32-tolower-tests (Files): Likewise.
54823         * modules/unicase/u32-totitle-tests (Files): Likewise.
54824         * modules/unicase/u32-toupper-tests (Files): Likewise.
54825         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
54826         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
54827         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
54828         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
54829         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
54830         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
54831         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
54832         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
54833         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
54834         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
54835         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
54836         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
54837         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
54838         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
54839         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
54840         * modules/unictype/bidicategory-name-tests (Files): Likewise.
54841         * modules/unictype/bidicategory-of-tests (Files): Likewise.
54842         * modules/unictype/bidicategory-test-tests (Files): Likewise.
54843         * modules/unictype/block-list-tests (Files): Likewise.
54844         * modules/unictype/block-of-tests (Files): Likewise.
54845         * modules/unictype/block-test-tests (Files): Likewise.
54846         * modules/unictype/category-C-tests (Files): Likewise.
54847         * modules/unictype/category-Cc-tests (Files): Likewise.
54848         * modules/unictype/category-Cf-tests (Files): Likewise.
54849         * modules/unictype/category-Cn-tests (Files): Likewise.
54850         * modules/unictype/category-Co-tests (Files): Likewise.
54851         * modules/unictype/category-Cs-tests (Files): Likewise.
54852         * modules/unictype/category-L-tests (Files): Likewise.
54853         * modules/unictype/category-Ll-tests (Files): Likewise.
54854         * modules/unictype/category-Lm-tests (Files): Likewise.
54855         * modules/unictype/category-Lo-tests (Files): Likewise.
54856         * modules/unictype/category-Lt-tests (Files): Likewise.
54857         * modules/unictype/category-Lu-tests (Files): Likewise.
54858         * modules/unictype/category-M-tests (Files): Likewise.
54859         * modules/unictype/category-Mc-tests (Files): Likewise.
54860         * modules/unictype/category-Me-tests (Files): Likewise.
54861         * modules/unictype/category-Mn-tests (Files): Likewise.
54862         * modules/unictype/category-N-tests (Files): Likewise.
54863         * modules/unictype/category-Nd-tests (Files): Likewise.
54864         * modules/unictype/category-Nl-tests (Files): Likewise.
54865         * modules/unictype/category-No-tests (Files): Likewise.
54866         * modules/unictype/category-P-tests (Files): Likewise.
54867         * modules/unictype/category-Pc-tests (Files): Likewise.
54868         * modules/unictype/category-Pd-tests (Files): Likewise.
54869         * modules/unictype/category-Pe-tests (Files): Likewise.
54870         * modules/unictype/category-Pf-tests (Files): Likewise.
54871         * modules/unictype/category-Pi-tests (Files): Likewise.
54872         * modules/unictype/category-Po-tests (Files): Likewise.
54873         * modules/unictype/category-Ps-tests (Files): Likewise.
54874         * modules/unictype/category-S-tests (Files): Likewise.
54875         * modules/unictype/category-Sc-tests (Files): Likewise.
54876         * modules/unictype/category-Sk-tests (Files): Likewise.
54877         * modules/unictype/category-Sm-tests (Files): Likewise.
54878         * modules/unictype/category-So-tests (Files): Likewise.
54879         * modules/unictype/category-Z-tests (Files): Likewise.
54880         * modules/unictype/category-Zl-tests (Files): Likewise.
54881         * modules/unictype/category-Zp-tests (Files): Likewise.
54882         * modules/unictype/category-Zs-tests (Files): Likewise.
54883         * modules/unictype/category-and-not-tests (Files): Likewise.
54884         * modules/unictype/category-and-tests (Files): Likewise.
54885         * modules/unictype/category-byname-tests (Files): Likewise.
54886         * modules/unictype/category-name-tests (Files): Likewise.
54887         * modules/unictype/category-none-tests (Files): Likewise.
54888         * modules/unictype/category-of-tests (Files): Likewise.
54889         * modules/unictype/category-or-tests (Files): Likewise.
54890         * modules/unictype/category-test-withtable-tests (Files): Likewise.
54891         * modules/unictype/combining-class-tests (Files): Likewise.
54892         * modules/unictype/ctype-alnum-tests (Files): Likewise.
54893         * modules/unictype/ctype-alpha-tests (Files): Likewise.
54894         * modules/unictype/ctype-blank-tests (Files): Likewise.
54895         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
54896         * modules/unictype/ctype-digit-tests (Files): Likewise.
54897         * modules/unictype/ctype-graph-tests (Files): Likewise.
54898         * modules/unictype/ctype-lower-tests (Files): Likewise.
54899         * modules/unictype/ctype-print-tests (Files): Likewise.
54900         * modules/unictype/ctype-punct-tests (Files): Likewise.
54901         * modules/unictype/ctype-space-tests (Files): Likewise.
54902         * modules/unictype/ctype-upper-tests (Files): Likewise.
54903         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
54904         * modules/unictype/decimal-digit-tests (Files): Likewise.
54905         * modules/unictype/digit-tests (Files): Likewise.
54906         * modules/unictype/mirror-tests (Files): Likewise.
54907         * modules/unictype/numeric-tests (Files): Likewise.
54908         * modules/unictype/property-alphabetic-tests (Files): Likewise.
54909         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
54910         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
54911         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
54912         Likewise.
54913         * modules/unictype/property-bidi-block-separator-tests (Files):
54914         Likewise.
54915         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
54916         Likewise.
54917         * modules/unictype/property-bidi-common-separator-tests (Files):
54918         Likewise.
54919         * modules/unictype/property-bidi-control-tests (Files): Likewise.
54920         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
54921         Likewise.
54922         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
54923         Likewise.
54924         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
54925         Likewise.
54926         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
54927         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
54928         Likewise.
54929         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
54930         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
54931         Likewise.
54932         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
54933         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
54934         * modules/unictype/property-bidi-segment-separator-tests (Files):
54935         Likewise.
54936         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
54937         * modules/unictype/property-byname-tests (Files): Likewise.
54938         * modules/unictype/property-combining-tests (Files): Likewise.
54939         * modules/unictype/property-composite-tests (Files): Likewise.
54940         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
54941         * modules/unictype/property-dash-tests (Files): Likewise.
54942         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
54943         * modules/unictype/property-default-ignorable-code-point-tests (Files):
54944         Likewise.
54945         * modules/unictype/property-deprecated-tests (Files): Likewise.
54946         * modules/unictype/property-diacritic-tests (Files): Likewise.
54947         * modules/unictype/property-extender-tests (Files): Likewise.
54948         * modules/unictype/property-format-control-tests (Files): Likewise.
54949         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
54950         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
54951         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
54952         * modules/unictype/property-hex-digit-tests (Files): Likewise.
54953         * modules/unictype/property-hyphen-tests (Files): Likewise.
54954         * modules/unictype/property-id-continue-tests (Files): Likewise.
54955         * modules/unictype/property-id-start-tests (Files): Likewise.
54956         * modules/unictype/property-ideographic-tests (Files): Likewise.
54957         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
54958         * modules/unictype/property-ids-trinary-operator-tests (Files):
54959         Likewise.
54960         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
54961         * modules/unictype/property-iso-control-tests (Files): Likewise.
54962         * modules/unictype/property-join-control-tests (Files): Likewise.
54963         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
54964         * modules/unictype/property-line-separator-tests (Files): Likewise.
54965         * modules/unictype/property-logical-order-exception-tests (Files):
54966         Likewise.
54967         * modules/unictype/property-lowercase-tests (Files): Likewise.
54968         * modules/unictype/property-math-tests (Files): Likewise.
54969         * modules/unictype/property-non-break-tests (Files): Likewise.
54970         * modules/unictype/property-not-a-character-tests (Files): Likewise.
54971         * modules/unictype/property-numeric-tests (Files): Likewise.
54972         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
54973         * modules/unictype/property-other-default-ignorable-code-point-tests
54974         (Files): Likewise.
54975         * modules/unictype/property-other-grapheme-extend-tests (Files):
54976         Likewise.
54977         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
54978         * modules/unictype/property-other-id-start-tests (Files): Likewise.
54979         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
54980         * modules/unictype/property-other-math-tests (Files): Likewise.
54981         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
54982         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
54983         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
54984         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
54985         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
54986         * modules/unictype/property-private-use-tests (Files): Likewise.
54987         * modules/unictype/property-punctuation-tests (Files): Likewise.
54988         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
54989         * modules/unictype/property-radical-tests (Files): Likewise.
54990         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
54991         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
54992         * modules/unictype/property-space-tests (Files): Likewise.
54993         * modules/unictype/property-terminal-punctuation-tests (Files):
54994         Likewise.
54995         * modules/unictype/property-test-tests (Files): Likewise.
54996         * modules/unictype/property-titlecase-tests (Files): Likewise.
54997         * modules/unictype/property-unassigned-code-value-tests (Files):
54998         Likewise.
54999         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
55000         * modules/unictype/property-uppercase-tests (Files): Likewise.
55001         * modules/unictype/property-variation-selector-tests (Files): Likewise.
55002         * modules/unictype/property-white-space-tests (Files): Likewise.
55003         * modules/unictype/property-xid-continue-tests (Files): Likewise.
55004         * modules/unictype/property-xid-start-tests (Files): Likewise.
55005         * modules/unictype/property-zero-width-tests (Files): Likewise.
55006         * modules/unictype/scripts-tests (Files): Likewise.
55007         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
55008         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
55009         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
55010         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
55011         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
55012         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
55013         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
55014         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
55015         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
55016         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
55017         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
55018         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
55019         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
55020         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
55021         * modules/uninorm/composition-tests (Files): Likewise.
55022         * modules/uninorm/decomposing-form-tests (Files): Likewise.
55023         * modules/uninorm/decomposition-tests (Files): Likewise.
55024         * modules/uninorm/filter-tests (Files): Likewise.
55025         * modules/uninorm/nfc-tests (Files): Likewise.
55026         * modules/uninorm/nfd-tests (Files): Likewise.
55027         * modules/uninorm/nfkc-tests (Files): Likewise.
55028         * modules/uninorm/nfkd-tests (Files): Likewise.
55029         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
55030         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
55031         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
55032         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
55033         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
55034         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
55035         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
55036         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
55037         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
55038         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
55039         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
55040         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
55041         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
55042         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
55043         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
55044         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
55045         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
55046         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
55047         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
55048         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
55049         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
55050         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
55051         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
55052         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
55053         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
55054         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
55055         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
55056         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
55057         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
55058         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
55059         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
55060         * modules/uniwidth/u8-width-tests (Files): Likewise.
55061         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
55062         * modules/uniwidth/u16-width-tests (Files): Likewise.
55063         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
55064         * modules/uniwidth/u32-width-tests (Files): Likewise.
55065         * modules/uniwidth/width-tests (Files): Likewise.
55066         * modules/unlink-tests (Files): Likewise.
55067         * modules/unsetenv-tests (Files): Likewise.
55068         * modules/usleep-tests (Files): Likewise.
55069         * modules/utimens-tests (Files): Likewise.
55070         * modules/utimensat-tests (Files): Likewise.
55071         * modules/vasnprintf-posix-tests (Files): Likewise.
55072         * modules/vasnprintf-tests (Files): Likewise.
55073         * modules/vasprintf-posix-tests (Files): Likewise.
55074         * modules/vasprintf-tests (Files): Likewise.
55075         * modules/vdprintf-posix-tests (Files): Likewise.
55076         * modules/vfprintf-posix-tests (Files): Likewise.
55077         * modules/vprintf-posix-tests (Files): Likewise.
55078         * modules/vsnprintf-posix-tests (Files): Likewise.
55079         * modules/vsnprintf-tests (Files): Likewise.
55080         * modules/vsprintf-posix-tests (Files): Likewise.
55081         * modules/wcrtomb-tests (Files): Likewise.
55082         * modules/wcsnrtombs-tests (Files): Likewise.
55083         * modules/wcsrtombs-tests (Files): Likewise.
55084         * modules/wctype-tests (Files): Likewise.
55085         * modules/wcwidth-tests (Files): Likewise.
55086         * modules/xmemdup0-tests (Files): Likewise.
55087         * modules/xprintf-posix-tests (Files): Likewise.
55088         * modules/xvasprintf-tests (Files): Likewise.
55090 2009-12-24  Eric Blake  <ebb9@byu.net>
55092         test-nanosleep: fix typo
55093         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
55094         patch.
55095         Reported by Bruno Haible.
55097 2009-12-24  Bruno Haible  <bruno@clisp.org>
55099         Reduce namespace pollution on glibc systems.
55100         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
55101         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
55102         systems.
55103         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
55104         <getopt.h> on glibc systems.
55105         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
55106         systems.
55107         * lib/fcntl.c: Include <unistd.h> here instead.
55109 2009-12-24  Bruno Haible  <bruno@clisp.org>
55111         * lib/stdlib.in.h (includes): Fix typo in today's commit.
55113 2009-12-24  Eric Blake  <ebb9@byu.net>
55115         tests: add signature checks
55116         * tests/signature.h (SIGNATURE_CHECK): New file.
55117         * modules/atexit-tests (Files): Use it.
55118         * modules/btowc-tests (Files): Likewise.
55119         * modules/canonicalize-lgpl-tests (Files): Likewise.
55120         * modules/ceilf-tests (Files): Likewise.
55121         * modules/ceill-tests (Files): Likewise.
55122         * modules/chown-tests (Files): Likewise.
55123         * modules/dprintf-posix-tests (Files): Likewise.
55124         * modules/dup2-tests (Files): Likewise.
55125         * modules/dup3-tests (Files): Likewise.
55126         * modules/duplocale-tests (Files): Likewise.
55127         * modules/fchdir-tests (Files): Likewise.
55128         * modules/fcntl-tests (Files): Likewise.
55129         * modules/fdopendir-tests (Files): Likewise.
55130         * modules/fflush-tests (Files): Likewise.
55131         * modules/flock-tests (Files): Likewise.
55132         * modules/floorf-tests (Files): Likewise.
55133         * modules/floorl-tests (Files): Likewise.
55134         * modules/fnmatch-tests (Files): Likewise.
55135         * modules/fopen-tests (Files): Likewise.
55136         * modules/fprintf-posix-tests (Files): Likewise.
55137         * modules/freopen-tests (Files): Likewise.
55138         * modules/frexp-nolibm-tests (Files): Likewise.
55139         * modules/frexp-tests (Files): Likewise.
55140         * modules/frexpl-nolibm-tests (Files): Likewise.
55141         * modules/frexpl-tests (Files): Likewise.
55142         * modules/fseek-tests (Files): Likewise.
55143         * modules/fseeko-tests (Files): Likewise.
55144         * modules/fsync-tests (Files): Likewise.
55145         * modules/ftell-tests (Files): Likewise.
55146         * modules/ftello-tests (Files): Likewise.
55147         * modules/futimens-tests (Files): Likewise.
55148         * modules/getaddrinfo-tests (Files): Likewise.
55149         * modules/getcwd-tests (Files): Likewise.
55150         * modules/getdelim-tests (Files): Likewise.
55151         * modules/getdtablesize-tests (Files): Likewise.
55152         * modules/getgroups-tests (Files): Likewise.
55153         * modules/gethostname-tests (Files): Likewise.
55154         * modules/getline-tests (Files): Likewise.
55155         * modules/getopt-posix-tests (Files): Likewise.
55156         * modules/gettimeofday-tests (Files): Likewise.
55157         * modules/glob-tests (Files): Likewise.
55158         * modules/iconv-tests (Files): Likewise.
55159         * modules/inet_ntop-tests (Files): Likewise.
55160         * modules/inet_pton-tests (Files): Likewise.
55161         * modules/isblank-tests (Files): Likewise.
55162         * modules/lchown-tests (Files): Likewise.
55163         * modules/ldexpl-tests (Files): Likewise.
55164         * modules/link-tests (Files): Likewise.
55165         * modules/linkat-tests (Files): Likewise.
55166         * modules/lseek-tests (Files): Likewise.
55167         * modules/lstat-tests (Files): Likewise.
55168         * modules/mbrtowc-tests (Files): Likewise.
55169         * modules/mbsinit-tests (Files): Likewise.
55170         * modules/mbsnrtowcs-tests (Files): Likewise.
55171         * modules/mbsrtowcs-tests (Files): Likewise.
55172         * modules/memchr-tests (Files): Likewise.
55173         * modules/memcmp-tests (Files): Likewise.
55174         * modules/memmem-tests (Files): Likewise.
55175         * modules/memrchr-tests (Files): Likewise.
55176         * modules/mkdir-tests (Files): Likewise.
55177         * modules/mkfifo-tests (Files): Likewise.
55178         * modules/mkfifoat-tests (Files): Likewise.
55179         * modules/mknod-tests (Files): Likewise.
55180         * modules/nanosleep-tests (Files): Likewise.
55181         * modules/nl_langinfo-tests (Files): Likewise.
55182         * modules/obstack-printf-tests (Files): Likewise.
55183         * modules/open-tests (Files): Likewise.
55184         * modules/openat-tests (Files): Likewise.
55185         * modules/perror-tests (Files): Likewise.
55186         * modules/pipe2-tests (Files): Likewise.
55187         * modules/poll-tests (Files): Likewise.
55188         * modules/popen-tests (Files): Likewise.
55189         * modules/posix_spawn-tests (Files): Likewise.
55190         * modules/posix_spawnp-tests (Files): Likewise.
55191         * modules/pread-tests (Files): Likewise.
55192         * modules/printf-posix-tests (Files): Likewise.
55193         * modules/pty-tests (Files): Likewise.
55194         * modules/random_r-tests (Files): Likewise.
55195         * modules/rawmemchr-tests (Files): Likewise.
55196         * modules/readlink-tests (Files): Likewise.
55197         * modules/remove-tests (Files): Likewise.
55198         * modules/rename-tests (Files): Likewise.
55199         * modules/renameat-tests (Files): Likewise.
55200         * modules/rmdir-tests (Files): Likewise.
55201         * modules/round-tests (Files): Likewise.
55202         * modules/roundf-tests (Files): Likewise.
55203         * modules/roundl-tests (Files): Likewise.
55204         * modules/select-tests (Files): Likewise.
55205         * modules/setenv-tests (Files): Likewise.
55206         * modules/sigaction-tests (Files): Likewise.
55207         * modules/sleep-tests (Files): Likewise.
55208         * modules/snprintf-posix-tests (Files): Likewise.
55209         * modules/snprintf-tests (Files): Likewise.
55210         * modules/sprintf-posix-tests (Files): Likewise.
55211         * modules/stat-tests (Files): Likewise.
55212         * modules/strcasestr-tests (Files): Likewise.
55213         * modules/strchrnul-tests (Files): Likewise.
55214         * modules/strerror-tests (Files): Likewise.
55215         * modules/strsignal-tests (Files): Likewise.
55216         * modules/strstr-tests (Files): Likewise.
55217         * modules/strtod-tests (Files): Likewise.
55218         * modules/strverscmp-tests (Files): Likewise.
55219         * modules/symlink-tests (Files): Likewise.
55220         * modules/symlinkat-tests (Files): Likewise.
55221         * modules/times-tests (Files): Likewise.
55222         * modules/trunc-tests (Files): Likewise.
55223         * modules/truncf-tests (Files): Likewise.
55224         * modules/truncl-tests (Files): Likewise.
55225         * modules/tsearch-tests (Files): Likewise.
55226         * modules/uname-tests (Files): Likewise.
55227         * modules/unlink-tests (Files): Likewise.
55228         * modules/unsetenv-tests (Files): Likewise.
55229         * modules/usleep-tests (Files): Likewise.
55230         * modules/utimensat-tests (Files): Likewise.
55231         * modules/vasprintf-tests (Files): Likewise.
55232         * modules/vdprintf-posix-tests (Files): Likewise.
55233         * modules/vfprintf-posix-tests (Files): Likewise.
55234         * modules/vprintf-posix-tests (Files): Likewise.
55235         * modules/vsnprintf-posix-tests (Files): Likewise.
55236         * modules/vsnprintf-tests (Files): Likewise.
55237         * modules/vsprintf-posix-tests (Files): Likewise.
55238         * modules/wcrtomb-tests (Files): Likewise.
55239         * modules/wcsnrtombs-tests (Files): Likewise.
55240         * modules/wcsrtombs-tests (Files): Likewise.
55241         * modules/wcwidth-tests (Files): Likewise.
55242         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
55243         * tests/test-isinf.c (isinf): Likewise.
55244         * tests/test-isnan.c (isnan): Likewise.
55245         * tests/test-signbit.c (signbit): Likewise.
55246         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
55247         declaration, either as macro or with correct signature.
55248         (select): Ensure function under test is declared with correct
55249         signature in correct header.
55250         * tests/test-atexit.c (atexit): Likewise.
55251         * tests/test-btowc.c (btowc): Likewise.
55252         * tests/test-canonicalize-lgpl.c (realpath)
55253         (canonicalize_file_name): Likewise.
55254         * tests/test-ceilf1.c (ceilf): Likewise.
55255         * tests/test-ceill.c (ceill): Likewise.
55256         * tests/test-chown.c (chown): Likewise.
55257         * tests/test-dprintf-posix.c (dprintf): Likewise.
55258         * tests/test-dup2.c (dup2): Likewise.
55259         * tests/test-dup3.c (dup3): Likewise.
55260         * tests/test-duplocale.c (duplocale): Likewise.
55261         * tests/test-fchdir.c (fchdir): Likewise.
55262         * tests/test-fchownat.c (fchownat): Likewise.
55263         * tests/test-fcntl.c (fcntl): Likewise.
55264         * tests/test-fdopendir.c (fdopendir): Likewise.
55265         * tests/test-fflush.c (fflush): Likewise.
55266         * tests/test-flock.c (flock): Likewise.
55267         * tests/test-floorf1.c (floorf): Likewise.
55268         * tests/test-floorl.c (floorl): Likewise.
55269         * tests/test-fnmatch.c (fnmatch): Likewise.
55270         * tests/test-fopen.c (fopen): Likewise.
55271         * tests/test-fprintf-posix.c (fprintf): Likewise.
55272         * tests/test-freopen.c (freopen): Likewise.
55273         * tests/test-frexp.c (frexp): Likewise.
55274         * tests/test-frexpl.c (frexpl): Likewise.
55275         * tests/test-fseek.c (fseek): Likewise.
55276         * tests/test-fseeko.c (fseeko): Likewise.
55277         * tests/test-fstatat.c (fstatat): Likewise.
55278         * tests/test-fsync.c (fsync): Likewise.
55279         * tests/test-ftell.c (ftell): Likewise.
55280         * tests/test-ftello.c (ftello): Likewise.
55281         * tests/test-futimens.c (futimens): Likewise.
55282         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
55283         (gai_strerror): Likewise.
55284         * tests/test-getcwd.c (getcwd): Likewise.
55285         * tests/test-getdelim.c (getdelim): Likewise.
55286         * tests/test-getdtablesize.c (getdtablesize): Likewise.
55287         * tests/test-getgroups.c (getgroups): Likewise.
55288         * tests/test-gethostname.c (gethostname): Likewise.
55289         * tests/test-getline.c (getline): Likewise.
55290         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
55291         Likewise.
55292         * tests/test-gettimeofday.c (gettimeofday): Likewise.
55293         * tests/test-glob.c (glob, globfree): Likewise.
55294         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
55295         * tests/test-inet_ntop.c (inet_ntop): Likewise.
55296         * tests/test-inet_pton.c (inet_pton): Likewise.
55297         * tests/test-isblank.c (isblank): Likewise.
55298         * tests/test-lchown.c (lchown): Likewise.
55299         * tests/test-ldexpl.c (ldexpl): Likewise.
55300         * tests/test-link.c (link): Likewise.
55301         * tests/test-linkat.c (linkat): Likewise.
55302         * tests/test-lseek.c (lseek): Likewise.
55303         * tests/test-lstat.c (lstat): Likewise.
55304         * tests/test-mbrtowc.c (mbrtowc): Likewise.
55305         * tests/test-mbsinit.c (mbsinit): Likewise.
55306         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
55307         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
55308         * tests/test-memchr.c (memchr): Likewise.
55309         * tests/test-memcmp.c (memcmp): Likewise.
55310         * tests/test-memmem.c (memmem): Likewise.
55311         * tests/test-memrchr.c (memrchr): Likewise.
55312         * tests/test-mkdir.c (mkdir): Likewise.
55313         * tests/test-mkdirat.c (mkdirat): Likewise.
55314         * tests/test-mkfifo.c (mkfifo): Likewise.
55315         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
55316         * tests/test-mknod.c (mknod): Likewise.
55317         * tests/test-nanosleep.c (nanosleep): Likewise.
55318         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
55319         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
55320         Likewise.
55321         * tests/test-open.c (open): Likewise.
55322         * tests/test-openat.c (openat): Likewise.
55323         * tests/test-perror.c (perror): Likewise.
55324         * tests/test-pipe2.c (pipe2): Likewise.
55325         * tests/test-poll.c (poll): Likewise.
55326         * tests/test-popen.c (popen, pclose): Likewise.
55327         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
55328         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
55329         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
55330         (posix_spawn_file_actions_destroy)
55331         (posix_spawn_file_actions_addclose)
55332         (posix_spawn_file_actions_addopen)
55333         (posix_spawn_file_actions_adddup2): Likewise.
55334         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
55335         * tests/test-pread.c (pread): Likewise.
55336         * tests/test-printf-posix.c (printf): Likewise.
55337         * tests/test-pty.c (openpty, forkpty): Likewise.
55338         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
55339         (random_r): Likewise.
55340         * tests/test-rawmemchr.c (rawmemchr): Likewise.
55341         * tests/test-readlink.c (readlink): Likewise.
55342         * tests/test-remove.c (remove): Likewise.
55343         * tests/test-rename.c (rename): Likewise.
55344         * tests/test-renameat.c (renameat): Likewise.
55345         * tests/test-rmdir.c (rmdir): Likewise.
55346         * tests/test-round1.c (round): Likewise.
55347         * tests/test-roundf1.c (roundf): Likewise.
55348         * tests/test-roundl.c (roundl): Likewise.
55349         * tests/test-setenv.c (setenv): Likewise.
55350         * tests/test-sigaction.c (sigaction): Likewise.
55351         * tests/test-sleep.c (sleep): Likewise.
55352         * tests/test-snprintf.c (snprintf): Likewise.
55353         * tests/test-sprintf-posix.c (sprintf): Likewise.
55354         * tests/test-stat.c (stat): Likewise.
55355         * tests/test-stpncpy.c (stpncpy): Likewise.
55356         * tests/test-strcasestr.c (strcasestr): Likewise.
55357         * tests/test-strchrnul.c (strchrnul): Likewise.
55358         * tests/test-strerror.c (strerror): Likewise.
55359         * tests/test-strsignal.c (strsignal): Likewise.
55360         * tests/test-strstr.c (strstr): Likewise.
55361         * tests/test-strtod.c (strtod): Likewise.
55362         * tests/test-strverscmp.c (strverscmp): Likewise.
55363         * tests/test-symlink.c (symlink): Likewise.
55364         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
55365         * tests/test-times.c (times): Likewise.
55366         * tests/test-trunc1.c (trunc): Likewise.
55367         * tests/test-truncf1.c (truncf): Likewise.
55368         * tests/test-truncl.c (truncl): Likewise.
55369         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
55370         Likewise.
55371         * tests/test-uname.c (uname): Likewise.
55372         * tests/test-unlink.c (unlink): Likewise.
55373         * tests/test-unlinkat.c (unlinkat): Likewise.
55374         * tests/test-unsetenv.c (unsetenv): Likewise.
55375         * tests/test-usleep.c (usleep): Likewise.
55376         * tests/test-utimensat.c (utimensat): Likewise.
55377         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
55378         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
55379         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
55380         * tests/test-vprintf-posix.c (vprintf): Likewise.
55381         * tests/test-vsnprintf.c (vsnprintf): Likewise.
55382         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
55383         * tests/test-wcrtomb.c (wcrtomb): Likewise.
55384         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
55385         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
55386         * tests/test-wcwidth.c (wcwidth): Likewise.
55388         build: pull in conditional headers during GNULIB_POSIXCHECK
55389         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
55390         definitions from any conditionally-included headers.
55391         * lib/stdlib.in.h (includes): Likewise.
55392         * lib/unistd.in.h (includes): Likewise.
55394 2009-12-24  Bruno Haible  <bruno@clisp.org>
55396         * tests/test-argv-iter.c: Include header file being tested immediately
55397         after config.h.
55398         * tests/test-base64.c: Likewise.
55399         * tests/test-flock.c: Likewise.
55400         * tests/test-fsync.c: Likewise.
55401         * tests/test-getdate.c: Likewise.
55402         * tests/test-getndelim2.c: Likewise.
55403         * tests/test-isfinite.c: Likewise.
55404         * tests/test-isinf.c: Likewise.
55405         * tests/test-strerror.c: Likewise.
55406         * tests/test-strsignal.c: Likewise.
55408 2009-12-23  Eric Blake  <ebb9@byu.net>
55410         unistd: work around cygwin bug
55411         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
55412         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
55413         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
55415 2009-12-23  Bruno Haible  <bruno@clisp.org>
55417         localename: More tests.
55418         * tests/test-localename.c (SIZEOF): New macro.
55419         (categories): New variable.
55420         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
55421         test_locale_name_default): Add test w.r.t. thread locale.
55422         (test_locale_name_thread): New function.
55423         (main): Invoke it.
55425         localename: Make aware of thread locale.
55426         * lib/localename.h (gl_locale_name_thread): New declaration.
55427         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
55428         behaviour with respect to thread locale.
55429         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
55430         <langinfo.h>, glthread/lock.h.
55431         (SIZE_BITS): New macro.
55432         (string_hash): New function.
55433         (struct hash_node): New type.
55434         (HASH_TABLE_SIZE): New macro.
55435         (struniq_hash_table, struniq_lock): New variables.
55436         (struniq): New function.
55437         (gl_locale_name_thread): New function.
55438         (gl_locale_name): Invoke it.
55439         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
55440         * modules/localename (Depends-on): Add lock.
55441         Reported by Mike Gran <spk121@yahoo.com>.
55443 2009-12-23  Eric Blake  <ebb9@byu.net>
55445         va-args: new module
55446         * modules/va-args: New file.
55447         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
55448         * MODULES.html.sh (Core language properties): Mention it.
55450         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
55451         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
55452         named alias for __attribute__((__unused__)).
55453         * lib/chown.c: Update client.
55454         * lib/fchmodat.c: Likewise.
55455         * lib/fts.c: Likewise.
55456         * lib/getdate.y: Likewise.
55457         * lib/getgroups.c: Likewise.
55458         * lib/getopt.c: Likewise.
55459         * lib/getugroups.c: Likewise.
55460         * lib/mkdir.c: Likewise.
55461         * lib/mkfifo.c: Likewise.
55462         * lib/mkfifoat.c: Likewise.
55463         * lib/mknod.c: Likewise.
55464         * lib/mknodat.c: Likewise.
55465         * lib/readlink.c: Likewise.
55466         * lib/se-context.in.h: Likewise.
55467         * lib/se-selinux.in.h: Likewise.
55468         * lib/sockets.c: Likewise.
55469         * lib/symlink.c: Likewise.
55470         * lib/symlinkat.c: Likewise.
55471         * lib/unicodeio.c: Likewise.
55472         * lib/unistr.h: Likewise.
55473         * tests/test-areadlink.c: Likewise.
55474         * tests/test-areadlinkat.c: Likewise.
55475         * tests/test-filenamecat.c: Likewise.
55476         * tests/test-fseeko.c: Likewise.
55477         * tests/test-ftello.c: Likewise.
55478         * tests/test-getdate.c: Likewise.
55479         * tests/test-getgroups.c: Likewise.
55480         * tests/test-gethostname.c: Likewise.
55481         * tests/test-quotearg.c: Likewise.
55482         * tests/test-version-etc.c: Likewise.
55483         * tests/test-xalloc-die.c: Likewise.
55484         * tests/test-xfprintf-posix.c: Likewise.
55485         * tests/test-xprintf-posix.c: Likewise.
55486         * tests/test-xvasprintf.c: Likewise.
55488         tests: avoid compiler warnings
55489         * tests/test-fcntl.c (main): Delete unused parameters.
55490         * tests/test-freopen-safer.c (main): Likewise.
55491         * tests/test-xalloc-die.c (main): Mark unused parameters.
55492         * tests/test-fseeko.c (main): Likewise.
55493         * tests/test-ftello.c (main): Likewise.
55494         * tests/test-nanosleep.c (main): Avoid declaration warning.
55495         * tests/test-sleep.c (main): Likewise.
55496         * tests/test-unsetenv.c (main): Silence warning about string
55497         literal.
55498         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
55500 2009-12-23  Bruno Haible  <bruno@clisp.org>
55502         * tests/test-localename.c (test_locale_name): New function, extracted
55503         from main. Also test mixed situations.
55504         (test_locale_name_posix, test_locale_name_environ,
55505         test_locale_name_default): New functions.
55506         (main): Invoke them all.
55507         * modules/localename-tests (configure.ac): Test for newlocale.
55509 2009-12-23  Bruno Haible  <bruno@clisp.org>
55511         unistd: Ensure getcwd gets declared before being overridden.
55512         * lib/unistd.in.h: Conditionally include <io.h>.
55514 2009-12-22  Bruno Haible  <bruno@clisp.org>
55516         wchar: Diagnose broken combination of glibc and gcc versions and flags.
55517         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
55518         (gl_WCHAR_H): Invoke it.
55519         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
55520         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
55521         Reported by Karl Berry <karl@freefriends.org>.
55523 2009-12-22  Eric Blake  <ebb9@byu.net>
55525         math, unistd: avoid redundant includes
55526         * lib/math.in.h (isnan): No need to re-include <math.h>.
55527         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
55529         getsubopt: work around cygwin bug
55530         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
55531         avoid conflicting with system getsubopt.
55532         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
55533         bug.
55535         getopt: synchronize from glibc
55536         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
55537         parameter order.  Adjust all callers.
55538         (_getopt_internal_r, main): Adjust quoting in error messages.
55539         Drop considerations for outdated POSIX 1003.2 error message.
55540         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
55541         callers.
55542         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
55544         test-getopt: test stderr behavior
55545         * modules/getopt-posix-tests (Depends-on): Add dup2.
55546         * tests/test-getopt.c (ASSERT): Avoid stderr.
55547         (main): Move stderr to a temporary file.
55548         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
55549         Instead, add parameter to inform caller if output occurred.
55550         (test_getopt): Adjust all existing tests to expect silence, and
55551         add new tests of leading ":".
55552         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
55553         glibc shortcomings with leading "-:" or "+:" in optstring.
55554         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
55555         Likewise.
55556         * doc/posix-functions/getopt.texi (getopt): Likewise.
55558         test-getopt: enhance test
55559         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
55560         supports optind=0.
55561         * tests/test-getopt.c (OPTIND_MIN): Move...
55562         * tests/test-getopt.h (OPTIND_MIN): ...here.
55563         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
55564         Require that optind=0 works, since modern BSD supports it in
55565         addition to optreset, and since coreutils expects it.
55566         (test_getopt_long_only): New test.
55567         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
55568         glibc shortcomings with 'W;', and enforcement of optind=0.
55569         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
55570         Likewise.
55572 2009-12-21  Bruno Haible  <bruno@clisp.org>
55574         localename: Improvements for MacOS X and Cygwin.
55575         * lib/localename.h (gl_locale_name_environ): New declaration.
55576         * lib/localename.c (gl_locale_name_environ): New function, extracted from
55577         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
55578         (gl_locale_name_posix): Invoke it.
55579         (gl_locale_name_default): Add comments. Use Windows native API also on
55580         Cygwin.
55582 2009-12-21  Bruno Haible  <bruno@clisp.org>
55584         Update list of Win32 locale ids.
55585         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
55586         (LANG_SAMI): Renamed from LANG_SAAMI.
55587         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
55588         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
55589         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
55590         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
55591         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
55592         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
55593         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
55594         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
55595         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
55596         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
55597         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
55598         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
55599         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
55600         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
55601         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
55602         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
55603         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
55604         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
55605         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
55606         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
55607         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
55608         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
55609         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
55610         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
55611         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
55612         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
55613         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
55614         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
55615         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
55616         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
55617         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
55618         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
55619         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
55620         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
55621         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
55622         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
55623         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
55624         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
55625         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
55626         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
55627         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
55628         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
55629         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
55630         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
55631         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
55632         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
55633         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
55634         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
55635         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
55636         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
55637         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
55638         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
55639         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
55640         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
55641         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
55642         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
55643         Add more languages and countries for Sami, Sorbian. Add more countries
55644         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
55645         for Pashto. Change country for Syriac, Tswana.
55647 2009-12-21  Eric Blake  <ebb9@byu.net>
55649         test-utimens: avoid spurious failure
55650         * tests/test-chown.h (nap): Factor...
55651         * tests/nap.h: ...into new file.
55652         * tests/test-lchown.h (nap): Avoid duplication.
55653         * tests/test-utimens-common.h (nap): Use shared implementation,
55654         necessary on file systems with 1-second resolution.
55655         * modules/chown-tests (Files): Include new file.
55656         * modules/fdutimensat-tests (Files): Likewise.
55657         * modules/futimens-tests (Files): Likewise.
55658         * modules/lchown-tests (Files): Likewise.
55659         * modules/openat-tests (Files): Likewise.
55660         * modules/utimens-tests (Files): Likewise.
55661         * modules/utimensat-tests (Files): Likewise.
55663 2009-12-19  Eric Blake  <ebb9@byu.net>
55665         futimens, utimensat: work around Linux bug
55666         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
55667         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
55668         * lib/utimensat.c (rpl_utimensat): Work around it.
55669         * lib/futimens.c (rpl_futimens): Adjust comment.
55671         utimens: work around Linux ctime bug
55672         * lib/utimens.c (detect_ctime_bug): New helper function.
55673         (update_timespec): Differentiate between workaround needed for
55674         this bug vs. what is needed for systems that lack utimensat.
55675         (fdutimens, lutimens): Work around bug.
55677         utimens: check for ctime update
55678         * tests/test-utimens-common.h (check_ctime): Define.
55679         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
55680         * tests/test-futimens.h (test_futimens): Likewise.
55681         * tests/test-lutimens.h (test_lutimens): Likewise.
55682         * doc/posix-functions/futimens.texi (futimens): Document the bug.
55683         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
55685 2009-12-19  Bruno Haible  <bruno@clisp.org>
55687         dprintf-posix: Check against memory leak fixed on 2009-12-15.
55688         * tests/test-dprintf-posix2.sh: New file.
55689         * tests/test-dprintf-posix2.c: New file.
55690         * modules/dprintf-posix-tests (Files): Add them.
55691         (configure.ac): Check for getrlimit and setrlimit.
55692         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
55694 2009-12-19  Bruno Haible  <bruno@clisp.org>
55696         fprintf-posix: Check against memory leak fixed on 2009-12-15.
55697         * tests/test-fprintf-posix3.sh: New file.
55698         * tests/test-fprintf-posix3.c: New file.
55699         * modules/fprintf-posix-tests (Files): Add them.
55700         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
55702 2009-12-19  Eric Blake  <ebb9@byu.net>
55704         dirfd: fix prototype
55705         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
55706         * lib/dirfd.c (dirfd): Likewise.
55708         canonicalize: reduce memory usage
55709         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
55710         allocation to size.
55711         Reported by Solar Designer <solar@openwall.com>.
55713 2009-12-19  Bruno Haible  <bruno@clisp.org>
55715         New module attribute 'Applicability'.
55716         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
55717         * gnulib-tool: New option --extract-applicability.
55718         (func_usage): Document it.
55719         (sed_extract_prog): Recognize it.
55720         (func_get_applicability): New function.
55721         (func_import): Generalize handling of 'link-warning' module.
55722         * modules/link-warning (Applicability): New section.
55723         * modules/arg-nonnull (Applicability): New section.
55724         Repoted by Simon Josefsson <simon@josefsson.org>.
55726 2009-12-19  Bruno Haible  <bruno@clisp.org>
55728         fflush: tweak
55729         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
55730         * lib/fseeko.c (rpl_fseeko): Likewise.
55732 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
55734         * lib/gl_list.h: Fix typo in comment.
55736 2009-12-16  Eric Blake  <ebb9@byu.net>
55738         fcntl: use to simplify other modules
55739         * modules/cloexec (Depends-on): Add fcntl.
55740         * modules/fchdir (Depends-on): Likewise.
55741         * modules/fd-safer-flag (Depends-on): Likewise.
55742         * modules/unistd-safer (Depends-on): Likewise.
55743         * modules/dup3 (configure.ac): Set module indicator.
55744         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
55745         missing.
55746         * lib/fchdir.c (_gl_register_dup): Fix comment.
55747         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
55748         * lib/dup-safer.c (dup_safer): Likewise.
55749         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
55750         * lib/dup3.c (dup3): Likewise.
55751         * tests/test-fchdir.c (main): Enhance test.
55752         Fixes a dup_cloexec bug reported by Ondřej Vašík.
55754         fcntl: port portions of fcntl to mingw
55755         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
55756         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
55757         replacement for mingw.
55758         * modules/fcntl (Description): Update.
55759         (Depends-on): Add dup2.
55760         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
55761         * modules/fcntl-h (Makefile.am): Substitute it.
55762         * lib/fcntl.in.h (fcntl): Update declaration.
55763         (F_DUPFD, F_GETFD): New macros, when needed.
55764         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
55765         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
55766         * tests/test-fcntl.c (check_flags, main): Enhance test for items
55767         we now guarantee.
55769         fcntl: work around cygwin bug in F_DUPFD
55770         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
55771         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
55772         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
55773         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
55774         * doc/posix-functions/fcntl.texi (fcntl): Document it.
55776         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
55777         * modules/fcntl (Files): List new files.
55778         (configure.ac): Run a test.
55779         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
55780         * lib/fcntl.c (rpl_fcntl): Likewise.
55781         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
55782         (gl_FCNTL_H): Always replace fcntl.h.
55783         * modules/fcntl-h (Makefile.am): Substitute witnesses.
55784         * lib/fcntl.in.h (fcntl): Declare replacement.
55785         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
55786         needed, plus a witness.
55787         * doc/posix-functions/fcntl.texi (fcntl): Document this.
55788         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
55789         * tests/test-fcntl.c: New file.
55790         * modules/fcntl-tests: Likewise.
55792         binary-io: avoid potential compilation warning
55793         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
55794         directives.
55796         fflush: avoid compilation error on NetBSD
55797         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
55798         between off_t and fpos_t, since the latter is sometimes a struct.
55799         * lib/fseeko.c (rpl_fseeko): Likewise.
55800         Reported by Alexander Nasonov <alnsn@yandex.ru>.
55802 2009-12-15  Eric Blake  <ebb9@byu.net>
55804         fcntl-h, stdio, sys_ioctl: fix declarations
55805         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
55806         function must not take arguments.
55807         * lib/sys_ioctl.in.h (ioctl): Likewise.
55808         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
55809         (open): Add a link warning.
55811 2009-12-15  Jim Meyering  <meyering@redhat.com>
55813         areadlink, areadlink-with-size: relax license to LGPLv2+
55814         * modules/areadlink (License): Relax to LGPLv2+.
55815         * modules/areadlink-with-size (License): Likewise.
55817 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
55818             Bruno Haible  <bruno@clisp.org>
55820         *printf: Fix memory leak.
55821         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
55822         * lib/vfprintf.c (vfprintf): Likewise.
55823         * lib/dprintf.c (dprintf): Likewise.
55824         * lib/vdprintf.c (vdprintf): Likewise.
55826 2009-12-14  Eric Blake  <ebb9@byu.net>
55828         accept4: adjust module dependencies
55829         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
55831         utimens: one more try at avoiding compiler warning
55832         * lib/utimens.c (lutimens): Lower scope of result.
55834 2009-12-13  Bruno Haible  <bruno@clisp.org>
55836         Move the malloc checking from module 'list' to new module 'xlist'.
55837         * modules/xlist: New file.
55838         * lib/gl_xlist.h: New file.
55839         * lib/gl_xlist.c: New file.
55840         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
55841         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
55842         gl_list_add_last, gl_list_add_before, gl_list_add_after,
55843         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
55844         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
55845         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
55846         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
55847         gl_sortedlist_nx_add): New declarations.
55848         (struct gl_list_implementation): Rename and change methods accordingly.
55849         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
55850         (gl_list_nx_create): Renamed from gl_list_create.
55851         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
55852         (gl_list_nx_set_at): Renamed from gl_list_set_at.
55853         (gl_list_nx_add_first): Renamed from gl_list_add_first.
55854         (gl_list_nx_add_last): Renamed from gl_list_add_last.
55855         (gl_list_nx_add_before): Renamed from gl_list_add_before.
55856         (gl_list_nx_add_after): Renamed from gl_list_add_after.
55857         (gl_list_nx_add_at): Renamed from gl_list_add_at.
55858         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
55859         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
55860         gl_list_create_empty.
55861         (gl_list_nx_create): Renamed from gl_list_create.
55862         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
55863         (gl_list_nx_set_at): Renamed from gl_list_set_at.
55864         (gl_list_nx_add_first): Renamed from gl_list_add_first.
55865         (gl_list_nx_add_last): Renamed from gl_list_add_last.
55866         (gl_list_nx_add_before): Renamed from gl_list_add_before.
55867         (gl_list_nx_add_after): Renamed from gl_list_add_after.
55868         (gl_list_nx_add_at): Renamed from gl_list_add_at.
55869         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
55870         * lib/gl_array_list.c: Don't include xalloc.h.
55871         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
55872         NULL upon out-of-memory.
55873         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
55874         out-of-memory.
55875         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
55876         Change return type to 'int'.
55877         (gl_array_nx_set_at): Renamed from gl_array_set_at.
55878         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
55879         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
55880         upon out-of-memory.
55881         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
55882         upon out-of-memory.
55883         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
55884         upon out-of-memory.
55885         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
55886         upon out-of-memory.
55887         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
55888         out-of-memory.
55889         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
55890         Update.
55891         (gl_array_list_implementation): Update.
55892         * lib/gl_carray_list.c: Don't include xalloc.h.
55893         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
55894         Return NULL upon out-of-memory.
55895         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
55896         out-of-memory.
55897         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
55898         Change return type to 'int'.
55899         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
55900         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
55901         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
55902         upon out-of-memory.
55903         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
55904         upon out-of-memory.
55905         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
55906         out-of-memory.
55907         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
55908         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
55909         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
55910         Update.
55911         (gl_carray_list_implementation): Update.
55912         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
55913         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
55914         gl_linked_create_empty. Return NULL upon out-of-memory.
55915         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
55916         out-of-memory.
55917         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
55918         Change return type to 'int'. Return -1 upon out-of-memory.
55919         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
55920         out-of-memory.
55921         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
55922         upon out-of-memory.
55923         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
55924         upon out-of-memory.
55925         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
55926         NULL upon out-of-memory.
55927         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
55928         upon out-of-memory.
55929         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
55930         out-of-memory.
55931         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
55932         Update.
55933         * lib/gl_linked_list.c: Don't include xalloc.h.
55934         (gl_linked_list_implementation): Update.
55935         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
55936         (add_to_bucket): Change return type to 'int'.
55937         (gl_linkedhash_list_implementation): Update.
55938         * lib/gl_anytree_list1.h (free_subtree): New function.
55939         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
55940         gl_tree_create_empty. Return NULL upon out-of-memory.
55941         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
55942         Change return type to 'int'. Return -1 upon out-of-memory.
55943         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
55944         out-of-memory.
55945         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
55946         (gl_tree_remove_node): New function, moved here from
55947         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
55948         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
55949         Update.
55950         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
55951         malloc, not xmalloc. Return NULL upon out-of-memory.
55952         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
55953         out-of-memory.
55954         (gl_tree_remove_node_from_tree): New function, extracted from
55955         gl_tree_remove_node.
55956         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
55957         upon out-of-memory.
55958         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
55959         out-of-memory.
55960         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
55961         upon out-of-memory.
55962         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
55963         upon out-of-memory.
55964         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
55965         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
55966         not xmalloc. Return NULL upon out-of-memory.
55967         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
55968         out-of-memory.
55969         (gl_tree_remove_node_from_tree): New function, extracted from
55970         gl_tree_remove_node.
55971         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
55972         upon out-of-memory.
55973         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
55974         out-of-memory.
55975         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
55976         upon out-of-memory.
55977         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
55978         upon out-of-memory.
55979         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
55980         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
55981         gl_anytree_list1.h before gl_anyavltree_list2.h.
55982         (gl_avltree_list_implementation): Update.
55983         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
55984         gl_anytree_list1.h before gl_anyavltree_list2.h.
55985         (gl_rbtree_list_implementation): Update.
55986         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
55987         Change return type to 'int'. Return -1 upon out-of-memory. Use
55988         __builtin_expect.
55989         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
55990         (gl_avltreehash_list_implementation): Update.
55991         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
55992         (gl_rbtreehash_list_implementation): Update.
55993         * modules/array-list (Depends-on): Remove xalloc.
55994         * modules/carray-list (Depends-on): Likewise.
55995         * modules/linked-list (Depends-on): Likewise.
55996         * modules/linkedhash-list (Depends-on): Likewise.
55997         * modules/avltree-list (Depends-on): Likewise.
55998         * modules/rbtree-list (Depends-on): Likewise.
55999         * modules/avltreehash-list (Depends-on): Likewise.
56000         * modules/rbtreehash-list (Depends-on): Likewise.
56002         * modules/xsublist: New file.
56003         * lib/gl_xsublist.h: New file.
56004         * lib/gl_xsublist.c: New file.
56005         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
56006         (gl_sublist_nx_create): New declaration.
56007         * lib/gl_sublist.c: Don't include xalloc.h.
56008         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
56009         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
56010         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
56011         Change return type to 'int'. Return -1 upon out-of-memory.
56012         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
56013         upon out-of-memory.
56014         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
56015         NULL upon out-of-memory.
56016         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
56017         upon out-of-memory.
56018         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
56019         NULL upon out-of-memory.
56020         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
56021         NULL upon out-of-memory.
56022         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
56023         upon out-of-memory.
56024         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
56025         (gl_sublist_list_implementation): Update.
56026         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
56027         upon out-of-memory.
56028         * modules/sublist (Depends-on): Remove xalloc.
56030         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
56031         * tests/test-carray_list.c: Likewise.
56032         * tests/test-linked_list.c: Likewise.
56033         * tests/test-linkedhash_list.c: Likewise.
56034         * tests/test-avltree_list.c: Likewise.
56035         * tests/test-rbtree_list.c: Likewise.
56036         * tests/test-avltreehash_list.c: Likewise.
56037         * tests/test-rbtreehash_list.c: Likewise.
56038         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
56039         * modules/carray-list-tests (Makefile.am): Likewise.
56040         * modules/linked-list-tests (Makefile.am): Likewise.
56041         * modules/linkedhash-list-tests (Makefile.am): Likewise.
56042         * modules/avltree-list-tests (Makefile.am): Likewise.
56043         * modules/rbtree-list-tests (Makefile.am): Likewise.
56044         * modules/avltreehash-list-tests (Makefile.am): Likewise.
56045         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
56047         * NEWS: Mention the changes.
56049         * lib/clean-temp.c: Include gl_xlist.h.
56050         * modules/clean-temp (Depends-on): Add xlist.
56052         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
56053         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
56055         * tests/test-array_oset.c: Include gl_xlist.h.
56056         * modules/array-oset-tests (Depends-on): Add xlist.
56058         Reported by José E. Marchesi <jemarch@gnu.org>.
56060 2009-12-13  Bruno Haible  <bruno@clisp.org>
56062         Move the malloc checking from module 'oset' to new module 'xoset'.
56063         * modules/xoset: New file.
56064         * lib/gl_xoset.h: New file.
56065         * lib/gl_xoset.c: New file.
56066         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
56067         declarations.
56068         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
56069         (struct gl_oset_implementation): Rename and change methods accordingly.
56070         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
56071         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
56072         'int'. Mark as __warn_unused_result__.
56073         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
56074         gl_oset_create_empty.
56075         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
56076         'int'.
56077         * lib/gl_array_oset.c: Don't include xalloc.h.
56078         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
56079         malloc, not xmalloc.
56080         (grow): Change return type to 'int'. Don't call xalloc_die.
56081         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
56082         to 'int'.
56083         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
56084         'int'.
56085         (gl_array_oset_implementation): Update.
56086         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
56087         gl_tree_create_empty.
56088         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
56089         'int'.
56090         * lib/gl_avltree_oset.c: Don't include xalloc.h.
56091         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
56092         xmalloc.
56093         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
56094         not xmalloc.
56095         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
56096         xmalloc.
56097         (gl_avltree_oset_implementation): Update.
56098         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
56099         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
56100         xmalloc.
56101         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
56102         not xmalloc.
56103         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
56104         xmalloc.
56105         (gl_rbtree_oset_implementation): Update.
56106         * modules/array-oset (Depends-on): Remove xalloc.
56107         * modules/avltree-oset (Depends-on): Likewise.
56108         * modules/rbtree-oset (Depends-on): Likewise.
56109         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
56110         * tests/test-avltree_oset.c: Likewise.
56111         * tests/test-rbtree_oset.c: Likewise.
56112         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
56113         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
56114         * modules/rbtree-oset-tests (Makefile.am): Likewise.
56115         * NEWS: Mention the change.
56117 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
56119         maint.mk: allow a project to override release-prep commands
56120         * top/maint.mk (alpha, beta, stable): Move release-preparatory
56121         commands into a new rule.
56122         (release-prep): New rule.
56123         (release-prep-hook): New overridable variable.
56125 2009-12-13  Bruno Haible  <bruno@clisp.org>
56127         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
56129 2009-12-13  Jim Meyering  <meyering@redhat.com>
56131         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
56132         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
56134 2009-12-12  Bruno Haible  <bruno@clisp.org>
56136         duplocale: Tweak.
56137         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
56139 2009-12-12  Karl Berry  <karl@gnu.org>
56141         * config/srclist.txt (strtoll.c): tab changes, no more sync.
56143 2009-12-12  Bruno Haible  <bruno@clisp.org>
56145         * m4/po.m4: Undo incorrect untabification.
56147 2009-12-12  Bruno Haible  <bruno@clisp.org>
56149         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
56150         * modules/c-strtod (Depends-on): Add locale.
56151         * modules/c-strtold (Depends-on): Likewise.
56153 2009-12-12  Bruno Haible  <bruno@clisp.org>
56155         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
56157 2009-12-11  Eric Blake  <ebb9@byu.net>
56159         setenv: relax requirement in light of POSIX ruling
56160         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
56161         not NULL.
56162         * tests/test-setenv.c (main): Relax test.
56163         * tests/test-unsetenv.c (main): Likewise.
56164         * doc/posix-functions/setenv.texi (setenv): Document this.
56165         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
56167 2009-12-11  Bruno Haible  <bruno@clisp.org>
56169         New module 'fd-safer-flag'.
56170         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
56171         * lib/dup-safer.c (dup_safer_flag): Remove function.
56172         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
56173         * lib/fd-safer.c (fd_safer_flag): Remove function.
56174         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
56175         * modules/cloexec (configure.ac): Drop indicator macro.
56176         * modules/fd-safer-flag: New file.
56177         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
56178         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
56179         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
56181 2009-12-11  Bruno Haible  <bruno@clisp.org>
56183         Tests for module 'nl_langinfo'.
56184         * modules/nl_langinfo-tests: New file.
56185         * tests/test-nl_langinfo.sh: New file.
56186         * tests/test-nl_langinfo.c: New file.
56188         New module 'nl_langinfo'.
56189         * lib/nl_langinfo.c: New file.
56190         * m4/nl_langinfo.m4: New file.
56191         * modules/nl_langinfo: New file.
56192         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
56194 2009-12-11  Bruno Haible  <bruno@clisp.org>
56196         Tests for module 'langinfo'.
56197         * modules/langinfo-tests: New file.
56198         * tests/test-langinfo.c: New file.
56200         New module 'langinfo'.
56201         * lib/langinfo.in.h: New file.
56202         * m4/langinfo_h.m4: New file.
56203         * modules/langinfo: New file.
56204         * doc/posix-headers/langinfo.texi: Mention the new module.
56206 2009-12-11  Bruno Haible  <bruno@clisp.org>
56208         * lib/config.charset: Untabify.
56210 2009-12-11  Bruno Haible  <bruno@clisp.org>
56212         * modules/unistd-safer (configure.ac): Drop indicator macro.
56214 2009-12-11  Bruno Haible  <bruno@clisp.org>
56216         Move pipe2-safer code to its own file.
56217         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
56218         * lib/pipe-safer.c (pipe2_safer): Remove function.
56219         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
56220         (Makefile.am): Add it to lib_SOURCES.
56222 2009-12-10  Bruno Haible  <bruno@clisp.org>
56224         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
56226 2009-12-10  Bruno Haible  <bruno@clisp.org>
56228         Declare which arguments expect non-NULL values, for GCC and clang.
56229         * build-aux/arg-nonnull.h: New file.
56230         * modules/arg-nonnull: New file.
56231         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
56232         (inet_ntop, inet_pton): Use it.
56233         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
56234         (closedir, dirfd, opendir, scandir, alphasort): Use it.
56235         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
56236         (open, openat): Use it.
56237         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
56238         (fnmatch): Use it.
56239         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
56240         (getopt, getopt_long, getopt_long_only): Use it.
56241         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
56242         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
56243         Use it.
56244         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
56245         (iconv_open): Use it.
56246         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
56247         (strtoimax, strtoumax): Use it.
56248         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
56249         (duplocale): Use it.
56250         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
56251         (frexp, frexpl): Use it.
56252         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
56253         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
56254         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
56255         (tsearch, tfind, tdelete, twalk): Use it.
56256         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
56257         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
56258         sigpending): Use it.
56259         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
56260         (posix_spawn, posix_spawnp, posix_spawnattr_init,
56261         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
56262         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
56263         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
56264         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
56265         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
56266         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
56267         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
56268         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
56269         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
56270         Use it.
56271         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
56272         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
56273         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
56274         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
56275         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
56276         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
56277         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
56278         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
56279         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
56280         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
56281         strtoull, unsetenv): Use it.
56282         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
56283         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
56284         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
56285         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
56286         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
56287         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
56288         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
56289         (strcasecmp, strncasecmp): Use it.
56290         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
56291         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
56292         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
56293         rpl_setsockopt): Use it.
56294         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
56295         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
56296         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
56297         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
56298         (gettimeofday): Use it.
56299         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
56300         (times): Use it.
56301         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
56302         (uname): Use it.
56303         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
56304         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
56305         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
56306         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
56307         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
56308         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
56309         unlinkat, write): Use it.
56310         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
56311         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
56312         * lib/argv-iter.h: Include arg-nonnull.h.
56313         (_ATTRIBUTE_NONNULL_): Remove macro.
56314         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
56315         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
56316         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
56317         optimization.
56318         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
56319         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
56320         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
56321         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
56322         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
56323         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
56324         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
56325         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
56326         * modules/arpa_inet (Depends-on): Add arg-nonnull.
56327         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
56328         * modules/dirent (Depends-on): Add arg-nonnull.
56329         (Makefile.am): Insert arg-nonnull.h into dirent.h.
56330         * modules/fcntl-h (Depends-on): Add arg-nonnull.
56331         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
56332         * modules/fnmatch (Depends-on): Add arg-nonnull.
56333         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
56334         * modules/getopt-posix (Depends-on): Add arg-nonnull.
56335         (Makefile.am): Insert arg-nonnull.h into getopt.h.
56336         * modules/glob (Depends-on): Add arg-nonnull.
56337         (Makefile.am): Insert arg-nonnull.h into glob.h.
56338         * modules/iconv_open (Depends-on): Add arg-nonnull.
56339         (Makefile.am): Insert arg-nonnull.h into iconv.h.
56340         * modules/inttypes (Depends-on): Add arg-nonnull.
56341         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
56342         * modules/locale (Depends-on): Add arg-nonnull.
56343         (Makefile.am): Insert arg-nonnull.h into locale.h.
56344         * modules/math (Depends-on): Add arg-nonnull.
56345         (Makefile.am): Insert arg-nonnull.h into math.h.
56346         * modules/netdb (Depends-on): Add arg-nonnull.
56347         (Makefile.am): Insert arg-nonnull.h into netdb.h.
56348         * modules/search (Depends-on): Add arg-nonnull.
56349         (Makefile.am): Insert arg-nonnull.h into search.h.
56350         * modules/signal (Depends-on): Add arg-nonnull.
56351         (Makefile.am): Insert arg-nonnull.h into signal.h.
56352         * modules/spawn (Depends-on): Add arg-nonnull.
56353         (Makefile.am): Insert arg-nonnull.h into spawn.h.
56354         * modules/stdio (Depends-on): Add arg-nonnull.
56355         (Makefile.am): Insert arg-nonnull.h into stdio.h.
56356         * modules/stdlib (Depends-on): Add arg-nonnull.
56357         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
56358         * modules/string (Depends-on): Add arg-nonnull.
56359         (Makefile.am): Insert arg-nonnull.h into string.h.
56360         * modules/strings (Depends-on): Add arg-nonnull.
56361         (Makefile.am): Insert arg-nonnull.h into strings.h.
56362         * modules/sys_socket (Depends-on): Add arg-nonnull.
56363         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
56364         * modules/sys_stat (Depends-on): Add arg-nonnull.
56365         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
56366         * modules/sys_time (Depends-on): Add arg-nonnull.
56367         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
56368         * modules/sys_times (Depends-on): Add arg-nonnull.
56369         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
56370         * modules/sys_utsname (Depends-on): Add arg-nonnull.
56371         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
56372         * modules/time (Depends-on): Add arg-nonnull.
56373         (Makefile.am): Insert arg-nonnull.h into time.h.
56374         * modules/unistd (Depends-on): Add arg-nonnull.
56375         (Makefile.am): Insert arg-nonnull.h into unistd.h.
56376         * modules/wchar (Depends-on): Add arg-nonnull.
56377         (Makefile.am): Insert arg-nonnull.h into wchar.h.
56378         * modules/argv-iter (Depends-on): Add arg-nonnull.
56379         * tests/test-canonicalize.c (null_ptr): New function.
56380         (main): Use it.
56381         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
56382         (main): Use it.
56383         * tests/test-memmem.c (null_ptr): New function.
56384         (main): Use it.
56385         Reported by Jim Meyering.
56387 2009-12-10  Bruno Haible  <bruno@clisp.org>
56389         Use spaces for indentation, not tabs.
56390         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
56391         * m4/*.m4: Untabify.
56392         * build-aux/*.h: Untabify.
56393         * tests/**/*.[hc]: Untabify.
56394         * README: New section "Indent with spaces, not TABs", based on
56395         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
56396         * NEWS: Mention the change.
56398 2009-12-10  Bruno Haible  <bruno@clisp.org>
56400         pty test: Fix link error.
56401         * modules/pty-tests (Makefile.am): Add the default LDADD value to
56402         test_pty_LDADD.
56404 2009-12-07  Simon Josefsson  <simon@josefsson.org>
56406         * modules/pty: New file.
56407         * modules/pty-tests: New file.
56408         * m4/pty.m4: New file.
56409         * tests/test-pty.c: New file.
56410         * doc/glibc-headers/pty.texi: Modified.
56411         * doc/glibc-functions/forkpty.texi: Modified.
56412         * doc/glibc-functions/openpty.texi: Modified.
56414 2009-12-10  Bruno Haible  <bruno@clisp.org>
56416         Avoid syntax error in C++ mode.
56417         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
56419 2009-12-10  Bruno Haible  <bruno@clisp.org>
56421         Use sed with option -e.
56422         * gnulib-tool (func_version, func_emit_copyright_notice,
56423         func_emit_initmacro_end, func_import, func_create_testdir): Pass
56424         option -e to sed.
56425         * modules/link-warning (Makefile.am): Likewise.
56427 2009-12-10  Jim Meyering  <meyering@redhat.com>
56429         mgetgroups: do not write bytes beyond end of malloc'd buffer
56430         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
56431         username, we call getgroups with a one-element-shorter buffer,
56432         but still told it the length was original, max_n_groups.
56434 2009-12-09  Eric Blake  <ebb9@byu.net>
56436         cloexec: relax license
56437         * modules/cloexec (Maintainer): Add myself.
56438         (License): Use LGPL, not GPL.
56440         link-warning: optimize generation
56441         * modules/link-warning (Makefile.am): Reduce process usage.
56443 2009-12-09  Bruno Haible  <bruno@clisp.org>
56445         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
56446         workaround was added on 2009-11-17.
56448 2009-12-09  Jim Meyering  <meyering@redhat.com>
56449             Bruno Haible  <bruno@clisp.org>
56451         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
56452         * modules/link-warning (Makefile.am): Make the comment-removing sed
56453         command more robust in the face of bootstrap-prepended comment lines.
56455 2009-12-09  Bruno Haible  <bruno@clisp.org>
56457         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
56458         most one group.
56460 2009-12-09  Simon Josefsson  <simon@josefsson.org>
56461             Bruno Haible  <bruno@clisp.org>
56463         * build-aux/link-warning.h: Add copyright notice.
56464         * modules/link-warning (Makefile.am): Generate link-warning.h from
56465         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
56466         * NEWS: Mention change in link-warning module.
56467         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
56468         * modules/dirent (Makefile.am): Add dependency to dirent.h.
56469         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
56470         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
56471         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
56472         * modules/math (Makefile.am): Add dependency to math.h.
56473         * modules/search (Makefile.am): Add dependency to search.h.
56474         * modules/signal (Makefile.am): Add dependency to signal.h.
56475         * modules/spawn (Makefile.am): Add dependency to spawn.h.
56476         * modules/stdio (Makefile.am): Add dependency to stdio.h.
56477         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
56478         * modules/string (Makefile.am): Add dependency to string.h.
56479         * modules/strings (Makefile.am): Add dependency to strings.h.
56480         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
56481         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
56482         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
56483         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
56484         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
56485         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
56486         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
56487         * modules/unistd (Makefile.am): Add dependency to unistd.h.
56488         * modules/wchar (Makefile.am): Add dependency to wchar.h.
56490 2009-12-09  Bruno Haible  <bruno@clisp.org>
56492         fchdir: Optimize away rpl_fstat when possible.
56493         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
56494         REPLACE_OPEN_DIRECTORY.
56495         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
56497 2009-12-09  Bruno Haible  <bruno@clisp.org>
56499         * lib/fchdir.c: Update comment.
56501 2009-12-09  Bruno Haible  <bruno@clisp.org>
56503         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
56505 2009-12-08  Eric Blake  <ebb9@byu.net>
56507         fchdir: avoid memory leak on re-registration.
56508         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
56510 2009-12-08  Jim Meyering  <meyering@redhat.com>
56512         init.sh: avoid Solaris 10 /bin/sh portability problem
56513         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
56514         sourced script:
56515           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
56516           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
56517           bar
56518         tests/init.sh relied on that, accepting a --set-path=DIR argument,
56519         and two tests used that idiom.
56520         * tests/init.sh: Update suggested usage comments.
56521         (path_prepend_): New function, to be used in place
56522         of the --src-path=DIR option.
56523         (setup_): Move PATH-prepending code into path_prepend_.
56524         * tests/test-pread.sh: Adapt to new usage.
56525         * tests/test-xalloc-die.sh: Likewise.
56527 2009-12-08  Simon Josefsson  <simon@josefsson.org>
56529         * doc/gnulib.texi (Glibc pty.h): Add.
56530         * doc/glibc-functions/forkpty.texi: Add.
56531         * doc/glibc-functions/openpty.texi: Add.
56532         Suggested by Bruno Haible.
56534 2009-12-08  Eric Blake  <ebb9@byu.net>
56536         fchdir: fix logic bugs
56537         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
56538         * tests/test-fchdir.c (main): Enhance test.
56539         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
56540         is in use.
56542         dup2: fix logic bugs
56543         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
56544         REPLACE_DUP2 to decide when rpl_dup2 is needed.
56545         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
56546         exists.
56547         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
56549 2009-12-07  Eric Blake  <ebb9@byu.net>
56551         unlink: fix m4 detection
56552         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
56554         unistd-safer: add unit test
56555         * modules/unistd-safer-tests: New file.
56556         * tests/test-dup-safer.c: Likewise.
56557         * tests/test-cloexec.c (setmode): Avoid compiler warning.
56558         * tests/test-dup2.c (setmode): Likewise.
56559         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
56561         cloexec: preserve text vs. binary across dup_cloexec
56562         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
56563         mode.
56564         * modules/dup2-tests (Depends-on): Add binary-io.
56565         * modules/cloexec-tests (Depends-on): Likewise.
56566         * tests/test-dup2.c (setmode, is_mode): New helpers.
56567         (main): Add tests that translation mode is preserved.
56568         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
56569         Reported by Bruno Haible.
56571         mgetgroups: reduce duplicate listings
56572         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
56573         resulting array.
56574         * tests/test-chown.h (test_chown): Simplify client.
56575         * tests/test-lchown.h (test_lchown): Likewise.
56577 2009-12-06  Bruno Haible  <bruno@clisp.org>
56579         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
56580         value.
56582 2009-12-06  Bruno Haible  <bruno@clisp.org>
56584         * lib/progname.c: Include stdio.h, stdlib.h.
56585         (set_program_name): Reject a NULL argument.
56587 2009-12-05  Eric Blake  <ebb9@byu.net>
56589         pipe2-safer: new module
56590         * modules/pipe2-safer: New file.
56591         * lib/unistd-safer.h (pipe2_safer): New prototype.
56592         * lib/unistd--.h (pipe2): New wrapper.
56593         * lib/pipe-safer.c (pipe2_safer): New function.
56594         * modules/pipe (Depends-on): Add pipe2-safer.
56595         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
56597         stdlib-safer: preserve cloexec flag for mkostemp[s]
56598         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
56599         fd_safer_flag.
56601         unistd-safer: allow preservation of cloexec status via flag
56602         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
56603         prototypes.
56604         * lib/dup-safer.c (dup_safer_flag): New function.
56605         * lib/fd-safer.c (fd_safer_flag): Likewise.
56606         * modules/cloexec (configure.ac): Set witness.
56608         test-dup2: enhance test
56609         * modules/dup2-tests (Depends-on): Add cloexec.
56610         * tests/test-dup2.c (main): Enhance test.
56612         cloexec: add dup_cloexec
56613         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
56614         header and comments.
56615         * lib/cloexec.c (set_cloexec_flag): Add comments.
56616         (dup_cloexec): New function, with mingw implementation borrowed
56617         from...
56618         * lib/w32spawn.h (dup_noinherit): ...here.
56619         * modules/execute (Depends-on): Add cloexec.
56620         * modules/pipe (Depends-on): Likewise.
56621         * modules/cloexec (Depends-on): Add dup2.
56622         * modules/cloexec-tests (Files): New file.
56623         * tests/test-cloexec.c: Likewise.
56625         test-xalloc-die: fix test for mingw
56626         * modules/xalloc-die-tests (Files): Add tests/init.sh.
56627         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
56628         directory and .exe suffix off argv[0] output.
56630         test-fseeko: fix test for mingw
56631         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
56632         than undefining fseek, so test will pass on mingw.
56634 2009-12-05  Bruno Haible  <bruno@clisp.org>
56636         * lib/progname.h (set_program_name): Clarify specification.
56637         * lib/progname.c (set_program_name): Likewise.
56638         Reported by Jim Meyering.
56640 2009-12-05  Jim Meyering  <meyering@redhat.com>
56642         maint.mk: backslash-escape parens in default regexp
56643         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
56644         backslash-escape the literal parentheses.
56646         maint.mk: news-date-check: use grep -E
56647         * top/maint.mk (today): Define a Make variable, not a...
56648         (news-date-check): ...shell variable.
56649         (news-date-regexp): Use the Make variable.
56650         Use grep's -E option.  Change the failing diagnostic to mention
56651         the variable, $(news-date-regexp).
56653 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
56655         maintainer-makefile: allow customization of NEWS entry format
56656         * top/maint.mk (news-date-regexp): New overridable variable.
56657         (news-date-check): Use it.
56659 2009-12-04  Eric Blake  <ebb9@byu.net>
56661         mgetgroups: add xgetgroups, and avoid ENOSYS failures
56662         * lib/mgetgroups.h (xgetgroups): New prototype.
56663         * lib/mgetgroups.c (xgetgroups): New wrapper.
56664         (mgetgroups): Handle ENOSYS.
56665         * modules/mgetgroups (Depends-on): Add realloc.
56666         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
56668         mgetgroups: avoid argument promotion issues with -1
56669         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
56670         for invalid gid_t.
56671         * tests/test-chown.h (getegid, test_chown): Likewise.
56672         * tests/test-lchown.h (getegid, test_lchown): Likewise.
56674 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
56676         exclude: Fix header file problems.
56677         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
56679 2009-12-01  Jim Meyering  <meyering@redhat.com>
56681         fts: fts_open: do not let an empty string cause immediate failure
56682         This is required in support of GNU rm, for which the command
56683         "rm A '' B" must process and remove both A and B, in spite of
56684         the empty string argument.
56685         * lib/fts.c (fts_open): Do not let the presence of an empty string
56686         cause fts_open to fail immediately.  Most fts-using tools must be
56687         able to process all arguments, in order, and can be expected to
56688         diagnose such arguments themselves.
56690 2009-11-30  Eric Blake  <ebb9@byu.net>
56692         utimens: fix compilation error
56693         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
56694         Declare variable at right scope.
56696 2009-11-29  Jim Meyering  <meyering@redhat.com>
56698         bootstrap: handle perl-5.11's changed --version output
56699         * build-aux/bootstrap (get_version): Handle perl separately,
56700         since perl-5.11's --version output is different.
56702 2009-11-28  Jim Meyering  <meyering@redhat.com>
56704         userspec: depend on the inttostr module, too
56705         * modules/userspec (Depends-on): Add inttostr.
56707         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
56708         * lib/userspec.c (parse_with_separator): Do not accept a user ID
56709         number of MAXUID when it evaluates to (uid_t) -1.
56710         Likewise for group ID.  Reported by Matt McCutchen in
56711         <http://savannah.gnu.org/bugs/?28113>
56713         userspec: reformat to use spaces, not TABs
56714         * lib/userspec.c: Expand TABs to spaces.
56715         Add Emacs' "indent-tabs-mode: nil" hint.
56717 2009-11-27  Eric Blake  <ebb9@byu.net>
56719         getopt-gnu: flush out another BSD bug
56720         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
56721         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
56722         flush out BSD bug.
56723         * tests/test-getopt.h (test_getopt): End lists with NULL.
56724         * tests/test-getopt_long.h (test_getopt_long): Likewise.
56725         (test_getopt_long_posix): Enhance test.
56726         * modules/getopt-posix-tests (Depends-on): Add stdbool.
56727         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
56728         getopt-gnu.
56729         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
56730         Likewise.
56732 2009-11-27  Simon Josefsson  <simon@josefsson.org>
56734         * modules/idpriv-droptemp-tests (Notice): Fix text.
56736 2009-11-27  Jim Meyering  <meyering@redhat.com>
56738         test-xalloc-die: avoid spurious failure due to libtool argv difference
56739         In a libtool-enabled project, this test would fail due to a difference
56740         in the emitted program name, e.g.,
56741         -test-xalloc-die: memory exhausted
56742         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
56743         Use program to avoid that.
56744         * modules/xalloc-die-tests (Depends-on): Add progname.
56745         * tests/test-xalloc-die.c: Include progname.h".
56746         (program_name): Remove decl.
56747         (main): Call set_program_name.
56748         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
56750 2009-11-26  Richard Jones  <rjones@redhat.com>
56752         w32sock: leave win32 error in place.
56753         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
56755 2009-11-26  Eric Blake  <ebb9@byu.net>
56757         init.sh: suggest to use skip_ and fail_ functions in comments
56758         * tests/init.sh: Add a sentence.
56760 2009-11-25  Bruno Haible  <bruno@clisp.org>
56762         init.sh: add documentation in comments
56763         * tests/init.sh: Add some developer and user documentation.
56765 2009-11-26  Jim Meyering  <meyering@redhat.com>
56767         init.sh: accommodate even those who specify bogus srcdir manually
56768         * tests/init.sh: Normally, srcdir is guaranteed by automake and
56769         configure-time tests to be sanitized, so that there is no need to
56770         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
56771         (with no double quotes) suffices.  However, since tests may be
56772         invoked manually, and since you may explicitly set srcdir to the
56773         name of a directory containing spaces, do quote its uses here.
56774         * tests/test-pread.sh: Likewise.
56775         Suggested by Bruno Haible.
56777         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
56778         * tests/test-pread.sh: Write no data into the pipe, because
56779         test-pread actually reads none.  This avoids a diagnostic,
56780         "bash: echo: write error: Broken pipe", that arises in the unusual
56781         event something is ignoring SIGPIPE, and might be interpreted
56782         as some sort of failure.  Reported by Bruno Haible.
56784 2009-11-25  Jim Meyering  <meyering@redhat.com>
56786         test-pread: cover failure with ESPIPE and EINVAL
56787         * tests/test-pread.c (main): Test for failure, too.
56788         * tests/test-pread.sh: Invoke with stdin on a pipe.
56789         Suggested by Eric Blake.
56791         pread: improvement and fix
56792         * modules/pread (Depends-on): Depend on lseek, for portability to
56793         e.g., mingw.  Suggested by Eric Blake.
56794         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
56796         unistd.in.h: correct declaration of pread
56797         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
56798         Reported by Richard W.M. Jones.
56800         test-pread.sh: distribute the test script
56801         * modules/pread-tests (Files): Include test-pread.sh.
56803         test-pread.sh: clean up
56804         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
56805         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
56806         That is unnecessary, since it's always ".".
56807         Suggestion from Eric Blake.
56809         test-pread.sh: make executable
56810         * tests/test-pread.sh: Set executable bit.
56811         Reported by Eric Blake.
56813         correct typo in test-pread.sh
56814         * tests/test-pread.sh: Add #! line.
56816         test pread
56817         * tests/test-pread.c: New file.
56818         * tests/test-pread.sh: Likewise.
56819         * modules/pread-tests: Likewise.
56821         pread: new module
56822         * modules/pread: New file.
56823         * lib/unistd.in.h (pread): Define/declare.
56824         * lib/pread.c (pread): New file.
56825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
56826         * modules/unistd (Makefile.am): Substitute witnesses.
56827         * doc/posix-functions/pread.texi (pread): Update.
56828         * MODULES.html.sh: Add pread.
56830 2009-11-25  Jim Meyering  <meyering@redhat.com>
56832         tests/init.sh: new file to be used via most *.sh tests
56833         * tests/init.sh: New file.
56835 2009-11-25  Eric Blake  <ebb9@byu.net>
56837         utimens: work around older Linux failure with symlinks
56838         * lib/utimens.c (lutimensat_works_really): New variable.
56839         (fdutimens, lutimens): Use it to manage kernels that support
56840         nanosecond times on files, but not on symlinks.
56841         Reported by Ondřej Vašík.
56843         utimes: fix configure grammar
56844         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
56846 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
56848         regex: Fix fastmap for multibyte character ranges.
56849         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
56850         characters when a multibyte character range is included.
56852 2009-11-22  Andy Wingo  <wingo@pobox.com>
56854         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
56855         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
56857 2009-11-24  Bruno Haible  <bruno@clisp.org>
56859         doc: Most *_l functions exist in MacOS X 10.5.
56860         * doc/posix-functions/duplocale.texi: Update platforms list.
56861         * doc/posix-functions/freelocale.texi: Likewise.
56862         * doc/posix-functions/newlocale.texi: Likewise.
56863         * doc/posix-functions/uselocale.texi: Likewise.
56864         * doc/posix-functions/isalnum_l.texi: Likewise.
56865         * doc/posix-functions/isalpha_l.texi: Likewise.
56866         * doc/posix-functions/isblank_l.texi: Likewise.
56867         * doc/posix-functions/iscntrl_l.texi: Likewise.
56868         * doc/posix-functions/isdigit_l.texi: Likewise.
56869         * doc/posix-functions/isgraph_l.texi: Likewise.
56870         * doc/posix-functions/islower_l.texi: Likewise.
56871         * doc/posix-functions/isprint_l.texi: Likewise.
56872         * doc/posix-functions/ispunct_l.texi: Likewise.
56873         * doc/posix-functions/isspace_l.texi: Likewise.
56874         * doc/posix-functions/isupper_l.texi: Likewise.
56875         * doc/posix-functions/iswalnum_l.texi: Likewise.
56876         * doc/posix-functions/iswalpha_l.texi: Likewise.
56877         * doc/posix-functions/iswblank_l.texi: Likewise.
56878         * doc/posix-functions/iswcntrl_l.texi: Likewise.
56879         * doc/posix-functions/iswctype_l.texi: Likewise.
56880         * doc/posix-functions/iswdigit_l.texi: Likewise.
56881         * doc/posix-functions/iswgraph_l.texi: Likewise.
56882         * doc/posix-functions/iswlower_l.texi: Likewise.
56883         * doc/posix-functions/iswprint_l.texi: Likewise.
56884         * doc/posix-functions/iswpunct_l.texi: Likewise.
56885         * doc/posix-functions/iswspace_l.texi: Likewise.
56886         * doc/posix-functions/iswupper_l.texi: Likewise.
56887         * doc/posix-functions/iswxdigit_l.texi: Likewise.
56888         * doc/posix-functions/isxdigit_l.texi: Likewise.
56889         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
56890         * doc/posix-functions/strcasecmp_l.texi: Likewise.
56891         * doc/posix-functions/strcoll_l.texi: Likewise.
56892         * doc/posix-functions/strfmon_l.texi: Likewise.
56893         * doc/posix-functions/strftime_l.texi: Likewise.
56894         * doc/posix-functions/strncasecmp_l.texi: Likewise.
56895         * doc/posix-functions/strxfrm_l.texi: Likewise.
56896         * doc/posix-functions/tolower_l.texi: Likewise.
56897         * doc/posix-functions/toupper_l.texi: Likewise.
56898         * doc/posix-functions/towctrans_l.texi: Likewise.
56899         * doc/posix-functions/towlower_l.texi: Likewise.
56900         * doc/posix-functions/towupper_l.texi: Likewise.
56901         * doc/posix-functions/wcscoll_l.texi: Likewise.
56902         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
56903         * doc/posix-functions/wctrans_l.texi: Likewise.
56904         * doc/posix-functions/wctype_l.texi: Likewise.
56905         * doc/glibc-functions/strptime_l.texi: Likewise.
56906         * doc/glibc-functions/strtod_l.texi: Likewise.
56907         * doc/glibc-functions/strtof_l.texi: Likewise.
56908         * doc/glibc-functions/strtol_l.texi: Likewise.
56909         * doc/glibc-functions/strtold_l.texi: Likewise.
56910         * doc/glibc-functions/strtoll_l.texi: Likewise.
56911         * doc/glibc-functions/strtoul_l.texi: Likewise.
56912         * doc/glibc-functions/strtoull_l.texi: Likewise.
56913         * doc/glibc-functions/wcsftime_l.texi: Likewise.
56914         * doc/glibc-functions/wcstod_l.texi: Likewise.
56915         * doc/glibc-functions/wcstof_l.texi: Likewise.
56916         * doc/glibc-functions/wcstol_l.texi: Likewise.
56917         * doc/glibc-functions/wcstold_l.texi: Likewise.
56918         * doc/glibc-functions/wcstoll_l.texi: Likewise.
56919         * doc/glibc-functions/wcstoul_l.texi: Likewise.
56920         * doc/glibc-functions/wcstoull_l.texi: Likewise.
56922 2009-11-24  Bruno Haible  <bruno@clisp.org>
56924         duplocale: Fix logic bug.
56925         * lib/duplocale.c: Don't include <langinfo.h>.
56926         (_NL_LOCALE_NAME): Remove macro.
56927         (rpl_duplocale): Use setlocale instead of nl_langinfo.
56928         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
56930 2009-11-23  Jim Meyering  <meyering@redhat.com>
56932         test-update-copyright: don't hard-code /usr/bin/perl
56933         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
56934         perl to print the current year.  Gilles Espinasse reported that
56935         the replaced use of perl was hard-coded as /usr/bin/perl.
56937 2009-11-23  Bruno Haible  <bruno@clisp.org>
56939         duplocale: Add support for glibc 2.3.x.
56940         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
56942 2009-11-22  Bruno Haible  <bruno@clisp.org>
56944         vasnprintf: Tiny optimization.
56945         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
56946         MacOS X.
56948 2009-11-22  Bruno Haible  <bruno@clisp.org>
56950         Tests for module 'duplocale'.
56951         * modules/duplocale-tests: New file.
56952         * tests/test-duplocale.c: New file.
56954         New module 'duplocale'.
56955         * m4/duplocale.m4: New file.
56956         * lib/locale.in.h (duplocale): New declaration.
56957         * lib/duplocale.c: New file.
56958         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
56959         gl_LOCALE_H_DEFAULTS): New macros.
56960         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
56961         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
56962         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
56963         REPLACE_DUPLOCALE.
56964         * modules/duplocale: New file.
56965         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
56967 2009-11-22  Bruno Haible  <bruno@clisp.org>
56969         * modules/locale-tests (configure.ac): Test for newlocale function.
56970         * tests/test-locale.c: When the system has extended locale functions,
56971         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
56973         locale: Make locale_t available when possible.
56974         * lib/locale.in.h: Include <xlocale.h> when it exists.
56975         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
56976         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
56977         * modules/locale (Depends-on): Add extensions.
56978         (Makefile.am): Also substitute HAVE_XLOCALE_H.
56979         * doc/posix-headers/locale.texi: Document the problem with locale_t.
56981 2009-11-22  Bruno Haible  <bruno@clisp.org>
56983         Add comments.
56984         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
56985         invocation.
56986         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
56987         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
56988         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
56990 2009-11-22  Bruno Haible  <bruno@clisp.org>
56992         error: account for the possibility of freopen (stdout).
56993         * lib/error.c: Include <unistd.h>.
56994         (flush_stdout): New function, extracted from error and error_at_line.
56995         Determine stdout's fd dynamically.
56996         (error, error_at_line): Invoke flush_stdout.
56997         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
56998         * modules/error (Depends-on): Add unistd.
57000 2009-11-22  Bruno Haible  <bruno@clisp.org>
57002         diffseq: Add comment.
57003         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
57005 2009-11-22  Jim Meyering  <meyering@redhat.com>
57007         c-stack: avoid defining an unused static function
57008         * lib/c-stack.c (find_stack_direction): Do not define this function
57009         when it will not be used.
57011         diffseq: avoid spurious gcc warnings
57012         * lib/diffseq.h (IF_LINT2): Define.
57013         (compareseq): Use it to initialize two members of "part".
57014         This avoids two used-uninitialized warnings.
57016 2009-11-21  Jim Meyering  <meyering@redhat.com>
57018         c-stack: avoid "ignoring return value of `write'" warning
57019         * lib/c-stack.c: Include "ignore-value.h".
57020         (die): Explicitly ignore each write return value.
57021         * modules/c-stack (Depends-on): Add ignore-value.
57023 2009-11-21  Bruno Haible  <bruno@clisp.org>
57025         diffseq: reduce scope of variable 'best'.
57026         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
57027         variable, earlier used for two different purposes.
57029 2009-11-21  Jim Meyering  <meyering@redhat.com>
57031         diffseq: remove useless assignment to "best"
57032         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
57033         assignment.  At that point "best" is already guaranteed to be zero.
57035 2009-11-20  Eric Blake  <ebb9@byu.net>
57037         build: mention ftp redirector in release announcements
57038         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
57039         values that used to come from cfg.mk; mention FTP redirect URL.
57040         * build-aux/announce-gen: Mention the mirror list.
57041         Suggested by Karl Berry.
57043         nanosleep: improve port to mingw
57044         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
57045         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
57046         LIB_NANOSLEEP, but only when needed.
57047         * modules/select (Link): Document LIBSOCKET.
57048         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
57049         enough.
57051         nanosleep: work around cygwin bug
57052         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
57053         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
57054         bug.
57055         (getnow): Delete, not needed.
57056         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
57057         LIB_CLOCK_GETTIME.
57058         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
57059         clock-time, gettime.
57060         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
57061         bug.
57062         * modules/nanosleep-tests: New test.
57063         * tests/test-nanosleep.c: New file.
57065         sleep: work around cygwin bug
57066         * lib/sleep.c (rpl_sleep): Work around the bug.
57067         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
57068         (gl_PREREQ_SLEEP): Delete unused macro.
57069         * modules/sleep (Depends-on): Add verify.
57070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
57071         * modules/unistd (Makefile.am): Substitute witness.
57072         * lib/unistd.in.h (sleep): Update prototype.
57073         * doc/posix-functions/sleep.texi (sleep): Document the bug.
57074         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
57075         * modules/sleep-tests (Depends-on): Check for alarm.
57077 2009-11-20  Jim Meyering  <meyering@redhat.com>
57079         maint.mk: improve sc_prohibit_magic_number_exit
57080         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
57081         so it does not match uses like System.exit(1).
57082         Add comments showing how to correct all offenders.
57084 2009-11-19  Eric Blake  <ebb9@byu.net>
57086         xalloc-die-tests: add missing library
57087         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
57089         test-xvasprintf: silence compiler warnings
57090         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
57091         empty string from gcc.
57093 2009-11-19  Jim Meyering  <meyering@redhat.com>
57095         xfreopen: new module, from coreutils
57096         * modules/xfreopen: New module.
57097         * lib/xfreopen.c: New file.
57098         * lib/xfreopen.h: New file.
57099         * MODULES.html.sh (File stream based Input/Output"): Add it.
57101 2009-11-19  Eric Blake  <ebb9@byu.net>
57103         manywarnings: depend on warnings
57104         * modules/manywarnings (Depends-on): Add warnings.
57106         build: avoid compiler warnings
57107         * lib/select.c (rpl_select): Delete unused variable.
57108         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
57110 2009-11-18  Eric Blake  <ebb9@byu.net>
57112         tests: avoid false negative with --with-packager
57113         * tests/test-version-etc.sh: Discard packager information.
57114         * tests/test-argp-version-etc-1.sh: Likewise.
57115         Reported by Mike Frysinger.
57117         utimens: fix regression on Solaris
57118         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
57119         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
57120         can only change fd timestamps via futimesat.  Instead, use an
57121         additional witness macro to avoid BSD bug.
57122         Reported by Jim Meyering.
57124 2009-11-17  Eric Blake  <ebb9@byu.net>
57126         usleep: use it to simplify tests
57127         * modules/stat-time-tests (Depends-on): Add usleep.
57128         (configure.ac): Drop usleep check.
57129         * modules/chown-tests (Depends-on, configure.ac): Likewise.
57130         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
57131         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
57132         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
57133         * modules/openat-tests (Depends-on, configure.ac): Likewise.
57134         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
57135         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
57136         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
57137         Likewise.
57138         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
57139         * tests/test-lchown.h (nap): Likewise.
57140         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
57141         * tests/test-stat-time.c (nap): Likewise.
57142         * tests/test-utimens-common.h (nap): Update comments.
57144         usleep: new module
57145         * modules/usleep: New file.
57146         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
57147         * lib/usleep.c (usleep): Likewise.
57148         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
57149         * modules/unistd (Makefile.am): Substitute witnesses.
57150         * lib/unistd.in.h (usleep): Add declaration.
57151         * doc/pastposix-functions/usleep.texi (usleep): Document this.
57152         * MODULES.html.sh (Date and time): Likewise.
57153         * modules/usleep-tests (Depends-on): New test.
57154         * tests/test-usleep.c: New file.
57156         chown: work around OpenBSD bug
57157         * lib/chown.c (rpl_chown): Work around the bug.
57158         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
57159         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
57160         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
57161         * modules/chown (Depends-on): Add stdbool.
57162         * modules/lchown (Depends-on): Likewise.
57163         * doc/posix-functions/chown.texi (chown): Document the bug.
57164         * doc/posix-functions/lchown.texi (lchown): Likewise.
57165         * tests/test-lchown.h (test_chown): Relax test.
57167         mkstemp: avoid conflict with C++ keyword template
57168         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
57169         * lib/mkostemp.c (mkostemp): Likewise.
57170         * lib/mkostemps.c (mkostemps): Likewise.
57171         * lib/mkstemp.c (mkstemp): Likewise.
57172         * lib/mkstemps.c (mkstemps): Likewise.
57174         xalloc-die-tests: optimize
57175         * tests/test-xalloc-die.sh: Reduce number of processes.
57177 2009-11-17  Simon Josefsson  <simon@josefsson.org>
57179         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
57180         patch from ludo@gnu.org (Ludovic Courtès).
57182 2009-11-17  Jim Meyering  <meyering@redhat.com>
57184         version-etc: use proper license string
57185         * modules/version-etc (License): Use LGPL, not LGPLv3+.
57186         * modules/version-etc-fsf: Likewise.
57188 2009-11-17  Simon Josefsson  <simon@josefsson.org>
57190         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
57191         printed to stdout.  Deal with EOL differences.
57193 2009-11-17  Eric Blake  <ebb9@byu.net>
57195         unsetenv: work around Solaris bug
57196         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
57197         * lib/unsetenv.c (rpl_unsetenv): Work around it.
57198         Reported by Jim Meyering.
57200         vasnprintf: avoid compiler warnings
57201         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
57202         variables.
57203         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
57205 2009-11-17  Simon Josefsson  <simon@josefsson.org>
57207         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
57208         settings since xalloc-die is no longer the self test,
57209         xalloc-die.sh is.
57211 2009-11-17  Jim Meyering  <meyering@redhat.com>
57213         test-xalloc-die.sh: make the code agree with the commit log
57214         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
57215         at the end, just in case you happen to have a test-xalloc-die
57216         program in some other PATH directory.
57218         test-xalloc-die.sh: fix a portability bug
57219         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
57220         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
57221         Otherwise, argv[0] (as often seen in diagnostics) would be too
57222         system-dependent, sometimes with, and sometimes without the leading "./".
57224         version-etc-fsf: relax license to LGPLv3+
57225         * modules/version-etc-fsf (License): Relax license.
57227 2009-11-16  Eric Blake  <ebb9@byu.net>
57229         xalloc-die-tests: avoid printing null pointer
57230         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
57231         shell script.
57232         * tests/test-xalloc-die.c (program_name): Declare.
57233         * tests/test-xalloc-die.sh (tmpfiles): New file.
57235         setenv, unsetenv: work around various bugs
57236         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
57237         (setenv) [HAVE_SETENV]: Work around bugs.
57238         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
57239         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
57240         for bugs.
57241         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
57242         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
57243         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
57244         * modules/stdlib (Makefile.am): Update substitutions.
57245         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
57246         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
57247         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
57248         * modules/setenv-tests: New test.
57249         * modules/unsetenv-tests: Likewise.
57250         * tests/test-setenv.c: New file.
57251         * tests/test-unsetenv.c: Likewise.
57253 2009-11-16  Jim Meyering  <meyering@redhat.com>
57255         version-etc: relax license to LGPLv3+
57256         * modules/version-etc (License): Relax license.
57258         better AC_REQUIRE expanded-before-required-warning avoidance
57259         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
57260         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
57261         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
57262         which is no longer needed.
57264 2009-11-16  Eric Blake  <ebb9@byu.net>
57266         test-freading: clean up temporary file
57267         * tests/test-freading.c (main): Remove file on success, and use
57268         ASSERT more liberally.
57269         Reported by Jim Meyering.
57271 2009-11-16  Jim Meyering  <meyering@redhat.com>
57273         avoid new AC_REQUIRE expanded-before-required warnings
57274         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
57275         merely using it.
57276         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
57277         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
57279 2009-11-15  Simon Josefsson  <simon@josefsson.org>
57281         * tests/test-xalloc-die.c: New file.
57282         * modules/xalloc-die-tests: New file.
57283         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
57284         XFAIL_TESTS so it can be appended by modules.
57286 2009-11-15  Simon Josefsson  <simon@josefsson.org>
57288         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
57289         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
57291 2009-11-14  Eric Blake  <ebb9@byu.net>
57293         fnmatch: avoid compiler warning
57294         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
57295         to silence compiler warning about mismatch signedness in ?:.
57296         Reported by Robert Millan.
57298         intprops: add double-inclusion guard
57299         * lib/intprops.h: Allow idempotent includes.
57300         Suggested by Bruce Korb.
57302         openat: detect Solaris fchownat bug
57303         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
57304         penalizing glibc chownat when only lchownat is broken.
57305         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
57306         trailing slash bugs.
57307         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
57308         * modules/openat-tests (Files): Include more files.
57309         (Depends-on): Add mgetgroups, sleep, stat-time.
57310         (configure.ac): Add additional checks.
57311         (Makefile.am): Build new test.
57312         * tests/test-fchownat.c: New file.
57314         lchown: detect Solaris and FreeBSD bug
57315         * lib/lchown.c (rpl_lchown): Work around bug.
57316         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
57317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
57318         * modules/unistd (Makefile.am): Populate it.
57319         * lib/unistd.in.h (lchown): Update declaration.
57320         * doc/posix-functions/lchown.texi (lchown): Document the bug.
57321         * modules/lchown-tests: New file.
57322         * tests/test-lchown.h (test_lchown): Likewise.
57323         * tests/test-lchown.c (main): Likewise.
57325         chown: detect Solaris and FreeBSD bug
57326         * lib/chown.c (rpl_chown): Work around bug.
57327         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
57328         (gl_PREREQ_CHOWN): Delete.
57329         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
57330         * modules/unistd (Makefile.am): Populate it.
57331         * lib/unistd.in.h (chown): Update declaration.
57332         * lib/lchown.c (chown): Update client.
57333         * modules/lchown (Depends-on): Add lstat.
57334         * doc/posix-functions/chown.texi (chown): Document the bug.
57335         * doc/posix-functions/getgroups.texi (getgroups): Document
57336         getgroups pitfall.
57337         * modules/chown-tests: New file.
57338         * tests/test-chown.h (test_chown): Likewise.
57339         * tests/test-chown.c (main): Likewise.
57341 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
57343         gnulib-tool: correctly detect absence of m4 directories
57344         * gnulib-tool: Avoid extra newline on data passed to wc -l.
57346 2009-11-14  Jim Meyering  <meyering@redhat.com>
57348         maint.mk: Prohibit inclusion of "xalloc.h" without use.
57349         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
57351 2009-11-14  John W. Eaton  <jwe@gnu.org>
57353         strftime.h: wrap function declaration in extern "C" block
57354         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
57356 2009-11-13  Eric Blake  <ebb9@byu.net>
57358         getgroups: avoid compiler warning
57359         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
57361         getgroups: work around FreeBSD bug
57362         * lib/getgroups.c (rpl_getgroups): Work around the bug.
57363         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
57364         * doc/posix-functions/getgroups.texi (getgroups): Document it.
57365         * tests/test-getgroups.c (main): Fix buffer overrun.
57367         getgroups: avoid compilation failure
57368         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
57369         * modules/getgroups (Depends-on): Add stdint.
57371 2009-11-13  Jim Meyering  <meyering@redhat.com>
57373         test-getgroups: avoid compilation failure
57374         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
57376 2009-11-13  Eric Blake  <ebb9@byu.net>
57378         mgetgroups: new module, taken from coreutils
57379         * modules/mgetgroups: New file.
57380         * lib/mgetgroups.h: Likewise.
57381         * lib/mgetgroups.c (mgetgroups): Likewise.
57382         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
57383         * MODULES.html.sh (Users and groups): Mention it.
57385         getgroups: don't expose GETGROUPS_T to user
57386         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
57387         an element at a time if GETGROUPS_T is wrong size.
57388         * lib/getugroups.h (getugroups): Change signature.
57389         * lib/unistd.in.h (getgroups): Likewise.
57390         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
57391         signature needs fixing.
57392         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
57393         AC_TYPE_GETGROUPS.
57394         * modules/group-member (Depends-on): Add getgroups.
57395         * lib/group-member.c (group_info, get_group_info): Use gid_t.
57396         (group_member): Rely on getgroups replacement.
57397         * lib/getugroups.c (getugroups): Use gid_t.
57398         * tests/test-getgroups.c (main): Likewise.
57399         * NEWS: Mention the signature change.
57400         * doc/posix-functions/getgroups.texi (getgroups): Mention the
57401         problem with signature.
57402         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
57403         GETGROUPS_T is still useful for setgroups.
57405         getgroups, getugroups: provide stubs for mingw
57406         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
57407         * lib/getugroups.c (getugroups): Likewise.
57408         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
57409         function.  Modernize replacement scheme.
57410         (gl_PREREQ_GETGROUPS): Delete.
57411         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
57412         * modules/getgroups (configure.ac): Declare witness.
57413         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
57414         * modules/unistd (Depends-on): Substitute witness.
57415         * lib/unistd.in.h (getgroups): Declare replacement.
57417         getgroups: avoid calling exit
57418         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
57419         drop xalloc.
57420         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
57421         dependencies.
57422         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
57423         exiting, in the rare case of malloc failure.
57425         getgroups: fix logic error
57426         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
57427         has more than 20 groups.
57428         * modules/getgroups-tests: New test.
57429         * tests/test-getgroups.c: New file.
57431 2009-11-13  Simon Josefsson  <simon@josefsson.org>
57433         * tests/test-base64.c: Improve.
57435 2009-11-13  Simon Josefsson  <simon@josefsson.org>
57437         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
57438         Blake <ebb9@byu.net>.
57440 2009-11-13  Simon Josefsson  <simon@josefsson.org>
57442         * tests/test-xvasprintf.c: Add %s%s related checks.
57444 2009-11-12  Eric Blake  <ebb9@byu.net>
57446         version-etc: match standards.texi style
57447         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
57448         and use <> only for URLs.
57450 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
57452         fts: do not fail on a submount during traversal
57453         * lib/fts.c (fts_build): Read the stat info again after opening
57454         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
57455         Original report at http://bugzilla.redhat.com/501848.
57457 2009-11-12  Jim Meyering  <meyering@redhat.com>
57459         bootstrap: sync from coreutils
57460         * build-aux/bootstrap (bootstrap_epilogue): New function.
57461         Use git_modules_config in one more place.  This make bootstrap's
57462         --gnulib-srcdir option more useful for testing.
57464         bootstrap: generalize autoheader check
57465         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
57466         AC_CONFIG_HEADERS.
57468 2009-11-11  Eric Blake  <ebb9@byu.net>
57470         mkfifoat: use new modules for Solaris and BSD bugs
57471         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
57472         * lib/mkfifoat.c (mknodat): Split...
57473         * lib/mknodat.c (mknodat): ...into new file.
57474         * modules/mkfifoat (Files): Ship new file.
57475         (Depends-on): Add mkfifo, mknod.
57476         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
57477         (Depends-on): Add symlink.
57478         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
57479         redundant with test_mkfifo.h.
57480         (do_mkfifoat, do_mknodat): New helpers.
57482         mknod: new module
57483         * modules/mknod: New file.
57484         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
57485         * lib/mknod.c (mknod): Likewise.
57486         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
57487         defaults.
57488         * modules/sys_stat (Makefile.am): Substitute them.
57489         * lib/sys_stat.in.h (mknod): Declare replacement.
57490         * MODULES.html.sh (Support for systems lacking POSIX:2008):
57491         Document it.
57492         * doc/posix-functions/mknod.texi (mknod): Likewise.
57493         * modules/mknod-tests: New test.
57494         * tests/test-mknod.c: Likewise.
57496         mkfifo: new module
57497         * modules/mkfifo: New file.
57498         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
57499         * lib/mkfifo.c (mkfifo): Likewise.
57500         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
57501         defaults.
57502         * modules/sys_stat (Makefile.am): Substitute them.
57503         * lib/sys_stat.in.h (mkfifo): Declare replacement.
57504         * MODULES.html.sh (Support for systems lacking POSIX:2008):
57505         Document it.
57506         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
57507         * modules/mkfifo-tests: New test.
57508         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
57509         from test-mkfifoat.c.
57510         * tests/test-mkfifo.c: New file.
57512         readlink: detect FreeBSD bug
57513         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
57514         slash on symlink.
57515         * doc/posix-functions/readlink.texi (readlink): Document the bug.
57516         * tests/test-readlink.h (test_readlink): Enhance test.
57518         symlink: detect FreeBSD bug
57519         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
57520         slash on symlink.
57521         * doc/posix-functions/symlink.texi (symlink): Document the bug.
57522         * tests/test-symlink.h (test_symlink): Enhance test.
57524 2009-11-10  Eric Blake  <ebb9@byu.net>
57526         link: detect FreeBSD bug
57527         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
57528         symlink.
57529         * doc/posix-functions/link.texi (link): Document the bug.
57530         * tests/test-link.h (test_link): Enhance test.
57531         * tests/test-linkat.c (main): Update caller.
57533         unlink, remove: detect FreeBSD bug
57534         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
57535         slash on symlink.
57536         * doc/posix-functions/unlink.texi (unlink): Document the bug.
57537         * doc/posix-functions/remove.texi (remove): Likewise.
57538         * tests/test-unlink.h (test_unlink): Enhance test.
57539         * tests/test-remove.c (main): Likewise.
57541 2009-11-09  Eric Blake  <ebb9@byu.net>
57543         rename: detect FreeBSD bug
57544         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
57545         slash on symlink.
57546         * modules/renameat-tests (Depends-on): Add filenamecat.
57547         * tests/test-rename.h (test_rename): Allow one more errno.
57548         * tests/test-renameat.c (main): Likewise.
57549         * doc/posix-functions/rename.texi (rename): Document the bug.
57551         open: detect FreeBSD bug
57552         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
57553         symlink.
57554         * doc/posix-functions/open.texi (open): Document the bug.
57555         * doc/posix-functions/utimes.texi (utimes): Likewise.
57556         * tests/test-open.h (test_open): Add parameters, and test symlink
57557         handling.
57558         * tests/test-open.c (main): Adjust caller.
57559         * tests/test-fcntl-safer.c (main): Likewise.
57560         * modules/open-tests (Depends-on): Add stdbool, symlink.
57561         * modules/fcntl-safer-tests (Depends-on): Likewise.
57562         * tests/test-openat.c (main): Add test-open tests.
57564         stat: detect FreeBSD bug
57565         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
57566         symlink.
57567         * doc/posix-functions/stat.texi (stat): Document the bug.
57568         * tests/test-stat.h (test_stat_func): Add argument.
57569         * tests/test-stat.c (main): Adjust caller.
57570         * tests/test-fstatat.c (main): Likewise.
57571         * modules/stat-tests (Depends-on): Add stdbool, symlink.
57572         Reported by Jim Meyering.
57574 2009-11-09  James Youngman  <jay@gnu.org>
57576         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
57577         * lib/strftime.c: Correct placement of #include "ignore-value.h".
57579 2009-11-08  Jim Meyering  <meyering@redhat.com>
57581         utimens: remove invalid futimesat call
57582         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
57583         It used the file descriptor of the target file as the DIR_FD
57584         parameter and NULL as the file name.  That caused failure with
57585         errno == EFAULT on FreeBSD-8.0-rc2
57587 2009-11-07  Eric Blake  <ebb9@byu.net>
57589         fflush, freadseek: use fseeko, not fseek
57590         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
57591         (clear_ungetc_buffer): Avoid potential problems on large files.
57592         * lib/freadseek.c (freadseek): Likewise.
57593         * modules/freadseek (Depends-on): Add fseeko.
57594         * modules/fseek (configure.ac): Set a witness.
57595         * tests/test-fflush.c (main): Use fseeko.
57596         * tests/test-fpurge.c (fseek): Disable link warning.
57597         * tests/test-freadable.c (fseek): Likewise.
57598         * tests/test-freading.c (fseek): Likewise.
57599         * tests/test-fseeko.c (fseek): Likewise.
57600         * tests/test-ftell.c (fseek): Likewise.
57601         * tests/test-ftello.c (fseek): Likewise.
57602         * tests/test-fwritable.c (fseek): Likewise.
57603         * tests/test-fwriting.c (fseek): Likewise.
57605 2009-11-06  Simon Josefsson  <simon@josefsson.org>
57607         * modules/memchr (Depends-on): Drop getpagesize dependency.
57609 2009-11-06  Simon Josefsson  <simon@josefsson.org>
57611         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
57612         Reported by Ludovic Courtès.
57613         * build-aux/pmccabe2html: Improve example usage.
57614         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
57616 2009-11-06  Jim Meyering  <meyering@redhat.com>
57618         do-release-commit-and-tag: New module.
57619         Automate the release-commit and tag process.
57620         * build-aux/do-release-commit-and-tag: New script, from coreutils.
57621         * modules/do-release-commit-and-tag: New file.
57622         * MODULES.html.sh (Support for maintaining and releasing): Add it.
57624 2009-11-06  Simon Josefsson  <simon@josefsson.org>
57626         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
57627         because test-select.c uses inet_pton.
57629 2009-11-06  Simon Josefsson  <simon@josefsson.org>
57631         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
57632         GETADDRINFO_LIB.  Bump serial number.
57633         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
57634         Suggested by Eric Blake <ebb9@byu.net>.
57636 2009-11-05  Eric Blake  <ebb9@byu.net>
57638         strtod: detect darwin bug
57639         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
57640         Reported by Leo Davis.
57642         freopen-safer: new module
57643         * modules/freopen-safer: New module.
57644         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
57645         * lib/freopen-safer.c (freopen_safer): New file.
57646         * lib/stdio-safer.h (freopen_safer): New declaration.
57647         * lib/stdio--.h (freopen): New override.
57648         * MODULES.html.sh (File stream based Input/Output): Mention it.
57649         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
57650         freopen-safer module.
57651         * doc/posix-functions/stderr.texi (stderr): Likewise.
57652         * doc/posix-functions/stdin.texi (stdin): Likewise.
57653         * doc/posix-functions/stdout.texi (stdout): Likewise.
57654         * modules/freopen-safer-tests: New test.
57655         * tests/test-reopen-safer.c: New file.
57657 2009-11-05  Jim Meyering  <meyering@redhat.com>
57659         maint.mk: Prohibit inclusion of "close-stream.h" without use.
57660         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
57662 2009-11-05  Simon Josefsson  <simon@josefsson.org>
57664         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
57666 2009-11-05  Simon Josefsson  <simon@josefsson.org>
57668         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
57670 2009-11-05  Simon Josefsson  <simon@josefsson.org>
57672         Fix link error.
57673         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
57674         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57676 2009-11-05  Simon Josefsson  <simon@josefsson.org>
57678         * tests/test-func.c: Also test value of __func__.
57680 2009-11-05  Simon Josefsson  <simon@josefsson.org>
57682         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
57683         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
57685 2009-11-05  Bruno Haible  <bruno@clisp.org>
57687         Fix link error.
57688         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
57689         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57690         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
57692 2009-11-05  Bruno Haible  <bruno@clisp.org>
57694         Tests for module 'inet_pton'.
57695         * modules/inet_pton-tests: New file.
57696         * tests/test-inet_pton.c: New file.
57698 2009-11-05  Bruno Haible  <bruno@clisp.org>
57700         Tests for module 'inet_ntop'.
57701         * modules/inet_ntop-tests: New file.
57702         * tests/test-inet_ntop.c: New file.
57704 2009-11-04  Eric Blake  <ebb9@byu.net>
57706         stdlib-safer: wrap all mkstemp variants
57707         * modules/mkostemp (configure.ac): Set witness.
57708         * modules/mkostemps (configure.ac): Likewise.
57709         * modules/mkstemps (configure.ac): Likewise.
57710         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
57711         (mkstemps_safer): Wrap more functions.
57712         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
57713         wrapping.
57714         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
57715         (mkstemps_safer): Implement the wrappers.
57717         mkstemps, mkostemps: new modules
57718         * modules/mkostemps: New module.
57719         * modules/mkstemps: Likewise.
57720         * lib/mkostemps.c (mkostemps): New file.
57721         * lib/mkstemps.c (mkstemps): Likewise.
57722         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
57723         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
57724         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
57725         * modules/stdlib (Makefile.am): Substitute them.
57726         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
57727         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
57728         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
57729         * doc/gnulib.texi (Glibc stdlib.h): Include them.
57730         * MODULES.html.sh (File system functions): Mention them.
57732         tempname: resync from glibc
57733         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
57734         same values for __GT_FILE as glibc.  Abort even when assertions
57735         are disabled.
57736         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
57737         match its value otherwise.  Allow idempotent inclusion.
57738         * lib/mkdtemp.c (mkdtemp): Adjust caller.
57739         * lib/mkostemp.c (mkostemp): Likewise.
57740         * lib/mkstemp.c (mkstemp): Likewise.
57741         * lib/tmpfile.c (tmpfile): Likewise.
57742         * NEWS: Document this.
57744         utimens: fix use of futimens on older Linux
57745         * lib/utimens.c (fdutimens): Use updated, rather than original,
57746         timespec to avoid bug in older Linux kernel.
57747         Reported by Simon Josefsson.
57749 2009-11-04  Bruno Haible  <bruno@clisp.org>
57751         Make num_processors more flexible and consistent.
57752         * lib/nproc.h (enum nproc_query): New type.
57753         (num_processors): Add a 'query' argument.
57754         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
57755         (num_processors): Add a 'query' argument. Test the value of the
57756         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
57757         mingw, count the number of CPUs available for the current process.
57758         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
57759         Check for sched_getaffinity and sched_getaffinity_np.
57760         * modules/nproc (Depends-on): Add c-ctype, extensions.
57761         * NEWS: Mention the change.
57763 2009-11-03  Bruno Haible  <bruno@clisp.org>
57765         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
57767 2009-11-03  Jim Meyering  <meyering@redhat.com>
57769         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
57770         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
57771         if it is defined.
57773 2009-11-02  Eric Blake  <ebb9@byu.net>
57775         mktime, timegm: share common declaration
57776         * lib/mktime-internal.h: New file.
57777         * lib/mktime.c: Use it rather than open-coding a declaration.
57778         * lib/timegm.c: Likewise.
57779         * modules/mktime (Files): Ship it.
57780         * modules/timegm (Files): Likewise.
57781         Suggested by Bruno Haible.
57783         test-update-copyright: update test to match script changes
57784         * tests/test-update-copyright.sh: Avoid hard-coding perl
57785         location.  Don't update *.bak created by earlier runs.
57787 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
57788             Simon Josefsson  <simon@josefsson.org>
57789             Bruno Haible  <bruno@clisp.org>
57791         Fix link error on Solaris 8.
57792         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
57793         also in libnsl. Define also INET_PTON_LIB.
57794         * modules/inet_pton (Link): New section.
57796 2009-11-02  Simon Josefsson  <simon@josefsson.org>
57797             Bruno Haible  <bruno@clisp.org>
57799         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
57800         * modules/inet_ntop (Link): New section.
57801         Reported by Boyan Kasarov <bkasarov@gmail.com>.
57803 2009-11-02  Eric Blake  <ebb9@byu.net>
57805         maint: avoid compiler warnings in m4 macros
57806         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
57807         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
57809 2009-11-02  Simon Josefsson  <simon@josefsson.org>
57811         * m4/pmccabe2html.m4: Remove file.
57812         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
57813         function.  Change maintainer.
57814         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
57815         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
57816         Courtès).
57818 2009-10-31  Eric Blake  <ebb9@byu.net>
57820         fseeko: fix m4 regression
57821         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
57822         regression from 2009-10-27.
57823         Reported by Ralf Wildenhues.
57825 2009-10-31  Jim Meyering  <meyering@redhat.com>
57827         inttostr: aesthetics and improved (compile-time) safety
57828         Define inttype_is_signed rather than inttype_is_unsigned,
57829         since the sole use is via "#if inttype_is_signed".
57830         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
57831         inttype_is_unsigned.
57832         * lib/offtostr.c (inttype_is_signed): Likewise.
57833         * lib/uinttostr.c (inttype_is_signed): Likewise.
57834         * lib/umaxtostr.c (inttype_is_signed): Likewise.
57835         * lib/inttostr.c (inttostr): Use verify to cross-check the
57836         inttype_is_signed value and the signedness of the actual type.
57837         * modules/inttostr (Depends-on): Add verify.
57839 2009-10-30  Eric Blake  <ebb9@byu.net>
57841         build: avoid compiler warnings
57842         * lib/fchmodat.c (lchmod): Mark unused variables.
57843         * lib/getopt.c (_getopt_initialize): Likewise.
57844         * lib/mktime.c (__mktime_internal): Provide prototype.
57845         * lib/inttostr.c (inttostr): Avoid compiler warning even with
57846         older gcc that do not understand #pragma GCC diagnostic.
57847         * lib/uinttostr.c (inttype_is_unsigned): Define.
57848         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
57850 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
57852         stat: fix compilation on AIX
57853         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
57854         only see struct stat64.
57856 2009-10-30  Eric Blake  <ebb9@byu.net>
57858         exclude: make more robust
57859         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
57860         rather than masking a coding bug.
57861         Suggested by Bruno Haible.
57863 2009-10-30  Jim Meyering  <meyering@redhat.com>
57865         perl scripts: remove #!/usr/bin/perl in favor of more portable...
57866         Rather than putting #!/usr/bin/perl on the first line,
57867         start with a variant of what's recommended by "man perlrun" that
57868         invokes the first "perl" program from your shell's search path.
57869         * build-aux/gitlog-to-changelog: Replace #!... as above.
57870         Add a "Local Variables" perl mode setting.
57871         Prompted by a patch from Ludovic Courtès.
57872         Improved by Eric Blake.
57873         * build-aux/useless-if-before-free: Likewise.
57874         * build-aux/announce-gen: Likewise.
57875         * build-aux/update-copyright: Likewise.
57877 2009-10-29  Eric Blake  <ebb9@byu.net>
57879         filenamecat-lgpl: adjust clients
57880         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
57881         filenamecat.
57882         * modules/renameat (Depends-on): Likewise.
57884         filenamecat: split into filenamecat-lgpl
57885         * modules/filenamecat-lgpl: New module.
57886         * modules/filenamecat (Files): Move library-safe files into
57887         filenamecat-lgpl.
57888         (Depends-on): Add filenamecat-lgpl.
57889         (configure.ac): Declare witness.
57890         * lib/filenamecat.h (file_name_concat): Only declare when using
57891         GPL module.
57892         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
57893         Move...
57894         * lib/filenamecat-lgpl.c: ...into new file.
57895         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
57896         (gl_FILE_NAME_CONCAT): Use it.
57897         * MODULES.html.sh (File system functions): Mention new module.
57899         argp: avoid memory leak
57900         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
57901         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
57902         base_name, since the latter malloc()s and can call exit().
57903         Leak introduced 2006-07-03.
57905         dirname-lgpl: adjust clients that don't need full dirname
57906         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
57907         * modules/filenamecat (Depends-on): Likewise.
57908         * modules/linkat (Depends-on): Likewise.
57909         * modules/mkancesdirs (Depends-on): Likewise.
57910         * modules/mkdir (Depends-on): Likewise.
57911         * modules/openat (Depends-on): Likewise.
57912         * modules/savewd (Depends-on): Likewise.
57913         * modules/rename (Depends-on): Likewise.
57914         (License): Relax license.
57915         * modules/mkdir-tests (Depends-on): Drop progname.
57916         (Makefile.am): Delete unneeded LDADD.
57917         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
57919         dirname: split into dirname-lgpl
57920         * modules/dirname-lgpl: New module.
57921         * modules/dirname (Files): Move library-safe files into
57922         dirname-lgpl.
57923         (Depends-on): Add dirname-lgpl.
57924         (configure.ac): Declare witness.
57925         * modules/double-slash-root (License): Relax license.
57926         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
57927         module.
57928         * lib/dirname.c (dir_len, mdir_name): Move...
57929         * lib/dirname-lgpl.c: ...into new file.
57930         * lib/basename.c (last_component, base_len): Move...
57931         * lib/basename-lgpl.c: ...into new file.
57932         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
57933         (gl_DIRNAME): Use it.
57934         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
57935         Mention new module.
57936         * modules/dirname-tests (Depends-on): Add progname.
57937         * tests/test-dirname.c (program_name): Delete.
57939         mkdir: make safe for libraries
57940         * modules/mkdir (Depends-on): Drop xalloc.
57941         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
57942         exit.
57944         tests: avoid some compiler warnings
57945         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
57946         literals.
57947         * tests/test-memchr.c (main): Avoid type mismatch.
57948         * tests/test-arpa_inet.c (main): Avoid unused parameters.
57949         * tests/test-base64.c (main): Likewise.
57950         * tests/test-getdelim.c (main): Likewise.
57951         * tests/test-gethostname.c (main): Likewise.
57952         * tests/test-getline.c (main): Likewise.
57953         * tests/test-netinet_in.c (main): Likewise.
57954         * tests/test-select.c (open_server_socket, main): Likewise.
57955         * tests/test-select-stdin.c (main): Likewise.
57956         * tests/test-sockets.c (main): Likewise.
57957         * tests/test-strsignal.c (main): Likewise.
57958         * tests/test-sys_select.c (main): Likewise.
57959         * tests/test-sys_socket.c (main): Likewise.
57960         * tests/test-u64.c (main): Likewise.
57961         * tests/test-xfprintf-posix.c (main): Likewise.
57962         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
57964         sockets: avoid compiler warning
57965         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
57967         maint: detect usage(1) and other suspicious exits
57968         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
57970 2009-10-29  Jim Meyering  <meyering@redhat.com>
57972         timespec: long-to-int truncation could make timespec_cmp malfunction
57973         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
57974         a multiple of 2^32 nanoseconds as no difference.
57976 2009-10-28  Jim Meyering  <meyering@redhat.com>
57978         fprintftime: wrap macro code argument in "do {...} while(0)"
57979         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
57980         cpy macro must be a statement that can be followed by a semicolon.
57981         Now that the else clause contains a comment and is hence longer
57982         than one line, I require curly braces.  That in turn requires
57983         that we wrap this code block in the standard do...while(0).
57985         fprintftime: remove stray semicolon from previous change
57986         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
57988         fprintftime: avoid a warning about ignored fwrite return value
57989         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
57990         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
57991         that is unsafe.
57992         * modules/fprintftime (Depends-on): Add ignore-value.
57994         exclude: avoid an unwarranted warning
57995         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
57997 2009-10-27  Eric Blake  <ebb9@byu.net>
57999         fseek: avoid compilation failure when fflush is replaced
58000         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
58001         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
58002         module is in use.
58003         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
58004         module is not in use; since REPLACE_FSEEK worked otherwise.
58005         (GNULIB_FTELLO): Likewise for ftell.
58006         Reported by Ian Beckwith and others.
58008 2009-10-27  Bruno Haible  <bruno@clisp.org>
58010         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
58011         Reported by Jim Meyering.
58013 2009-10-27  Jim Meyering  <jim@meyering.net>
58014             Bruno Haible  <bruno@clisp.org>
58016         Avoid warning despite dropping the return value of fwrite.
58017         * lib/unicodeio.c: Include ignore-value.h.
58018         (fwrite_success_callback): Explicitly ignore fwrite's return value.
58019         * modules/unicodeio (Depends-on): Add ignore-value.
58021 2009-10-26  Eric Blake  <ebb9@byu.net>
58023         areadlinkat: fix fallback path
58024         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
58025         pointer and zero.
58027 2009-10-22  Pádraig Brady  <P@draigBrady.com>
58029         Use a better IO block size for modern systems
58030         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
58031         * lib/md2.c: Likewise.
58032         * lib/md4.c: Likewise.
58033         * lib/md5.c: Likewise.
58034         * lib/sha1.c: Likewise.
58035         * lib/sha256.c: Likewise.
58036         * lib/sha512.c: Likewise.
58038 2009-10-22  Eric Blake  <ebb9@byu.net>
58040         tests: avoid several compiler warnings
58041         * tests/test-getcwd.c (main): Avoid buffer underflow.
58042         * tests/test-getdate.c (main): String literals are not safe with
58043         putenv, so use setenv.  Declare unused argument.
58044         * modules/getdate-tests (Depends-on): Add setenv.
58045         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
58046         problems with string literals in char *.
58047         * tests/test-hash.c (main): Avoid shadowing declaration.
58048         (insert_new): Treat string literals as char const *.
58049         * tests/test-getopt.h (test_getopt): Likewise.
58050         (getopt_loop): Alter types to minimize casting elsewhere.
58051         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
58052         (test_getopt_long_posix): Likewise.
58053         (do_getopt_long): Add wrapper to minimize casting.
58054         * tests/test-atexit.c (clear_temp_file): Use void.
58055         * tests/test-areadlink-with-size.c (main): Declare unused
58056         arguments.
58057         * tests/test-areadlink.c (main): Likewise.
58058         * tests/test-areadlinkat-with-size.c (main): Likewise.
58059         * tests/test-areadlinkat.c (main): Likewise.
58060         * tests/test-canonicalize-lgpl.c (main): Likewise.
58061         * tests/test-canonicalize.c (main): Likewise.
58062         * tests/test-dirent-safer.c (main): Likewise.
58063         * tests/test-dirname.c (main): Likewise.
58064         * tests/test-dup2.c (main): Likewise.
58065         * tests/test-fchdir.c (main): Likewise.
58066         * tests/test-fcntl-h.c (main): Likewise.
58067         * tests/test-fcntl-safer.c (main): Likewise.
58068         * tests/test-fdopendir.c (main): Likewise.
58069         * tests/test-fdutimensat.c (main): Likewise.
58070         * tests/test-fflush.c (main): Likewise.
58071         * tests/test-filenamecat.c (main): Likewise.
58072         * tests/test-filevercmp.c (main): Likewise.
58073         * tests/test-fopen-safer.c (main): Likewise.
58074         * tests/test-fopen.c (main): Likewise.
58075         * tests/test-fpending.c (main): Likewise.
58076         * tests/test-fpurge.c (main): Likewise.
58077         * tests/test-freading.c (main): Likewise.
58078         * tests/test-fstatat.c (main): Likewise.
58079         * tests/test-fsync.c (main): Likewise.
58080         * tests/test-futimens.c (main): Likewise.
58081         * tests/test-getndelim2.c (main): Likewise.
58082         * tests/test-gettimeofday.c (main): Likewise.
58083         * tests/test-getopt.c (main): Likewise.
58084         * tests/test-i-ring.c (main): Likewise.
58085         * tests/test-inttypes.c (main): Likewise.
58086         * tests/test-link.c (main): Likewise.
58087         * tests/test-lstat.c (main): Likewise.
58088         * tests/test-math.c (main): Likewise.
58089         * tests/test-md5.c (main): Likewise.
58090         * tests/test-memchr2.c (main): Likewise.
58091         * tests/test-memrchr.c (main): Likewise.
58092         * tests/test-mkdir.c (main): Likewise.
58093         * tests/test-mkdirat.c (main): Likewise.
58094         * tests/test-mkfifoat.c (main): Likewise.
58095         * tests/test-open.c (main): Likewise.
58096         * tests/test-openat-safer.c (main): Likewise.
58097         * tests/test-openat.c (main): Likewise.
58098         * tests/test-quotearg.c (main): Likewise.
58099         * tests/test-rawmemchr.c (main): Likewise.
58100         * tests/test-readlink.c (main): Likewise.
58101         * tests/test-remove.c (main): Likewise.
58102         * tests/test-rename.c (main): Likewise.
58103         * tests/test-renameat.c (main): Likewise.
58104         * tests/test-rmdir.c (main): Likewise.
58105         * tests/test-sha1.c (main): Likewise.
58106         * tests/test-signal.c (main): Likewise.
58107         * tests/test-sigaction.c (main): Likewise.
58108         * tests/test-stat.c (main): Likewise.
58109         * tests/test-stat-time.c (main): Likewise.
58110         * tests/test-stddef.c (main): Likewise.
58111         * tests/test-stdint.c (main): Likewise.
58112         * tests/test-stdio.c (main): Likewise.
58113         * tests/test-stdlib.c (main): Likewise.
58114         * tests/test-strchrnul.c (main): Likewise.
58115         * tests/test-strerror.c (main): Likewise.
58116         * tests/test-string.c (main): Likewise.
58117         * tests/test-strtod.c (main): Likewise.
58118         * tests/test-strverscmp.c (main): Likewise.
58119         * tests/test-symlink.c (main): Likewise.
58120         * tests/test-symlinkat.c (main): Likewise.
58121         * tests/test-sys_stat.c (main): Likewise.
58122         * tests/test-sys_time.c (main): Likewise.
58123         * tests/test-time.c (main): Likewise.
58124         * tests/test-unistd.c (main): Likewise.
58125         * tests/test-unlink.c (main): Likewise.
58126         * tests/test-unlinkat.c (main): Likewise.
58127         * tests/test-utimens.c (main): Likewise.
58128         * tests/test-utimensat.c (main): Likewise.
58129         * tests/test-version-etc.c (main): Likewise.
58130         * tests/test-wchar.c (main): Likewise.
58131         * tests/test-wctype.c (main): Likewise.
58132         * tests/test-xprintf-posix.c (main): Likewise.
58133         * tests/test-posixtm.c (main): Likewise.
58134         (STREQ): Delete unused macro.
58135         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
58136         shadowed variables.
58137         * tests/test-memchr.c (main): Likewise.
58139 2009-10-21  Eric Blake  <ebb9@byu.net>
58141         areadlinkat: avoid failure on older glibc
58142         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
58143         rather than mis-comparing 0 against FUNC_RESULT of char*.
58145 2009-10-21  Bruno Haible  <bruno@clisp.org>
58147         * modules/stpncpy (License): Relicense under LGPLv2+.
58148         Reported by David Lutterkort <lutter@redhat.com>.
58150 2009-10-20  Eric Blake  <ebb9@byu.net>
58152         utimensat: work around Solaris 9 bug
58153         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
58154         has trailing slash bugs.
58155         * tests/test-lutimens.h (test_lutimens): Enhance test.
58156         * tests/test-utimens.h (test_utimens): Likewise.
58157         * doc/posix-functions/utime.texi (utime): Enhance documentation.
58158         * doc/posix-functions/utimes.texi (utimes): Likewise.
58159         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
58160         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
58161         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
58162         * doc/posix-functions/futimens.texi (futimens): Likewise.
58164         fdutimensat: new module
58165         * modules/fdutimensat: New file.
58166         * lib/fdutimensat.c (fdutimensat): Likewise.
58167         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
58168         * MODULES.html.sh (File system functions): Mention module.
58169         * modules/fdutimensat-tests: New test.
58170         * tests/test-fdutimensat.c: Likewise.
58172         doc: regenerate INSTALL
58173         * doc/INSTALL: Reflect recent autoconf update.
58174         * doc/INSTALL.ISO: Likewise.
58175         * doc/INSTALL.UTF-8: Likewise.
58177 2009-10-20  Pádraig Brady  <P@draigBrady.com>
58179         acl: warn if ACL support is not detected
58180         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
58182 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
58184         * lib/nproc.h: Add extern "C" block for C++.
58186 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
58187             Bruno Haible  <bruno@clisp.org>
58189         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
58190         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
58191         * doc/posix-functions/isalpha.texi: Likewise.
58192         * doc/posix-functions/isblank.texi: Likewise.
58193         * doc/posix-functions/iscntrl.texi: Likewise.
58194         * doc/posix-functions/isdigit.texi: Likewise.
58195         * doc/posix-functions/isgraph.texi: Likewise.
58196         * doc/posix-functions/islower.texi: Likewise.
58197         * doc/posix-functions/isprint.texi: Likewise.
58198         * doc/posix-functions/ispunct.texi: Likewise.
58199         * doc/posix-functions/isspace.texi: Likewise.
58200         * doc/posix-functions/isupper.texi: Likewise.
58201         * doc/posix-functions/isxdigit.texi: Likewise.
58203 2009-10-18  Bruno Haible  <bruno@clisp.org>
58205         Tests for module 'isblank'.
58206         * modules/isblank-tests: New file.
58207         * tests/test-isblank.c: New file.
58209         New module 'isblank'.
58210         * lib/isblank.c: New file.
58211         * m4/isblank.m4: New file.
58212         * modules/isblank: New file.
58213         * doc/posix-functions/isblank.texi: Mention the new module.
58215 2009-10-18  Bruno Haible  <bruno@clisp.org>
58217         New module 'ctype'.
58218         * lib/ctype.in.h: New file.
58219         * m4/ctype.m4: New file.
58220         * modules/ctype: New file.
58221         * doc/posix-headers/ctype.texi: Mention the new module.
58223 2009-10-18  Jim Meyering  <meyering@redhat.com>
58225         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
58226         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
58227         right after its initialization, rather than farther down.
58228         Keeping these in close proximity makes it easier to ensure
58229         that each such variable is initialized.  E.g.,
58231             LIB_CLOCK_GETTIME=
58232             AC_SUBST([LIB_CLOCK_GETTIME])
58234         This change also increments these serial numbers.
58235         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
58236         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
58237         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58239 2009-10-18  Bruno Haible  <bruno@clisp.org>
58241         Don't let environment variables perturb build.
58242         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
58243         (gl_PREREQ_GETHRXTIME): ... not here.
58245 2009-10-18  Bruno Haible  <bruno@clisp.org>
58247         Avoid symlink attack in localcharset module.
58248         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
58249         (O_NOFOLLOW): Define fallback.
58250         (get_charset_aliases): Don't open the file if it is a symbolic link.
58251         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
58252         gl_FCNTL_H.
58253         (gl_FCNTL_H): Require it.
58254         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
58255         * modules/localcharset (Files): Add m4/fcntl_h.m4.
58256         Reported by Fergal Glynn <fglynn@veracode.com>.
58258 2009-10-18  Bruno Haible  <bruno@clisp.org>
58260         Implement nproc for mingw.
58261         * lib/nproc.c: Include <windows.h>
58262         (num_processors): On native Windows platforms, try GetSystemInfo.
58264 2009-10-18  Bruno Haible  <bruno@clisp.org>
58266         Implement nproc for IRIX.
58267         * lib/nproc.c: Include <sys/sysmp.h>.
58268         (num_processors): On IRIX systems, try sysmp.
58269         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
58271 2009-10-18  Bruno Haible  <bruno@clisp.org>
58273         Implement nproc for HP-UX.
58274         * lib/nproc.c: Include <sys/pstat.h>
58275         (num_processors): On HP-UX systems, try pstat_getdynamic.
58276         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
58277         pstat_getdynamic.
58279 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
58280             Bruno Haible  <bruno@clisp.org>
58282         Implement nproc for NetBSD, OpenBSD.
58283         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
58284         (ARRAY_SIZE): New macro.
58285         (num_processors): On BSD systems, try sysctl of HW_NCPU.
58286         * m4/nproc.m4: New file.
58287         * modules/nproc (Files): Add m4/nproc.m4.
58288         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
58289         (Makefile.am): Instead, augment lib_SOURCES.
58291 2009-10-18  Bruno Haible  <bruno@clisp.org>
58293         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
58294         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
58295         sys/param.h.
58297 2009-10-16  Eric Blake  <ebb9@byu.net>
58299         utimensat: new module
58300         * modules/utimensat: New file.
58301         * lib/utimensat.c (utimensat): Likewise.
58302         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
58303         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
58304         so we can work around Linux bugs.
58305         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
58306         * modules/sys_stat (Makefile.am): Substitute them.
58307         * lib/sys_stat.in.h (utimensat): Declare it.
58308         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
58309         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
58310         * modules/utimensat-tests: New test.
58311         * tests/test-utimensat.c: Likewise.
58313         utimens: let lutimens work on non-symlinks
58314         * lib/utimens.c (lutimens): Fall back to utimens rather than
58315         failing with ENOSYS, when file is not a symlink.
58316         (utimens): Reduce redirection.
58317         * tests/test-lutimens.h (test_lutimens): Update test to cover
58318         non-symlinks.
58319         * tests/test-utimens.h (test_utimens): Update test to cover
58320         symlinks.
58321         * tests/test-utimens.c (main): Update caller.
58323         utimens: cache whether utimensat syscall works
58324         * lib/utimens.c (utimensat_works_really): New cache variable.
58325         (fdutimens, lutimens): Use it to avoid failing syscall.
58327         test-stat-time, test-utimens: improve portability
58328         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
58329         ext4 on alpha, and for cygwin.
58330         * tests/test-utimens-common.h: New file.
58331         (nap): Factor delays into single function.
58332         * tests/test-lutimens.h (test_lutimens): Use new header.
58333         * tests/test-futimens.h (test_futimens): Likewise.
58334         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
58335         timestamps to occur from same machine, as was done previously for
58336         test_utimens.
58337         * modules/utimens-tests (Files): Ship new file.
58338         * modules/futimens-tests (Files): Likewise.
58339         Reported in part by Jim Meyering.
58341         sys_stat: sort replacement declarations
58342         * lib/sys_stat.in.h: Sort declarations.
58343         * lib/futimens.c (futimens): Fix typo.
58345 2009-10-15  Jim Meyering  <meyering@redhat.com>
58347         don't let environment settings perturb build
58348         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
58349         could cause a configure-time and/or build-time malfunction.
58350         Typically, a configure-time function-in-library test is performed
58351         via code like this:
58353           LIB_VAR=
58354           AC_SUBST([LIB_VAR])
58355           prefix_saved_LIBS=$LIBS
58356             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
58357                        [test "$ac_cv_search_FUNC" = "none required" ||
58358                         LIB_VAR=$ac_cv_search_FUNC])
58359           LIBS=$prefix_saved_LIBS
58361         However, in each of the files affected by this change, the LIB_VAR=
58362         initialization was omitted.  Thus, when set in the environment, its
58363         value would propagate into generated Makefiles when FUNC is not found
58364         in LIB_NAME.
58365         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
58366         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
58367         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
58369 2009-10-14  Eric Blake  <ebb9@byu.net>
58371         fchdir: avoid infinite recursion in mingw
58372         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
58373         recursing.
58375         test-stat-time: port to mingw
58376         * tests/test-stat-time.c (force_unlink): Return a value.
58377         (test_ctime) [W32]: Fix compilation error.
58378         (nap): Don't call usleep with too large an argument.  Use
58379         force_unlink.
58380         * doc/pastposix-functions/usleep.texi (usleep): Document the
58381         portability issue.
58383 2009-10-13  Jim Meyering  <meyering@redhat.com>
58385         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
58386         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
58387         * modules/pipe-filter-ii: Likewise.
58388         * modules/sys_socket-tests: Likewise.
58389         * modules/tsearch-tests: Likewise.
58390         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
58391         (check): Depend on it.
58393 2009-10-12  Eric Blake  <ebb9@byu.net>
58395         utimens-tests: port to NFS file systems
58396         * tests/test-utimens.h (test_utimens): Refactor utimecmp
58397         comparisons to avoid spurious failures from timestamp drift
58398         between NFS machines.
58400 2009-10-12  Eric Blake  <ebb9@byu.net>
58402         stat-time-tests: minor cleanups
58403         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
58404         * tests/test-stat-time.c (nap): Separate assignment from call.
58405         Suggested by Paolo Bonzini and Bruno Haible.
58407         sys_stat: guarantee struct timespec
58408         * lib/sys_stat.in.h (includes): Always include <time.h>
58409         * modules/sys_stat (Depends-on): Add time.
58410         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
58411         mode_t permission values.
58412         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
58413         get at subsecond timestamps.
58415 2009-10-10  Eric Blake  <ebb9@byu.net>
58417         futimens: new module
58418         * modules/futimens: New file.
58419         * lib/futimens.c (futimens): Likewise.
58420         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
58421         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
58422         we can work around Linux bugs.
58423         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
58424         * modules/sys_stat (Makefile.am): Substitute them.
58425         * lib/sys_stat.in.h (futimens): Declare it.
58426         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
58427         * doc/posix-functions/futimens.texi (futimens): Likewise.
58428         * modules/futimens-tests: New test.
58429         * tests/test-futimens.c: Likewise.
58431         utimens: introduce fdutimens
58432         * lib/utimens.h (fdutimens): New prototype.
58433         * lib/utimens.c (gl_futimens): Move guts...
58434         (fdutimens): ...to new interface.
58435         * tests/test-utimens.c (do_fdutimens): Use it.
58437         utimens: add UTIME_NOW and UTIME_OMIT support
58438         * lib/utimens.c (validate_timespec, update_timespec): New helper
58439         functions.
58440         (gl_futimens, lutimens): Use them.
58441         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
58442         stdbool, sys_stat.
58443         (Link): Mention resulting library dependency.
58444         * modules/utimecmp (Link): Likewise.
58445         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
58446         (Makefile.am): Pick up library dependency.
58447         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
58448         definition.
58449         * tests/test-sys_stat.c: Test the definitions.
58450         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
58451         * NEWS: Document library dependency.
58453         utimecmp: support symlink timestamps
58454         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
58455         hashing when possible.  Use pathconf when available.
58456         (SYSCALL_RESOLUTION): Recognize tighter resolution.
58457         * modules/utimecmp (Depends-on): Add lstat.
58459         utimens: add lutimens interface
58460         * lib/utimens.c (lutimens): New function.
58461         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
58462         * lib/utimens.h (lutimens): Declare new interface.
58463         * tests/test-utimens.c (main): Enhance test.
58464         * tests/test-lutimens.h (test_lutimens): New file.
58465         * modules/utimens-tests (Files): Distribute it.
58466         (Depends-on): Add symlink.
58467         (configure.ac): Check for usleep.
58469         utimens: validate futimens usage
58470         * lib/utimens.c (gl_futimens): Require valid fd up front, using
58471         fewer syscalls on failure later on.  Avoid compiler warning on
58472         mingw.
58473         * modules/utimens (Depends-on): Add dup2.
58475         utimens: add test
58476         * modules/utimens-tests: New test.
58477         * tests/test-utimens.h: New file.
58478         * tests/test-futimens.h: Likewise.
58479         * tests/test-utimens.c: Likewise.
58481         doc: mention timestamp portability issues
58482         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
58483         instead.
58484         * doc/posix-functions/utime.texi (utime): Likewise.
58485         * doc/posix-functions/utimes.texi (utimes): Likewise.
58486         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
58487         instead.
58488         * doc/posix-functions/futimens.texi (futimens): Mention utimens
58489         module.
58490         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
58491         Mention weakness with symlink timestamps.
58492         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
58493         to utimensat/futimens instead.
58494         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
58496         test-dup2: enhance test
58497         * tests/test-dup2.c (main): Also check AT_FDCWD.
58499         test-stat-time: avoid more spurious failures
58500         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
58501         xfs; and avoid race if the two timestamps cross quantization edge.
58503         relocatable: prefer 'file system' over 'filesystem'
58504         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
58505         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
58506         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
58507         * doc/relocatable.texi (Enabling Relocatability): Likewise.
58508         * lib/relocatable.c (compute_curr_prefix): Likewise.
58510 2009-10-10  Jim Meyering  <meyering@redhat.com>
58512         stat-time-tests: check for the usleep function
58513         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
58515 2009-10-10  Bruno Haible  <bruno@clisp.org>
58517         * modules/xnanosleep: Put the Link section after the Include section.
58519 2009-10-09  Eric Blake  <ebb9@byu.net>
58521         dup2: work around FreeBSD 6.1 bug
58522         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
58523         * doc/posix-functions/dup2.texi (dup2): Document it.
58524         Reported by Nelson H. F. Beebe and Jim Meyering.
58526         test-stat-time: port to buggy NFS clients
58527         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
58528         (test_ctime): Also skip test if mtime and ctime are skewed.
58530         maint: prefer 'file system' over 'filesystem'
58531         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
58532         * doc/posix-functions/lstat.texi (lstat): Likewise.
58533         * lib/file-has-acl.c (file_has_acl): Likewise.
58534         * lib/fwriteerror.c [TEST]: Likewise.
58535         * tests/test-areadlink.h (test_areadlink): Likewise.
58536         * tests/test-areadlinkat-with-size.c (main): Likewise.
58537         * tests/test-areadlinkat.c (main): Likewise.
58538         * tests/test-canonicalize-lgpl.c (main): Likewise.
58539         * tests/test-canonicalize.c (main): Likewise.
58540         * tests/test-fstatat.c (main): Likewise.
58541         * tests/test-linkat.c (main): Likewise.
58542         * tests/test-lstat.h (test_lstat_func): Likewise.
58543         * tests/test-mkdir.h (test_mkdir): Likewise.
58544         * tests/test-readlink.h (test_readlink): Likewise.
58545         * tests/test-remove.c (main): Likewise.
58546         * tests/test-rename.h (test_rename): Likewise.
58547         * tests/test-renameat.c (main): Likewise.
58548         * tests/test-rmdir.h (test_rmdir_func): Likewise.
58549         * tests/test-symlink.h (test_symlink): Likewise.
58550         * tests/test-symlinkat.c (main): Likewise.
58551         * tests/test-unlink.h (test_unlink_func): Likewise.
58552         * tests/test-unlinkat.c (main): Likewise.
58554         maint: make realtime library usage explicit
58555         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
58556         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
58557         * modules/settime (Link): Likewise.
58558         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
58560         test-stat-time: speed up execution
58561         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
58562         warning on mingw.
58563         (nap): New helper function.
58564         (prepare_test): Use it to reduce sleep time.
58565         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
58566         execution.
58567         * modules/stat-time-tests (configure.ac): Check for usleep.
58569 2009-10-09  Jim Meyering  <meyering@redhat.com>
58571         selinux-h: always use getfilecon wrappers
58572         * lib/getfilecon.c: New file.
58573         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
58574         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
58575         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
58576         (fgetfilecon): Provide a stub.
58577         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
58578         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
58579         file unconditionally.
58580         When <selinux/selinux.h> is found, arrange to use wrappers.
58581         * modules/selinux-h (Files): Add getfilecon.c.
58582         (Makefile.am): Substitute include-next-related bits
58583         into the now-always-generated selinux/selinux.h file.
58584         * doc/glibc-functions/lgetfilecon.texi: New file.
58585         * doc/glibc-functions/fgetfilecon.texi: New file.
58586         * doc/glibc-functions/getfilecon.texi: New file.
58587         * doc/glibc-functions/getfilecon-desc.texi: New file.
58588         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
58589         which to pull in the new files.
58590         * MODULES.html.sh (Misc): Add selinux-h.
58592 2009-10-08  Jim Meyering  <meyering@redhat.com>
58594         unistd: fix comment typo
58595         * lib/unistd.in.h (euidaccess): Fix a comment typo.
58597 2009-10-08  Eric Blake  <ebb9@byu.net>
58599         areadlink: use SIZE_MAX consistently
58600         * modules/areadlink (Depends-on): Add stdint.
58601         * modules/areadlink-with-size (Depends-on): Likewise.
58602         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
58603         gives NULL; drop sys/types, since unistd gives size_t; and add
58604         stdint for SIZE_MAX.
58605         (SIZE_MAX): Rely on headers.
58606         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
58607         and add stdint.
58608         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
58609         (SIZE_MAX): Likewise.
58610         (INITIAL_BUF_SIZE): Turn into enum.
58611         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
58613 2009-10-08  Jim Meyering  <meyering@redhat.com>
58615         areadlinkat: avoid compilation failure
58616         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
58617         Fix typo in comment.
58619 2009-10-07  Eric Blake  <ebb9@byu.net>
58621         areadlinkat-with-size: new module
58622         * modules/areadlinkat-with-size: New module.
58623         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
58624         * lib/areadlink.h (areadlinkat): Declare it.
58625         * MODULES.html.sh (File system functions): Mention it.
58626         * modules/areadlinkat-with-size-tests: New test.
58627         * tests/test-areadlinkat-with-size.c: New file.
58629         xreadlinkat: new module
58630         * modules/xreadlinkat: New module.
58631         * lib/xreadlinkat.c (xreadlinkat): New file.
58632         * lib/xreadlink.h (xreadlinkat): Declare it.
58633         * MODULES.html.sh (File system functions): Mention it.
58635         areadlinkat: new module
58636         * lib/at-func.c (FUNC_FAIL): New define.
58637         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
58638         * modules/areadlinkat: New module.
58639         * lib/linkat.c (areadlinkat): Move...
58640         * lib/areadlinkat.c (areadlinkat): ...to new file.
58641         * lib/areadlink.h (areadlinkat): Declare it.
58642         * modules/linkat (Depends-on): Add areadlinkat.
58643         * MODULES.html.sh (File system functions): Mention it.
58644         * modules/areadlinkat-tests: New test.
58645         * tests/test-areadlinkat.c: New file.
58647         areadlink, areadlink-with-size: add tests
58648         * modules/areadlink-tests: New test.
58649         * modules/areadlink-with-size-tests: Likewise.
58650         * tests/test-areadlink.h: New file.
58651         * tests/test-areadlink.c: Likewise.
58652         * tests/test-areadlink-with-size.c: Likewise.
58654         maint: minor cleanups
58655         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
58656         _UNUSED_PARAMETER_ instead.
58657         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
58658         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
58659         * modules/linkat-tests (Files): Distribute test-link.h.
58661         openat, utimens: whitespace cleanup
58662         * lib/openat.c: Prefer space throughout, rather than mix of 8
58663         spaces vs. tabs.
58664         * lib/at-func.c: Likewise.
58665         * lib/utimens.c: Likewise.
58667         openat: avoid using wrong fd
58668         * lib/openat.c (openat_permissive): Reject user's fd if saving the
58669         working directory chooses same fd.
58670         * lib/at-func.c (AT_FUNC_NAME): Likewise.
58672         mkdir, mkdirat: fix cygwin 1.5.x bug
58673         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
58674         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
58675         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
58676         bug.
58677         (gl_PREREQ_MKDIR): Delete unused macro.
58678         * modules/mkdir (Files): Track file rename.
58679         (configure.ac): Update macro name.
58680         * modules/openat (Depends-on): Add mkdir.
58681         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
58683         mkdir, mkdirat: add tests
58684         * modules/mkdir-tests: New test.
58685         * tests/test-mkdir.h: New file.
58686         * tests/test-mkdir.c: Likewise.
58687         * tests/test-mkdirat.c: Likewise.
58688         * modules/openat-tests (Files): Add new files.
58689         (Makefile.am): Run new test.
58691 2009-10-06  Eric Blake  <ebb9@byu.net>
58693         doc: tweak *at function documentation
58694         * doc/posix-functions/faccessat.texi (faccessat): Mention
58695         known issue with replacement.
58696         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
58697         * doc/posix-functions/linkat.texi (linkat): Likewise.
58698         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
58699         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
58700         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
58701         * doc/posix-functions/renameat.texi (renameat): Likewise.
58702         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
58704         openat: fix GNU/Hurd bug in unlinkat
58705         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
58706         broken.
58707         * doc/posix-functions/unlink.texi (unlink): Document this.
58708         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
58710         fdopendir: fix GNU/Hurd bug
58711         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
58712         allowing non-directory fds.
58713         * lib/fdopendir.c (rpl_fdopendir): Work around it.
58714         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
58715         * modules/dirent (Makefile.am): Substitute it.
58716         * lib/dirent.in.h (fdopendir): Declare replacement.
58717         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
58718         * tests/test-fdopendir.c (main): Test something other than
58719         /dev/null, since on Hurd that behaves like a directory.
58721         test-symlink: port to GNU/Hurd
58722         * tests/test-symlink.h (test_symlink): Relax expected errno.
58724         doc: tweak more cygwin information
58725         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
58726         now compatible with glibc.
58727         * doc/posix-functions/getopt.texi (getopt): Likewise.
58729         getopt-gnu: add another test
58730         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
58731         guarantee behavior relied on by m4.
58732         * tests/test-getopt.c (main): Use it.
58733         * modules/getopt-posix-tests (Depends-on): Add setenv.
58734         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
58736         getopt: fix compilation on darwin
58737         * lib/getopt.in.h (includes): Leave breadcrumbs during system
58738         include.
58739         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
58740         Reported by Ludovic Courtès.
58742 2009-10-06  Bruno Haible  <bruno@clisp.org>
58744         * modules/size_max (Description): Discourage its use.
58745         Reported by Simon Josefsson.
58747 2009-10-06  Jim Meyering  <meyering@redhat.com>
58749         linkat: avoid compilation failure
58750         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
58752 2009-10-05  Eric Blake  <ebb9@byu.net>
58754         linkat: support Linux 2.6.17
58755         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
58756         linkat on Linux, but allow cache variable override.
58757         * lib/linkat.c (rpl_linkat): Define override.
58758         * modules/linkat (Depends-on): Add symlinkat.
58759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
58760         * modules/unistd (Makefile.am): Substitute it.
58761         * lib/unistd.in.h (linkat): Declare replacement.
58762         Reported by Pádraig Brady.
58764         quotearg: port test to systems with C.UTF-8 locale
58765         * tests/test-quotearg.c (struct result_strings): Add another
58766         member, differentiating between C.ASCII and C.UTF-8 handling.
58767         (compare_strings): Add parameter.
58768         (main): Adjust all callers.
58770         getopt: avoid clash with FreeBSD _getopt_internal
58771         * lib/getopt.in.h (_getopt_internal): Override the name.
58772         * lib/getopt_int.h (includes): Pick up any overrides.
58773         Reported by Reuben Thomas.
58775         hash: allow C89 compilation
58776         * lib/hash.c (check_tuning): Move declaration before statement.
58777         Reported by Reuben Thomas.
58779 2009-10-05  Karl Berry  <karl@gnu.org>
58781         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
58783 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
58784             Bruno Haible  <bruno@clisp.org>
58786         * lib/uname.c (uname): Use a table-driven algorithm to compute
58787         Windows NT versions.
58789 2009-10-04  Bruno Haible  <bruno@clisp.org>
58791         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
58792         program_invocation_short_name.
58793         * modules/progname (configure.ac): Test for presence of
58794         program_invocation_short_name.
58795         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
58797 2009-10-04  Bruno Haible  <bruno@clisp.org>
58799         * lib/progname.c (set_program_name): Fix comment.
58800         Reported by Jim Meyering.
58802 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
58803             Bruno Haible  <bruno@clisp.org>
58805         * lib/uname.c: Include <string.h>.
58806         (uname): Do only one call to GetVersionEx in the common case.
58808 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
58809             Bruno Haible  <bruno@clisp.org>
58811         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
58812         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
58813         (uname): Add support for Windows CE and various non-x86 CPU types.
58815 2009-10-03  Bruno Haible  <bruno@clisp.org>
58817         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
58818         invocation to tests/configure.ac.
58819         Reported by Ian Beckwith <ianb@erislabs.net>.
58821 2009-10-02  Eric Blake  <ebb9@byu.net>
58823         fchdir: avoid compiler warning
58824         * lib/fchdir.c (canonicalize_file_name)
58825         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
58827         test-open: support mingw errno values
58828         * tests/test-open.h (test_open): Relax test.
58829         * tests/test-fopen.h (test_fopen): Likewise.
58830         * tests/test-openat-safer.c (main): Likewise.
58832         open: fix opening directory on mingw
58833         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
58835         test-open: on GNU/Hurd, /dev/null is a directory
58836         * tests/test-fopen.h (main): Rename...
58837         (test_fopen): ...to this.  Use a guaranteed non-directory when
58838         confirming open behavior on trailing slash.
58839         * tests/test-openat-safer.c (main): Likewise.
58840         * tests/test-open.h (main): Likewise....
58841         (test_open): ...to this.
58842         * tests/test-fopen.c (main): Adjust caller.
58843         * tests/test-fopen-safer.c (main): Likewise.
58844         * tests/test-open.c (main): Likewise.
58845         * tests/test-fcntl-safer.c (main): Likewise.
58846         Reported by Samuel Thibault.
58848         rename, fchdir: don't ignore chdir failure
58849         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
58850         * lib/rename.c (rpl_rename) [W32]: Likewise.
58851         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
58852         an empty destination directory if source cannot be renamed,
58853         although there is still possibility for failure.
58854         * doc/posix-functions/rename.texi (rename): Document the race.
58855         Reported by Jim Meyering.
58857         maint: cleanup whitespace in recent commits
58858         * lib/rename.c (rpl_rename): Remove tabs.
58859         * tests/test-link.h (test_link): Likewise.
58860         * lib/fchdir.c (get_name): Likewise.
58861         Reported by Jim Meyering.
58863 2009-10-02  Ben Pfaff  <blp@gnu.org>
58865         relocatable-prog-wrapper: Add missing dependency on
58866         double-slash-root.
58867         * modules/relocatable-prog-wrapper: Add dependency.
58868         Reported by Ian Beckwith <ianb@erislabs.net>.
58870 2009-10-02  Eric Blake  <ebb9@byu.net>
58872         renameat: fix Solaris bugs
58873         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
58874         needed fixing.
58875         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
58876         * modules/stdio (Makefile.am): Substitute it.
58877         * lib/stdio.in.h (renameat): Declare replacement.
58878         * lib/renameat.c (rpl_renameat): Implement fix.
58880         renameat: new module
58881         * modules/renameat: New file.
58882         * lib/renameat.c (renameat): Likewise.
58883         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
58884         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
58885         * modules/stdio (Makefile.am): Substitute them.
58886         * lib/stdio.in.h (renameat): Declare it.
58887         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
58888         * doc/posix-functions/renameat.texi (renameat): Likewise.
58889         * modules/renameat-tests: New test.
58890         * tests/test-renameat.c: Likewise.
58892         rename: fix mingw bugs
58893         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
58894         directory overwrite bugs.
58896         rename: fix another cygwin 1.5 bug
58897         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
58898         checks.
58899         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
58900         unnecessary cygwin workarounds.  Also work around bug with moving
58901         full directory onto an empty one.
58902         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
58904         rename-dest-slash: merge into rename module
58905         * modules/rename-dest-slash (Status): Mark obsolete.
58906         (Depends-on): Add rename.
58907         (Files): Let rename do it all.
58908         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
58909         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
58910         * m4/rename-dest-slash.m4: ...so this file can be deleted.
58911         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
58912         * lib/rename.c (rpl_rename): Update comments.
58914         rename: fix cygwin 1.5.x bugs
58915         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
58916         * lib/rename.c (rpl_rename): Work around them.
58917         * modules/rename (Depends-on): Add same-inode.
58919         rename: fix Solaris 10 bug
58920         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
58921         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
58922         was the only bug.
58924         rename: fix Solaris 9 bug
58925         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
58926         on non-directory.  Avoid calling exit.
58927         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
58928         strdup.
58929         * modules/rename-tests (Depends-on): Drop lstat.
58930         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
58931         (gl_PREREQ_RENAME): Delete unused macro.
58933         rename-dest-slash: fix NetBSD bug
58934         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
58935         links.
58936         * modules/rename-dest-slash (Depends-on): Add same-inode.
58938         rename-tests: new test, exposes several platform bugs
58939         * modules/rename-tests: New file.
58940         * tests/test-rename.h: Likewise.
58941         * tests/test-rename.c: Likewise.
58942         * doc/posix-functions/rename.texi (rename): Improve documentation,
58943         including bugs that will eventually be fixed in gnulib.
58945 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
58947         * lib/uname.c: Include <stdlib.h>
58948         (uname): Assume version info is available.
58950 2009-10-02  Jim Meyering  <meyering@redhat.com>
58952         gnu-web-doc-update: correct --help output
58953         * build-aux/gnu-web-doc-update: Make --help output relevant.
58955         gnu-web-doc-update: add standard options
58956         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
58958         gnu-web-doc-update: New module.
58959         Use this script to automatically update the on-line web documentation
58960         for your GNU project at http://www.gnu.org/software/$pkg/manual/
58961         * modules/gnu-web-doc-update: New file, from coreutils.
58962         * build-aux/gnu-web-doc-update: New script.
58964 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
58966         link: LoadLibrary is not needed.
58967         * lib/link.c: Use GetModuleHandle.
58969 2009-10-01  Eric Blake  <ebb9@byu.net>
58971         getopt: bump serial number
58972         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
58973         change.
58975         tests: tighten link, rmdir, and remove tests
58976         * tests/test-link.h (includes): No need to use <config.h> here.
58977         Clean up if directory hard link was created, otherwise test for
58978         trailing '.'.
58979         * tests/test-linkat.c (main): Simplify.
58980         * tests/test-remove.c (main): Enhance test for trailing '.'.
58981         * tests/test-rmdir.h (test_rmdir_func): Likewise.
58983 2009-10-01  Jim Meyering  <meyering@redhat.com>
58985         maint.mk: requiring "make major" was annoying, for a "minor" release.
58986         What is intended is "stable", to contrast with alpha and beta,
58987         so require "make stable", not "make major".
58988         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
58989         (get_tool_versions): Likewise.
58990         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
58992 2009-09-30  Ben Pfaff  <blp@gnu.org>
58994         Fix broken build of replacement for Windows tmpfile().
58995         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
58996         flags argument added along with the 'mkostemp' module.
58998 2009-09-28  Bruno Haible  <bruno@clisp.org>
59000         Avoid identifier clash with POSIX function 'remove' defined as a macro.
59001         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
59002         to 'remove_elt'.
59003         (gl_list_remove): Update.
59004         * lib/gl_list.c (gl_list_remove): Update.
59005         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
59006         to 'remove_elt'.
59007         (gl_oset_remove): Update.
59008         * lib/gl_list.c (gl_oset_remove): Update.
59009         Reported by Eric Blake.
59011 2009-09-28  Eric Blake  <ebb9@byu.net>
59013         doc: mention yet more cygwin 1.7 status
59014         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
59015         cygwin.
59016         * doc/glibc-functions/execvpe.texi (execvpe): New file.
59017         * doc/gnulib.texi (Glibc unistd.h): Mention it.
59019         argp: fix test failure
59020         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
59021         that are not upper-case.  Pass correct range to tolower.
59023 2009-09-27  Jim Meyering  <meyering@redhat.com>
59025         test-yesno: work around sparc-dash here-document infelicity
59026         Without this change, the literal \177 byte in a here document
59027         would make dash 0.5.5.1-3 access uninitialized memory.
59028         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
59029         Instead, use a marker, "@", and filter through tr to create the desired
59030         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
59032 2009-09-27  Bruno Haible  <bruno@clisp.org>
59034         Disable untested support for new flavours of ACLs on AIX.
59035         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
59036         progress.
59037         * lib/set-mode-acl.c (qset_acl): Likewise.
59039 2008-12-07  Bruno Haible  <bruno@clisp.org>
59041         Add support for new flavours of ACLs on AIX. (Untested.)
59042         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
59043         (file_has_acl): Add support for newer AIX.
59044         * lib/set-mode-acl.c (qset_acl): Likewise.
59045         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
59046         Rainer Tammer <tammer@tammer.net>.
59048 2009-09-26  Eric Blake  <ebb9@byu.net>
59050         argp: fix compilation of getopt
59051         * lib/getopt.in.h (includes): Use different guard than glibc.
59052         Reported by Sergey Poznyakoff.
59054         doc: mention more cygwin 1.7 status
59055         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
59056         bug.
59057         * doc/posix-functions/execl.texi (execl): Likewise.
59058         * doc/posix-functions/execle.texi (execle): Likewise.
59059         * doc/posix-functions/execlp.texi (execlp): Likewise.
59060         * doc/posix-functions/execv.texi (execv): Likewise.
59061         * doc/posix-functions/execve.texi (execve): Likewise.
59062         * doc/posix-functions/execvp.texi (execvp): Likewise.
59063         * doc/glibc-functions/canonicalize_file_name.texi
59064         (canonicalize_file_name): Cygwin 1.7 now provides this.
59065         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
59066         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
59067         on AT_SYMLINK_NOFOLLOW.
59069 2009-09-24  Eric Blake  <ebb9@byu.net>
59071         test-linkat: make test more robust
59072         * tests/test-linkat.c (main): Avoid collision with EEXIST.
59074         getopt: fix inclusion guards for cygwin
59075         * modules/getopt-posix (Depends-on): Add include-next.
59076         (Makefile.am): Substitute more items in replacement header.
59077         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
59078         <getopt.h>.
59079         * lib/getopt.in.h (includes): Use split inclusion guard, and
59080         prefer <getopt.h> over include <unistd.h> when one is present.
59081         (option): Also override name of 'struct option'.
59083         same-inode: revert prior change; it is not yet ready
59084         * NEWS: Undo mention of this change.
59085         * lib/same-inode.h (same-inode.h): Undo tri-state change.
59086         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
59087         * lib/cycle-check.c (cycle_check): Likewise.
59088         * lib/same.c (same_name): Likewise.
59089         * lib/at-func2.c (at_func2): Likewise.
59091 2009-09-23  Eric Blake  <ebb9@byu.net>
59093         linkat: new module
59094         * modules/linkat: New file.
59095         * lib/at-func2.c (at_func2): Likewise.
59096         * lib/linkat.c (linkat): Likewise.
59097         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
59098         * lib/openat-priv.h (at_func2): Add declaration.
59099         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
59100         * modules/unistd (Makefile.am): Substitute them.
59101         * lib/unistd.in.h (linkat): Declare it.
59102         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
59103         * doc/posix-functions/linkat.texi (linkat): Likewise.
59104         * doc/posix-functions/link.texi (link): Tweak wording.
59105         * tests/test-link.c (main): Move guts...
59106         * tests/test-link.h (test_link): ...into new file.
59107         * modules/linkat-tests: New test.
59108         * tests/test-linkat.c: Likewise.
59109         * modules/link-tests (Files): Ship new file.
59110         (Depends-on): Add stdbool.
59112         dirname: add library-safe mdir_name
59113         * lib/dirname.h (mdir_name): New prototype.
59114         * lib/dirname.c (dir_name): Move guts...
59115         (mdir_name): ...to new function that avoids xalloc_die.
59117         fchdir: another mingw fix
59118         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
59119         * lib/fchdir.c (get_name): New helper method; skips canonicalize
59120         on mingw (where it has not yet been ported), and make it optional
59121         elsewhere.
59122         (_gl_register_fd): Use it.
59124         same-inode: make SAME_INODE tri-state, to port to mingw
59125         * NEWS: Mention this change.
59126         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
59127         st_ino always being 0.
59128         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
59129         * lib/cycle-check.c (cycle_check): Likewise.
59130         * lib/same.c (same_name): Likewise.
59132         lstat: avoid mingw compilation error
59133         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
59134         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
59135         lstat ourselves.
59136         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
59137         was adequate.
59138         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
59139         the checks for lstat.
59140         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
59142         link: fix test failure on Solaris 9
59143         * lib/link.c (rpl_link): Don't assume link will catch bogus
59144         trailing slash on source.
59146         test-symlinkat: enhance test
59147         * tests/test-readlink.c (main): Move guts...
59148         * tests/test-readlink.h (test_readlink): ...into new file.
59149         * tests/test-symlink.c (main): Move guts...
59150         * tests/test-symlink.h (test_symlink): ...into new file.
59151         * tests/test-symlinkat.c (main): Use new files for further
59152         coverage.
59153         (do_symlink, do_readlink): New helper functions.
59154         * modules/symlink-tests (Files): Ship new file.
59155         (Depends-on): Add stdbool.
59156         * modules/readlink-tests (Files): Ship new file.
59157         (Depends-on): Add stdbool.
59158         * modules/symlinkat-tests (Files): Use new files.
59160 2009-09-23  Eric Blake  <ebb9@byu.net>
59162         readlink: document portability issue with symlink length
59163         * doc/posix-functions/lstat.texi (lstat): Mention that some file
59164         systems have bogus st_size on symlinks, and mention the
59165         areadlink-with-size module.
59166         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
59167         * doc/posix-functions/readlink.texi (readlink): Mention the
59168         areadlink module, and ERANGE failure.
59169         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
59170         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
59172         readlink: fix Solaris 9 bug with trailing slash
59173         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
59174         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
59175         * doc/posix-functions/readlink.texi (readlink): Document this.
59176         * modules/readlink-tests: New test.
59177         * tests/test-readlink.c: Likewise.
59179         readlink: fix cygwin 1.5.x bug with return type
59180         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
59181         * lib/unistd.in.h (readlink): Use ssize_t.
59182         * lib/readlink.c (readlink): Likewise.
59183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
59184         * modules/unistd (Makefile.am): Substitute it.
59185         * lib/unistd.in.h (readlink): Declare replacement.
59186         * doc/posix-functions/readlink.texi (readlink): Document this.
59188         symlink: use throughout gnulib
59189         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
59190         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
59191         symlink is not used.
59192         * modules/symlinkat (Depends-on): Add symlink.
59193         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
59194         * modules/canonicalize-tests (Depends-on): Likewise.
59195         * modules/lstat-tests (Depends-on): Likewise.
59196         * modules/openat-tests (Depends-on): Likewise.
59197         * modules/remove-tests (Depends-on): Likewise.
59198         * modules/rmdir-tests (Depends-on): Likewise.
59199         * modules/unlink-tests (Depends-on): Likewise.
59200         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
59201         * tests/test-canonicalize.c (symlink): Likewise.
59202         * tests/test-fstatat.c (symlink): Likewise.
59203         * tests/test-lstat.c (symlink): Likewise.
59204         * tests/test-remove.c (symlink): Likewise.
59205         * tests/test-rmdir.c (symlink): Likewise.
59206         * tests/test-unlink.c (symlink): Likewise.
59207         * tests/test-unlinkat.c (symlink): Likewise.
59209         symlink: new module, for Solaris 9 bug
59210         * modules/symlink: New file.
59211         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
59212         * lib/symlink.c: Likewise.
59213         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
59214         * modules/unistd (Makefile.am): Substitute them.
59215         * lib/unistd.in.h (symlink): Declare replacement.
59216         * MODULES.html.sh (File system functions): Mention it.
59217         * doc/posix-functions/symlink.texi (symlink): Likewise.
59218         * modules/symlink-tests: New test.
59219         * tests/test-symlink.c: Likewise.
59221 2009-09-23  Bruno Haible  <bruno@clisp.org>
59223         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
59224         when needed.
59225         Test case: gnulib-tool --import --with-tests atexit inttypes.
59226         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
59228 2009-09-23  Bruno Haible  <bruno@clisp.org>
59230         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
59231         subcommand, not in a subshell.
59233 2009-09-22  Eric Blake  <ebb9@byu.net>
59235         unistd: sort replacement declarations
59236         * lib/unistd.in.h: Sort declarations.
59238         open, openat: minor optimization
59239         * lib/open.c (open): If open succeeded, len is non-zero.
59240         * lib/openat.c (rpl_openat): Likewise.
59242         link-follow: ensure correct result
59243         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
59244         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
59245         distinguish between possible failures.
59247 2009-09-21  Eric Blake  <ebb9@byu.net>
59249         fts: avoid compiler warning
59250         * lib/fts.c (dirent_inode_sort_may_be_useful)
59251         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
59253 2009-09-19  Bruno Haible  <bruno@clisp.org>
59255         * lib/progreloc.c (canonicalize_file_name): New declaration.
59257 2009-09-19  Eric Blake  <ebb9@byu.net>
59259         link: fix quoting
59260         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
59262         openat: fix openat bugs on Solaris 9
59263         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
59264         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
59265         * modules/openat (Depends-on): Add open.
59266         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
59267         * modules/fcntl-h (Makefile.am): Substitute it.
59268         * lib/fcntl.in.h (openat): Declare replacement.
59269         * doc/posix-functions/openat.texi (openat): Document this.
59271         openat: move fstatat and unlinkat into correct files
59272         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
59273         compiled.
59274         * lib/openat.c (fstatat, unlinkat): Move...
59275         * lib/fstatat.c (fstatat): ...into correct files.
59276         * lib/unlinkat.c (unlinkat): Likewise.
59278         openat: fix unlinkat bugs on Solaris 9
59279         * lib/unlinkat.c (unlinkat): New file.
59280         * modules/openat (Depends-on): Add unlink.
59281         (Files): Distribute it.
59282         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
59283         trailing slash behavior is broken.
59284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
59285         * modules/unistd (Makefile.am): Substitute it.
59286         * lib/unistd.in.h (unlinkat): Declare replacement.
59287         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
59289         openat: fix fstatat bugs on Solaris 9
59290         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
59291         stat.
59292         * doc/posix-functions/fstatat.texi (fstatat): Document this.
59294         test-unlinkat: enhance test, to expose Solaris 9 bug
59295         * tests/test-unlink.c (main): Factor guts...
59296         * tests/test-unlink.h (test_rmdir_func): ...into new file.
59297         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
59298         * tests/test-rmdir.c (main): Adjust caller.
59299         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
59300         (unlinker): New helper function.
59301         (rmdirat): Enhance check.
59302         * modules/rmdir-tests (Depends-on): Add stdbool.
59303         * modules/unlink-tests (Depends-on): Likewise.
59304         (Files): Add test-unlink.h.
59305         * modules/openat-tests (Files): Likewise.
59306         (Depends-on): Add unlinkdir.
59308         test-fstatat: new test, to expose Solaris 9 bugs
59309         * tests/test-stat.c (main): Factor guts...
59310         * tests/test-stat.h (test_stat_func): ...into new file.
59311         * tests/test-lstat.c (main): Factor guts...
59312         * tests/test-lstat.h (test_lstat_func): ...into new file.
59313         * tests/test-fstatat.c: New file.
59314         * modules/stat-tests (Files): Add test-stat.h.
59315         * modules/lstat-tests (Files): Add test-lstat.h.
59316         (Depends-on): Add stdbool.
59317         * modules/openat-tests (Depends-on): Add pathmax.
59318         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
59319         (Makefile.am): Run new test.
59321         remove: new module, for mingw and Solaris 9 bugs
59322         * modules/remove: New file.
59323         * lib/remove.c: Likewise.
59324         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
59325         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
59326         * modules/stdio (Makefile.am): Use them.
59327         * lib/stdio.in.h (remove): Declare replacement.
59328         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
59329         * doc/posix-functions/remove.texi (remove): Likewise.
59330         * modules/remove-tests: New test.
59331         * tests/test-remove.c: Likewise.
59333         unlink: new module, for Solaris 9 bug
59334         * modules/unlink: New file.
59335         * lib/unlink.c: Likewise.
59336         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
59337         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
59338         * modules/unistd (Makefile.am): Use them.
59339         * lib/unistd.in.h (stat): Declare replacement.
59340         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
59341         * doc/posix-functions/unlink.texi (unlink): Likewise.
59342         * modules/unlink-tests: New test.
59343         * tests/test-unlink.c: Likewise.
59345         lstat: fix Solaris 9 bug
59346         * lib/lstat.c (lstat): Also check for trailing slash on
59347         non-symlink, non-directories.  Use stat module to simplify logic.
59348         * doc/posix-functions/lstat.texi (lstat): Document it.
59349         * modules/lstat-tests (Depends-on): Add errno, same-inode.
59350         (configure.ac): Check for symlink.
59351         * tests/test-lstat.c (main): Add more tests.
59353         stat: add as dependency to other modules
59354         * modules/chown (Depends-on): Add stat.
59355         * modules/euidaccess (Depends-on): Likewise.
59356         * modules/fchdir (Depends-on): Likewise.
59357         * modules/isdir (Depends-on): Likewise.
59358         * modules/link (Depends-on): Likewise.
59359         * modules/lstat (Depends-on): Likewise.
59360         * modules/mkdir-p (Depends-on): Likewise.
59361         * modules/modechange (Depends-on): Likewise.
59362         * modules/open (Depends-on): Likewise.
59363         * modules/readlink (Depends-on): Likewise.
59364         * modules/same (Depends-on): Likewise.
59366         stat: fix Solaris 9 bug
59367         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
59368         slash.
59369         * lib/stat.c (rpl_stat): Work around it.
59370         * doc/posix-functions/stat.texi (stat): Update documentation.
59372         stat: new module, for mingw bug
59373         * modules/stat: New file.
59374         * lib/stat.c: Likewise.
59375         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
59376         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
59377         * modules/sys_stat (Makefile.am): Use them.
59378         * lib/sys_stat.in.h (stat): Declare replacement.
59379         * lib/openat.c (fstatat): Deal with lstat and stat being function
59380         macros.
59381         * modules/openat (Depends-on): Add inline.
59382         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
59383         * doc/posix-functions/stat.texi (stat): Likewise.
59384         * modules/stat-tests: New test.
59385         * tests/test-stat.c: Likewise.
59387 2009-09-19  Jim Meyering  <meyering@redhat.com>
59389         syntax-check: detect unnecessary inclusion of canonicalize.h
59390         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
59392 2009-09-19  Eric Blake  <ebb9@byu.net>
59394         canonicalize-lgpl: adjust clients to use correct header
59395         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
59396         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
59397         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
59398         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
59399         * lib/progreloc.c (includes): Likewise.
59401 2009-09-19  Jim Meyering  <meyering@redhat.com>
59403         test-posixtm.c: correct a comment
59404         * tests/test-posixtm.c: Correct first-line comment.
59405         Spotted by Eric Blake.
59407 2009-09-16  Jim Meyering  <meyering@redhat.com>
59409         posixtm-tests: make T const-correct; add a test case
59410         * tests/test-posixtm.c (T): Declare const.
59411         Add a test for -(2^31+1).
59412         Remove useless can-succeed-only-in-2002 test.
59414         posixtm-tests: adjust the sole failing test
59415         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
59416         expected output matches what mktime now produces.  Cross-checked via
59417         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
59419         posixtm: move #ifdef'd tests into a new module
59420         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
59421         * tests/test-posixtm.c: ... this new file.
59422         * modules/posixtm-tests: New module.
59424 2009-09-19  Eric Blake  <ebb9@byu.net>
59426         openat: simplify use of at-func.c
59427         * lib/at-func.c (includes): Include prerequisites here, to
59428         simplify requirements on client files.
59429         * lib/openat-priv.h: Add double-inclusion guard.
59430         * lib/faccessat.c (includes): Simplify.
59431         * lib/fchmodat.c (includes): Likewise.
59432         * lib/fchownat.c (includes): Likewise.
59433         * lib/mkdirat.c (includes): Likewise.
59434         * lib/mkfifoat.c (includes): Likewise.
59435         * lib/symlinkat.c (includes): Likewise.
59437         openat: allow return of fd 0
59438         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
59439         * modules/save-cwd (Depends-on): Replace fcntl-safer with
59440         unistd-safer.
59441         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
59442         <fcntl.h>; this module does not leak fds.
59443         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
59444         must be allowed to return 0, leaving openat_safer to add the
59445         safety.
59446         (openat_permissive): Avoid writing to just-opened fd 2 if
59447         restoring the current directory fails.
59448         * lib/openat-die.c (openat_restore_fail): Add comment.
59449         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
59450         (save_cwd): Guarantee safe fd, but without use of open_safer.
59451         * tests/test-openat.c: New test.
59452         * modules/openat-tests (Files, Makefile.am): Distribute and build
59453         new file.
59455         relocatable-prog-wrapper: fix build
59456         * modules/relocatable-prog-wrapper (Files): Update name of
59457         canonicalize m4 file, broken on 2009-09-17.
59458         Reported by emad hajjar <aleppos@hotmail.com>.
59460 2009-09-19  Bruno Haible  <bruno@clisp.org>
59462         * lib/safe-alloc.h: Use the standard header with GPL copyright.
59463         * lib/safe-alloc.c: Likewise.
59464         Reported by Ian Beckwith <ianb@erislabs.net>.
59466 2009-09-18  Bruno Haible  <bruno@clisp.org>
59468         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
59469         Reported by <erobles@sensacd.com.mx>.
59471 2009-09-17  Eric Blake  <ebb9@byu.net>
59473         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
59474         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
59475         slashes when checking if last component is missing.
59476         * tests/test-canonicalize.c (main): Test this.
59478         canonicalize, canonicalize-lgpl: honor // if distinct from /
59479         * modules/canonicalize (Files): Add double-slash-root.m4.
59480         * modules/canonicalize-lgpl (Files): Likewise.
59481         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
59482         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
59483         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
59484         fallback definition.
59485         (canonicalize_filename_mode): Use it to protect //.
59486         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
59487         (__realpath): Likewise.
59488         * tests/test-canonicalize.c (main): Test this.
59489         * tests/test-canonicalize-lgpl.c (main): Likewise.
59490         * modules/canonicalize-tests (Depends-on): Add same-inode.
59491         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
59493         canonicalize-lgpl: fix glibc bug with trailing slash
59494         * m4/canonicalize-lgpl.m4: Move contents...
59495         * m4/canonicalize.m4: ...here.
59496         (gl_CANONICALIZE_LGPL): Factor realpath check...
59497         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
59498         glibc 2.3.5 bug, fixed 2005-04-27.
59499         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
59500         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
59501         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
59502         * modules/canonicalize-lgpl (Files): Manage file rename.
59503         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
59504         * modules/stdlib (Makefile.am): Substitute witness.
59505         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
59506         is needed.
59507         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
59508         replacement is required.
59509         * lib/canonicalize.c (canonicalize_file_name): Likewise.
59510         * doc/glibc-functions/canonicalize_file_name.texi
59511         (canonicalize_file_name): Document this.
59512         * doc/posix-functions/realpath.texi (realpath): Likewise.
59514         canonicalize-lgpl: reject non-directory with trailing slash
59515         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
59516         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
59517         catches failures in glibc 2.3.5.
59518         * tests/test-canonicalize.c (main): Likewise.
59520         canonicalize-lgpl: use native realpath if it works
59521         * lib/canonicalize-lgpl.c (realpath): Guard with
59522         FUNC_REALPATH_WORKS.
59523         * lib/stdlib.in.h (realpath): Make declaration optional based on
59524         HAVE_REALPATH.
59525         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
59526         native realpath works.
59527         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
59528         * modules/stdlib (Makefile.am): Substitute witness.
59530         canonicalize, canonicalize-lgpl: use <stdlib.h>
59531         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
59532         (Include): Mention <stdlib.h>.
59533         (configure.ac): Mention functions we provide.
59534         * modules/canonicalize (configure.ac): Likewise.
59535         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
59536         realpath if canonicalize_file_name is missing.
59537         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
59538         * modules/stdlib (Makefile.am): Substitute witnesses.
59539         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
59540         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
59541         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
59542         * NEWS: Document this.
59543         * doc/glibc-functions/canonicalize_file_name.texi
59544         (canonicalize_file_name): Likewise.
59545         * doc/posix-functions/realpath.texi (realpath): Likewise.
59546         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
59548         test-canonicalize: consolidate into single C program
59549         * tests/test-canonicalize.sh: Delete; move setup into...
59550         * tests/test-canonicalize.c (main): ...the program, making it
59551         easier to run in debugger.  Add some tests.
59552         * modules/canonicalize-tests (Files): Remove unused file.
59553         (Depends-on): Add progname.
59554         (configure.ac, Makefile.am): Simplify.
59556         test-canonicalize-lgpl: consolidate into single C program
59557         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
59558         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
59559         easier to run in debugger.  Add some tests.
59560         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
59561         (configure.ac, Makefile.am): Simplify.
59563         canonicalize: avoid resolvepath
59564         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
59565         unnecessary checks.
59566         * lib/canonicalize.c (includes): Simplify.
59567         (canonicalize_file_name): Drop resolvepath implementation.
59568         * modules/canonicalize (Depends-on): Drop filenamecat.
59570         canonicalize: don't lose errno
59571         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
59572         over calls to free.
59574         canonicalize: simplify errno handling
59575         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
59576         assignment.
59578         canonicalize, canonicalize-lgpl: update module dependencies
59579         * modules/canonicalize (Depends-on): Add extensions, lstat,
59580         pathmax, stdlib.
59581         (Files): Drop pathmax.h.
59582         (configure.ac): Adjust macro name.
59583         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
59584         lstat, stdlib, sys_stat.
59585         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
59586         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
59587         extensions.
59588         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
59589         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
59590         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
59591         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
59592         declaration, if available.
59593         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
59594         we can rely on the readlink module.
59595         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
59596         (includes): Use <unistd.h> unconditionally.
59598 2009-09-17  Eric Blake  <ebb9@byu.net>
59600         maint: make Include sections of modules consistent
59601         * modules/alloca: Use only header name; no need to list #include.
59602         * modules/alloca-opt: Likewise.
59603         * modules/arpa_inet: Likewise.
59604         * modules/canon-host: Likewise.
59605         * modules/configmake: Likewise.
59606         * modules/dirent: Likewise.
59607         * modules/eealloc: Likewise.
59608         * modules/environ: Likewise.
59609         * modules/fchdir: Likewise.
59610         * modules/fcntl: Likewise.
59611         * modules/fcntl-h: Likewise.
59612         * modules/gethrxtime: Likewise.
59613         * modules/gettime: Likewise.
59614         * modules/ignore-value: Likewise.
59615         * modules/inet_ntop: Likewise.
59616         * modules/inet_pton: Likewise.
59617         * modules/inttypes: Likewise.
59618         * modules/isnand-nolibm: Likewise.
59619         * modules/isnanf-nolibm: Likewise.
59620         * modules/mbchar: Likewise.
59621         * modules/mbfile: Likewise.
59622         * modules/mbiter: Likewise.
59623         * modules/mbuiter: Likewise.
59624         * modules/netdb: Likewise.
59625         * modules/netinet_in: Likewise.
59626         * modules/nproc: Likewise.
59627         * modules/pagealign_alloc: Likewise.
59628         * modules/poll: Likewise.
59629         * modules/printf-frexp: Likewise.
59630         * modules/pthread: Likewise.
59631         * modules/putenv: Likewise.
59632         * modules/random_r: Likewise.
59633         * modules/relocatable-prog: Likewise.
59634         * modules/search: Likewise.
59635         * modules/select: Likewise.
59636         * modules/selinux-h: Likewise.
59637         * modules/settime: Likewise.
59638         * modules/signal: Likewise.
59639         * modules/size_max: Likewise.
59640         * modules/socklen: Likewise.
59641         * modules/ssize_t: Likewise.
59642         * modules/stdarg: Likewise.
59643         * modules/stdbool: Likewise.
59644         * modules/stddef: Likewise.
59645         * modules/stdint: Likewise.
59646         * modules/stdio: Likewise.
59647         * modules/stdlib: Likewise.
59648         * modules/string: Likewise.
59649         * modules/strings: Likewise.
59650         * modules/sys_file: Likewise.
59651         * modules/sys_ioctl: Likewise.
59652         * modules/sys_select: Likewise.
59653         * modules/sys_socket: Likewise.
59654         * modules/sys_stat: Likewise.
59655         * modules/sys_time: Likewise.
59656         * modules/sys_times: Likewise.
59657         * modules/sys_utsname: Likewise.
59658         * modules/sys_wait: Likewise.
59659         * modules/sysexits: Likewise.
59660         * modules/time: Likewise.
59661         * modules/times: Likewise.
59662         * modules/tmpfile: Likewise.
59663         * modules/trim: Likewise.
59664         * modules/unistd: Likewise.
59665         * modules/wchar: Likewise.
59666         * modules/wctype: Likewise.
59668 2009-09-17  Bruno Haible  <bruno@clisp.org>
59670         Make getdate.y compile on QNX and NetBSD 5 / i386.
59671         * m4/getdate.m4 (gl_GETDATE): Conditionally define
59672         TIME_T_FITS_IN_LONG_INT.
59673         * lib/getdate.y (long_time_t): New type.
59674         (relative_time): Change type of 'seconds' field to long_time_t.
59675         (get_date): Update types of local variables. Check against overflow
59676         during conversion from long_time_t to time_t.
59677         Reported by Matt Kraai <kraai@ftbfs.org>
59678         and Hasso Tepper <hasso@netbsd.org>.
59680 2009-09-17  Bruno Haible  <bruno@clisp.org>
59682         * modules/COPYING: Update copyright years.
59683         * modules/README: Likeiwse.
59684         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
59685         Reported by Ian Beckwith <ianb@erislabs.net>.
59687 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
59689         * users.txt: Update references for gnuit package.
59691 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
59693         * m4/getdelim.m4: Fix typo in copyright line.
59695 2009-09-17  Bruno Haible  <bruno@clisp.org>
59697         * lib/atoll.c: Use the standard header with GPL copyright.
59698         * lib/argz.in.h: Likewise.
59699         * lib/glob.c: Likewise.
59700         * lib/glob-libc.h: Likewise.
59701         * lib/random_r.c: Likewise.
59702         * lib/siglist.h: Likewise.
59703         * lib/strsignal.c: Likewise.
59704         Reported by Ian Beckwith <ianb@erislabs.net>.
59706 2009-09-17  Eric Blake  <ebb9@byu.net>
59708         rmdir: ensure correct dependency order
59709         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
59711 2009-09-17  Bruno Haible  <bruno@clisp.org>
59713         Disable assertion that fails on NetBSD 5 / i386.
59714         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
59715         Reported by Sam Steingold <sds@gnu.org>
59716         and Hasso Tepper <hasso@netbsd.org>.
59718 2009-09-16  Eric Blake  <ebb9@byu.net>
59720         unlinkdir: port to mingw
59721         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
59722         on which no one can unlink a directory.
59724         stdlib: sort witness names
59725         * modules/stdlib (Makefile.am): Sort replacements.
59726         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
59727         * lib/stdlib.in.h: Likewise.
59729         parse-duration-tests: avoid link failure
59730         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
59731         LIBINTL.
59732         Reported by Tom G. Christensen.
59734         openat-tests: ensure unlinkat behaves like rmdir
59735         * tests/test-rmdir.c (main): Factor guts...
59736         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
59737         * modules/rmdir-tests (Files): Ship new file.
59738         * modules/openat-tests: New test.
59739         * tests/test-unlinkat.c: Likewise.
59741         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
59742         * modules/rmdir-errno (Status, Notice): Now obsolete.
59744         rmdir: work around cygwin 1.5.x and mingw bugs
59745         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
59746         * lib/rmdir.c (rmdir): Work around it.
59747         * modules/rmdir (Status, Notice): No longer obsolete.
59748         (Files): Add dos.m4.
59749         (Depends-on): Add unistd.
59750         (configure.ac): Set witnesses.
59751         (License): Relax to LGPLv2+.
59752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
59753         * modules/unistd (Makefile.am): Substitute witnesses.
59754         * lib/unistd.in.h (rmdir): Declare replacement.
59755         * doc/posix-functions/rmdir.texi (rmdir): Document this.
59756         * modules/rmdir-tests: New tests.
59757         * tests/test-rmdir.c: Likewise.
59759 2009-09-15  Eric Blake  <ebb9@byu.net>
59761         fchdir: improve use of replacement functions
59762         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
59763         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
59764         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
59765         REPLACE_CLOSEDIR.
59766         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
59767         * modules/sys_stat (Makefile.am): Substitute correct witness.
59768         * modules/dirent (Makefile.am): Likewise.
59769         * modules/unistd (Makefile.am): Likewise.
59770         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
59771         * lib/unistd.in.h (dup): Likewise.
59772         * lib/sys_stat.in.h (fstat): Likewise.
59774         maint: ignore gnulib-tool temp files
59775         * .gitignore: Ignore files created during gnulib-tool --test.
59777 2009-09-13  Jim Meyering  <meyering@redhat.com>
59779         posixtm: don't reject a time that specify "60" as the number of seconds
59780         * lib/posixtm.c (posixtime): The code to reject invalid dates
59781         would also reject a time specified with the .60 suffix.
59782         But POSIX allows that, in order to accommodate leap seconds.
59783         So don't reject it.
59784         (main): Adjust tests accordingly.
59785         * modules/posixtm (Depends-on): Add stpcpy.
59787 2009-09-11  Jim Meyering  <meyering@redhat.com>
59789         announce-gen: include [$release_type] in emitted Subject:
59790         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
59791         e.g., [stable] in the emitted Subject: line.
59793 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59795         Remove obsolete macros from several modules.
59796         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
59797         obsolete Autoconf macros with their modern counterparts.
59798         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
59799         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
59800         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
59801         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
59802         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
59803         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59804         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
59805         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
59806         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
59807         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
59808         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
59809         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
59810         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
59811         * m4/sockets.m4 (gl_SOCKETS): Likewise.
59812         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
59813         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
59814         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
59815         * m4/time_r.m4 (gl_TIME_R): Likewise.
59816         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
59817         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
59818         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59820         Fix copyright header in build-aux scripts.
59821         * build-aux/git-version-gen: Fix copyright header to match GPLv3
59822         recommendation.
59823         * build-aux/ncftpput-ftp: Likewise.
59824         * build-aux/update-copyright: Likewise.
59826 2009-09-09  Eric Blake  <ebb9@byu.net>
59828         test-link: allow Linux choice of errno
59829         * tests/test-link.c (main): Relax test for alternate error.
59831         strndup: fix improper m4 caching
59832         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
59833         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
59834         (gl_PREREQ_STRNDUP): Delete.
59835         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
59836         * modules/string (Makefile.am): Substitute it.
59837         * lib/string.in.h (strndup): Modernize prototype.
59839         getcwd: port to mingw
59840         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
59841         different from the POSIX assumptions made throughout the getcwd
59842         module; fortunately, the mingw getcwd does not need replacement.
59843         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
59844         * modules/getcwd-tests: New test.
59845         * tests/test-getcwd.c: Likewise.
59847         link: fix platform bugs
59848         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
59849         * lib/link.c (link): Work around them.  Fix related mingw bug.
59850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
59851         * modules/unistd (Makefile.am): Substitute it.
59852         * lib/unistd.in.h (link): Declare replacement.
59853         * doc/posix-functions/link.texi (link): Document this.
59854         * modules/link (Depends-on): Add strdup-posix, sys_stat.
59856         test-link: consolidate into single C program, test more cases
59857         * tests/test-link.sh: Delete.
59858         * tests/test-link.c: Test more error conditions.  Exposes bugs on
59859         at least Cygwin and Solaris.
59860         * modules/link-tests (Files): Remove unused file.
59861         (Depends-on): Add errno, sys_stat.
59862         (Makefile.am): Simplify.
59864 2009-09-08  Bruno Haible  <bruno@clisp.org>
59866         Work around towlower, towupper bug on mingw.
59867         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
59868         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
59869         * doc/posix-functions/towlower.texi: Mention the mingw bug.
59870         * doc/posix-functions/towupper.texi: Likewise.
59871         Reported by Eric Blake.
59873 2009-09-08  Jim Meyering  <meyering@redhat.com>
59875         build: don't try to run autoheader if we don't use it
59876         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
59877         is not used in configure.ac.
59879 2009-09-08  Eric Blake  <ebb9@byu.net>
59881         euidaccess: fix compilation error
59882         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
59884         rawmemchr: relax license
59885         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
59886         okay.
59887         Reported by Jim Meyering.
59889         mkfifoat: new module
59890         * modules/mkfifoat: New file.
59891         * lib/mkfifoat.c: Likewise.
59892         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
59893         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
59894         * modules/sys_stat (Makefile.am): Use them.
59895         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
59896         * MODULES.html.sh (File system functions): Mention module.
59897         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
59898         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
59899         * modules/mkfifoat-tests: New test.
59900         * tests/test-mkfifoat.c: Likewise.
59902         strchrnul: relax license
59903         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
59904         okay.
59905         Reported by Jim Meyering.
59907 2009-09-08  Eric Blake  <ebb9@byu.net>
59909         fstatat: fix compilation on Solaris
59910         * lib/fstatat.c (includes): Add fcntl.h.
59911         Reported by Pádraig Brady.
59913 2009-09-07  Eric Blake  <ebb9@byu.net>
59915         rename: modernize replacement
59916         * modules/rename (Depends-on): Add stdio.
59917         (configure.ac): Declare witness.
59918         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
59919         stdio take care of replacement.
59920         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
59921         * modules/stdio (Makefile.am): Substitute them.
59922         * lib/stdio.in.h (rename): Declare replacement.
59923         * lib/rename.c (includes): Allow cross-compilation to non-windows
59924         machines.
59925         * doc/posix-functions/rename.texi (rename): Improve
59926         documentation.
59928         stdio: sort witness names
59929         * modules/stdio (Makefile.am): Sort replacements.
59930         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59931         * lib/stdio.in.h: Likewise.
59933         getcwd: minor cleanups
59934         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
59935         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
59937         openat: provide more convenience names
59938         * modules/faccessat (configure.ac): Add C witness.
59939         * lib/unistd.in.h (readlinkat): Fix typo.
59940         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
59941         convenience wrappers.
59942         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
59943         wrappers in syntax checks.
59945 2009-09-06  Eric Blake  <ebb9@byu.net>
59947         doc: fix comments in recent patches
59948         * lib/faccessat.c: Mention correct function.
59949         * lib/fchmodat.c: Likewise.
59950         * lib/fchownat.c: Likewise.
59951         * lib/symlinkat.c: Likewise.
59952         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
59953         constants.
59955         faccessat, symlinkat: continue cleanup of previous patch
59956         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
59957         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
59958         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
59959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
59960         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
59961         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
59962         set.
59964 2009-09-06  Bruno Haible  <bruno@clisp.org>
59966         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
59967         (fstatat): Declare if GNULIB_FSTATAT is set.
59968         (mkdirat): Declare if GNULIB_MKDIRAT is set.
59969         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
59970         (unlinkat): Declare if GNULIB_UNLINKAT is set.
59971         * modules/fcntl-h (Files): Remove m4/openat.m4.
59972         * modules/sys_stat (Files): Remove m4/openat.m4.
59973         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
59974         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
59975         * modules/unistd (Files): Remove m4/openat.m4.
59976         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
59977         GNULIB_OPENAT.
59978         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
59979         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
59980         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
59981         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
59982         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
59983         gl_OPENAT_DEFAULTS.
59984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
59985         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
59986         Don't require gl_OPENAT_DEFAULTS.
59987         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
59988         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
59989         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
59990         (gl_OPENAT_DEFAULTS): Remove macro.
59992 2009-09-06  Bruno Haible  <bruno@clisp.org>
59994         * modules/openat (configure.ac): Remove unneeded witness.
59996 2009-09-06  Bruno Haible  <bruno@clisp.org>
59998         Set errno to ENOSYS when a function is entirely unsupported.
59999         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
60000         EOPNOTSUPP.
60001         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
60002         * modules/chown (Depends-on): Remove errno.
60004 2009-09-06  Bruno Haible  <bruno@clisp.org>
60006         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
60008 2009-09-06  Bruno Haible  <bruno@clisp.org>
60010         * lib/sys_stat.in.h: Fix preprocessor command indentation.
60012 2009-09-06  Ben Pfaff  <blp@gnu.org>
60013             Bruno Haible  <bruno@clisp.org>
60015         Work around a glibc bug in strtok_r.
60016         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
60017         Undefine if UNDEFINE_STRTOK_R is set.
60018         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
60019         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60020         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
60021         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
60022         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
60023         UNDEFINE_STRTOK_R.
60024         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
60026 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
60028         exclude: minor fix
60029         * lib/exclude.c: Include wctype.h
60031 2009-09-06  Akim Demaille  <demaille@gostai.com>
60033         bootstrap: improve error message
60034         * build-aux/bootstrap (find_tool): Upon failure, report the list
60035         of candidates.
60036         Honor the initial value of the envvar.
60038 2009-09-05  Eric Blake  <ebb9@byu.net>
60040         symlinkat: new module
60041         * modules/symlinkat: New file.
60042         * lib/symlinkat.c: Likewise.
60043         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
60044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
60045         * modules/unistd (Makefile.am): Use them.
60046         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
60047         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
60048         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
60049         * MODULES.html.sh (File system functions): Mention module.
60050         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
60051         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
60052         * modules/symlinkat-tests: New test.
60053         * tests/test-symlinkat.c: Likewise.
60055         test-openat-safer: add more checks
60056         * tests/test-openat-safer.c (main): Check more code paths.
60058 2009-09-05  Jim Meyering  <meyering@redhat.com>
60060         syntax-check: detect unnecessary inclusion of openat.h
60061         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
60063 2009-09-05  Bruno Haible  <bruno@clisp.org>
60065         Support towlower, towupper.
60066         * doc/posix-functions/towlower.texi: Mention module wctype.
60067         * doc/posix-functions/towupper.texi: Likewise.
60068         * lib/wctype.in.h (towlower, towupper): New functions.
60069         * tests/test-wctype.c: Include stdio.h, stdlib.h.
60070         (ASSERT): New macro.
60071         (e): New variable.
60072         (main): Test also towlower, towupper. Test WEOF argument.
60073         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
60075 2009-09-05  Bruno Haible  <bruno@clisp.org>
60077         Fix conversion behaviour when the input is invalid.
60078         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
60079         mark occurring in first pass of indirect conversion.
60080         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
60081         input.
60082         Found by clang's static analyzer.
60084 2009-09-05  Bruno Haible  <bruno@clisp.org>
60086         * tests/test-striconveh.c (main): Test indirect conversion on platforms
60087         where direct conversion is possible.
60089 2009-09-04  Eric Blake  <ebb9@byu.net>
60091         openat: fail with ENOENT on empty name
60092         * lib/openat-proc.c (openat_proc_name): Special-case the empty
60093         buffer.
60095         link-follow: fix logic bug in prior patch
60096         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
60097         reversed sense of yes and no in prior patch.  Avoid confusing
60098         compilation failure with desired semantics.
60100         link-follow: accommodate mingw and cross-compilation
60101         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
60102         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
60103         cross-compilation results to -1, to make linkat easier to
60104         implement when cross-compiling.  Trivially support mingw.
60105         * modules/link-follow (configure.ac): Call new name.
60106         * NEWS: Mention this.
60108 2009-09-03  Eric Blake  <ebb9@byu.net>
60110         faccessat: compile replacement
60111         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
60112         needed.
60114         fts: fix compilation error
60115         * lib/fts.c (includes): Re-add "openat.h", for
60116         openat_needs_fchdir.
60118         faccessat: new module
60119         * modules/faccessat: New file.
60120         * lib/faccessat.c: Likewise.
60121         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
60122         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
60123         * modules/unistd (Makefile.am): Use it.
60124         * lib/unistd.in.h (faccessat): Declare it.
60125         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
60126         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
60127         * MODULES.html.sh (File system functions): Mention it.
60128         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
60129         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
60131         euidaccess: prefer POSIX over non-standard implementation
60132         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
60133         * lib/euidaccess.c (euidaccess): Use it if available.
60135         openat: make template easier to use
60136         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
60137         AT_FUNC_F2 to be undefined.
60138         (VALIDATE_FLAG): New macro; use it to reject bad flags.
60139         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
60140         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
60141         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
60142         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
60143         Likewise.
60144         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
60145         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
60146         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
60147         Likewise.
60149         openat: declare in POSIX headers
60150         * NEWS: Mention this.
60151         * modules/openat (configure.ac): Declare witnesses.
60152         (Depends-on): Add fcntl-h, sys_stat, unistd.
60153         (Include): Mention correct headers.
60154         * modules/fcntl-h (Depends-on): Add link-warning.
60155         (Files): Add openat.m4.
60156         (Makefile.am): Substitute witnesses.
60157         * modules/sys_stat (Files, Makefile.am): Likewise.
60158         * modules/unistd (Files, Makefile.am): Likewise.
60159         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
60160         (gl_OPENAT_DEFAULTS): New macro.
60161         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
60162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
60163         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
60164         (SYS_STAT_H): Remove unused variable.
60165         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
60166         * lib/fcntl--.h (includes): Remove unneeded header.
60167         * lib/openat-safer.c (includes): Likewise.
60168         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
60169         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
60170         appropriate headers.
60171         (__OPENAT_PREFIX): Delete.
60172         * lib/fcntl.in.h (openat): Provide declaration.
60173         (AT_FDCWD): Fix Solaris bug.
60174         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
60175         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
60176         * lib/fchmodat.c (includes):  Adjust to find declaration.
60177         * lib/fchownat.c (includes): Likewise.
60178         * lib/mkdirat.c (includes): Likewise.
60179         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
60180         still visible.
60182 2009-09-02  Eric Blake  <ebb9@byu.net>
60184         errno: use consistently
60185         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
60186         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
60187         * lib/canonicalize.c (ELOOP): Likewise.
60188         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
60189         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
60190         * lib/lchown.c (EOPNOTSUPP): Likewise.
60191         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
60192         * lib/savewd.c (ESTALE): Likewise.
60193         * lib/settime.c (ENOSYS): Likewise.
60194         * lib/utimens.c (ENOSYS): Likewise.
60195         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
60196         * lib/chdir-safer.c (ELOOP): Likewise.
60197         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
60198         * modules/c-stack (Depends-on): Add errno.
60199         * modules/canonicalize (Depends-on): Likewise.
60200         * modules/chdir-safer (Depends-on): Likewise.
60201         * modules/fdopendir (Depends-on): Likewise.
60202         * modules/inet_ntop (Depends-on): Likewise.
60203         * modules/inet_pton (Depends-on): Likewise.
60204         * modules/lchown (Depends-on): Likewise.
60205         * modules/openat (Depends-on): Likewise.
60206         * modules/savewd (Depends-on): Likewise.
60207         * modules/settime (Depends-on): Likewise.
60208         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
60210         fts: avoid leaking fds
60211         * modules/fts (Depends-on): Add cloexec.
60212         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
60213         flag.
60215         fts: make directory fds more robust
60216         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
60217         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
60219         backupfile, chdir-long, fts, savedir: make safer
60220         * lib/backupfile.c (includes): Use "dirent--.h", since
60221         numbered_backup can write to stderr during readdir.
60222         * lib/savedir.c (includes): Likewise.
60223         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
60224         emulation can write to stderr on failure.
60225         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
60226         * lib/getcwd.c: Document why opendir_safer is unused.
60227         * lib/glob.c: Likewise.
60228         * lib/scandir.c: Likewise.
60229         * lib/openat-proc.c: Likewise, for open_safer.
60230         * modules/backupfile (Depends-on): Add dirent-safer.
60231         * modules/savedir (Depends-on): Likewise.
60232         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
60233         * modules/chdir-long (Depends-on): Add openat-safer.
60235         openat-safer: new module
60236         * modules/openat-safer: New file.
60237         * lib/openat-safer.c: Likewise.
60238         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
60239         * lib/fcntl-safer.h (openat_safer): Declare.
60240         * lib/fcntl--.h (openat): Override.
60241         * MODULES.html.sh (File descriptor based I/O): Mention it.
60242         * lib/openat.h: Add double-inclusion guards.
60243         * lib/openat.c (includes): Only include "fcntl-safer.h", not
60244         "fcntl--.h", so we can implement openat.
60245         * modules/openat-safer-tests: New test.
60246         * tests/test-openat-safer.c: New file.
60248         dirent-safer: new module
60249         * modules/dirent-safer: New file.
60250         * lib/dirent--.h: Likewise.
60251         * lib/dirent-safer.h: Likewise.
60252         * lib/opendir-safer.c: Likewise.
60253         * m4/dirent-safer.m4: Likewise.
60254         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
60255         * modules/dirent-safer-tests: New test.
60256         * tests/test-dirent-safer.c: New file.
60257         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
60259         fdopendir: optimize on mingw
60260         * lib/unistd.in.h (_gl_directory_name): New prototype.
60261         * lib/fchdir.c (_gl_directory_name): Implement it.
60262         (fchdir): Use it to simplify implementation.
60263         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
60264         fchdir, when available, to avoid calling [f]chdir().
60266         fdopendir: split into its own module
60267         * lib/openat.c (fdopendir): Move...
60268         * lib/fdopendir.c: ...into new file.
60269         * modules/fdopendir: New module.
60270         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
60271         * modules/openat (Depends-on): Add fdopendir.
60272         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
60273         fdopendir here.
60274         * modules/savedir (Depends-on): Only need fdopendir, not full
60275         openat.
60276         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
60277         * lib/openat.h (fdopendir): Drop prototype.
60278         * lib/dirent.in.h (fdopendir): Provide prototype.
60279         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
60280         * modules/dirent (Makefile.am): Substitute them.
60281         * MODULES.html.sh (File system functions): Mention it.
60282         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
60283         * modules/fdopendir-tests: New file.
60284         * tests/test-fdopendir.c: Likewise.
60286         fchdir: use more consistent macro convention
60287         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
60288         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
60289         REPLACE_FCHDIR, rather than relying on config.h macros.
60290         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
60291         inside a single make-time REPLACE_FCHDIR block, rather than using
60292         the config.h FCHDIR_REPLACEMENT.
60293         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
60294         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
60295         Manage fstat replacement.
60296         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
60297         REPLACE_FCHDIR.
60298         * modules/sys_stat (Files): Add m4/unistd_h.m4.
60299         (Makefile.am): Substitute REPLACE_FCHDIR.
60300         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
60301         FCHDIR_REPLACEMENT.
60302         * lib/dup-safer.c (dup_safer): Likewise.
60303         * lib/dup2.c (rpl_dup2): Likewise.
60304         * lib/dup3.c (rpl_dup3): Likewise.
60305         * lib/open.c (rpl_open): Likewise.
60307         fchdir: simplify error handling, and support dup3
60308         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
60309         stdbool, malloc-posix, realloc-posix.
60310         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
60311         (ensure_dirs_slot): Return false on allocation failure.
60312         (rpl_dup2): Delete.
60313         (_gl_register_dup): New function.
60314         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
60315         (_gl_register_fd): Close fd on allocation failure.
60316         * lib/fcntl.in.h (_gl_register_fd): Update signature.
60317         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
60318         prototype.
60319         (rpl_dup2_fchdir): Delete prototype.
60320         * lib/open.c (open): Update caller.
60321         * lib/dup2.c (dup2): Track fchdir metadata.
60322         * lib/dup3.c (dup3): Likewise.
60323         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
60324         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
60326 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60328         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
60329         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
60330         don't pass arguments to AC_OUTPUT.
60332 2009-09-02  Bruno Haible  <bruno@clisp.org>
60334         * modules/mkdtemp (License): Relicense under LGPLv2+.
60335         Reported by Paolo Bonzini.
60337 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60339         Replace uses of obsolete autoconf macros in Jim's modules.
60340         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
60341         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
60342         can evoke a warning from autoconf when run with -Wobsolete
60343         enabled.  They were declared obsolete for good reasons (see
60344         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
60345         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
60346         should not continue using the deprecated macros.
60347         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
60348         obsolete Autoconf macros with modern counterparts.
60349         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
60350         * m4/dos.m4 (gl_AC_DOS): Likewise.
60351         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
60352         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
60353         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
60354         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
60355         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
60356         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
60357         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
60358         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
60359         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
60360         Likewise.
60361         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
60362         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
60363         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
60364         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
60365         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
60366         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
60368 2009-09-01  Eric Blake  <ebb9@byu.net>
60370         fchdir: fix off-by-one bug in previous patch
60371         * lib/fchdir.c (rpl_fstat): Use correct bounds.
60372         (_gl_unregister_fd): Delete useless if.
60374 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
60376         maint.mk: sort the list of syntax-check rules
60377         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
60378         easier to get a sense of progress when the rules are run sequentially
60379         and take a long time.
60381 2009-09-01  Simon Josefsson  <simon@josefsson.org>
60383         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
60384         * modules/netinet_in: Likewise.
60385         * modules/sys_file: Likewise.
60386         * modules/sys_ioctl: Likewise.
60387         * modules/sys_select: Likewise.
60388         * modules/sys_socket: Likewise.
60389         * modules/sys_stat: Likewise.
60390         * modules/sys_time: Likewise.
60391         * modules/sys_times: Likewise.
60392         * modules/sys_utsname: Likewise.
60393         * modules/sys_wait: Likewise.
60395 2009-09-01  Jim Meyering  <meyering@redhat.com>
60397         fts: help ensure that return values are not ignored
60398         * lib/fts_.h (__GNUC_PREREQ): Define.
60399         (__attribute_warn_unused_result__): Define.
60400         (fts_children, fts_close, fts_open, fts_read): Declare with
60401         __attribute_warn_unused_result__.
60403         fts: fts_close now fails also when closing a dir file descriptor fails
60404         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
60405         and propagate to caller, along with errno.
60407         announce-gen: correct formatting in --help output
60408         * build-aux/announce-gen (usage): Move the one-line description in
60409         --help output "up", to where it belongs, just after Usage:.
60411 2009-08-31  Eric Blake  <ebb9@byu.net>
60413         fchdir: port to mingw
60414         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
60415         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
60416         opened, then use a substitute.
60417         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
60418         replacement.
60419         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
60420         (_gl_register_fd): No need to check stat if open already filters
60421         all directories.
60422         (fchdir): Fix error condition to match POSIX.
60423         * modules/fchdir (Depends-on): Add sys_stat.
60424         * doc/posix-functions/open.texi (open): Document the limitation.
60425         * modules/fchdir-tests: New file.
60426         * tests/test-fchdir.c: Likewise.
60428         canonicalize: allow cross-testing from cygwin to mingw
60429         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
60430         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
60431         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
60432         Likewise.
60433         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
60434         target does not support symlinks.
60435         * tests/test-canonicalize-lgpl.sh: Likewise.
60437         chown: avoid compilation warning on mingw
60438         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
60439         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
60440         mingw.
60441         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
60442         * modules/chown (Depends-on): Add errno.
60444 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
60446         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
60447         command.
60449 2009-08-31  Jim Meyering  <meyering@redhat.com>
60451         canonicalize: remove useless initialization
60452         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
60453         initialization of local, "end".
60455 2009-08-30  Bruno Haible  <bruno@clisp.org>
60457         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
60458         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
60459         ENOSYS.
60461 2009-08-30  Bruno Haible  <bruno@clisp.org>
60463         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
60464         /usr/xpg4/bin/tr when it exists.
60465         * tests/test-pipe-filter-gi1.sh: Likewise.
60467 2009-08-30  Bruno Haible  <bruno@clisp.org>
60469         Work around deficient /usr/bin/id program on Solaris.
60470         * tests/test-file-has-acl.sh (ID): New variable.
60471         * tests/test-set-mode-acl.sh (ID): Likewise.
60472         * tests/test-copy-acl.sh (ID): Likewise.
60473         * tests/test-copy-file.sh (ID): Likewise.
60475 2009-08-30  Bruno Haible  <bruno@clisp.org>
60477         New module 'xstriconveh'.
60478         * lib/xstriconveh.h: New file.
60479         * lib/xstriconveh.c: New file.
60480         * modules/xstriconveh: New file.
60482 2009-08-30  Bruno Haible  <bruno@clisp.org>
60484         Make it easier to use mem_cd_iconveh.
60485         * lib/striconveh.h (iconveh_t): New type.
60486         (iconveh_open, iconveh_close): New declarations.
60487         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
60488         with a single 'const iconveh_t *' argument.
60489         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
60490         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
60491         with a single 'const iconveh_t *' argument.
60492         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
60493         * tests/test-striconveh.c (main): Update.
60494         * NEWS: Mention the change.
60496 2009-08-30  Bruno Haible  <bruno@clisp.org>
60498         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
60499         problem.
60501 2009-08-30  Bruno Haible  <bruno@clisp.org>
60503         Work around iconv_open problem on Solaris.
60504         * lib/iconv_open-solaris.gperf: New file.
60505         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
60506         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
60507         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
60508         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
60509         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
60510         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
60512 2009-08-29  Jim Meyering  <meyering@redhat.com>
60514         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
60515         * top/maint.mk (cvs-check): Remove target; it was just an alias
60516         to the better-named vc-diff-check.
60517         (maintainer-distcheck): Remove rule.  It was used only from
60518         the (alpha/beta/major) target, and all of its commands but one
60519         were coreutils-specific.
60520         (vc-dist): Remove rule.
60521         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
60522         Run vc-diff-check, not vc-dist.
60523         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
60525 2009-08-27  Bruno Haible  <bruno@clisp.org>
60527         * tests/test-bitrotate.c (main): Remove test that uses a shift count
60528         of 0.
60530 2009-08-27  Bruno Haible  <bruno@clisp.org>
60532         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
60533         compilers.
60534         * doc/func.texi: Document the SunPRO C bug.
60536 2009-08-27  Bruno Haible  <bruno@clisp.org>
60538         Fix link error on Solaris.
60539         * tests/test-parse-duration.c (xstrdup): Remove function.
60541 2009-08-26  Pádraig Brady  <P@draigbrady.com>
60543         ignore-value: handle pointer types, too
60544         * lib/ignore-value.h (__attribute__): Remove definition.
60545         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
60546         of a more concise and more-often effective "(void) i" statement.
60547         (ignore_ptr): New function to suppress warnings from functions that
60548         return pointers, and to make it explicit that one function doesn't
60549         handle all cases.
60551 2009-08-25  Bruno Haible  <bruno@clisp.org>
60553         dup2: work around a Linux bug.
60554         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
60555         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
60556         * doc/posix-functions/dup2.texi: Mention the Linux bug.
60557         Reported by Simon Josefsson.
60559 2009-08-25  Jim Meyering  <meyering@redhat.com>
60561         libguestfs uses gnulib
60562         * users.txt: Add libguestfs.
60564 2009-08-24  Eric Blake  <ebb9@byu.net>
60566         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
60567         * lib/pipe2.c (includes): Add binary-io.h.
60568         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
60570 2009-08-24  Bruno Haible  <bruno@clisp.org>
60572         Tolerate declared but missing accept4 syscall.
60573         * lib/accept4.c (accept4): Invoke original accept4 function first, if
60574         available.
60575         * lib/sys_socket.in.h (accept4): If the function is already present,
60576         override it.
60577         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
60578         * modules/accept4 (Makefile.am): Compile accept4.c always.
60579         Reported by Paolo Bonzini and Eric Blake.
60581 2009-08-23  Bruno Haible  <bruno@clisp.org>
60583         New module 'accept4'.
60584         * lib/sys_socket.in.h (accept4): New declaration.
60585         * lib/accept4.c: New file.
60586         * m4/accept4.m4: New file.
60587         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
60588         GNULIB_ACCEPT4, HAVE_ACCEPT4.
60589         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
60590         HAVE_ACCEPT4.
60591         * modules/accept4: New file.
60592         * doc/glibc-functions/accept4.texi: Mention the new module.
60594 2009-08-24  Jim Meyering  <meyering@redhat.com>
60596         progname: also set global program_invocation_name, when possible
60597         Before this change, a libtool-enabled program that calls glibc's
60598         error function would report the program name as
60599         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
60600         * modules/progname (configure.ac): Check for a declaration of
60601         program_invocation_name.
60602         * lib/progname.c:  Include <errno.h>.
60603         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
60604         Set program_invocation_name.
60606 2009-08-23  Bruno Haible  <bruno@clisp.org>
60608         * lib/dup3.c: Include <string.h>.
60610 2009-08-23  Bruno Haible  <bruno@clisp.org>
60612         * lib/dup3.c (dup3): Test only once whether the system actually exists.
60613         * lib/pipe2.c (pipe2): Likewise.
60614         Suggested by Eric Blake.
60616 2009-08-23  Bruno Haible  <bruno@clisp.org>
60618         Tolerate declared but missing dup3 syscall.
60619         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
60620         * lib/unistd.in.h (dup3): If the function is already present,
60621         override it.
60622         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
60623         * modules/dup3 (Makefile.am): Compile dup3.c always.
60624         Reported by Paolo Bonzini.
60626 2009-08-23  Bruno Haible  <bruno@clisp.org>
60628         Tolerate declared but missing pipe2 syscall.
60629         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
60630         available.
60631         * lib/unistd.in.h (pipe2): If the function is already present,
60632         override it.
60633         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
60634         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
60635         Reported by Paolo Bonzini.
60637 2009-08-23  Bruno Haible  <bruno@clisp.org>
60639         * lib/pipe2.c (pipe2): Move #ifs inside function.
60641 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
60643         quotearg: document limitations of quote_these_too
60644         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
60645         those limitations are created.
60646         * lib/quotearg.h (set_char_quoting): Document that digits and
60647         letters that are special after backslash are not permitted.
60648         (quotearg_char): Cross-reference set_char_quoting documentation.
60650 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
60652         quotearg: implement custom_quoting_style
60653         * lib/quotearg.c: (struct quoting_options): Add left_quote and
60654         right_quote fields.
60655         (set_custom_quoting): New public function.
60656         (quotearg_buffer_restyled): Add left_quote and right_quote
60657         arguments, handle them very much like locale quoting, and update
60658         all uses.
60659         (quotearg_n_custom): New public function.
60660         (quotearg_n_custom_mem): New public function.
60661         (quotearg_custom): New public function.
60662         (quotearg_custom_mem): New public function.
60663         * lib/quotearg.h: Prototype and document new public functions.
60664         (enum quoting_style): For escape_quoting_style and
60665         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
60666         ignored even though they're otherwise like c_quoting_style.
60667         Add custom_quoting_style member and document with comparison to
60668         clocale_quoting_style.
60669         * tests/test-quotearg.c (custom_quotes): New array.
60670         (custom_results): New array.
60671         (main): Extend to test custom quoting.
60673 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
60675         quotearg: fix right quote escaping when it's in quote_these_too
60676         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
60677         quote, be sure to prepend only one backslash.
60678         * tests/test-quotearg.c (use_quote_double_quotes): New function.
60679         (main): Test it.
60681 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
60683         quotearg-tests: test escaping of embedded locale quotes
60684         * tests/test-quotearg.c (struct result_strings): Add member for
60685         new input.
60686         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
60687         (inputs): Add new input.
60688         (results_g): Add expected results.
60689         (flag_results): Likewise.
60690         (locale_results): Likewise.
60691         (compare_strings): Check those.
60693 2009-08-23  Bruno Haible  <bruno@clisp.org>
60695         Tests for module 'dup3'.
60696         * modules/dup3-tests: New file.
60697         * tests/test-dup3.c: New file.
60699         New module 'dup3'.
60700         * lib/unistd.in.h (dup3): New declaration.
60701         * lib/dup3.c: New file.
60702         * m4/dup3.m4: New file.
60703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
60704         HAVE_DUP3.
60705         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
60706         * modules/dup3: New file.
60707         * doc/glibc-functions/dup3.texi: Mention the new module.
60709 2009-08-23  Bruno Haible  <bruno@clisp.org>
60711         Tweak the dup2 test.
60712         * tests/test-dup2.c (main): Create the test file empty. Verify that an
60713         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
60714         the test file is still empty. Fix argument order of lseek.
60716 2009-08-23  Bruno Haible  <bruno@clisp.org>
60718         Avoid test link errors when the modules getopt-gnu, gettext are used.
60719         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
60720         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
60722 2009-08-23  Bruno Haible  <bruno@clisp.org>
60724         Fix getdtablesize() on mingw.
60725         * lib/getdtablesize.c (getdtablesize): Implement differently.
60726         * lib/unistd.in.h (getdtablesize): Improve comment.
60728 2009-08-23  Bruno Haible  <bruno@clisp.org>
60730         New module 'mkostemp'.
60731         Based on Ulrich Drepper's 2007-08-10 change in glibc.
60732         * lib/stdlib.in.h (mksotemp): New declaration.
60733         * lib/mkostemp.c: New file, from glibc with modifications.
60734         * lib/tempname.h (GT_FILE): Remove outdated comment.
60735         (gen_tempname): Add flags argument.
60736         * lib/tempname.c (__GT_BIGFILE): Remove macro.
60737         (__GT_FILE): Map to 1.
60738         (small_open, large_open): Remove macros.
60739         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
60740         * lib/mkstemp.c (mkstemp): Update.
60741         * lib/mkdtemp.c (mkdtemp): Likewise.
60742         * m4/mkostemp.m4: New file.
60743         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
60744         HAVE_MKOSTEMP.
60745         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
60746         HAVE_MKOSTEMP.
60747         * modules/mkostemp: New file, based on modules/mkstemp.
60748         * doc/glibc-functions/mkostemp.texi: Mention the new module.
60749         * NEWS: Mention the change.
60751 2009-08-23  Bruno Haible  <bruno@clisp.org>
60753         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
60754         Reported by Eric Blake.
60756 2009-08-23  Bruno Haible  <bruno@clisp.org>
60758         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
60759         Reported by Eric Blake.
60761 2009-08-23  Bruno Haible  <bruno@clisp.org>
60763         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
60764         * modules/pipe2 (Depends-on): Likewise.
60766 2009-08-23  Eric Blake  <ebb9@byu.net>
60768         fcntl-h: add O_TTY_INIT support
60769         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
60770         * tests/test-fcntl-h.c (o): Test it.
60771         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
60773         fcntl-h: rename from fcntl, in preparation for fcntl(2)
60774         * modules/fcntl: Move <fcntl.h> header replacement...
60775         * modules/fcntl-h: ...to new name, so as not to collide with
60776         like-named function.
60777         * tests/test-fcntl.c: Rename...
60778         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
60779         * modules/fcntl-tests: Rename...
60780         * modules/fcntl-h-tests: ...to this.  Update test file name.
60781         * modules/chdir-long (Depends-on): Update clients.
60782         * modules/chdir-safer (Depends-on): Likewise.
60783         * modules/fcntl-safer (Depends-on): Likewise.
60784         * modules/fts (Depends-on): Likewise.
60785         * modules/mkancesdirs (Depends-on): Likewise.
60786         * modules/mkdir-p (Depends-on): Likewise.
60787         * modules/open (Depends-on): Likewise.
60788         * modules/savewd (Depends-on): Likewise.
60789         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
60790         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
60792 2009-08-22  Bruno Haible  <bruno@clisp.org>
60794         * modules/binary-io (License): Relicense under LGPL.
60795         * modules/pipe2 (License): Likewise.
60797 2009-08-22  Bruno Haible  <bruno@clisp.org>
60799         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
60800         return value.
60801         * lib/pipe-filter-gi.c (filter_init): Likewise.
60802         Reported by Eric Blake.
60804 2009-08-22  Bruno Haible  <bruno@clisp.org>
60806         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
60807         * modules/pipe (Depends-on): Add pipe2.
60809 2009-08-22  Bruno Haible  <bruno@clisp.org>
60811         Tests for module 'pipe2'.
60812         * modules/pipe2-tests: New file.
60813         * tests/test-pipe2.c: New file.
60815         New module 'pipe2'.
60816         * lib/unistd.in.h (pipe2): New declaration.
60817         * lib/pipe2.c: New file.
60818         * m4/pipe2.m4: New file.
60819         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
60820         HAVE_PIPE2.
60821         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
60822         * modules/pipe2: New file.
60823         * doc/glibc-functions/pipe2.texi: Mention the new module.
60825 2009-08-22  Bruno Haible  <bruno@clisp.org>
60827         Reference some new glibc functions.
60828         * doc/glibc-functions/accept4.texi: New file.
60829         * doc/glibc-functions/dup3.texi: New file.
60830         * doc/glibc-functions/mkostemp.texi: New file.
60831         * doc/glibc-functions/pipe2.texi: New file.
60832         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
60833         (Glibc sys/socket.h): Refer to accept4.
60834         (Glibc unistd.h): Refer to dup3, pipe2.
60835         Reported by Eric Blake.
60837 2009-08-22  Jim Meyering  <meyering@redhat.com>
60838             Bruno Haible  <bruno@clisp.org>
60840         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
60841         This makes it so packages using automake-1.11's silent-rules option
60842         can print e.g., a single "GEN    configmake.h" line, rather than
60843         the 30+ statements that perform the job.  If you want to see the
60844         actual commands, you can still run "make V=1".
60845         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
60846         so that make output is abbreviated when those variables are defined
60847         appropriately.
60848         * modules/argz: Likewise.
60849         * modules/arpa_inet: Likewise.
60850         * modules/byteswap: Likewise.
60851         * modules/configmake: Likewise.
60852         * modules/dirent: Likewise.
60853         * modules/errno: Likewise.
60854         * modules/fcntl: Likewise.
60855         * modules/float: Likewise.
60856         * modules/fnmatch: Likewise.
60857         * modules/getopt-posix: Likewise.
60858         * modules/glob: Likewise.
60859         * modules/iconv_open: Likewise.
60860         * modules/inttypes: Likewise.
60861         * modules/localcharset: Likewise.
60862         * modules/locale: Likewise.
60863         * modules/math: Likewise.
60864         * modules/netdb: Likewise.
60865         * modules/netinet_in: Likewise.
60866         * modules/poll: Likewise.
60867         * modules/posix_spawnp-tests: Likewise.
60868         * modules/sched: Likewise.
60869         * modules/search: Likewise.
60870         * modules/selinux-h: Likewise.
60871         * modules/signal: Likewise.
60872         * modules/spawn: Likewise.
60873         * modules/stdarg: Likewise.
60874         * modules/stdbool: Likewise.
60875         * modules/stddef: Likewise.
60876         * modules/stdint: Likewise.
60877         * modules/stdio: Likewise.
60878         * modules/stdlib: Likewise.
60879         * modules/string: Likewise.
60880         * modules/strings: Likewise.
60881         * modules/sys_file: Likewise.
60882         * modules/sys_ioctl: Likewise.
60883         * modules/sys_select: Likewise.
60884         * modules/sys_socket: Likewise.
60885         * modules/sys_stat: Likewise.
60886         * modules/sys_time: Likewise.
60887         * modules/sys_times: Likewise.
60888         * modules/sys_utsname: Likewise.
60889         * modules/sys_wait: Likewise.
60890         * modules/sysexits: Likewise.
60891         * modules/time: Likewise.
60892         * modules/unistd: Likewise.
60893         * modules/wchar: Likewise.
60894         * modules/wctype: Likewise.
60896 2009-08-22  Jim Meyering  <meyering@redhat.com>
60898         announce-gen: detect write failure
60899         * build-aux/announce-gen: Add Coda at end.
60900         Remove equivalent-but-more-verbose block at top.
60902 2009-08-19  Akim Demaille  <demaille@gostai.com>
60904         bootstrap: --help to stdout.
60905         * bootstrap (usage): Don't send --help to stderr.
60906         Use a here doc instead of a long string.
60908 2009-08-21  Eric Blake  <ebb9@byu.net>
60910         test-popen-safer: split from test-popen
60911         * tests/test-popen.c (main): Move...
60912         * tests/test-popen.h: ...into new file.
60913         * tests/test-popen-safer2.c: New file.
60914         * modules/popen-tests (Files): Add test-popen.h.
60915         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
60916         Suggested by Bruno Haible.
60918         test-fcntl-safer: split from test-open
60919         * tests/test-open.c (main): Move...
60920         * tests/test-open.h: ...into new file.
60921         * tests/test-fcntl-safer.c: New file.
60922         * modules/open-tests (Files): Add test-open.h.
60923         * modules/fcntl-safer-tests: New file.
60924         Suggested by Bruno Haible.
60926         test-fopen-safer: split from test-fopen
60927         * tests/test-fopen.c (main): Move...
60928         * tests/test-fopen.h: ...into new file.
60929         * tests/test-fopen-safer.c: New file.
60930         * modules/fopen-tests (Files): Add test-fopen.h.
60931         * modules/fopen-safer-tests: New file.
60932         Suggested by Bruno Haible.
60934 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
60936         popen-safer: test O_CLOEXEC at run-time.
60937         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
60939 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
60941         fcntl: move more flags to the header
60942         * lib/cloexec.c: Do not define FD_CLOEXEC here.
60943         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
60944         * lib/fcntl.in.h: Do both things here.
60946 2009-08-21  Jim Meyering  <meyering@redhat.com>
60948         consistently remove $@-t before redirecting to it
60949         * modules/argz: Remove $@-t and $@ before redirecting to the former.
60950         * modules/alloca-opt: Likewise.
60951         * modules/byteswap: Likewise.
60952         * modules/fnmatch: Likewise.
60953         * modules/getopt-posix: Likewise.
60954         * modules/glob: Likewise.
60955         * modules/poll: Likewise.
60956         * modules/posix_spawnp-tests: Likewise.
60957         * modules/sys_socket: Likewise.
60958         * modules/sysexits: Likewise.
60960 2009-08-21  Eric Blake  <ebb9@byu.net>
60962         popen: simplify access to original popen
60963         * lib/popen.c (rpl_popen): No need to worry about popen being a
60964         macro.
60965         Reported by Bruno Haible.
60967 2009-08-20  Eric Blake  <ebb9@byu.net>
60969         build: avoid some compiler warnings
60970         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
60971         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
60972         type.
60973         (new_exclude_segment, excluded_file_pattern_p)
60974         (excluded_file_name_p): Reduce scope.
60975         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
60976         old-style declaration.
60978 2009-08-20  Simon Josefsson  <simon@josefsson.org>
60980         * tests/test-exclude1.sh: Handle Windows EOL.
60981         * tests/test-exclude2.sh: Likewise.
60982         * tests/test-exclude3.sh: Likewise.
60983         * tests/test-exclude4.sh: Likewise.
60984         * tests/test-exclude5.sh: Likewise.
60985         * tests/test-exclude6.sh: Likewise.
60986         * tests/test-exclude7.sh: Likewise.
60988 2009-08-19  Akim Demaille  <demaille@gostai.com>
60990         bootstrap: find sha1sum when named gsha1sum.
60991         * bootstrap (find_tool): New.
60992         ($SHA1SUM): New.
60993         Use it.
60995 2009-08-20  Jim Meyering  <meyering@redhat.com>
60997         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
60998         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
60999         expression that converts "." in a file name to "\." in the resulting
61000         regexp.  Start with a dummy statement, so that prior shell variable
61001         definitions are expanded portably.  Reported by Simon Josefsson.
61003 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
61005         Fix polling for writeability of a screen buffer.
61006         * lib/poll.c: Distinguish input and screen buffers for the
61007         Win32 implementation.
61008         * lib/select.c: Likewise.
61010 2009-08-19  Eric Blake  <ebb9@byu.net>
61012         popen-safer: prevent popen from clobbering std descriptors
61013         * modules/popen-safer: New file.
61014         * lib/popen-safer.c: Likewise.
61015         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
61016         * lib/stdio--.h (popen): Provide override.
61017         * lib/stdio-safer.h (popen_safer): Provide declaration.
61018         * tests/test-popen.c (includes): Partially test this.
61019         * modules/popen-safer-tests: New file, for more tests.
61020         * tests/test-popen-safer.c: Likewise.
61021         * MODULES.html.sh (file stream based Input/Output): Mention it.
61023         tests: test some of the *-safer modules
61024         * modules/fopen-safer (Depends-on): Add fopen.
61025         * modules/fcntl-safer (Depends-on): Add fcntl.
61026         * modules/stdlib-safer (Depends-on): Add stdlib.
61027         (configure.ac): Set indicator.
61028         * modules/unistd-safer (configure.ac): Likewise.
61029         * modules/tmpfile-safer (configure.ac): Likewise.
61030         (Depends-on): Add tmpfile.
61031         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
61032         active.
61033         * tests/test-fopen.c (includes): Test safer versions when they are
61034         in use.
61035         * tests/test-open.c (includes): Likewise.
61037         popen: fix cygwin 1.5 bug when stdin closed
61038         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
61039         * modules/popen: New file.
61040         * modules/popen-tests: Likewise.
61041         * tests/test-popen.c: Likewise.
61042         * m4/popen.m4: Likewise.
61043         * lib/popen.c: Likewise.
61044         * lib/stdio.in.h (popen): New declaration.
61045         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
61046         * modules/stdio (Makefile.am): Likewise.
61047         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
61049 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
61051         maint.mk: give full control over update-copyright exclusions
61052         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
61053         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
61054         (update-copyright): Don't force inclusion of top-level
61055         ChangeLog.  Don't force exclusion of all COPYING files, but make
61056         them the default exclusion instead.
61058 2009-08-16  Bruno Haible  <bruno@clisp.org>
61060         Fix test failures on Solaris 10.
61061         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
61062         tests when Solaris iconv() is used.
61063         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
61064         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
61065         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
61066         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
61067         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
61069 2009-08-16  Bruno Haible  <bruno@clisp.org>
61071         Fix test failures on Solaris 10.
61072         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
61073         'tr' program and pass it as first argument.
61074         * tests/test-pipe-filter-gi1.sh: Likewise.
61075         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
61076         program as first argument.
61077         * tests/test-pipe-filter-gi1.c (main): Likewise.
61079 2009-08-16  Eric Blake  <ebb9@byu.net>
61081         fpurge: fix previous commits
61082         * modules/fpurge (Makefile.am): Make replacement conditional,
61083         partially reverting 2007-04-29 change; missed in previous
61084         attempt.
61085         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
61086         is missing.
61088 2009-08-16  Bruno Haible  <bruno@clisp.org>
61090         Clarify fpurge's effect on the file position.
61091         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
61092         * tests/test-fpurge.c (main): Make a second pass for checking the file
61093         position.
61095 2009-08-16  Bruno Haible  <bruno@clisp.org>
61097         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
61098         declaration of fpurge is missing.
61099         * tests/test-fpurge.c (main): Check that the file has not more contents
61100         than expected. Close the file before removing it.
61102 2009-08-15  Eric Blake  <ebb9@byu.net>
61104         fpurge: don't wrap working cygwin implementation
61105         * lib/fpurge.c (fpurge): Fix comment typo.
61106         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
61107         1.7 to avoid replacement.
61108         * tests/test-fpurge.c (main): Enhance test.
61110 2009-08-15  Eric Blake  <ebb9@byu.net>
61111         and Jim Meyering  <meyering@redhat.com>
61113         test-update-copyright: skip if perl is insufficient
61114         * tests/test-update-copyright.sh: Failure to run maintainer tool
61115         should not cause testsuite failure on cygwin 1.5.
61117 2009-08-14  Eric Blake  <ebb9@byu.net>
61119         doc: mention more functions added in cygwin 1.7.0
61120         * doc/posix-headers/limits.texi (limits.h): Update for recent
61121         cygwin additions.
61122         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
61123         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
61124         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
61125         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
61126         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
61128 2009-08-14  Eric Blake  <ebb9@byu.net>
61130         maint.mk: simplify update-copyright rule
61131         * top/maint.mk (update-copyright-local): Delete, and document how
61132         to do it in cfg.mk instead.
61133         (update-copyright-exclude-regexp): Delete, and document how to do
61134         it in .x-update-copyright instead.
61135         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
61136         exclude ChangeLog.
61138 2009-08-14  Bruno Haible  <bruno@clisp.org>
61140         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
61142 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
61144         maint.mk: support update-copyright-env
61145         * top/maint.mk (update-copyright-env): Define place-holder.
61146         (update-copyright): Expand $(update-copyright-env) before
61147         invoking update-copyright.
61149 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
61151         update-copyright: implement forced reformatting
61152         * build-aux/update-copyright: Implement and document
61153         UPDATE_COPYRIGHT_FORCE.
61154         * tests/test-update-copyright.sh: Test it.
61156 2009-08-14  Eric Blake  <ebb9@byu.net>
61157         and Bruno Haible  <bruno@clisp.org>
61159         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
61160         * tests/test-locale.c: Revert previous patch related to NULL.
61161         * tests/test-stdio.c: Likewise.
61162         * tests/test-stdlib.c: Likewise.
61163         * tests/test-string.c: Likewise.
61164         * tests/test-unistd.c: Likewise.
61165         * modules/time-tests (Depends-on): Add verify.
61166         * modules/wchar-tests (Depends-on): Likewise.
61167         * tests/test-time.c: Test for NULL compliance.
61168         * tests/test-wchar.c: Likewise.
61169         * modules/locale (Depends-on): Add stddef.
61170         * modules/stdio (Depends-on): Likewise.
61171         * modules/stdlib (Depends-on): Likewise.
61172         * modules/string (Depends-on): Likewise.
61173         * modules/time (Depends-on): Likewise.
61174         * modules/unistd (Depends-on): Likewise.
61175         * modules/wchar (Depends-on): Likewise.
61176         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
61177         * lib/stdlib.in.h (includes): Likewise.
61178         * lib/string.in.h (includes): Likewise.
61179         * lib/time.in.h (includes): Likewise.
61180         * lib/unistd.in.h (includes): Likewise.
61181         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
61182         replaced.
61183         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
61184         * m4/stddef_h.m4: New file.
61185         * modules/stddef: Likewise.
61186         * lib/stddef.in.h: Likewise.
61187         * modules/stddef-tests: Likewise.
61188         * tests/test-stddef.c: Likewise.
61189         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
61190         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
61191         * doc/posix-headers/locale.texi (locale.h): Likewise.
61192         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
61193         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
61194         * doc/posix-headers/string.texi (string.h): Likewise.
61195         * doc/posix-headers/time.texi (time.h): Likewise.
61196         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
61197         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
61199 2009-08-14  Eric Blake  <ebb9@byu.net>
61201         doc: improve git diff of texinfo files
61202         * .gitattributes: Add rule for *.texi files, with hint on how to
61203         use it.
61204         Copied from m4, and based on a report by Bruno Haible.
61206 2009-08-14  Bruno Haible  <bruno@clisp.org>
61208         Disable multithread support by default on Cygwin 1.5.x for real.
61209         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
61211 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
61213         update-copyright: much ado about intervals
61214         * build-aux/update-copyright: Implement and document
61215         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
61216         of copyright year intervals.
61217         Also, document UPDATE_COPYRIGHT_YEAR.
61218         * tests/test-update-copyright.sh: Test it.
61220         update-copyright: convert 2-digit to 4-digit years
61221         * build-aux/update-copyright: Implement and document.
61222         * tests/test-update-copyright.sh: Update.
61224 2009-08-14  Jim Meyering  <meyering@redhat.com>
61226         test-exclude: avoid coreutils "make check" failure
61227         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
61228         just as in test-argmatch.c.
61230 2009-08-13  Eric Blake  <ebb9@byu.net>
61232         test-dup2: fix bad assumption
61233         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
61234         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
61236         test-version-etc: fix CRLF portability issue
61237         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
61238         recognize \r.
61239         * tests/test-argp-version-etc-1.sh: Likewise.
61241         getopt: update client modules
61242         * modules/argp (Depends-on): Use getopt-gnu.
61243         * modules/git-merge-changelog (Depends-on): Likewise.
61244         * modules/long-options (Depends-on): Likewise.
61245         * modules/xstrtol (Depends-on): Likewise.
61247 2009-08-13  Simon Josefsson  <simon@josefsson.org>
61249         * tests/test-version-etc.sh: Don't fail on different
61250         project/version.  Don't fail on CRLF differences.  Rewrite to use
61251         multiple -e instead of multiple sed forks, suggested by Eric Blake
61252         <ebb9@byu.net>.
61253         * tests/test-argp-version-etc-1.sh: Likewise.
61255 2009-08-13  Simon Josefsson  <simon@josefsson.org>
61257         * tests/test-version-etc.sh: Don't fail on different
61258         project/version.
61260 2009-08-12  Bruno Haible  <bruno@clisp.org>
61262         Tests for modules 'getopt-posix', 'getopt-gnu'.
61263         * modules/getopt-posix-tests: New file.
61264         * tests/test-getopt.c: New file.
61265         * tests/test-getopt.h: New file.
61266         * tests/test-getopt_long.h: New file.
61268         New modules 'getopt-posix', 'getopt-gnu'.
61269         * modules/getopt-gnu: New file, renamed from modules/getopt.
61270         * modules/getopt-posix: New file.
61271         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
61272         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
61273         (gl_GETOPT): Remove macro.
61274         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
61275         Disable the test against BSD systems that declare optreset. Test
61276         against mingw bug. Test against lack of support of optional arguments
61277         on many platforms.
61278         * doc/glibc-headers/getopt.texi: Update module name and list of
61279         relevant platforms.
61280         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
61281         'getopt-gnu' and more portability problems.
61282         * NEWS: Mention the changes.
61284 2009-08-12  Bruno Haible  <bruno@clisp.org>
61286         Ensure that optarg etc. get declared by <unistd.h>.
61287         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
61288         AC_USE_SYSTEM_EXTENSIONS.
61289         * modules/getopt (Depends-on): Add 'extensions'.
61291 2009-08-12  Bruno Haible  <bruno@clisp.org>
61293         Avoid test link errors.
61294         * modules/pipe-filter-ii-tests (Makefile.am): Define
61295         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
61296         * modules/pipe-filter-gi-tests (Makefile.am): Define
61297         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
61298         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
61300 2009-08-12  Bruno Haible  <bruno@clisp.org>
61302         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
61303         gl_GETOPT_SUBSTITUTE before.
61304         (gl_GETOPT): Use it.
61305         * m4/argp.m4 (gl_ARGP): Update.
61306         Reported by Sergey Poznyakoff.
61308         * m4/getopt.m4: Reorder macros.
61309         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
61310         (gl_GETOPT_SUBSTITUTE): Remove macro.
61312 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61314         Minor improvement in gitlog-to-changelog
61316         * build-aux/gitlog-to-changelog: New option `--format' makes
61317         output format string configurable.
61319 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61321         Optimize exclude: use hash tables for non-wildcard patterns.
61323         * lib/exclude.c: Include hash.h and mbuiter.h
61324         (struct exclude_pattern, exclude_segment): New data types.
61325         (struct exclude): Rewrite.
61326         (fnmatch_pattern_has_wildcards): New function.
61327         (new_exclude_segment, free_exclude_segment): New functions.
61328         (excluded_file_pattern_p, excluded_file_name_p): New functions.
61329         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
61330         * lib/exclude.h (is_fnmatch_pattern): New prototype.
61331         * modules/exclude: Depend on hash and mbuiter.
61333         * modules/exclude-tests: New file.
61334         * tests/test-exclude.c: New file.
61335         * tests/test-exclude1.sh: New file.
61336         * tests/test-exclude2.sh: New file.
61337         * tests/test-exclude3.sh: New file.
61338         * tests/test-exclude4.sh: New file.
61339         * tests/test-exclude5.sh: New file.
61340         * tests/test-exclude6.sh: New file.
61341         * tests/test-exclude7.sh: New file.
61343 2009-08-12  Bruno Haible  <bruno@clisp.org>
61345         Ensure that getopt() gets declared by <unistd.h>.
61346         * lib/unistd.in.h: Conditionally include getopt.h.
61347         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
61348         Set GNULIB_UNISTD_H_GETOPT.
61349         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61350         GNULIB_UNISTD_H_GETOPT.
61351         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
61353 2009-08-12  Bruno Haible  <bruno@clisp.org>
61355         Clarify logic.
61356         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
61357         gl_replace_getopt instead of GETOPT_H.
61359 2009-08-12  Bruno Haible  <bruno@clisp.org>
61361         * m4/getopt.m4: Add comments.
61363 2009-08-12  Bruno Haible  <bruno@clisp.org>
61365         Disable multithread support by default on Cygwin 1.5.x.
61366         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
61367         set gl_use_threads=no if not specified otherwise.
61369 2009-08-11  Bruno Haible  <bruno@clisp.org>
61371         Avoid compilation error on NetBSD 5.0.
61372         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
61373         * tests/test-stdio.c: Likewise.
61374         * tests/test-stdlib.c: Likewise.
61375         * tests/test-string.c: Likewise.
61376         * tests/test-unistd.c: Likewise.
61377         Reported by Greg Troxel <gdt@ir.bbn.com>
61378         at <https://savannah.gnu.org/support/?106973>.
61380 2009-08-11  Bruno Haible  <bruno@clisp.org>
61382         * modules/dup2-tests (Depends-on): Remove close.
61384         Undo 2009-07-19 commit.
61385         * modules/acl-tests (Depends-on): Remove close.
61386         * modules/binary-io-tests (Depends-on): Likewise.
61387         * modules/closein-tests (Depends-on): Likewise.
61388         * modules/flock-tests (Depends-on): Likewise.
61389         * modules/fsync-tests (Depends-on): Likewise.
61390         * modules/lseek-tests (Depends-on): Likewise.
61391         * modules/pipe-tests (Depends-on): Likewise.
61392         * modules/posix_spawn-tests (Depends-on): Likewise.
61393         * modules/posix_spawnp-tests (Depends-on): Likewise.
61394         * modules/stat-time-tests (Depends-on): Likewise.
61395         * modules/yesno-tests (Depends-on): Likewise.
61397 2009-08-10  Bruno Haible  <bruno@clisp.org>
61399         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
61401 2009-08-10  Bruno Haible  <bruno@clisp.org>
61403         Fix a gcc warning.
61404         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
61406 2009-08-10  Bruno Haible  <bruno@clisp.org>
61408         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
61409         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
61410         not only the first time.
61411         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
61412         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
61413         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
61414         is 1, not only the first time.
61416 2009-08-10  Bruno Haible  <bruno@clisp.org>
61418         Make it possible to use module 'gethostname' without module 'close'.
61419         * lib/unistd.in.h (close): Evoke a link error only if
61420         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
61421         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61422         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
61423         * modules/unistd (Makefile.am): Substitute
61424         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
61425         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
61426         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
61427         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
61428         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
61429         * modules/sys_ioctl (Makefile.am): Substitute
61430         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
61431         * modules/socket (configure.ac): On native Windows, set
61432         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
61433         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
61434         Reported by Sam Steingold <sds@gnu.org>.
61436 2009-08-10  Bruno Haible  <bruno@clisp.org>
61438         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
61439         * modules/ioctl (configure.ac): Likewise.
61441 2009-08-10  Bruno Haible  <bruno@clisp.org>
61443         Avoid collision between gnulib wrapper and libintl wrapper.
61444         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
61445         already defined in intl/printf.c.
61446         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
61447         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
61449 2009-08-09  Bruno Haible  <bruno@clisp.org>
61451         Make <sys/select.h> really self-contained, also on Solaris 10.
61452         * lib/sys_select.in.h: Include <string.h>.
61453         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
61454         Solaris 10 problem.
61455         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
61456         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
61457         Reported by Jim Meyering.
61459 2009-08-09  Bruno Haible  <bruno@clisp.org>
61461         Avoid warnings from 'aclocal' that are due to a use of macro name
61462         AM_XGETTEXT_OPTION that is not defined in automake.
61463         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
61464         automake.
61465         * modules/error (configure.ac): Likewise.
61466         * modules/propername (configure.ac): Likewise.
61467         * modules/vasprintf (configure.ac): Likewise.
61468         * modules/verror (configure.ac): Likewise.
61469         * modules/xprintf (configure.ac): Likewise.
61470         * modules/xvasprintf (configure.ac): Likewise.
61472 2009-08-08  Bruno Haible  <bruno@clisp.org>
61474         Avoid compilation error in C++ mode.
61475         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
61476         Reported by Sam Steingold <sds@gnu.org>.
61478 2009-08-08  Bruno Haible  <bruno@clisp.org>
61480         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
61481         for the various Unix platforms.
61482         * doc/posix-headers/limits.texi: Update platforms list regarding
61483         HOST_NAME_MAX.
61484         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
61486 2009-08-07  Jim Meyering  <meyering@redhat.com>
61488         selinux-at: fix typo in a comment
61489         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
61490         Spotted by Paolo Bonzini.
61492         selinux-at: remove redundant m4 code, add documentation
61493         * modules/selinux-at (configure.ac): Remove redundant code.
61494         LIB_SELINUX is already set via the dependent module, selinux-h.
61495         (Include): Add quotes around selinux-at.h.
61496         * lib/selinux-at.h: Add documentation.
61497         Reported by Bruno Haible in
61498         http://marc.info/?l=gnulib-bug&m=124958988300749
61500 2009-08-07  Bruno Haible  <bruno@clisp.org>
61502         Avoid link error on MacOS X 10.3 and 10.4.
61503         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
61504         on non-ELF systems.
61505         * lib/argp-pv.c (argp_program_version): Likewise.
61506         Reported by Simon Josefsson.
61508 2009-08-07  Simon Josefsson  <simon@josefsson.org>
61510         * tests/test-version-etc.sh: Use $EXEEXT.
61512 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
61514         update-copyright: update documentation to point to maint.mk
61515         * build-aux/update-copyright: Here.
61517 2009-08-06  Jim Meyering  <meyering@redhat.com>
61519         maint.mk: support update-copyright-local
61520         * top/maint.mk (update-copyright-local): Define place-holder.
61521         (update-copyright): Depend on $(update-copyright-local).
61523 2009-08-06  Jim Meyering  <meyering@redhat.com>
61525         selinux-at: new module
61526         Initially written for coreutils, this module will soon be
61527         used by findutils, too.
61528         * MODULES.html.sh [Misc]: Add selinux-at.
61529         * lib/selinux-at.h: New file, from coreutils.
61530         * lib/selinux-at.c: Likewise.
61531         * modules/selinux-at: Likewise.
61532         (License): Change from LGPL to GPL, since it depends
61533         on the GPL'd openat module.
61535         doc: update README
61536         * README: Remove references to cogito.
61537         Remove cvs-repo-updating instructions from 2007.
61538         Don't imply that CVS is better if you have limited disk space.
61540 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
61542         update-copyright: support C-style comments
61543         * build-aux/update-copyright: Implement and document.
61544         * tests/test-update-copyright.sh: Test.
61546 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
61548         update-copyright: support omitted "(C)"
61549         * build-aux/update-copyright: Implement and document.  Also,
61550         allow variable whitespace before "(C)".
61551         * tests/test-update-copyright.sh: Test.
61553 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
61555         update-copyright: don't trip on non-FSF copyright statements
61556         * build-aux/update-copyright: Fix so that the first correctly
61557         formatted FSF copyright statement is recognized no matter what
61558         appears before it.  Update documentation.
61559         * tests/test-update-copyright.sh: Test that.
61561 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
61563         update-copyright: clean up code a little
61564         * build-aux/update-copyright: Append "_re" to the name of any
61565         variable holding a regular expression.
61566         Replace "old" and "new" with "stmt" in variable names.
61567         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
61568         handled correctly.
61569         Format code more consistently.
61571 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
61573         update-copyright-tests: improve portability
61574         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
61575         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
61577 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
61579         update-copyright: support @copyright{} and &copy;
61580         * build-aux/update-copyright: Implement and document.
61581         * tests/test-update-copyright.sh: Test.
61583 2009-08-04  Jim Meyering  <meyering@redhat.com>
61585         update-copyright-tests: correctly test EOL=\r\n handling
61586         * tests/test-update-copyright.sh: Put \r at the end of some lines
61587         for the dos-eol tests.  Based on a patch by Joel E. Denny.
61589         maint.mk: make update-copyright exclusion list more configurable
61590         * top/maint.mk (update-copyright): Default to excluding COPYING,
61591         but allow an override, in case someone does want to update that file.
61593         maint.mk: don't update copyright date in COPYING
61594         * top/maint.mk (update-copyright): Exclude COPYING.
61596         maint.mk: add a copyright-updating rule
61597         * top/maint.mk (update-copyright): New rule.
61598         Derived from coreutils/Makefile.am.
61600         update-copyright: rename some variables
61601         * build-aux/update-copyright: Rename a few variables for clarity.
61602         Tweak syntax.  List Joel E. Denny as coauthor.
61604 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
61606         update-copyright: fix bug for 2-digit last year and add tests
61607         * build-aux/update-copyright: Fix bug.
61608         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
61609         specified.
61610         * modules/update-copyright-tests: New
61611         * tests/test-update-copyright.sh: New.
61613 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
61615         update-copyright: handle leading tabs in line prefix
61616         * build-aux/update-copyright: Count leading tabs as 8 spaces
61617         when computing margin.  This helps with the formatting of
61618         ChangeLogs, for example.
61619         Fix documentation a little.
61621 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
61623         update-copyright: support EOL=\r\n
61624         * build-aux/update-copyright: Implement that.
61626 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
61628         update-copyright: automatically format copyright statements
61629         * build-aux/update-copyright: Implement that.
61630         Also, be a little more predictable and safer by always failing
61631         when the full copyright format is not perfectly recognized as an
61632         unbroken whole.  Discussed at
61633         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
61634         Rewrite documentation.
61636 2009-08-03  Bruno Haible  <bruno@clisp.org>
61638         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
61640 2009-08-02  Bruno Haible  <bruno@clisp.org>
61642         Tests for module 'uname'.
61643         * modules/uname-tests: New file.
61644         * tests/test-uname.c: New file.
61646         New module 'uname'.
61647         * lib/uname.c: New file.
61648         * m4/uname.m4: New file.
61649         * modules/uname: New file.
61650         * doc/posix-functions/uname.texi: Mention the new module.
61652 2009-08-02  Bruno Haible  <bruno@clisp.org>
61654         Tests for module 'sys_utsname'.
61655         * modules/sys_utsname-tests: New file.
61656         * tests/test-sys_utsname.c: New file.
61658         New module 'sys_utsname'.
61659         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
61660         * m4/sys_utsname_h.m4: New file.
61661         * modules/sys_utsname: New file.
61662         * doc/posix-headers/sys_utsname.texi: Mention the new module.
61664 2009-08-02  Bruno Haible  <bruno@clisp.org>
61666         Implicitly initialize the sockets library.
61667         * lib/gethostname.c: Include sockets.h.
61668         (rpl_gethostname): Invoke gl_sockets_startup.
61669         * lib/socket.c: Include sockets.h.
61670         (rpl_socket): Invoke gl_sockets_startup.
61671         * modules/gethostname (Depends-on): Add sockets.
61672         * modules/socket (Depends-on): Likewise.
61673         * tests/test-poll.c: Don't include sockets.h.
61674         (main): Don't invoke gl_sockets_startup.
61675         * tests/test-select.c: Don't include sockets.h.
61676         (main): Don't invoke gl_sockets_startup.
61678 2009-08-02  Bruno Haible  <bruno@clisp.org>
61680         Allow multiple calls to gl_sockets_startup.
61681         * lib/sockets.c (initialized_sockets_version): New variable.
61682         (gl_sockets_startup): Do nothing if already called for this or a higher
61683         version.
61684         (gl_sockets_cleanup): Reset initialized_sockets_version.
61686 2009-08-03  Simon Josefsson  <simon@josefsson.org>
61688         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
61689         different project/version.
61691 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
61692             Bruno Haible  <bruno@clisp.org>
61694         Tests for module 'pipe-filter-gi'.
61695         * modules/pipe-filter-gi-tests: New file.
61696         * tests/test-pipe-filter-gi1.sh: New file.
61697         * tests/test-pipe-filter-gi1.c: New file.
61698         * tests/test-pipe-filter-gi2.sh: New file.
61699         * tests/test-pipe-filter-gi2-main.c: New file.
61700         * tests/test-pipe-filter-gi2-child.c: New file.
61702         New module 'pipe-filter-gi'.
61703         * lib/pipe-filter-gi.c: New file.
61704         * modules/pipe-filter-gi: New file.
61706 2009-08-02  Bruno Haible  <bruno@clisp.org>
61707             Paolo Bonzini  <bonzini@gnu.org>
61709         Tests for module 'pipe-filter-ii'.
61710         * modules/pipe-filter-ii-tests: New file.
61711         * tests/test-pipe-filter-ii1.sh: New file.
61712         * tests/test-pipe-filter-ii1.c: New file.
61713         * tests/test-pipe-filter-ii2.sh: New file.
61714         * tests/test-pipe-filter-ii2-main.c: New file.
61715         * tests/test-pipe-filter-ii2-child.c: New file.
61717         New module 'pipe-filter-ii'.
61718         * lib/pipe-filter.h: New file.
61719         * lib/pipe-filter-ii.c: New file.
61720         * lib/pipe-filter-aux.h: New file.
61721         * modules/pipe-filter-ii: New file.
61723 2009-08-02  Simon Josefsson  <simon@josefsson.org>
61725         * lib/gc-libgcrypt.c: Change copyright to FSF.
61726         * lib/gc-gnulib.c: Likewise.
61728 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
61730         * lib/gethostname.c: Include limits.h.
61732 2009-08-02  Simon Josefsson  <simon@josefsson.org>
61733             Bruno Haible  <bruno@clisp.org>
61735         Ensure HOST_NAME_MAX as part of the gethostname module.
61736         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
61737         define also HOST_NAME_MAX.
61738         * tests/test-gethostname.c: Include <limits.h>.
61739         (main): Check also HOST_NAME_MAX.
61740         * doc/posix-headers/limits.texi: Document the mingw problem.
61742 2009-08-02  Bruno Haible  <bruno@clisp.org>
61744         * lib/gethostname.c (gethostname): Fix handling of large len argument.
61745         Add comments.
61747 2009-03-31  Simon Josefsson  <simon@josefsson.org>
61749         * lib/gethostname.c: Add Windows wrapper.
61750         * m4/gethostname.m4: Look for gethostname in -lws2_32.
61751         * modules/gethostname: Depend on sys_socket & errno, for also
61752         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
61753         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
61755 2009-07-31  Jim Meyering  <meyering@redhat.com>
61757         getloadavg: fix symbol name in comment
61758         * lib/getloadavg.c: Correct a typo I introduced when adding
61759         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
61760         Matt Kraai spotted the problem.
61762 2009-07-29  Matt Kraai  <mkraai@beckman.com>
61764         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
61765         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
61766         code also if ! defined N_NAME_POINTER.
61767         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
61768         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
61769         but the n_name member is a 12-byte array.
61771 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
61773         update-copyright: generalize comment handling
61774         * build-aux/update-copyright: Handle copyright statements
61775         within more comment styles.
61776         Document usage.
61777         Report any file with an external copyright holder or parse failure.
61779 2009-07-29  Jim Meyering  <meyering@redhat.com>
61781         mktime: correct setting of REPLACE_MKTIME
61782         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
61784         update-copyright: new module
61785         * modules/update-copyright: New file.
61786         * build-aux/update-copyright: New file.
61787         * MODULES.html.sh (maint+release support): Add update-copyright.
61789 2009-07-27  Bruno Haible  <bruno@clisp.org>
61791         Fix compilation error when <ctime> is used and mktime is replaced.
61792         * lib/time.in.h (mktime): New declaration.
61793         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
61794         REPLACE_MKTIME instead of defining mktime in config.h.
61795         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
61796         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
61797         Reported by Ross McFarland <rwmcfa1@neces.com>.
61799 2009-07-27  Bruno Haible  <bruno@clisp.org>
61801         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
61802         Reported by Matt Kraai <mkraai@beckman.com>.
61804 2009-07-25  Jim Meyering  <meyering@redhat.com>
61806         maint.mk: avoid warnings about missing files
61807         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
61808         diagnostic when .prev-version does not exist.
61809         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
61810         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
61811         nonexistent cfg.mk.
61812         Suggestions from Simon Josefsson.
61814 2009-07-25  Bruno Haible  <bruno@clisp.org>
61816         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
61817         defined as macros. Needed on QNX 6.4.1.
61818         Reported by Matt Kraai <mkraai@beckman.com>.
61820 2009-07-23  Jim Meyering  <meyering@redhat.com>
61822         maint.mk: invoke "make dist" with a working value of XZ_OPT
61823         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
61825 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
61827         Make fseeko.c compile on QNX.
61828         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
61830 2009-07-22  Peter Simons  <simons@cryp.to>
61832         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
61833         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
61834         * lib/md4.h: Likewise.
61835         * lib/md5.h: Likewise.
61836         * lib/sha1.h: Likewise.
61837         * lib/sha256.h: Likewise.
61838         * lib/sha512.h: Likewise.
61840         tests-sha1: don't assign literal string to 'char *' variable
61841         * tests/test-sha1.c (main): Declare locals with "const" to match
61842         attributes of the right hand side.
61844 2009-07-21  Eric Blake  <ebb9@byu.net>
61846         dup2: fix more mingw problems
61847         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
61848         fd to itself.
61849         * doc/posix-functions/dup2.texi (dup2): Document the bug.
61850         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
61851         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
61852         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
61853         care of mingw bugs.
61855 2009-07-21  Jim Meyering  <meyering@redhat.com>
61857         vc-list-files: avoid failure when /bin/sh is dash
61858         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
61859         On some Debian based systems, /bin/sh is a symlink to dash, and running
61860         this command would omit the "/" following each 'tests' prefix:
61861           dash -x build-aux/vc-list-files -C . tests
61862         That is because bash and dash work differently:
61863           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
61864           bash ok
61865           dash odd
61867 2009-07-21  Eric Blake  <ebb9@byu.net>
61869         dup2-tests: test previous patch
61870         * modules/dup2-tests: New file.
61871         * tests/test-dup2.c: Likewise.
61872         * tests/test-open.c (main): Avoid unspecified behavior.
61873         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
61874         test.
61876         dup2: work around mingw and cygwin 1.5 bug
61877         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
61878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
61879         * modules/unistd (Makefile.am): Substitute it.
61880         * lib/unistd.in.h (dup2): Declare the replacement.
61881         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
61882         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
61883         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
61884         * modules/execute (Depends-on): Add dup2.
61885         * modules/fseterr (Depends-on): Likewise.
61886         * modules/pipe (Depends-on): Likewise.
61887         * modules/posix_spawn-internal (Depends-on): Likewise.
61889 2009-07-21  Bruno Haible  <bruno@clisp.org>
61891         * modules/.gitattributes: New file.
61893 2009-07-20  Bruno Haible  <bruno@clisp.org>
61895         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
61896         (main): Use it.
61898 2009-07-20  Eric Blake  <ebb9@byu.net>
61900         test-pipe: make a bit more robust.
61901         * tests/test-pipe.c (myerr): Allow error messages regardless of
61902         what we do to stderr.
61903         (test_pipe): Rearrange to avoid deadlock.
61904         (child_main): Try a larger read, to ensure we avoided deadlock.
61905         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
61906         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
61907         if misused.
61909 2009-07-19  Jim Meyering  <meyering@redhat.com>
61911         fts: avoid false-positive cycle-detection
61912         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
61913         for each new command line argument.
61915 2009-07-19  Bruno Haible  <bruno@clisp.org>
61917         Fix build error on mingw with the modules sys_select and unistd.
61918         * modules/acl-tests (Depends-on): Add close.
61919         * modules/binary-io-tests (Depends-on): Likewise.
61920         * modules/closein-tests (Depends-on): Likewise.
61921         * modules/flock-tests (Depends-on): Likewise.
61922         * modules/fsync-tests (Depends-on): Likewise.
61923         * modules/lseek-tests (Depends-on): Likewise.
61924         * modules/pipe-tests (Depends-on): Likewise.
61925         * modules/posix_spawn-tests (Depends-on): Likewise.
61926         * modules/posix_spawnp-tests (Depends-on): Likewise.
61927         * modules/stat-time-tests (Depends-on): Likewise.
61928         * modules/yesno-tests (Depends-on): Likewise.
61930 2009-07-19  Bruno Haible  <bruno@clisp.org>
61932         Unify conditionals.
61933         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
61934         macros, not at the compiler macros.
61935         * lib/pipe.c: Likewise.
61936         * lib/execute.c: Likewise.
61937         * lib/spawni.c: Likewise.
61939 2009-07-19  Bruno Haible  <bruno@clisp.org>
61941         Fix handling of closed stdin/stdout/stderr on mingw.
61942         * lib/w32spawn.h: Include unistd.h.
61943         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
61944         file descriptor with O_NOINHERIT flag.
61945         (fd_safer_noinherit): New function, based on fd-safer.c.
61946         (dup_safer_noinherit): New function, based on dup-safer.c.
61947         (undup_safer_noinherit): New function.
61948         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
61949         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
61950         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
61951         instead of fd_safer.
61952         * tests/test-pipe.c: Include <windows.h>.
61953         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
61954         result.
61956         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
61957         from main.
61958         (test_pipe): Pass an extra argument for disambiguation.
61959         (main): Invoke parent_main or child_main.
61961         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
61962         consistently.
61964 2009-07-18  Eric Blake  <ebb9@byu.net>
61966         test-pipe: fix mingw build
61967         * tests/test-pipe.c (main): Avoid fcntl on mingw.
61969 2009-07-18  Bruno Haible  <bruno@clisp.org>
61971         * modules/pipe-tests (Makefile.am): Fix typo.
61973 2009-07-18  Eric Blake  <ebb9@byu.net>
61975         error: fix mingw build
61976         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
61977         Reported by Bruno Haible.
61979         error: avoid undefined use of stdout
61980         * lib/error.c (error, error_at_line): Check that fd 1 is open
61981         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
61982         is handling faults and the close_stdout module wants to report the
61983         detection of closed stdout as an error.
61985 2009-07-17  Eric Blake  <ebb9@byu.net>
61987         pipe: be robust in face of closed fds
61988         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
61989         should cause child to misbehave.
61990         * modules/pipe-tests: New module.
61991         * tests/test-pipe.c: New file.
61992         * tests/test-pipe.sh: New file.
61993         Reported by Akim Demaille.
61995 2009-07-14  Bruno Haible  <bruno@clisp.org>
61997         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
61998         Reported by anonymous kc.
62000 2009-07-07  Jim Meyering  <meyering@redhat.com>
62002         maint.mk: don't look for translatable strings in *.m4 or *.mk
62003         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
62004         when searching for translatable strings.
62006 2009-07-05  Jim Meyering  <meyering@redhat.com>
62008         remove superfluous parentheses in STREQ definition
62009         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
62010         * lib/getugroups.c (STREQ): Likewise.
62011         * lib/fnmatch.c (STREQ): Likewise.
62012         Spotted by Bruno Haible.
62014 2009-07-04  Jim Meyering  <meyering@redhat.com>
62016         argv-iter: new module
62017         * MODULES.html.sh: Add argv-iter.
62018         * lib/argv-iter.c, lib/argv-iter.h: New files.
62019         * modules/argv-iter: New file.
62020         * modules/argv-iter-tests: New file.
62021         * tests/test-argv-iter.c: Test it.
62023 2009-07-04  Bruno Haible  <bruno@clisp.org>
62025         Fix assertion.
62026         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
62027         contains more exact copies of a given entry than file2, leave the extra
62028         copies unpaired rather than aborting.
62029         Reported by Eric Blake.
62031 2009-07-02  Bruno Haible  <bruno@clisp.org>
62033         Speedup git-merge-changelog for git cherry-pick.
62034         * lib/git-merge-changelog.c (struct entries_mapping): New type.
62035         (entries_mapping_get): New function, extracted from compute_mapping.
62036         (entries_mapping_reverse_get): New function.
62037         (compute_mapping): Add a 'full' argument. Return the result in a
62038         'struct entries_mapping'.
62039         (main): Update. Access the mappings through entries_mapping_get.
62040         Reported by Eric Blake.
62042 2009-07-02  Bruno Haible  <bruno@clisp.org>
62044         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
62045         best_i.
62047 2009-07-02  Bruno Haible  <bruno@clisp.org>
62049         Speed up approximate search for matching ChangeLog entries.
62050         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
62051         argument. Call fstrcmp_bounded instead of fstrcmp.
62052         (compute_mapping, try_split_merged_entry, main): Update callers.
62054 2009-07-02  Bruno Haible  <bruno@clisp.org>
62056         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
62058 2009-06-30  Bruno Haible  <bruno@clisp.org>
62060         Reduce the number of uc_is_cased calls.
62061         * lib/unicase.h (casing_suffix_context_t): Add
62062         'first_char_except_ignorable' field.
62063         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
62064         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
62065         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
62066         Update initializer.
62067         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
62068         case-ignorable characters.
62069         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
62070         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
62071         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
62072         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
62073         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
62075 2009-06-30  Bruno Haible  <bruno@clisp.org>
62077         Tests for module 'unicase/ignorable'.
62078         * modules/unicase/ignorable-tests: New file.
62079         * tests/unicase/test-ignorable.c: New file, generated by
62080         gen-uni-tables.
62082         Tests for module 'unicase/cased'.
62083         * modules/unicase/cased-tests: New file.
62084         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
62085         * tests/unicase/test-predicate-part1.h: New file, derived from
62086         tests/unictype/test-predicate-part1.h.
62087         * tests/unicase/test-predicate-part2.h: New file, same as
62088         tests/unictype/test-predicate-part2.h.
62090         Fix evaluation of "Before C" condition of FINAL_SIGMA.
62091         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
62092         (output_casing_properties): New function.
62093         (main): Call it.
62094         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
62095         * lib/unicase/cased.c: Include unictype/bitmap.h.
62096         (uc_is_cased): Define through a bitmap lookup.
62097         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
62098         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
62099         (uc_is_case_ignorable): Define through a bitmap lookup.
62100         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
62101         lib/unictype/bitmap.h.
62102         (Depends-on): Add inline. Clean up.
62103         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
62104         lib/unictype/bitmap.h.
62105         (Depends-on): Add inline. Clean up.
62106         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
62107         recognition.
62108         * tests/unicase/test-u16-tolower.c (main): Likewise.
62109         * tests/unicase/test-u32-tolower.c (main): Likewise.
62111 2009-06-30  Bruno Haible  <bruno@clisp.org>
62113         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
62114         * lib/unicase/u16-casemap.c: Likewise.
62115         * lib/unicase/u32-casemap.c: Likewise.
62117 2009-06-29  Bruno Haible  <bruno@clisp.org>
62119         Define u32_casefold as a wrapper around u32_ct_casefold.
62120         * lib/unicase/u32-casefold.c: Update.
62121         * modules/unicase/u32-casefold (Depends-on): Add
62122         unicase/u32-ct-casefold, unicase/empty-prefix-context,
62123         unicase/empty-suffix-context. Clean up.
62125         Define u16_casefold as a wrapper around u16_ct_casefold.
62126         * lib/unicase/u16-casefold.c: Update.
62127         * modules/unicase/u16-casefold (Depends-on): Add
62128         unicase/u16-ct-casefold, unicase/empty-prefix-context,
62129         unicase/empty-suffix-context. Clean up.
62131         Define u8_casefold as a wrapper around u8_ct_casefold.
62132         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
62133         * lib/unicase/u8-casefold.c: Update.
62134         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
62135         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
62137         Define u32_totitle as a wrapper around u32_ct_totitle.
62138         * lib/unicase/u32-totitle.c: Update.
62139         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
62140         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
62142         Define u16_totitle as a wrapper around u16_ct_totitle.
62143         * lib/unicase/u16-totitle.c: Update.
62144         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
62145         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
62147         Define u8_totitle as a wrapper around u8_ct_totitle.
62148         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
62149         functions.
62150         (FUNC): Delegate to U_CT_TOTITLE.
62151         * lib/unicase/u8-totitle.c: Update.
62152         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
62153         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
62155         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
62156         invocation.
62157         * modules/unicase/u32-tolower (Depends-on): Add
62158         unicase/empty-prefix-context, unicase/empty-suffix-context.
62160         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
62161         invocation.
62162         * modules/unicase/u16-tolower (Depends-on): Add
62163         unicase/empty-prefix-context, unicase/empty-suffix-context.
62165         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
62166         * modules/unicase/u8-tolower (Depends-on): Add
62167         unicase/empty-prefix-context, unicase/empty-suffix-context.
62169         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
62170         invocation.
62171         * modules/unicase/u32-toupper (Depends-on): Add
62172         unicase/empty-prefix-context, unicase/empty-suffix-context.
62174         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
62175         invocation.
62176         * modules/unicase/u16-toupper (Depends-on): Add
62177         unicase/empty-prefix-context, unicase/empty-suffix-context.
62179         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
62180         * modules/unicase/u8-toupper (Depends-on): Add
62181         unicase/empty-prefix-context, unicase/empty-suffix-context.
62183         New module 'unicase/u32-ct-casefold'.
62184         * lib/unicase/u32-ct-casefold.c: New file.
62185         * modules/unicase/u32-ct-casefold: New file.
62187         New module 'unicase/u16-ct-casefold'.
62188         * lib/unicase/u16-ct-casefold.c: New file.
62189         * modules/unicase/u16-ct-casefold: New file.
62191         New module 'unicase/u8-ct-casefold'.
62192         * lib/unicase/u8-ct-casefold.c: New file.
62193         * lib/unicase/u-ct-casefold.h: New file, derived from
62194         lib/unicase/u-casefold.h.
62195         * modules/unicase/u8-ct-casefold: New file.
62197         New module 'unicase/u32-ct-totitle'.
62198         * lib/unicase/u32-ct-totitle.c: New file.
62199         * modules/unicase/u32-ct-totitle: New file.
62201         New module 'unicase/u16-ct-totitle'.
62202         * lib/unicase/u16-ct-totitle.c: New file.
62203         * modules/unicase/u16-ct-totitle: New file.
62205         New module 'unicase/u8-ct-totitle'.
62206         * lib/unicase/u8-ct-totitle.c: New file.
62207         * lib/unicase/u-ct-totitle.h: New file, derived from
62208         lib/unicase/u-totitle.h.
62209         * modules/unicase/u8-ct-totitle: New file.
62211         New module 'unicase/u32-ct-tolower'.
62212         * lib/unicase/u32-ct-tolower.c: New file.
62213         * modules/unicase/u32-ct-tolower: New file.
62215         New module 'unicase/u16-ct-tolower'.
62216         * lib/unicase/u16-ct-tolower.c: New file.
62217         * modules/unicase/u16-ct-tolower: New file.
62219         New module 'unicase/u8-ct-tolower'.
62220         * lib/unicase/u8-ct-tolower.c: New file.
62221         * modules/unicase/u8-ct-tolower: New file.
62223         New module 'unicase/u32-ct-toupper'.
62224         * lib/unicase/u32-ct-toupper.c: New file.
62225         * modules/unicase/u32-ct-toupper: New file.
62227         New module 'unicase/u16-ct-toupper'.
62228         * lib/unicase/u16-ct-toupper.c: New file.
62229         * modules/unicase/u16-ct-toupper: New file.
62231         New module 'unicase/u8-ct-toupper'.
62232         * lib/unicase/u8-ct-toupper.c: New file.
62233         * modules/unicase/u8-ct-toupper: New file.
62235         Add context arguments to u*_casemap functions.
62236         * lib/unicase/unicasemap.h: Include unicase.h.
62237         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
62238         suffix_context arguments.
62239         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
62240         functions.
62241         (FUNC): Add prefix_context and suffix_context arguments. Use
62242         uc_is_cased and uc_is_case_ignorable.
62243         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
62244         * lib/unicase/u16-casemap.c: Likewise.
62245         * lib/unicase/u32-casemap.c: Likewise.
62246         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
62247         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
62248         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
62249         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
62250         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
62251         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
62253         New module 'unicase/u32-suffix-context'.
62254         * lib/unicase/u32-suffix-context.c: New file.
62255         * modules/unicase/u32-suffix-context: New file.
62257         New module 'unicase/u16-suffix-context'.
62258         * lib/unicase/u16-suffix-context.c: New file.
62259         * modules/unicase/u16-suffix-context: New file.
62261         New module 'unicase/u8-suffix-context'.
62262         * lib/unicase/u8-suffix-context.c: New file.
62263         * lib/unicase/u-suffix-context.h: New file.
62264         * modules/unicase/u8-suffix-context: New file.
62266         New module 'unicase/empty-suffix-context'.
62267         * lib/unicase/empty-suffix-context.c: New file.
62268         * modules/unicase/empty-suffix-context: New file.
62270         New module 'unicase/u32-prefix-context'.
62271         * lib/unicase/u32-prefix-context.c: New file.
62272         * modules/unicase/u32-prefix-context: New file.
62274         New module 'unicase/u16-prefix-context'.
62275         * lib/unicase/u16-prefix-context.c: New file.
62276         * modules/unicase/u16-prefix-context: New file.
62278         New module 'unicase/u8-prefix-context'.
62279         * lib/unicase/u8-prefix-context.c: New file.
62280         * lib/unicase/u-prefix-context.h: New file.
62281         * lib/unicase/context.h: New file.
62282         * modules/unicase/u8-prefix-context: New file.
62284         New module 'unicase/empty-prefix-context'.
62285         * lib/unicase/empty-prefix-context.c: New file.
62286         * modules/unicase/empty-prefix-context: New file.
62288         New module 'unicase/ignorable'.
62289         * lib/unicase/ignorable.c: New file.
62290         * modules/unicase/ignorable: New file.
62292         New module 'unicase/cased'.
62293         * lib/unicase/caseprop.h: New file.
62294         * lib/unicase/cased.c: New file.
62295         * modules/unicase/cased: New file.
62297         New functions for case mapping of substrings.
62298         * lib/unicase.h (casing_prefix_context_t): New type.
62299         (unicase_empty_prefix_context): New variable.
62300         (u8_casing_prefix_context, u16_casing_prefix_context,
62301         u32_casing_prefix_context, u8_casing_prefixes_context,
62302         u16_casing_prefixes_context, u32_casing_prefixes_context): New
62303         declarations.
62304         (casing_suffix_context_t): New type.
62305         (unicase_empty_suffix_context): New variable.
62306         (u8_casing_suffix_context, u16_casing_suffix_context,
62307         u32_casing_suffix_context, u8_casing_suffixes_context,
62308         u16_casing_suffixes_context, u32_casing_suffixes_context,
62309         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
62310         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
62311         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
62312         declarations.
62314 2009-06-28  Jim Meyering  <meyering@redhat.com>
62316         boostrap: indent only with spaces
62317         * build-aux/bootstrap: Indent only with spaces, never TABs.
62319         bootstrap: split long lines
62320         * build-aux/bootstrap: Keep line length < 80.
62322         bootstrap: sync from coreutils
62323         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
62324         just as autoreconf does.  Verify a list of prerequisite
62325         package-name,version-number pairs if defined in bootstrap.conf.
62326         Refer to README-prereq, if prerequisites are not satisfied.
62328 2009-06-27  Eric Blake  <ebb9@byu.net>
62330         tests: add test for bogus NULL definition
62331         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
62332         * tests/test-stdlib.c: Likewise.
62333         * tests/test-string.c: Likewise.
62334         * tests/test-locale.c: Likewise.
62335         * tests/test-unistd.c: Likewise.
62336         * modules/stdio-tests (Depends-on): Add verify.
62337         * modules/stdlib-tests (Depends-on): Likewise.
62338         * modules/string-tests (Depends-on): Likewise.
62339         * modules/locale-tests (Depends-on): Likewise.
62340         * modules/unistd-tests (Depends-on): Likewise.
62342 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
62344         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
62345         self-explaining comment.
62346         * m4/selinux-selinux-h: Update serial.
62347         (gl_LIBSELINUX): New macro, adding a warning for missing development
62348         packages to code extracted from...
62349         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
62350         Add warning for missing development packages here, too.
62352 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
62354         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
62356 2009-06-25  Eric Blake  <ebb9@byu.net>
62358         version-etc: fix regression
62359         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
62360         gcc.
62361         (version_etc): Use it, to catch bugs with trailing NULL.
62362         * lib/version-etc.c (version_etc_arn): Delete unused argument.
62363         (version_etc_va): Fix logic bug.
62364         * modules/version-etc-tests: Add test.
62365         * tests/test-version-etc.c: New file.
62366         * tests/test-version-etc.sh: Likewise.
62368 2009-06-25  Sam Steingold  <sds@gnu.org>
62370         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
62371         mbtowc declaration.
62373 2009-06-25  Eric Blake  <ebb9@byu.net>
62375         fpurge: migrate into <stdio.h>
62376         * lib/fpurge.h: Delete...
62377         * lib/stdio.in.h (fpurge): ...and declare here, instead.
62378         * lib/fpurge.c (fpurge): Change declaring header.
62379         * modules/fpurge (Files): Drop deleted file.
62380         (Depends-on): Add stdio.
62381         (configure.ac): Set witness.
62382         * modules/stdio (Makefile.am): Support fpurge macros.
62383         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
62384         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
62385         * lib/fflush.c: Update client.
62386         * tests/test-fpurge.c: Likewise.
62387         * NEWS: Mention the change.
62389 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62391         * lib/argp-version-etc.c (program_authors): Add const
62392         qualifier.
62393         * lib/version-etc.c: Fix typos in the comments.
62394         * modules/argp-version-etc: Depends on version-etc.
62396 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62398         argp-version-etc: new module.
62400         * lib/argp-version-etc.c: New file.
62401         * lib/argp-version-etc.h: New file.
62402         * modules/argp-version-etc: New file.
62403         * modules/argp-version-etc-tests: New file.
62404         * tests/test-argp-version-etc.c: New test.
62405         * tests/test-argp-version-etc-1.sh: New test.
62407 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62409         Provide additional interfaces and documentation for version-etc
62410         module.
62412         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
62413         interfaces.
62414         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
62415         prototypes.
62417 2009-06-24  Bruno Haible  <bruno@clisp.org>
62419         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
62420         HAVE_LIB${NAME} macro.
62421         Reported by Sam Steingold <sds@gnu.org>.
62423 2009-06-23  Simon Josefsson  <simon@josefsson.org>
62425         * modules/hash-tests (test_hash_LDADD): Link to libintl when
62426         needed.
62428 2009-06-21  Bruno Haible  <bruno@clisp.org>
62430         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
62431         work.
62432         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
62433         together with LIB${NAME}, LTLIB${NAME}.
62434         Reported by Sam Steingold <sds@gnu.org>.
62436 2009-06-20  Jim Meyering  <meyering@redhat.com>
62438         tests: make sc_require_test_exit_idiom more generic
62439         * top/maint.mk (Exit_witness_file): New overridable variable.
62440         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
62441         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
62443 2009-06-19  Jim Meyering  <meyering@redhat.com>
62445         hash: reverse order of src/dst parameters in an internal interface
62446         * lib/hash.c (transfer_entries): Reverse order of parameters to
62447         put DST before SRC.  Adjust callers.
62449         tests: test-hash: avoid wholesale duplication
62450         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
62451         Instead, use a loop and add a single conditional.
62453         tests: test-hash: allow seed selection via a command line argument
62454         * tests/test-hash.c (get_seed): New function.
62455         (main): Use it.
62457 2009-06-19  Eric Blake  <ebb9@byu.net>
62459         hash: avoid memory leak on allocation failure
62460         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
62461         failure.  Factor repeated algorithm...
62462         (transfer_entries): ...into new helper routine.
62463         (hash_delete): React to hash_rehash return value.
62465         hash: reduce memory pressure in hash_rehash no-op case
62466         * lib/hash.c (next_prime): Avoid overflow.
62467         (hash_initialize): Factor bucket size computation...
62468         (compute_bucket_size): ...into new helper function.
62469         (hash_rehash): Use new function and open coding to reduce memory
62470         pressure, and avoid a memory leak in USE_OBSTACK code.
62471         Reported by Jim Meyering.
62473 2009-06-18  Eric Blake  <ebb9@byu.net>
62475         hash: make rotation more obvious
62476         * modules/hash (Depends-on): Add bitrotate and stdint.
62477         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
62478         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
62479         (SIZE_MAX): Rely on headers for definition.
62480         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
62481         (raw_hasher): Use rotr_sz.
62482         Suggested by Jim Meyering.
62484         hash: fix memory leak in last patch
62485         * lib/hash.c (hash_rehash): Avoid memory leak.
62487         hash: avoid no-op rehashing
62488         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
62490         hash: provide default callback functions
62491         * lib/hash.c (raw_hasher, raw_comparator): New functions.
62492         (hash_initialize): Use them as defaults.
62493         * tests/test-hash.c (main): Test this.
62495         hash: minor optimization
62496         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
62497         when possible.
62498         (hash_initialize): Document this promise.
62499         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
62500         * tests/test-hash.c (hash_compare_strings): Test this.
62502 2009-06-18  Bruno Haible  <bruno@clisp.org>
62504         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
62505         going to be replaced anyway.
62507 2009-06-18  Bruno Haible  <bruno@clisp.org>
62509         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
62510         in one place.
62511         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
62512         be replaced anyway.
62514 2009-06-18  Eric Blake  <ebb9@byu.net>
62516         hash: check for resize before insertion
62517         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
62518         threshold before insertion, so that a pathological hash_rehash
62519         that fills every bucket can still trigger another rehash.
62521 2009-06-18  Jim Meyering  <meyering@redhat.com>
62523         hash-tests: add a loop around the small tests
62524         * tests/test-hash.c (main): Repeat small tests with selected
62525         small initial table sizes.
62527 2009-06-17  Eric Blake  <ebb9@byu.net>
62529         hash: minor cleanups
62530         * lib/hash.h (hash_entry): Make opaque, by moving...
62531         * lib/hash.c (hash_entry): ...here.
62532         (hash_insert): Clarify restrictions on what can be inserted.
62533         (hash_get_next): Clarify when it is safe to remove an element
62534         during traversal.
62535         (check_tuning): Skip verification when tuning is known safe.
62536         (hash_initialize): Clarify restrictions on tuning.
62538 2009-06-17  Jim Meyering  <jim@meyering.net>
62539         and Eric Blake  <ebb9@byu.net>
62541         hash-tests: new module
62542         * modules/hash-tests: New file.
62543         * tests/test-hash.c: New file.
62545 2009-06-17  Eric Blake  <ebb9@byu.net>
62547         strstr-simple: document new module
62548         * MODULES.html.sh: Document new module.
62550         strstr, strcasestr: replace on platforms with broken memchr
62551         * modules/strstr: Split into...
62552         * modules/strstr-simple: ...new module that does not care about
62553         performance, but does care about glibc bug.
62554         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
62555         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
62556         if platform memchr is broken, per Debian bug 521737.
62557         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
62558         memchr.
62559         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
62560         * doc/posix-functions/strstr.texi (strstr): Document the fix.
62561         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
62562         * modules/mountlist (Depends-on): Add strstr-simple.
62563         * modules/gen-uni-tables (Depends-on): Likewise.
62564         * modules/argz (Depends-on): Add strstr.
62566 2009-06-17  Bruno Haible  <bruno@clisp.org>
62568         * modules/posix_spawn-internal (Depends-on): Add errno.
62570 2009-06-17  Bruno Haible  <bruno@clisp.org>
62572         Define missing ESTALE on Interix 3.5.
62573         * lib/errno.in.h (ESTALE): Assign a value if missing.
62574         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
62575         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
62576         missing.
62577         * doc/posix-headers/errno.texi: Mention the Interix bug.
62578         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
62580 2009-06-15  Eric Blake  <ebb9@byu.net>
62582         memchr, memchr2: add valgrind exception
62583         * lib/memchr.valgrind: New file.
62584         * lib/memchr2.valgrind: New file.
62585         * modules/memchr (Files): Distribute valgrind file.
62586         * modules/memchr2 (Files): Likewise.
62588         docs: memchr is no longer obsolete
62589         * MODULES.html.sh: Move memchr from obsolete to string.h section.
62590         * lib/string.in.h (memchr): Simplify logic.
62592 2009-06-14  Jim Meyering  <meyering@redhat.com>
62594         link-follow: fix the "checking..." message to not mention trailing slash
62595         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
62596         never considered trailing slashes.
62598 2009-06-14  Bruno Haible  <bruno@clisp.org>
62600         * m4/memchr.m4: Mention also the bug on IA-64.
62601         * doc/posix-functions/memchr.texi: Likewise.
62603 2009-06-12  Eric Blake  <ebb9@byu.net>
62605         memchr: detect broken x86_64 and alpha implementations
62606         * modules/memchr-tests (Depends-on): Move mmap detection...
62607         * modules/memchr (Depends-on): ...here.
62608         (configure.ac): Set indicator.
62609         * lib/string.in.h (memchr): Declare replacement.
62610         * modules/string (Makefile.am): Trigger replacement.
62611         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
62612         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
62613         bugs.
62614         * doc/posix-functions/memchr.texi (memchr): Document the bug.
62615         * modules/getpagesize (License): Relax license.
62617 2009-06-11  Bruno Haible  <bruno@clisp.org>
62619         * lib/idpriv.h: Add more references.
62621 2009-06-08  Bruno Haible  <bruno@clisp.org>
62623         Tests for module 'idpriv-droptemp'.
62624         * modules/idpriv-droptemp-tests: New file.
62625         * tests/test-idpriv-droptemp.sh: New file.
62626         * tests/test-idpriv-droptemp.su.sh: New file.
62627         * tests/test-idpriv-droptemp.c: New file.
62629         New module 'idpriv-droptemp'.
62630         * lib/idpriv-droptemp.c: New file.
62631         * modules/idpriv-droptemp: New file.
62633 2009-06-08  Bruno Haible  <bruno@clisp.org>
62635         Tests for module 'idpriv-drop'.
62636         * modules/idpriv-drop-tests: New file.
62637         * tests/test-idpriv-drop.sh: New file.
62638         * tests/test-idpriv-drop.su.sh: New file.
62639         * tests/test-idpriv-drop.c: New file.
62641         New module 'idpriv-drop'.
62642         * lib/idpriv.h: New file.
62643         * lib-idpriv-drop.c: New file.
62644         * m4/idpriv.m4: New file.
62645         * modules/idpriv-drop: New file.
62647 2009-06-08  Bruno Haible  <bruno@clisp.org>
62649         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
62650         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62651         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62652         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62653         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62654         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62655         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62657 2009-06-08  Eric Blake  <ebb9@byu.net>
62659         test-strstr: use memory fence, when possible
62660         * tests/test-strstr.c (main): Use memory fence, in order to be
62661         more likely to trigger Debian bug 521737.
62662         * modules/strstr-tests (Files): Pull in additional files.
62664         memchr: no longer obsolete, for wider field testing
62665         * modules/memchr (Status, Notice): Delete, this module is no
62666         longer obsolete.
62667         * modules/vasnprintf (Depends-on): Add memchr.
62669 2009-06-07  Jim Meyering  <meyering@redhat.com>
62671         hash: declare some functions with the warn_unused_result attribute
62672         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
62674 2009-06-07  Bruno Haible  <bruno@clisp.org>
62676         * tests/test-alignof.c: Don't test int64_t if it does not exist.
62677         Reported by Eric Blake.
62679 2009-06-06  Eric Blake  <ebb9@byu.net>
62681         test-alignof: fix typo with long double
62682         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
62683         compiler error.
62685 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
62687         Escape non-texinfo { and }s.
62688         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
62689         markup error.
62691 2009-06-04  Jim Meyering  <meyering@redhat.com>
62693         gitlog-to-changelog: don't infloop on an empty commit log
62694         * build-aux/gitlog-to-changelog: Warn about an empty log message.
62695         Reported by Boris Petersen <transacid@centerim.org>.
62697 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
62699         version-etc: extend for packagers
62700         Add three new configure options, intended for packagers:
62701           --with-packager="packager name"
62702           --with-packager-version="packager-specific version"
62703           --with-packager-bug-reports="packager bug reporting"
62704         An example with coreutils:
62705           $ ./configure \
62706             --with-packager=Gentoo \
62707             --with-packager-bug-report=http://bugs.gentoo.org/ \
62708             --with-packager-version="patchset 1.6"
62709           $ ./src/ls --version | head -n2
62710           ls (GNU coreutils) 7.1-dirty
62711           Packaged by Gentoo (patchset 1.6)
62712         Note that the bug reporting info via --help doesn't show up because
62713         coreutils uses its own custom emit_bug_reporting_address() implementation
62714         in src/system.h.  If it didn't, it'd look like:
62715           $ ./src/ls --help | tail -n4
62716           Report bugs to <bug-coreutils@gnu.org>.
62717           Report Gentoo bugs to <http://bugs.gentoo.org/>.
62718           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
62719           General help using GNU software: <http://www.gnu.org/gethelp/>.
62720         * lib/version-etc.c: Print new information, if provided.
62721         * m4/version-etc.m4: New file.
62722         * modules/version-etc (Files): Add m4/version-etc.m4.
62723         (configure.ac): Add gl_VERSION_ETC.
62725 2009-05-31  Bruno Haible  <bruno@clisp.org>
62727         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
62728         and 'int64_t'.
62729         * modules/alignof-tests (Dependencies): Add stdint.
62730         Reported by Eric Blake.
62732 2009-05-31  Bruno Haible  <bruno@clisp.org>
62734         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
62735         restriction due to compiler bugs.
62736         Reported by Eric Blake.
62738 2009-05-31  Simon Josefsson  <simon@josefsson.org>
62739             Bruno Haible  <bruno@clisp.org>
62741         Fix test-alignof failure.
62742         * lib/alignof.h (alignof_slot): New macro.
62743         (alignof_type): New macro, with the same semantics as the previous
62744         'alignof'.
62745         (alignof): Alias to alignof_slot.
62746         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
62747         check that the results are usable as constant expressions.
62749 2009-05-31  Bruno Haible  <bruno@clisp.org>
62751         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
62752         * tests/test-memchr.c (main): Check that memchr does not read past the
62753         first occurrence of the byte.
62754         * tests/test-strstr.c (main): Update comment.
62755         Suggested by Eric Blake.
62757 2009-05-30  Bruno Haible  <bruno@clisp.org>
62759         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
62760         detail how to use dumpbin.
62761         Reported by David Byron <dbyron@dbyron.com>.
62763 2009-06-02  Simon Josefsson  <simon@josefsson.org>
62765         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
62767 2009-06-02  Simon Josefsson  <simon@josefsson.org>
62769         * m4/manywarnings.m4: Add GCC 4.4 warnings.
62771 2009-05-28  Bruno Haible  <bruno@clisp.org>
62773         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
62774         build-aux/ files.
62776 2009-05-28  Simon Josefsson  <simon@josefsson.org>
62778         * gnulib-tool (func_import): Transform license on build-aux/ files too.
62780 2009-05-27  Simon Josefsson  <simon@josefsson.org>
62782         * gnulib-tool (sed_transform_main_lib_file)
62783         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
62784         regexps.
62786 2009-05-26  Simon Josefsson  <simon@josefsson.org>
62788         * tests/test-strstr.c: Add another self-test.
62789         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
62790         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
62792 2009-05-23  Bruno Haible  <bruno@clisp.org>
62794         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
62795         change.
62797 2009-05-21  Bruno Haible  <bruno@clisp.org>
62799         Simplify use of mode_t varargs.
62800         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
62801         uses 'mode_t' or 'int'.
62802         * lib/openat.c (openat): Likewise.
62803         * lib/open-safer.c (open_safer): Likewise.
62804         * m4/mode_t.m4: New file.
62805         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
62806         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
62807         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
62808         * modules/open (Files): Add m4/mode_t.m4.
62809         * modules/openat (Files): Likewise.
62810         * modules/fcntl-safer (Files): Likewise.
62811         Suggested by Eric Blake.
62813 2009-05-21  Pádraig Brady  <P@draigbrady.com>
62815         * doc/glibc-functions/fallocate.texi: New file.
62816         * doc/gnulib.texi: Include it.
62818 2009-05-21  Eric Blake  <ebb9@byu.net>
62819             Bruno Haible  <bruno@clisp.org>
62821         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
62822         invocations.
62823         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
62825 2009-05-21  Eric Blake  <ebb9@byu.net>
62826             Bruno Haible  <bruno@clisp.org>
62828         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
62829         include_next. Fix of 2008-11-20 commit.
62830         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
62831         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
62832         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
62833         NEXT_MATH_H.
62834         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
62835         instead of NEXT_MATH_H.
62837 2009-05-21  Bruno Haible  <bruno@clisp.org>
62839         Avoid redefinition warnings for SIZE_MAX.
62840         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
62841         Reported by Simon Josefsson.
62843 2009-05-21  Bruno Haible  <bruno@clisp.org>
62845         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
62846         AC_CACHE_VAL.
62848 2009-05-20  Bruno Haible  <bruno@clisp.org>
62850         Make zeroptr.h work on mingw.
62851         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
62852         mprotect.
62853         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
62854         * modules/memchr2-tests (configure.ac): Likewise.
62855         * modules/memcmp-tests (configure.ac): Likewise.
62856         * modules/memmem-tests (configure.ac): Likewise.
62857         * modules/memrchr-tests (configure.ac): Likewise.
62858         Reported by Simon Josefsson.
62860 2009-05-20  Simon Josefsson  <simon@josefsson.org>
62862         * tests/test-glob.c: Include string.h for strcmp prototype.
62864 2009-05-20  Simon Josefsson  <simon@josefsson.org>
62866         * modules/getdelim (Depends-on): Add explicit stdint, although it
62867         was implicitly already pulled in via realloc-posix.
62868         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
62870 2009-05-20  Simon Josefsson  <simon@josefsson.org>
62872         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
62873         G. Christensen" <tgc@jupiterrise.com>.
62874         * m4/sys_socket_h.m4: Check for sa_family_t.
62875         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
62876         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
62877         * tests/test-sys_socket.c: Check that sa_family_t works.
62879 2009-05-18  Eric Blake  <ebb9@byu.net>
62881         maint.mk: allow gnulib_dir in VPATH build
62882         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
62884 2009-05-15  Jim Meyering  <meyering@redhat.com>
62886         maint.mk: Give gnulib_dir a default definition.
62887         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
62888         Thus, most packages no longer need to specify this variable in cfg.mk
62890 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
62892         rename.m4: fix typos that would make non-mingw cross-configure fail
62893         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
62895 2009-05-13  Eric Blake  <ebb9@byu.net>
62897         mmap-anon: avoid out-of-order autoconf expansion
62898         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
62899         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
62900         * modules/memchr-tests (Depends-on): Add extensions.
62901         * modules/memchr2-tests (Depends-on): Add extensions.
62902         * modules/memcmp-tests (Depends-on): Add extensions.
62903         * modules/memmem-tests (Depends-on): Add extensions.
62904         * modules/memrchr-tests (Depends-on): Add extensions.
62906 2009-05-13  Bruno Haible  <bruno@clisp.org>
62908         Make some tests ISO C 99 compliant.
62909         * tests/zerosize-ptr.h: New file.
62910         * tests/test-memchr.c: Include zerosize-ptr.h.
62911         (main): Use a zero-size object pointer instead of NULL.
62912         * tests/test-memchr2.c: Include zerosize-ptr.h.
62913         (main): Use a zero-size object pointer instead of NULL.
62914         * tests/test-memcmp.c: Include zerosize-ptr.h.
62915         (main): Use a zero-size object pointer instead of NULL.
62916         * tests/test-memmem.c: Include zerosize-ptr.h.
62917         (main): Use a zero-size object pointer instead of NULL.
62918         * tests/test-memrchr.c: Include zerosize-ptr.h.
62919         (main): Use a zero-size object pointer instead of NULL.
62920         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
62921         m4/mmap-anon.m4.
62922         (Depends-on): Add getpagesize.
62923         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
62924         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
62925         m4/mmap-anon.m4.
62926         (Depends-on): Add getpagesize.
62927         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
62928         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
62929         m4/mmap-anon.m4.
62930         (Depends-on): Add getpagesize.
62931         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
62932         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
62933         m4/mmap-anon.m4.
62934         (Depends-on): Add getpagesize.
62935         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
62936         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
62937         m4/mmap-anon.m4.
62938         (Depends-on): Add getpagesize.
62939         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
62941 2009-05-12  Bruno Haible  <bruno@clisp.org>
62943         Tests for module 'alignof'.
62944         * modules/alignof-tests: New file.
62945         * tests/test-alignof.c: New file.
62947 2009-05-12  Bruno Haible  <bruno@clisp.org>
62949         Fix alignof macro.
62950         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
62951         vendor compilers that are always correct.
62953 2009-05-12  Bruno Haible  <bruno@clisp.org>
62955         Make the MAP_ANONYMOUS detection work on HP-UX 11.
62956         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
62957         not whether its fully works.
62959 2009-05-12  Bruno Haible  <bruno@clisp.org>
62961         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
62963 2009-05-12  Jim Meyering  <meyering@redhat.com>
62965         * top/maint.mk: Adjust backslash alignment.
62967 2009-05-11  Simon Josefsson  <simon@josefsson.org>
62969         * top/maint.mk: Make $(srcdir)/build-aux configurable.
62971 2009-05-11  Eric Blake  <ebb9@byu.net>
62973         argp: avoid undefined behavior
62974         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
62975         macros.
62977 2009-05-08  Simon Josefsson  <simon@josefsson.org>
62979         * tests/test-vc-list-files-git.sh: Do git config of user.email and
62980         user.name to prevent git commit from complaining.
62982 2009-05-10  Bruno Haible  <bruno@clisp.org>
62984         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
62985         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
62986         it rewrites every file name only once.
62987         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
62989 2009-05-08  Bruno Haible  <bruno@clisp.org>
62991         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
62992         instead of 'max'.
62994 2009-05-08  Simon Josefsson  <simon@josefsson.org>
62996         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
62997         sockaddr_storage test.
62999 2009-05-07  Simon Josefsson  <simon@josefsson.org>
63001         * modules/sys_socket (Makefile.am): Substitute
63002         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
63003         * m4/sys_socket_h.m4: Check for sockaddr_storage.
63004         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
63005         * tests/test-sys_socket.c: Check sockaddr_storage.
63007 2009-05-08  Bruno Haible  <bruno@clisp.org>
63009         New module 'alignof'.
63010         * lib/alignof.h: New file.
63011         * modules/alignof: New file.
63013 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
63014             Bruno Haible  <bruno@clisp.org>
63016         Fix test-file-has-acl on FreeBSD.
63017         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
63018         mask is implicitly added.
63019         * tests/test-file-has-acl.c: Include <signal.h>.
63020         (main): Terminate the test after 5 seconds.
63021         * modules/acl-tests (configure.ac): Check for alarm function.
63023 2009-05-04  Bruno Haible  <bruno@clisp.org>
63025         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
63026         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
63027         * modules/errno (configure.ac): Drop AC_REQUIRE.
63028         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
63029         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
63031 2009-05-04  Simon Josefsson  <simon@josefsson.org>
63033         * modules/glob-tests: New module.
63034         * tests/test-glob.c: Add.
63036 2009-05-04  Simon Josefsson  <simon@josefsson.org>
63038         * modules/fnmatch-tests: New module.
63039         * tests/test-fnmatch.c: Add.
63041 2009-05-04  Eric Blake  <ebb9@byu.net>
63043         maint: make the new no-submodule-changes rule VPATH-safe
63044         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
63046 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
63047             Bruno Haible  <bruno@clisp.org>
63049         acl: Fix infinite loop on FreeBSD.
63050         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
63051         of return value from acl_get_entry.
63052         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
63053         Likewise.
63055 2009-05-03  Bruno Haible  <bruno@clisp.org>
63057         * lib/acl-internal.h (acl_entries): Clarify return value.
63058         * lib/acl_entries.c (acl_entries): Likewise.
63060 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
63062         Bug fix in acl module.
63063         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
63065 2009-05-03  Bruno Haible  <bruno@clisp.org>
63067         Create gperf-generated file in the source dir, not in the build dir.
63068         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
63069         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
63070         * modules/unicase/locale-language (unicase/locale-languages.h):
63071         Likewise.
63072         * modules/unicase/special-casing (unicase/special-casing-table.h):
63073         Likewise.
63074         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
63075         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
63076         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
63077         Reported by Ralf Wildenhues.
63079 2009-05-03  Bruno Haible  <bruno@clisp.org>
63081         * modules/fnmatch (Description, configure.ac): Taken from
63082         fnmatch-posix.
63083         * modules/fnmatch-posix: Turn into a symbolic reference to the
63084         'fnmatch' module, and deprecate.
63085         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
63087 2009-05-03  Bruno Haible  <bruno@clisp.org>
63089         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
63090         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
63091         Reported by Ralf Wildenhues.
63093 2009-05-04  Simon Josefsson  <simon@josefsson.org>
63095         * m4/fnmatch.m4: Fix fnmatch re-define.
63097 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
63099         priv-set: new module and tests; adapt write-any-file
63100         * lib/priv-set.c: New file.
63101         * lib/priv-set.h: New file.
63102         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
63103         * lib/write-any-file.c: Simplify by using priv-set module.
63104         * m4/priv-set.m4: New file.
63105         * modules/priv-set: New file.
63106         * modules/unlinkdir: Add dependency on priv-set module.
63107         * modules/write-any-file: Likewise.
63109         Tests for module 'priv-set'.
63110         * modules/priv-set-tests: New file.
63111         * tests/test-priv-set.c: New file.
63113 2009-05-03  Jim Meyering  <meyering@redhat.com>
63114             Bruno Haible  <bruno@clisp.org>
63116         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
63117         use the converted UTF-8 variant of the name instead.
63119 2009-05-03  Jim Meyering  <meyering@redhat.com>
63121         tests: tighten some getdate tests
63122         * tests/test-getdate.c (main): Tighten tests: require equality,
63123         not just greater than.  Set TZ envvar to UTC0.
63125 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
63127         getdate: correctly interpret "next monday" when run on a Monday
63128         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
63129         that e.g., "next tues" (when run on a tuesday) results in a date
63130         that is one week in the future, and not today's date.
63131         I.e., add a week when the wday is the same as the current one.
63132         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
63133         and earlier by Martin Bernreuther and Jan Minář.
63134         * tests/test-getdate.c (main): Check that "next DAY" is always in
63135         the future and that "last DAY" is always in the past.
63137 2009-05-02  Jim Meyering  <meyering@redhat.com>
63139         build: ensure that a release build fails when a submodule is unclean
63140         * top/maint.mk (no-submodule-changes): New rule.
63141         (alpha beta major): Depend on it.
63143 2009-05-02  Bruno Haible  <bruno@clisp.org>
63145         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
63146         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
63147         shell variable gl_fnmatch_required to detect which variant is
63148         requested.
63149         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
63150         gl_FUNC_FNMATCH_POSIX.
63151         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
63152         exclude fnmatch-posix.
63154 2009-05-02  Bruno Haible  <bruno@clisp.org>
63156         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
63157         * modules/mbsrtowcs (License): Change to LGPLv2+.
63158         * modules/strnlen1 (License): Likewise.
63159         Reported by Simon Josefsson.
63161 2009-05-02  Bruno Haible  <bruno@clisp.org>
63163         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
63164         "cross".
63165         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
63166         gnulib-tool was called with option --source-base=lib.
63168 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63170         Use automake *-local hooks without commands, for extensibility.
63171         * modules/localcharset (Makefile.am): Rename install-exec-local
63172         rule to install-exec-localcharset, and make it a prerequisite of
63173         install-exec-local.  Likewise, rename the uninstall-local rule to
63174         uninstall-localcharset, and make it a prerequisite of the former.
63176 2009-05-01  Bruno Haible  <bruno@clisp.org>
63178         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
63179         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
63180         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
63181         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
63182         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
63183         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
63184         m4/locale-zh.m4, m4/codeset.m4.
63186         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
63187         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
63188         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
63189         m4/locale-zh.m4.
63191         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
63192         REPLACE_WCRTOMB if mbstate_t must be replaced.
63193         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
63194         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
63196 2009-05-01  Bruno Haible  <bruno@clisp.org>
63198         Avoid compiler warnings when redefining macros defined by <libintl.h>.
63199         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
63200         dngettext, dcngettext, textdomain, bindtextdomain,
63201         bind_textdomain_codeset): Undefine before redefining.
63203 2009-04-30  Bruno Haible  <bruno@clisp.org>
63205         Fix bug introduced on 2009-04-25.
63206         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
63207         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
63208         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
63209         is defined.
63210         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
63211         is defined.
63212         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
63213         is defined.
63214         Reported by Elbert_Pol <elbert.pol@gmail.com>.
63216 2009-04-28  Bruno Haible  <bruno@clisp.org>
63218         Comment tweaks.
63219         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
63220         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
63221         * lib/unicase.h (u*_casexfrm): Likewise.
63222         Reported by Paolo Bonzini.
63224 2009-04-28  Bruno Haible  <bruno@clisp.org>
63226         Fix a compilation error.
63227         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
63228         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
63229         Reported by Jim Meyering.
63231 2009-04-27  Bruno Haible  <bruno@clisp.org>
63233         New module 'libunistring'.
63234         * modules/libunistring: New file.
63235         * m4/libunistring.m4: New file.
63236         * MODULES.html.sh (Unicode string functions): Add it.
63238 2009-04-27  Eric Blake  <ebb9@byu.net>
63240         maint.mk: allow package-specific header to provide <config.h>
63241         * top/maint.mk (sc_require_config_h): New variable.
63242         (sc_require_config_h, sc_require_config_h_first): Use it.
63244 2009-04-27  Simon Josefsson  <simon@josefsson.org>
63246         * top/maint.mk (sc_avoid_if_before_free): Except
63247         useless-if-before-free script.
63249 2009-04-27  Eric Blake  <ebb9@byu.net>
63251         maintainer-makefile: depend on all required helper scripts
63252         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
63253         useless-if-before-free.
63254         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
63255         version, rather than assuming gnulib checkout is available.
63256         Reported by Simen Josefsson.
63258 2009-04-26  Bruno Haible  <bruno@clisp.org>
63260         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
63261         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
63262         "../" or "..".
63264 2009-04-26  Bruno Haible  <bruno@clisp.org>
63266         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
63267         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
63268         AC_LIB_HAVE_LINKFLAGS.
63270 2009-04-26  Bruno Haible  <bruno@clisp.org>
63272         Simplify calling convention of u*_conv_from_encoding.
63273         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
63274         u32_conv_from_encoding): Expect a resultbuf argument and return the
63275         result directly as a pointer.
63276         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
63277         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
63278         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
63279         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
63280         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
63281         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
63282         Update.
63283         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
63284         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
63285         * lib/vasnprintf.c (VASNPRINTF): Update.
63286         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
63287         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
63288         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
63289         * NEWS: Mention the change.
63291 2009-04-26  Bruno Haible  <bruno@clisp.org>
63293         Simplify calling convention of u*_conv_to_encoding.
63294         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
63295         u32_conv_to_encoding): Expect a resultbuf argument and return the
63296         result directly as a pointer.
63297         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
63298         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
63299         freeing scaled_offsets if mem_iconveha failed.
63300         * lib/unicase/u-casexfrm.h (FUNC): Update.
63301         * lib/uninorm/u-normxfrm.h (FUNC): Update.
63302         * lib/vasnprintf.c (VASNPRINTF): Update.
63303         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
63304         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
63305         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
63306         * NEWS: Mention the change.
63308 2009-04-26  Bruno Haible  <bruno@clisp.org>
63310         Avoid test failures on AIX and OSF/1.
63311         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
63312         malloc(0).
63313         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
63314         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
63315         Likewise.
63316         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
63317         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
63318         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
63319         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
63320         * doc/posix-functions/malloc.texi: Document the portability problem
63321         related to malloc(0).
63323 2009-04-26  Bruno Haible  <bruno@clisp.org>
63325         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
63326         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
63327         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
63329 2009-04-25  Bruno Haible  <bruno@clisp.org>
63331         Avoid link error when creating a namespace clean library.
63332         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
63333         as macro with arguments if already defined as an alias.
63334         * lib/signbitf.c (gl_signbitf): Don't undefine.
63335         * lib/signbitd.c (gl_signbitd): Don't undefine.
63336         * lib/signbitl.c (gl_signbitl): Don't undefine.
63338 2009-04-25  Jim Meyering  <meyering@redhat.com>
63340         vc-list-files: fix another quoting bug
63341         * build-aux/vc-list-files: Avoid sed backslash expansion
63342         of pathological directory names.
63344 2009-04-25  Eric Blake  <ebb9@byu.net>
63346         vc-list-files: fix shell quoting error
63347         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
63348         timestamp.
63350 2009-04-25  Jim Meyering  <meyering@redhat.com>
63352         vc-list-files: restore lost functionality with subdir argument
63353         * build-aux/vc-list-files: When given a non-"." sub-directory
63354         argument, substitute the $dir/ prefix back onto each resulting name.
63355         Otherwise, coreutils' root_tests check would fail.
63357 2009-04-24  Eric Blake  <ebb9@byu.net>
63359         vc-list-files: ignore git symlinks
63360         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
63361         than ls-files, to ignore git symlinks.
63363         maint.mk: import improvements from m4
63364         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
63365         (move_if_change): Delete unused macro.
63366         (news-date-check, vc-diff-check): Support VPATH builds.
63367         (announcement): Likewise.  Split --bootstrap-tools list...
63368         (boostrap-tools): ...into separate list, which can be overridden
63369         in cfg.mk.
63370         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
63371         requiring dependency on useless-if-before-free module.
63372         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
63373         Support VPATH builds.
63375 2009-04-24  Jim Meyering  <meyering@redhat.com>
63377         maint.mk: remove coreutils-specific rules and variables
63378         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
63379         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
63380         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
63382         maint.mk: remove obsolete rule
63383         * top/maint.mk (rel-check): Remove rule.
63384         (WGET, WGETFLAGS): Remove now-unused variables.
63386 2009-04-24  Simon Josefsson  <simon@josefsson.org>
63388         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
63389         consistency.
63391         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
63392         '$(PATH_SEPARATOR)' instead of ':'.
63394 2009-04-24  Simon Josefsson  <simon@josefsson.org>
63396         * lib/getopt1.c (main): Use 'const' for static array.
63398 2009-04-24  Simon Josefsson  <simon@josefsson.org>
63400         * top/maint.mk: Sync with coreutils.
63401         * NEWS: Explain incompatibilities.
63403 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63404             Bruno Haible  <bruno@clisp.org>
63406         Fix cross-compilation results.
63407         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
63408         statement, as third argument of AC_TRY_RUN.
63409         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
63410         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
63411         Likewise.
63412         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
63413         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
63414         Likewise.
63415         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
63416         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
63417         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
63419 2009-04-20  Bruno Haible  <bruno@clisp.org>
63421         Avoid test failure on mingw.
63422         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
63424 2009-04-20  Bruno Haible  <bruno@clisp.org>
63426         Avoid compilation error on mingw.
63427         * modules/localename-tests (Depends-on): Add locale.
63429 2009-04-19  Bruno Haible  <bruno@clisp.org>
63431         Support for building a shared library on Windows platforms.
63432         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
63433         (main): Test the presence of UNINORM_NFC here.
63434         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
63435         (main): Test the presence of UNINORM_NFD here.
63436         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
63437         (main): Test the presence of UNINORM_NFKC here.
63438         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
63439         (main): Test the presence of UNINORM_NFKD here.
63441 2009-04-19  Bruno Haible  <bruno@clisp.org>
63443         Avoid a compiler warning.
63444         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
63445         Change type of variable 'sequence'.
63447 2009-04-19  Bruno Haible  <bruno@clisp.org>
63449         * modules/configmake (Makefile.am): When the contents of configmake.h
63450         does not change, arrange to preserve its modification time.
63452 2009-04-17  Simon Josefsson  <simon@josefsson.org>
63454         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
63455         gettext domain.
63457 2009-04-16  Jim Meyering  <meyering@redhat.com>
63459         useless-if-before-free: improve conversion code
63460         * build-aux/useless-if-before-free: Adjust code-in-comment to match
63461         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
63463 2009-04-14  Bruno Haible  <bruno@clisp.org>
63465         * modules/fcntl (Depends-on): Add extensions.
63466         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
63468 2009-04-12  Ben Pfaff  <blp@gnu.org>
63470         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
63471         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
63473 2009-03-20  Ben Pfaff  <blp@gnu.org>
63475         Make rename replace existing destinations on Windows.
63476         * m4/rename.m4: Add test for Mingw.
63477         * lib/rename.c: Add rename replacement that uses MoveFileEx with
63478         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
63479         * doc/posix-functions/rename.texi: Document.
63481 2009-04-10  Bruno Haible  <bruno@clisp.org>
63483         New include file "iconveh.h".
63484         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
63485         * lib/striconveh.h: Include it.
63486         (enum iconv_ilseq_handler): Remove definition.
63487         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
63488         striconveh.h.
63489         * lib/striconveha.c: Include striconveh.h.
63490         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
63491         * modules/striconveh (Files): Add lib/iconveh.h.
63492         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
63493         lib/striconveh.h.
63495 2009-04-10  Bruno Haible  <bruno@clisp.org>
63497         * lib/uniconv.h: Update comment.
63499 2009-04-10  Bruno Haible  <bruno@clisp.org>
63501         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
63502         always.
63503         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
63504         * lib/unistr/u16-mbtouc-aux.c: Likewise.
63505         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
63506         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
63507         "unistring-notinline.h", so that the function gets defined always.
63508         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
63509         * lib/unistr/u8-uctomb.c: Likewise.
63510         * lib/unistr/u16-mbtouc.c: Likewise.
63511         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
63512         * lib/unistr/u16-uctomb.c: Likewise.
63513         * lib/unistr/u32-mbtouc.c: Likewise.
63514         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
63515         * lib/unistr/u32-uctomb.c: Likewise.
63517 2009-04-10  Bruno Haible  <bruno@clisp.org>
63519         Mark 'utime' obsolete.
63520         * modules/utime (Status, Notice): New sections.
63521         Suggested by Jim Meyering.
63523         Fix cross-compile guess for utime test.
63524         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
63525         autoconf.
63526         * doc/posix-functions/utime.texi: Give more precisions.
63527         Reported by Jan <ipif@ymail.com>.
63529 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
63531         filevercmp: correct today's change
63532         * lib/filevercmp.c: Also handle coreutils' test inputs.
63533         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
63535         Fix regression in 'filevercmp' module. Thanks Sven Joachim
63536         for reporting it.
63537         * lib/filevercmp.c: Special handle for "", "." and "..".
63538         * tests/test-filevercmp.c: Enlarge the set suite.
63540 2009-04-07  Jim Meyering  <meyering@redhat.com>
63542         useless-if-before-free: show how to remove braced useless free, too
63543         * build-aux/useless-if-before-free: still only in a comment, though.
63545 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
63547         maint.mk: import changes to syntax-check macros from coreutils
63548         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
63549         Use them in the relevant macros.
63551 2009-04-06  Bruno Haible  <bruno@clisp.org>
63553         Fix unportable use of bit-fields.
63554         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
63555         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
63556         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
63558 2009-04-06  Bruno Haible  <bruno@clisp.org>
63560         Avoid test failures on AIX and OSF/1.
63561         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
63562         that malloc(0) = NULL.
63563         * tests/unicase/test-u8-tolower.c (check): Likewise.
63564         * tests/unicase/test-u8-totitle.c (check): Likewise.
63565         * tests/unicase/test-u8-toupper.c (check): Likewise.
63566         * tests/unicase/test-u16-casefold.c (check): Likewise.
63567         * tests/unicase/test-u16-tolower.c (check): Likewise.
63568         * tests/unicase/test-u16-totitle.c (check): Likewise.
63569         * tests/unicase/test-u16-toupper.c (check): Likewise.
63570         * tests/unicase/test-u32-casefold.c (check): Likewise.
63571         * tests/unicase/test-u32-tolower.c (check): Likewise.
63572         * tests/unicase/test-u32-totitle.c (check): Likewise.
63573         * tests/unicase/test-u32-toupper.c (check): Likewise.
63574         * tests/uninorm/test-u8-nfc.c (check): Likewise.
63575         * tests/uninorm/test-u8-nfd.c (check): Likewise.
63576         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
63577         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
63578         * tests/uninorm/test-u16-nfc.c (check): Likewise.
63579         * tests/uninorm/test-u16-nfd.c (check): Likewise.
63580         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
63581         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
63582         * tests/uninorm/test-u32-nfc.c (check): Likewise.
63583         * tests/uninorm/test-u32-nfd.c (check): Likewise.
63584         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
63585         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
63587 2009-04-05  Bruno Haible  <bruno@clisp.org>
63589         Work around an autoconf limitation.
63590         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
63591         comment line if it would be longer than 3 KB.
63593 2009-04-05  Bruno Haible  <bruno@clisp.org>
63595         Avoid test failure with libiconv-1.13.
63596         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
63597         of the expected test results.
63599 2009-04-05  Bruno Haible  <bruno@clisp.org>
63601         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
63602         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
63603         that it should be installed.
63605 2009-04-05  Bruno Haible  <bruno@clisp.org>
63607         * gnulib-tool: New option --copy-file.
63608         (func_usage): Document it.
63609         (func_dest_tmpfilename): Moved out of func_import.
63610         (func_add_file, func_update_file): New functions, extracted from
63611         func_import.
63612         (func_import): Update.
63614 2009-04-05  Karl Berry  <karl@gnu.org>
63616         * README: prominently mention gnulib-tool.
63617         Rearrange sections so getting the code is near the top.
63619 2009-04-05  Bruno Haible  <bruno@clisp.org>
63621         * lib/unicase.h: Mention u*_cmp2.
63622         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
63623         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
63624         * lib/unicase/ulc-casecmp.c: Likewise.
63625         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
63626         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
63627         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
63628         unistr/u8-cmp.
63629         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
63630         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
63631         unistr/u16-cmp.
63632         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
63633         unistr/u32-cmp.
63635         * lib/uninorm.h: Mention u*_cmp2.
63636         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
63637         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
63638         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
63639         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
63640         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
63641         unistr/u8-cmp.
63642         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
63643         unistr/u16-cmp.
63644         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
63645         unistr/u32-cmp.
63647         New module 'unistr/u32-cmp2'.
63648         * lib/unistr/u32-cmp2.c: New file.
63649         * modules/unistr/u32-cmp2: New file.
63651         New module 'unistr/u16-cmp2'.
63652         * lib/unistr/u16-cmp2.c: New file.
63653         * modules/unistr/u16-cmp2: New file.
63655         New module 'unistr/u8-cmp2'.
63656         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
63657         * lib/unistr/u8-cmp2.c: New file.
63658         * lib/unistr/u-cmp2.h: New file.
63659         * modules/unistr/u8-cmp2: New file.
63661 2009-04-05  Bruno Haible  <bruno@clisp.org>
63663         * lib/unictype.h (uc_property_is_valid): New macro.
63664         * tests/unictype/test-pr_byname.c (main): Use it.
63666         * lib/unistr.h: Doc fixes.
63667         * lib/uniconv.h: Doc fixes.
63668         * lib/unictype.h: Doc fixes.
63670 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
63672         Port coreutils 7.2 to Solaris 8.
63674         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
63675         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
63676         for Solaris 8.  This is a bit of a hack, as it means it's the
63677         caller's responsibility to add -lnsl if needed, but most likely it
63678         won't be needed since only getaddrinfo uses this and getaddrinfo
63679         isn't needed on Solaris 8.
63681         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
63682         problem to Solaris 8 encountered with coreutils 7.2, which
63683         resulted in a message "fnmatch.c:292: warning: passing argument 4
63684         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
63685         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
63687 2009-04-03  Simon Josefsson  <simon@josefsson.org>
63689         * m4/ld-version-script.m4: Add FIXME comment.
63691 2009-04-02  Simon Josefsson  <simon@josefsson.org>
63693         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
63694         SOVERSION variable.
63696 2009-04-02  Bruno Haible  <bruno@clisp.org>
63698         * Makefile (info, html, dvi, pdf): Combine the rules.
63699         Suggested by Jim Meyering.
63701 2009-04-01  Bruno Haible  <bruno@clisp.org>
63703         * Makefile (info, html, dvi, pdf): New targets.
63704         Reported by Reuben Thomas <rrt@sc3d.org>.
63706 2009-04-01  Bruno Haible  <bruno@clisp.org>
63708         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
63709         can be put into PATH.
63710         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
63712 2009-04-01  Bruno Haible  <bruno@clisp.org>
63714         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
63716 2009-04-01  Bruno Haible  <bruno@clisp.org>
63718         Rename module 'visibility'.
63719         * modules/lib-symbol-visibility: Renamed from modules/visibility.
63720         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
63721         * doc/gnulib.texi: Update.
63722         * MODULES.html.sh (Misc): Update.
63723         * NEWS: Mention the change.
63725 2009-04-01  Simon Josefsson  <simon@josefsson.org>
63727         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
63728         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
63729         Eric Blake <ebb9@byu.net> for review.
63730         * MODULES.html.sh: Add lib-msvc-compat.
63731         * doc/gnulib.texi: Link to new section.
63732         * m4/ld-output-def.m4: New file.
63733         * doc/ld-output-def.texi: New file.
63735 2009-04-01  Simon Josefsson  <simon@josefsson.org>
63737         Rename ld-version-script to lib-symbol-versions.  Suggested by
63738         Bruno Haible <bruno@clisp.org>.
63739         * modules/ld-version-script: Renamed to lib-symbol-versions.
63740         * doc/ld-version-script.texi: Fix module name.
63741         * MODULES.html.sh: Add lib-symbol-versions.
63743 2009-03-31  Simon Josefsson  <simon@josefsson.org>
63745         * modules/u64-tests: New file.
63746         * tests/test-u64.c: New file.
63748 2009-03-04  Simon Josefsson  <simon@josefsson.org>
63750         * MODULES.html.sh: Mention u64.
63751         * modules/u64: New module.
63752         * modules/crypto/sha512: Depend on u64 module instead of providing
63753         u64.h.
63755 2009-03-27  Eric Blake  <ebb9@byu.net>
63757         test-strerror: make debugging EAI_SYSTEM easier
63758         * modules/getaddrinfo-tests (Depends-on): Add strerror.
63759         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
63760         failure was EAI_SYSTEM.
63762 2009-03-25  Bruno Haible  <bruno@clisp.org>
63764         Fix a problem with --enable-relocatable on Solaris 7.
63765         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
63766         since 2008-02-24.
63768 2009-03-25  Eric Blake  <ebb9@byu.net>
63770         test-sockets: avoid gcc warning
63771         * tests/test-sockets.c (main): Silence compiler warning.
63773 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
63775         New modules nproc, pthread, contributed by Glen Lenker.
63777         * MODULES.html.sh: Add pthread, nproc.
63778         * lib/nproc.c: New file.
63779         * lib/nproc.h: New file.
63780         * lib/pthread.in.h: New file.
63781         * m4/pthread.m4: New file.
63782         * modules/nproc: New file.
63783         * modules/pthread: New file.
63785 2009-03-24  Simon Josefsson  <simon@josefsson.org>
63787         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
63788         New variable.
63790 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
63792         filevercmp: handle simple~ and numbered.~3~ backup suffixes
63793         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
63794         * tests/test-filevercmp.c: Add tests for backup suffixes.
63796 2009-03-24  Simon Josefsson  <simon@josefsson.org>
63798         * modules/stdlib (Depends-on): Add stdint, needed when defining
63799         struct random_data on, for example, HP-UX 10.20.  Reported by
63800         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63802 2009-03-24  Simon Josefsson  <simon@josefsson.org>
63804         * lib/readline.c (readline): Call fflush on stdout after printing
63805         prompt.
63807 2009-03-20  Bruno Haible  <bruno@clisp.org>
63809         Remove dependency from 'close' module to -lws2_32 on native Windows.
63810         * lib/close-hook.h: New file.
63811         * lib/close-hook.c: New file.
63812         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
63813         w32sock.h.
63814         (_gl_close_fd_maybe_socket): Remove function.
63815         (rpl_close): Invoke execute_all_close_hooks instead of
63816         _gl_close_fd_maybe_socket.
63817         * lib/sockets.c: Include close-hook.h, w32sock.h.
63818         (close_fd_maybe_socket): New function, essentially from lib/close.c.
63819         (close_sockets_hook): New variable.
63820         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
63821         (gl_sockets_cleanup): Unregister it.
63822         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
63823         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
63824         * modules/close-hook: New file.
63825         * modules/close (Files): Remove lib/w32sock.h.
63826         (Depends-on): Add close-hook.
63827         (Link): Remove section.
63828         * modules/sockets (Files): Add lib/w32sock.h.
63829         (Depends-on): Add close-hook.
63830         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
63831         invocation.
63832         * NEWS: Mention that LIB_CLOSE is gone.
63834 2009-03-23  Eric Blake  <ebb9@byu.net>
63836         signal-tests: test previous patch
63837         * tests/test-signal.c: New file.
63838         * modules/signal-tests: Likewise.
63840         signal.h: always support 'volatile sig_atomic_t'
63841         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
63842         (gl_SIGNAL_H_DEFAULTS): Add a default.
63843         * modules/signal (Makefile.am): Substitute if needed.
63844         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
63845         users can blindly add volatile.
63846         * doc/posix-headers/signal.texi (signal.h): Document it.
63847         Reported by Matthew Woehlke.
63849 2009-03-23  Jim Meyering  <meyering@redhat.com>
63851         pathmax: PATH_MAX: use pathconf only when available
63852         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
63853         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
63854         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
63855         This avoids a link failure in a PSP cross-compilation environment
63856         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
63858         * lib/vasnprintf.c (divide): Fix typo in comment.
63860 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63862         * gnulib-tool (func_filter_filelist): Fix comment.
63864 2009-03-20  Bruno Haible  <bruno@clisp.org>
63866         Make sockets.h self-contained.
63867         * lib/sockets.c: Include sockets.h first.
63868         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
63870 2009-03-19  Eric Blake  <ebb9@byu.net>
63872         doc: mention more functions added in cygwin 1.7.0
63873         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
63874         addition.
63875         * doc/posix-functions/log2f.texi: Likewise.
63877 2009-03-19  Jim Meyering  <meyering@redhat.com>
63879         fsusage: avoid syntax error due to statement-before-declaration
63880         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
63881         after all declarations.  Reported by Matthew Woehlke in
63882         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
63884 2009-03-18  Eric Blake  <ebb9@byu.net>
63886         build-aux/compile: sync from automake
63887         * build-aux/compile: New file, from automake.
63888         * config/srclist.txt: Mention build-aux/compile.
63890 2009-03-17  Bruno Haible  <bruno@clisp.org>
63892         * lib/git-merge-changelog.c: Fix typo in comment.
63893         Reported by Reuben Thomas <rrt@sc3d.org>.
63895 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
63897         * m4/regex.m4: update and improve help for
63898         --without-included-regex.
63900 2009-03-17  Simon Josefsson  <simon@josefsson.org>
63902         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
63903         failure on missing include files.
63905 2009-03-17  Eric Blake  <ebb9@byu.net>
63907         doc: mention more functions added in cygwin 1.7.0
63908         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
63909         addition.
63910         * doc/posix-functions/fwscanf.texi: Likewise.
63911         * doc/posix-functions/swprintf.texi: Likewise.
63912         * doc/posix-functions/swscanf.texi: Likewise.
63913         * doc/posix-functions/vfwprintf.texi: Likewise.
63914         * doc/posix-functions/vfwscanf.texi: Likewise.
63915         * doc/posix-functions/vswprintf.texi: Likewise.
63916         * doc/posix-functions/vswscanf.texi: Likewise.
63917         * doc/posix-functions/vwprintf.texi: Likewise.
63918         * doc/posix-functions/vwscanf.texi: Likewise.
63919         * doc/posix-functions/wcscasecmp.texi: Likewise.
63920         * doc/posix-functions/wcsdup.texi: Likewise.
63921         * doc/posix-functions/wcsftime.texi: Likewise.
63922         * doc/posix-functions/wcsncasecmp.texi: Likewise.
63923         * doc/posix-functions/wprintf.texi: Likewise.
63924         * doc/posix-functions/wscanf.texi: Likewise.
63925         * doc/glibc-functions/gethostbyname2.texi: Likewise.
63927 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63929         maint.mk: really add $(AM_MAKEFLAGS)
63930         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
63931         was inadvertently omitted in the last commit.
63932         Spotted by Bruno Haible.
63934         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
63935         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
63936         $(AM_MAKEFLAGS)' rather than plain `make'.
63938         gnulib-tool: execute $MAKE not make
63939         * gnulib-tool: Default $MAKE to 'make'.
63940         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
63941         than make.  Initialize $MAKE in the do-autobuild script.
63943         gnulib-tool: use $MAKE not make in generated files
63944         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
63945         make, in generated files.  Initialize $MAKE in the do-autobuild
63946         script.
63948         * top/GNUmakefile (_have-git-version-gen): Fix typo.
63950         GNUmakefile: disable parallelism only for multiple, recursive targets
63951         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
63952         additions in the Makefile.
63953         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
63954         by Automake.
63955         (.NOTPARALLEL): Only disable parallel builds if multiple targets
63956         are listed on the command line and at least one of them is
63957         listed in $(ALL_RECURSIVE_TARGETS).
63959 2009-03-14  Bruno Haible  <bruno@clisp.org>
63961         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
63962         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
63963         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
63964         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
63965         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
63966         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
63967         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
63968         unistr/u8-uctomb.
63969         * modules/unistr/u8-strchr (Depends-on): Likewise.
63970         * modules/unistr/u8-strrchr (Depends-on): Likewise.
63971         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
63972         unistr/u16-uctomb.
63973         * modules/unistr/u16-strchr (Depends-on): Likewise.
63974         * modules/unistr/u16-strrchr (Depends-on): Likewise.
63976 2009-03-12  Bruno Haible  <bruno@clisp.org>
63978         Work around select() bug on Interix 3.5.
63979         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
63980         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
63981         * m4/select.m4: New file.
63982         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
63983         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
63984         * modules/select (Files): Add m4/select.m4.
63985         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
63986         * modules/nanosleep (Depends-on): Add select.
63987         * modules/poll (Depends-on): Likewise.
63988         * doc/posix-functions/select.texi: Mention the Interix bug.
63989         Reported by Markus Duft <mduft@gentoo.org>.
63991         * lib/select.c: Renamed from lib/winsock-select.c.
63992         * modules/select (Files): Add lib/select.c, remove
63993         lib/winsock-select.c.
63994         (configure.ac): Update.
63996 2009-03-12  Jim Meyering  <meyering@redhat.com>
63998         avoid gcc warnings about unused macro definitions
63999         * lib/readtokens.c (STREQ): Remove unused definition.
64000         * lib/xmalloc.c (SIZE_MAX): Likewise.
64001         * lib/openat-die.c (N_): Likewise.
64002         * lib/mountlist.c (SIZE_MAX): Remove definition.
64003         Instead, include <stdint.h>.
64004         * lib/readutmp.c: Likewise.
64005         * modules/readutmp (Depends-on): Add stdint.
64006         * modules/mountlist (Depends-on): Add stdint.
64007         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
64009 2009-03-10  Bruno Haible  <bruno@clisp.org>
64011         Tests for module 'mbmemcasecoll'.
64012         * modules/mbmemcasecoll-tests: New file.
64013         * tests/test-mbmemcasecoll1.sh: New file.
64014         * tests/test-mbmemcasecoll2.sh: New file.
64015         * tests/test-mbmemcasecoll3.sh: New file.
64016         * tests/test-mbmemcasecoll.c: New file.
64018         New module 'mbmemcasecoll'.
64019         * lib/mbmemcasecoll.h: New file.
64020         * lib/mbmemcasecoll.c: New file.
64021         * modules/mbmemcasecoll: New file.
64023         * tests/test-mbmemcasecmp.h: New file, extracted from
64024         tests/test-mbmemcasecmp.c.
64025         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
64026         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
64027         (main): Update.
64028         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
64030 2009-03-09  Bruno Haible  <bruno@clisp.org>
64032         Tests for module 'mbmemcasecmp'.
64033         * modules/mbmemcasecmp-tests: New file.
64034         * tests/test-mbmemcasecmp1.sh: New file.
64035         * tests/test-mbmemcasecmp2.sh: New file.
64036         * tests/test-mbmemcasecmp3.sh: New file.
64037         * tests/test-mbmemcasecmp.c: New file.
64039         New module 'mbmemcasecmp'.
64040         * lib/mbmemcasecmp.h: New file.
64041         * lib/mbmemcasecmp.c: New file.
64042         * modules/mbmemcasecmp: New file.
64044 2009-03-09  Bruno Haible  <bruno@clisp.org>
64046         Tests for module 'unicase/ulc-casecoll'.
64047         * modules/unicase/ulc-casecoll-tests: New file.
64048         * tests/unicase/test-ulc-casecoll1.sh: New file.
64049         * tests/unicase/test-ulc-casecoll2.sh: New file.
64050         * tests/unicase/test-ulc-casecoll.c: New file.
64052         New module 'unicase/ulc-casecoll'.
64053         * lib/unicase.h (ulc_casecoll): New declaration.
64054         * lib/unicase/ulc-casecoll.c: New file.
64055         * modules/unicase/ulc-casecoll: New file.
64057         New module 'unicase/ulc-casexfrm'.
64058         * lib/unicase.h (ulc_casexfrm): New declaration.
64059         * lib/unicase/ulc-casexfrm.c: New file.
64060         * modules/unicase/ulc-casexfrm: New file.
64062 2009-03-09  Bruno Haible  <bruno@clisp.org>
64064         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
64065         invocations.
64067         * m4/mbscasecmp.m4: Remove file.
64068         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
64069         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
64071         * m4/mbscasestr.m4: Remove file.
64072         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
64073         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
64075         * m4/mbschr.m4: Remove file.
64076         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
64077         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
64079         * m4/mbscspn.m4: Remove file.
64080         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
64081         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
64083         * m4/mbslen.m4: Remove file.
64084         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
64085         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
64087         * m4/mbsncasecmp.m4: Remove file.
64088         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
64089         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
64091         * m4/mbsnlen.m4: Remove file.
64092         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
64093         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
64095         * m4/mbspbrk.m4: Remove file.
64096         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
64097         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
64099         * m4/mbspcasecmp.m4: Remove file.
64100         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
64101         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
64103         * m4/mbsrchr.m4: Remove file.
64104         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
64105         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
64107         * m4/mbssep.m4: Remove file.
64108         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
64109         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
64111         * m4/mbsspn.m4: Remove file.
64112         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
64113         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
64115         * m4/mbsstr.m4: Remove file.
64116         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
64117         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
64119         * m4/mbstok_r.m4: Remove file.
64120         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
64121         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
64123         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
64125         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
64126         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
64128         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
64130 2009-03-08  Bruno Haible  <bruno@clisp.org>
64132         Tests for module 'unicase/ulc-casecmp'.
64133         * modules/unicase/ulc-casecmp-tests: New file.
64134         * tests/unicase/test-ulc-casecmp1.sh: New file.
64135         * tests/unicase/test-ulc-casecmp2.sh: New file.
64136         * tests/unicase/test-ulc-casecmp.c: New file.
64138         New module 'unicase/ulc-casecmp'.
64139         * lib/unicase.h (ulc_casecmp): New declaration.
64140         * lib/unicase/ulc-casecmp.c: New file.
64141         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
64142         'const SRC_UNIT *'.
64143         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
64144         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
64145         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
64146         * modules/unicase/ulc-casecmp: New file.
64148         Tests for module 'unicase/u32-is-cased'.
64149         * modules/unicase/u32-is-cased-tests: New file.
64150         * tests/unicase/test-u32-is-cased.c: New file.
64152         Tests for module 'unicase/u16-is-cased'.
64153         * modules/unicase/u16-is-cased-tests: New file.
64154         * tests/unicase/test-u16-is-cased.c: New file.
64156         Tests for module 'unicase/u8-is-cased'.
64157         * modules/unicase/u8-is-cased-tests: New file.
64158         * tests/unicase/test-u8-is-cased.c: New file.
64159         * tests/unicase/test-is-cased.h: New file.
64161         New module 'unicase/u32-is-cased'.
64162         * lib/unicase/u32-is-cased.c: New file.
64163         * modules/unicase/u32-is-cased: New file.
64165         New module 'unicase/u16-is-cased'.
64166         * lib/unicase/u16-is-cased.c: New file.
64167         * modules/unicase/u16-is-cased: New file.
64169         New module 'unicase/u8-is-cased'.
64170         * lib/unicase/u8-is-cased.c: New file.
64171         * lib/unicase/u-is-cased.h: New file.
64172         * modules/unicase/u8-is-cased: New file.
64174         Tests for module 'unicase/u32-is-casefolded'.
64175         * modules/unicase/u32-is-casefolded-tests: New file.
64176         * tests/unicase/test-u32-is-casefolded.c: New file.
64178         Tests for module 'unicase/u16-is-casefolded'.
64179         * modules/unicase/u16-is-casefolded-tests: New file.
64180         * tests/unicase/test-u16-is-casefolded.c: New file.
64182         Tests for module 'unicase/u8-is-casefolded'.
64183         * modules/unicase/u8-is-casefolded-tests: New file.
64184         * tests/unicase/test-u8-is-casefolded.c: New file.
64185         * tests/unicase/test-is-casefolded.h: New file.
64187         New module 'unicase/u32-is-casefolded'.
64188         * lib/unicase/u32-is-casefolded.c: New file.
64189         * modules/unicase/u32-is-casefolded: New file.
64191         New module 'unicase/u16-is-casefolded'.
64192         * lib/unicase/u16-is-casefolded.c: New file.
64193         * modules/unicase/u16-is-casefolded: New file.
64195         New module 'unicase/u8-is-casefolded'.
64196         * lib/unicase/u8-is-casefolded.c: New file.
64197         * modules/unicase/u8-is-casefolded: New file.
64199         Tests for module 'unicase/u32-is-titlecase'.
64200         * modules/unicase/u32-is-titlecase-tests: New file.
64201         * tests/unicase/test-u32-is-titlecase.c: New file.
64203         Tests for module 'unicase/u16-is-titlecase'.
64204         * modules/unicase/u16-is-titlecase-tests: New file.
64205         * tests/unicase/test-u16-is-titlecase.c: New file.
64207         Tests for module 'unicase/u8-is-titlecase'.
64208         * modules/unicase/u8-is-titlecase-tests: New file.
64209         * tests/unicase/test-u8-is-titlecase.c: New file.
64210         * tests/unicase/test-is-titlecase.h: New file.
64212         New module 'unicase/u32-is-titlecase'.
64213         * lib/unicase/u32-is-titlecase.c: New file.
64214         * modules/unicase/u32-is-titlecase: New file.
64216         New module 'unicase/u16-is-titlecase'.
64217         * lib/unicase/u16-is-titlecase.c: New file.
64218         * modules/unicase/u16-is-titlecase: New file.
64220         New module 'unicase/u8-is-titlecase'.
64221         * lib/unicase/u8-is-titlecase.c: New file.
64222         * modules/unicase/u8-is-titlecase: New file.
64224         Tests for module 'unicase/u32-is-lowercase'.
64225         * modules/unicase/u32-is-lowercase-tests: New file.
64226         * tests/unicase/test-u32-is-lowercase.c: New file.
64228         Tests for module 'unicase/u16-is-lowercase'.
64229         * modules/unicase/u16-is-lowercase-tests: New file.
64230         * tests/unicase/test-u16-is-lowercase.c: New file.
64232         Tests for module 'unicase/u8-is-lowercase'.
64233         * modules/unicase/u8-is-lowercase-tests: New file.
64234         * tests/unicase/test-u8-is-lowercase.c: New file.
64235         * tests/unicase/test-is-lowercase.h: New file.
64237         New module 'unicase/u32-is-lowercase'.
64238         * lib/unicase/u32-is-lowercase.c: New file.
64239         * modules/unicase/u32-is-lowercase: New file.
64241         New module 'unicase/u16-is-lowercase'.
64242         * lib/unicase/u16-is-lowercase.c: New file.
64243         * modules/unicase/u16-is-lowercase: New file.
64245         New module 'unicase/u8-is-lowercase'.
64246         * lib/unicase/u8-is-lowercase.c: New file.
64247         * modules/unicase/u8-is-lowercase: New file.
64249         Tests for module 'unicase/u32-is-uppercase'.
64250         * modules/unicase/u32-is-uppercase-tests: New file.
64251         * tests/unicase/test-u32-is-uppercase.c: New file.
64253         Tests for module 'unicase/u16-is-uppercase'.
64254         * modules/unicase/u16-is-uppercase-tests: New file.
64255         * tests/unicase/test-u16-is-uppercase.c: New file.
64257         Tests for module 'unicase/u8-is-uppercase'.
64258         * modules/unicase/u8-is-uppercase-tests: New file.
64259         * tests/unicase/test-u8-is-uppercase.c: New file.
64260         * tests/unicase/test-is-uppercase.h: New file.
64262         New module 'unicase/u32-is-uppercase'.
64263         * lib/unicase/u32-is-uppercase.c: New file.
64264         * modules/unicase/u32-is-uppercase: New file.
64266         New module 'unicase/u16-is-uppercase'.
64267         * lib/unicase/u16-is-uppercase.c: New file.
64268         * modules/unicase/u16-is-uppercase: New file.
64270         New module 'unicase/u8-is-uppercase'.
64271         * lib/unicase/u8-is-uppercase.c: New file.
64272         * modules/unicase/u8-is-uppercase: New file.
64274         New module 'unicase/u32-is-invariant'.
64275         * lib/unicase/u32-is-invariant.c: New file.
64276         * modules/unicase/u32-is-invariant: New file.
64278         New module 'unicase/u16-is-invariant'.
64279         * lib/unicase/u16-is-invariant.c: New file.
64280         * modules/unicase/u16-is-invariant: New file.
64282         New module 'unicase/u8-is-invariant'.
64283         * lib/unicase/u8-is-invariant.c: New file.
64284         * lib/unicase/invariant.h: New file.
64285         * lib/unicase/u-is-invariant.h: New file.
64286         * modules/unicase/u8-is-invariant: New file.
64288         Tests for module 'unicase/u32-casecoll'.
64289         * modules/unicase/u32-casecoll-tests: New file.
64290         * tests/unicase/test-u32-casecoll.c: New file.
64292         Tests for module 'unicase/u16-casecoll'.
64293         * modules/unicase/u16-casecoll-tests: New file.
64294         * tests/unicase/test-u16-casecoll.c: New file.
64296         Tests for module 'unicase/u8-casecoll'.
64297         * modules/unicase/u8-casecoll-tests: New file.
64298         * tests/unicase/test-u8-casecoll.c: New file.
64300         New module 'unicase/u32-casecoll'.
64301         * lib/unicase/u32-casecoll.c: New file.
64302         * modules/unicase/u32-casecoll: New file.
64304         New module 'unicase/u16-casecoll'.
64305         * lib/unicase/u16-casecoll.c: New file.
64306         * modules/unicase/u16-casecoll: New file.
64308         New module 'unicase/u8-casecoll'.
64309         * lib/unicase/u8-casecoll.c: New file.
64310         * lib/unicase/u-casecoll.h: New file.
64311         * modules/unicase/u8-casecoll: New file.
64313         New module 'unicase/u32-casexfrm'.
64314         * lib/unicase/u32-casexfrm.c: New file.
64315         * modules/unicase/u32-casexfrm: New file.
64317         New module 'unicase/u16-casexfrm'.
64318         * lib/unicase/u16-casexfrm.c: New file.
64319         * modules/unicase/u16-casexfrm: New file.
64321         New module 'unicase/u8-casexfrm'.
64322         * lib/unicase/u8-casexfrm.c: New file.
64323         * lib/unicase/u-casexfrm.h: New file.
64324         * modules/unicase/u8-casexfrm: New file.
64326         Tests for module 'unicase/u32-casecmp'.
64327         * modules/unicase/u32-casecmp-tests: New file.
64328         * tests/unicase/test-u32-casecmp.c: New file.
64330         Tests for module 'unicase/u16-casecmp'.
64331         * modules/unicase/u16-casecmp-tests: New file.
64332         * tests/unicase/test-u16-casecmp.c: New file.
64334         Tests for module 'unicase/u8-casecmp'.
64335         * modules/unicase/u8-casecmp-tests: New file.
64336         * tests/unicase/test-u8-casecmp.c: New file.
64337         * tests/unicase/test-casecmp.h: New file.
64339         New module 'unicase/u32-casecmp'.
64340         * lib/unicase/u32-casecmp.c: New file.
64341         * modules/unicase/u32-casecmp: New file.
64343         New module 'unicase/u16-casecmp'.
64344         * lib/unicase/u16-casecmp.c: New file.
64345         * modules/unicase/u16-casecmp: New file.
64347         New module 'unicase/u8-casecmp'.
64348         * lib/unicase/u8-casecmp.c: New file.
64349         * lib/unicase/u-casecmp.h: New file.
64350         * modules/unicase/u8-casecmp: New file.
64352         Tests for module 'unicase/u32-casefold'.
64353         * modules/unicase/u32-casefold-tests: New file.
64354         * tests/unicase/test-u32-casefold.c: New file.
64356         Tests for module 'unicase/u16-casefold'.
64357         * modules/unicase/u16-casefold-tests: New file.
64358         * tests/unicase/test-u16-casefold.c: New file.
64360         Tests for module 'unicase/u8-casefold'.
64361         * modules/unicase/u8-casefold-tests: New file.
64362         * tests/unicase/test-u8-casefold.c: New file.
64364         New module 'unicase/u32-casefold'.
64365         * lib/unicase/u32-casefold.c: New file.
64366         * modules/unicase/u32-casefold: New file.
64368         New module 'unicase/u16-casefold'.
64369         * lib/unicase/u16-casefold.c: New file.
64370         * modules/unicase/u16-casefold: New file.
64372         New module 'unicase/u8-casefold'.
64373         * lib/unicase/u8-casefold.c: New file.
64374         * lib/unicase/u-casefold.h: New file.
64375         * modules/unicase/u8-casefold: New file.
64377         New module 'unicase/tocasefold'.
64378         * lib/unicase/casefold.h: New file.
64379         * lib/unicase/tocasefold.c: New file.
64380         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
64381         * modules/unicase/tocasefold: New file.
64383         Tests for module 'unicase/u32-totitle'.
64384         * modules/unicase/u32-totitle-tests: New file.
64385         * tests/unicase/test-u32-totitle.c: New file.
64387         Tests for module 'unicase/u16-totitle'.
64388         * modules/unicase/u16-totitle-tests: New file.
64389         * tests/unicase/test-u16-totitle.c: New file.
64391         Tests for module 'unicase/u8-totitle'.
64392         * modules/unicase/u8-totitle-tests: New file.
64393         * tests/unicase/test-u8-totitle.c: New file.
64395         New module 'unicase/u32-totitle'.
64396         * lib/unicase/u32-totitle.c: New file.
64397         * modules/unicase/u32-totitle: New file.
64399         New module 'unicase/u16-totitle'.
64400         * lib/unicase/u16-totitle.c: New file.
64401         * modules/unicase/u16-totitle: New file.
64403         New module 'unicase/u8-totitle'.
64404         * lib/unicase/u8-totitle.c: New file.
64405         * lib/unicase/u-totitle.h: New file.
64406         * modules/unicase/u8-totitle: New file.
64408         Tests for module 'unicase/u32-tolower'.
64409         * modules/unicase/u32-tolower-tests: New file.
64410         * tests/unicase/test-u32-tolower.c: New file.
64412         Tests for module 'unicase/u16-tolower'.
64413         * modules/unicase/u16-tolower-tests: New file.
64414         * tests/unicase/test-u16-tolower.c: New file.
64416         Tests for module 'unicase/u8-tolower'.
64417         * modules/unicase/u8-tolower-tests: New file.
64418         * tests/unicase/test-u8-tolower.c: New file.
64420         New module 'unicase/u32-tolower'.
64421         * lib/unicase/u32-tolower.c: New file.
64422         * modules/unicase/u32-tolower: New file.
64424         New module 'unicase/u16-tolower'.
64425         * lib/unicase/u16-tolower.c: New file.
64426         * modules/unicase/u16-tolower: New file.
64428         New module 'unicase/u8-tolower'.
64429         * lib/unicase/u8-tolower.c: New file.
64430         * modules/unicase/u8-tolower: New file.
64432         Tests for module 'unicase/u32-toupper'.
64433         * modules/unicase/u32-toupper-tests: New file.
64434         * tests/unicase/test-u32-toupper.c: New file.
64436         Tests for module 'unicase/u16-toupper'.
64437         * modules/unicase/u16-toupper-tests: New file.
64438         * tests/unicase/test-u16-toupper.c: New file.
64440         Tests for module 'unicase/u8-toupper'.
64441         * modules/unicase/u8-toupper-tests: New file.
64442         * tests/unicase/test-u8-toupper.c: New file.
64444         New module 'unicase/u32-toupper'.
64445         * lib/unicase/u32-toupper.c: New file.
64446         * modules/unicase/u32-toupper: New file.
64448         New module 'unicase/u16-toupper'.
64449         * lib/unicase/u16-toupper.c: New file.
64450         * modules/unicase/u16-toupper: New file.
64452         New module 'unicase/u8-toupper'.
64453         * lib/unicase/u8-toupper.c: New file.
64454         * modules/unicase/u8-toupper: New file.
64456         New module 'unicase/u32-casemap'.
64457         * lib/unicase/u32-casemap.c: New file.
64458         * modules/unicase/u32-casemap: New file.
64460         New module 'unicase/u16-casemap'.
64461         * lib/unicase/u16-casemap.c: New file.
64462         * modules/unicase/u16-casemap: New file.
64464         New module 'unicase/u8-casemap'.
64465         * lib/unicase/unicasemap.h: New file.
64466         * lib/unicase/u8-casemap.c: New file.
64467         * lib/unicase/u-casemap.h: New file.
64468         * modules/unicase/u8-casemap: New file.
64470         New module 'unicase/special-casing'.
64471         * lib/unicase/special-casing.h: New file.
64472         * lib/unicase/special-casing.c: New file.
64473         * lib/unicase/special-casing-table.gperf: New file, generated by
64474         gen-uni-tables.c.
64475         * modules/unicase/special-casing: New file.
64477         Tests for module 'unicase/locale-language'.
64478         * modules/unicase/locale-language-tests: New file.
64479         * tests/unicase/test-locale-language.sh: New file.
64480         * tests/unicase/test-locale-language.c: New file.
64482         New module 'unicase/locale-language'.
64483         * lib/unicase/locale-language.c: New file.
64484         * lib/unicase/locale-languages.gperf: New file.
64485         * modules/unicase/locale-language: New file.
64487         Generate more tables for case conversion and case folding.
64488         * lib/gen-uni-tables.c (SCC_*): New enum items.
64489         (struct special_casing_rule): New type.
64490         (casing_rules, num_casing_rules, allocated_casing_rules): New
64491         variables.
64492         (add_casing_rule, fill_casing_rules): New functions.
64493         (struct casefold_rule): New type.
64494         (casefolding_rules, num_casefolding_rules,
64495         allocated_casefolding_rules): New variables.
64496         (fill_casefolding_rules): New function.
64497         (unicode_casefold): New variable.
64498         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
64499         sort_casing_rules, output_casing_rules): New functions.
64500         (main): Accept to more arguments: SpecialCasing.txt and
64501         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
64502         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
64503         Output mapping for casefolding.
64505         * lib/unicase.h: Include stdbool.h, uninorm.h.
64506         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
64507         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
64508         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
64509         arguments.
64510         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
64511         resultp arguments.
64512         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
64513         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
64514         resultp arguments.
64515         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
64516         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
64517         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
64518         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
64519         declarations.
64520         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
64522 2009-03-08  Bruno Haible  <bruno@clisp.org>
64524         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
64525         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
64526         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
64527         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
64529 2009-03-07  Bruno Haible  <bruno@clisp.org>
64531         Adjust u*_normcmp, u*_normcoll API.
64532         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
64533         u16_normcoll, u32_normcoll): Change failure conventions.
64534         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
64535         errno and return -1.
64536         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
64538 2009-03-07  Bruno Haible  <bruno@clisp.org>
64540         Tests for module 'uninorm/u32-normcoll'.
64541         * modules/uninorm/u32-normcoll-tests: New file.
64542         * tests/uninorm/test-u32-normcoll.c: New file.
64544         Tests for module 'uninorm/u16-normcoll'.
64545         * modules/uninorm/u16-normcoll-tests: New file.
64546         * tests/uninorm/test-u16-normcoll.c: New file.
64548         Tests for module 'uninorm/u8-normcoll'.
64549         * modules/uninorm/u8-normcoll-tests: New file.
64550         * tests/uninorm/test-u8-normcoll.c: New file.
64552 2009-03-07  Bruno Haible  <bruno@clisp.org>
64554         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
64555         tests/uninorm/test-u32-normcmp.c.
64556         * tests/uninorm/test-u32-normcmp.c: Include it.
64557         (test_nonascii): New function, extracted from main. Add some more
64558         tests.
64559         (main): Invoke test_ascii and test_nonascii.
64560         * modules/uninorm/u32-normcmp-tests (Files): Add
64561         tests/uninorm/test-u32-normcmp.h.
64562         (Depends-on): Remove uninorm/u32-normcmp.
64564         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
64565         tests/uninorm/test-u16-normcmp.c.
64566         * tests/uninorm/test-u16-normcmp.c: Include it.
64567         (test_nonascii): New function, extracted from main. Add some more
64568         tests.
64569         (main): Invoke test_ascii and test_nonascii.
64570         * modules/uninorm/u16-normcmp-tests (Files): Add
64571         tests/uninorm/test-u16-normcmp.h.
64572         (Depends-on): Remove uninorm/u16-normcmp.
64574         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
64575         tests/uninorm/test-u8-normcmp.c.
64576         * tests/uninorm/test-u8-normcmp.c: Include it.
64577         (test_nonascii): New function, extracted from main. Add some more
64578         tests.
64579         (main): Invoke test_ascii and test_nonascii.
64580         * modules/uninorm/u8-normcmp-tests (Files): Add
64581         tests/uninorm/test-u8-normcmp.h.
64582         (Depends-on): Remove uninorm/u8-normcmp.
64584 2009-03-07  Bruno Haible  <bruno@clisp.org>
64586         New module 'uninorm/u32-normcoll'.
64587         * lib/uninorm/u32-normcoll.c: New file.
64588         * modules/uninorm/u32-normcoll: New file.
64590         New module 'uninorm/u16-normcoll'.
64591         * lib/uninorm/u16-normcoll.c: New file.
64592         * modules/uninorm/u16-normcoll: New file.
64594         New module 'uninorm/u8-normcoll'.
64595         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
64596         declarations.
64597         * lib/uninorm/u8-normcoll.c: New file.
64598         * lib/uninorm/u-normcoll.h: New file.
64599         * modules/uninorm/u8-normcoll: New file.
64601         New module 'uninorm/u32-normxfrm'.
64602         * lib/uninorm/u32-normxfrm.c: New file.
64603         * modules/uninorm/u32-normxfrm: New file.
64605         New module 'uninorm/u16-normxfrm'.
64606         * lib/uninorm/u16-normxfrm.c: New file.
64607         * modules/uninorm/u16-normxfrm: New file.
64609         New module 'uninorm/u8-normxfrm'.
64610         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
64611         declarations.
64612         * lib/uninorm/u8-normxfrm.c: New file.
64613         * lib/uninorm/u-normxfrm.h: New file.
64614         * modules/uninorm/u8-normxfrm: New file.
64616 2009-03-07  Bruno Haible  <bruno@clisp.org>
64618         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
64619         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
64620         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
64622 2009-03-07  Bruno Haible  <bruno@clisp.org>
64624         New module 'memxfrm'.
64625         * lib/memxfrm.h: New file.
64626         * lib/memxfrm.c: New file.
64627         * modules/memxfrm: New file.
64629 2009-03-07  Bruno Haible  <bruno@clisp.org>
64631         New module 'memcmp2'.
64632         * lib/memcmp2.h: New file.
64633         * lib/memcmp2.c: New file.
64634         * modules/memcmp2: New file.
64636 2009-03-07  Bruno Haible  <bruno@clisp.org>
64638         Tests for module 'uninorm/decomposing-form'.
64639         * modules/uninorm/decomposing-form-tests: New file.
64640         * tests/uninorm/test-decomposing-form.c: New file.
64642         New module 'uninorm/decomposing-form'.
64643         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
64644         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
64645         Add 'decomposing_variant' field.
64646         * lib/uninorm/decomposing-form.c: New file.
64647         * lib/uninorm/nfc.c (uninorm_nfc): Update.
64648         * lib/uninorm/nfd.c (uninorm_nfd): Update.
64649         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
64650         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
64651         * modules/uninorm/decomposing-form: New file.
64652         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
64653         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
64655 2009-03-07  Bruno Haible  <bruno@clisp.org>
64657         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
64658         strings.
64660 2009-03-06  Bruno Haible  <bruno@clisp.org>
64662         Tests for module 'uninorm/u32-normcmp'.
64663         * tests/uninorm/test-u32-normcmp.c: New file.
64664         * modules/uninorm/u32-normcmp-tests: New file.
64666         Tests for module 'uninorm/u16-normcmp'.
64667         * tests/uninorm/test-u16-normcmp.c: New file.
64668         * modules/uninorm/u16-normcmp-tests: New file.
64670         Tests for module 'uninorm/u8-normcmp'.
64671         * tests/uninorm/test-u8-normcmp.c: New file.
64672         * modules/uninorm/u8-normcmp-tests: New file.
64674         New module 'uninorm/u32-normcmp'.
64675         * lib/uninorm/u32-normcmp.c: New file.
64676         * modules/uninorm/u32-normcmp: New file.
64678         New module 'uninorm/u16-normcmp'.
64679         * lib/uninorm/u16-normcmp.c: New file.
64680         * modules/uninorm/u16-normcmp: New file.
64682         New module 'uninorm/u8-normcmp'.
64683         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
64684         declarations.
64685         * lib/uninorm/u8-normcmp.c: New file.
64686         * lib/uninorm/u-normcmp.h: New file.
64687         * modules/uninorm/u8-normcmp: New file.
64689 2009-03-06  Bruno Haible  <bruno@clisp.org>
64691         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
64692         Reported by Eric Blake.
64694 2009-03-06  Eric Blake  <ebb9@byu.net>
64695             Bruno Haible  <bruno@clisp.org>
64697         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
64698         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
64699         condition.
64700         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
64701         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
64702         condition.
64703         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
64705 2009-03-06  Eric Blake  <ebb9@byu.net>
64707         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
64708         to avoid compiler warnings.
64709         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
64711 2009-03-05  Bruno Haible  <bruno@clisp.org>
64713         * tests/test-ftell.c (main): Disable test beyond end of file on
64714         FreeMiNT.
64715         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
64717 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
64719         * lib/filevercmp.c: Move hidden files up in ordering.
64720         * tests/test-filevercmp.c: Add tests for hidden files.
64722 2009-03-04  Bruno Haible  <bruno@clisp.org>
64724         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
64725         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
64726         AM_CFLAGS.
64727         Reported by Simon Josefsson.
64729 2009-03-03  Bruno Haible  <bruno@clisp.org>
64731         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
64732         Reported by Simon Josefsson.
64734         * doc/ld-version-script.texi: Update node reference.
64736 2009-03-03  Bruno Haible  <bruno@clisp.org>
64738         * modules/visibility (License): Change to 'unlimited'.
64739         Suggested by Simon Josefsson.
64741 2009-03-03  Jim Meyering  <meyering@redhat.com>
64743         unlinkdir: cannot_unlink_dir may modify process state
64744         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
64745         it's neither thread-safe nor appropriate for use in a library.
64747 2009-03-03  Eric Blake  <ebb9@byu.net>
64749         test-closein: silence test under Darwin
64750         * tests/test-closein.sh: Ignore stderr from cat, since we don't
64751         care if it dies from EPIPE or EBADF.
64753 2009-03-03  Bruno Haible  <bruno@clisp.org>
64755         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
64756         earlier.
64757         * doc/visibility.texi: Fix @node and @section.
64759 2009-03-03  Simon Josefsson  <simon@josefsson.org>
64761         * doc/gnulib.texi: Link to sections for ld version script and
64762         visibility.
64763         * doc/visibility.texi: Add @node and @section.
64764         * modules/ld-version-script: New module.
64765         * m4/ld-version-script.m4: New file.
64766         * doc/ld-version-script.texi: New file.
64768 2009-03-02  David Lutterkort  <lutter@redhat.com>
64770         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
64771         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64773 2009-03-02  Bruno Haible  <bruno@clisp.org>
64775         * doc/visibility.texi: Mention libtool's -export-symbols option.
64777 2009-03-02  Jim Meyering  <meyering@redhat.com>
64779         announce-gen: new option: --no-print-checksums
64780         * build-aux/announce-gen (usage): Describe it.
64781         (print_checksums): Print a newline here, not in the [*] footnote.
64782         (main): Honor it.
64784 2009-03-01  Bruno Haible  <bruno@clisp.org>
64786         Use socklen_t in the native Windows replacements prototypes.
64787         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
64788         instead of 'int'.
64789         * lib/getsockopt.c (rpl_getsockopt): Likewise.
64790         * lib/setsockopt.c (rpl_setsockopt): Likewise.
64791         * modules/getsockopt (Depends-on): Add socklen.
64792         * modules/setsockopt (Depends-on): Add socklen.
64794 2009-03-01  Bruno Haible  <bruno@clisp.org>
64796         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
64797         least 4.2.
64799 2009-03-01  Eric Blake  <ebb9@byu.net>
64800             Bruno Haible  <bruno@clisp.org>
64802         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
64803         error messages.
64804         * lib/wait-process.c (wait_subprocess): Omit error message about
64805         deadly signal sent to the child of termsigp != NULL.
64807 2009-03-01  Eric Blake  <ebb9@byu.net>
64809         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
64811 2009-03-01  Bruno Haible  <bruno@clisp.org>
64813         Avoid a gcc warning.
64814         * tests/test-sched.c (b): Make global.
64815         Reported by Eric Blake.
64817 2009-01-19  Martin Lambers  <marlam@marlam.de>
64819         Provide POSIX semantics for socket timeout options on W32.
64820         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
64821         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
64822         * modules/setsockopt: Depend on sys_time module for struct timeval.
64823         * modules/getsockopt: Depend on sys_time module for struct timeval.
64825 2009-03-01  Simon Josefsson  <simon@josefsson.org>
64827         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
64828         __USE_GNU, for consistency with netdb.in.h.
64829         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
64831 2009-03-01  Bruno Haible  <bruno@clisp.org>
64833         More support for FreeMiNT.
64834         * lib/fseeko.c (rpl_fseeko): Complete last commit.
64835         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
64837 2009-03-01  Bruno Haible  <bruno@clisp.org>
64839         More support for FreeMiNT.
64840         * lib/fpurge.c (fpurge): Correct last commit.
64841         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
64843 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64845         Fix unportable awk script in vc-list-files.
64846         * build-aux/vc-list-files: In the replacement awk script, use
64847         substr with a second argument of 1, not zero.
64848         Report by Simon Josefsson.
64850 2009-02-28  Bruno Haible  <bruno@clisp.org>
64852         More support for FreeMiNT.
64853         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
64854         to FreeMiNT today.
64855         * lib/fwriting.c (fwriting): Likewise.
64856         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
64858 2009-02-28  Bruno Haible  <bruno@clisp.org>
64860         * tests/test-freadseek.c (main): Disable test beyond end of file on
64861         FreeMiNT.
64862         * tests/test-ftello.c (main): Likewise.
64863         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
64865 2009-02-28  Bruno Haible  <bruno@clisp.org>
64867         Add tentative support for FreeMiNT.
64868         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
64869         * lib/fpurge.c (fpurge): Likewise.
64870         * lib/freadable.c (freadable): Likewise.
64871         * lib/freading.c (freading): Likewise.
64872         * lib/freadptr.c (freadptr): Likewise.
64873         * lib/freadseek.c (freadptrinc): Likewise.
64874         * lib/fseeko.c (rpl_fseeko): Likewise.
64875         * lib/fseterr.c (fseterr): Likewise.
64876         * lib/fwritable.c (fwritable): Likewise.
64877         * lib/fwriting.c (fwriting): Likewise.
64878         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
64879         Hourihane.
64880         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
64882 2009-02-28  Bruno Haible  <bruno@clisp.org>
64884         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
64885         SIGCHLD.
64886         Reported by Jim Meyering.
64888 2009-02-28  Bruno Haible  <bruno@clisp.org>
64890         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
64891         Mention the results of these tests on various platforms.
64892         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
64893         order.
64894         * doc/posix-functions/printf.texi: Likewise.
64895         * doc/posix-functions/snprintf.texi: Likewise.
64896         * doc/posix-functions/sprintf.texi: Likewise.
64897         * doc/posix-functions/vfprintf.texi: Likewise.
64898         * doc/posix-functions/vprintf.texi: Likewise.
64899         * doc/posix-functions/vsnprintf.texi: Likewise.
64900         * doc/posix-functions/vsprintf.texi: Likewise.
64901         * doc/glibc-functions/obstack_printf.texi: Likewise.
64902         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
64904 2009-02-28  Bruno Haible  <bruno@clisp.org>
64906         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
64907         Reported by Loïc Minier <lool@dooz.org>.
64909 2009-02-27  Bruno Haible  <bruno@clisp.org>
64911         * gnulib-tool (func_import): Make the sed expression used to create the
64912         sed script for updating the .gitignore file POSIX compliant.
64913         Reported by Eric Blake.
64915 2009-02-27  Bruno Haible  <bruno@clisp.org>
64917         * gnulib-tool (sed): Don't alias as "sed --posix".
64918         Reported by Eric Blake.
64920 2009-02-27  Bruno Haible  <bruno@clisp.org>
64922         Avoid test link errors.
64923         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
64924         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
64925         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
64926         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
64927         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
64929 2009-02-27  Bruno Haible  <bruno@clisp.org>
64931         Avoid spurious "(cached)" in configure output.
64932         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
64933         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
64934         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
64935         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
64936         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
64937         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
64938         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
64939         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
64940         Reported by Eric Blake.
64942 2009-02-27  Eric Blake  <ebb9@byu.net>
64944         printf: fix regression in previous patch
64945         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
64947 2009-02-27  Bruno Haible  <bruno@clisp.org>
64949         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
64950         value.
64951         * lib/stdint.in.h: Likewise.
64952         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
64954 2009-02-27  Eric Blake  <ebb9@byu.net>
64956         doc: mention more functions added in cygwin 1.7.0
64957         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
64958         addition.
64959         * doc/posix-functions/open_wmemstream.texi: Likewise.
64960         * doc/posix-functions/wcsnlen.texi: Likewise.
64961         * doc/posix-functions/wcsnrtombs.texi: Likewise.
64962         * doc/posix-functions/wcstod.texi: Likewise.
64963         * doc/posix-functions/wcstof.texi: Likewise.
64964         * doc/posix-functions/wcstoimax.texi: Likewise.
64965         * doc/posix-functions/wcstok.texi: Likewise.
64966         * doc/posix-functions/wcstoumax.texi: Likewise.
64968         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
64969         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
64970         * doc/posix-functions/fprintf.texi: Update.
64971         * doc/posix-functions/printf.texi: Update.
64972         * doc/posix-functions/snprintf.texi: Update.
64973         * doc/posix-functions/sprintf.texi: Update.
64974         * doc/posix-functions/vfprintf.texi: Update.
64975         * doc/posix-functions/vprintf.texi: Update.
64976         * doc/posix-functions/vsnprintf.texi: Update.
64977         * doc/posix-functions/vsprintf.texi: Update.
64978         * doc/glibc-functions/obstack_printf.texi: Update.
64979         * doc/glibc-functions/obstack_vprintf.texi: Update.
64981 2009-02-26  Eric Blake  <ebb9@byu.net>
64983         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
64984         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
64985         compilation bug by using runtime conversion.
64986         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
64987         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
64988         * modules/ceill-tests (Files): Use nan.h.
64989         * modules/floorl-tests (Files): Likewise.
64990         * modules/frexpl-tests (Files): Likewise.
64991         * modules/isnanl-tests (Files): Likewise.
64992         * modules/ldexpl-tests (Files): Likewise.
64993         * modules/roundl-tests (Files): Likewise.
64994         * modules/truncl-tests (Files): Likewise.
64995         * tests/test-ceill.c (main): Use a working NaN.
64996         * tests/test-floorl.c (main): Likewise.
64997         * tests/test-frexpl.c (main): Likewise.
64998         * tests/test-isnan.c (test_long_double): Likewise.
64999         * tests/test-isnanl.h (main): Likewise.
65000         * tests/test-ldexpl.h (main): Likewise.
65001         * tests/test-roundl.h (main): Likewise.
65002         * tests/test-truncl.h (main): Likewise.
65003         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
65005 2009-02-26  Eric Blake  <ebb9@byu.net>
65006             Bruno Haible  <bruno@clisp.org>
65008         Work around a *printf bug with %ls on Solaris.
65009         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
65010         precision is specified, sprintf stops converting the wide string
65011         argument when the number of bytes that have been produced by this
65012         conversion equals or exceeds the precision.
65013         * doc/posix-functions/fprintf.texi: Update.
65014         * doc/posix-functions/printf.texi: Update.
65015         * doc/posix-functions/snprintf.texi: Update.
65016         * doc/posix-functions/sprintf.texi: Update.
65017         * doc/posix-functions/vfprintf.texi: Update.
65018         * doc/posix-functions/vprintf.texi: Update.
65019         * doc/posix-functions/vsnprintf.texi: Update.
65020         * doc/posix-functions/vsprintf.texi: Update.
65021         * doc/glibc-functions/obstack_printf.texi: Update.
65022         * doc/glibc-functions/obstack_vprintf.texi: Update.
65024 2009-02-26  Eric Blake  <ebb9@byu.net>
65026         stdlib: favor compiler check of random.h
65027         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
65028         to avoid an ObjC random.h installed by Swarm.
65030 2009-02-26  Bruno Haible  <bruno@clisp.org>
65032         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
65033         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
65034         Reported by Gary V. Vaughan <gary@gnu.org>.
65036 2009-02-26  Bruno Haible  <bruno@clisp.org>
65038         Fix *printf behaviour regarding the %ls directive.
65039         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
65040         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
65041         NEED_PRINTF_DIRECTIVE_LS.
65042         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
65043         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65044         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65045         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
65046         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
65047         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
65048         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
65049         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65050         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65051         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65052         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65053         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
65054         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65055         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65056         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65057         * doc/posix-functions/fprintf.texi: Update.
65058         * doc/posix-functions/printf.texi: Update.
65059         * doc/posix-functions/snprintf.texi: Update.
65060         * doc/posix-functions/sprintf.texi: Update.
65061         * doc/posix-functions/vfprintf.texi: Update.
65062         * doc/posix-functions/vprintf.texi: Update.
65063         * doc/posix-functions/vsnprintf.texi: Update.
65064         * doc/posix-functions/vsprintf.texi: Update.
65065         * doc/glibc-functions/obstack_printf.texi: Update.
65066         * doc/glibc-functions/obstack_vprintf.texi: Update.
65067         Reported by Eric Blake.
65069 2009-02-25  Bruno Haible  <bruno@clisp.org>
65071         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
65072         with known value.
65073         Reported by Gary V. Vaughan <gary@gnu.org>.
65075 2009-02-25  Bruno Haible  <bruno@clisp.org>
65077         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
65078         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
65079         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
65080         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
65081         Reported by Gary V. Vaughan <gary@gnu.org>.
65083 2009-02-25  Bruno Haible  <bruno@clisp.org>
65085         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
65086         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
65087         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
65088         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
65089         Reported by Gary V. Vaughan <gary@gnu.org>.
65091 2009-02-25  Eric Blake  <ebb9@byu.net>
65093         tests: skip fseek/ftell tests if ungetc is broken
65094         * m4/ungetc.m4: New file.
65095         * modules/fseek-tests: Split test, so ungetc dependency is
65096         separate from rest of test.
65097         * modules/fseeko-tests: Likewise.
65098         * modules/ftell-tests: Likewise.
65099         * modules/ftello-tests: Likewise.
65100         * tests/test-fseek.c (main): Isolate ungetc dependency.
65101         * tests/test-fseeko.c (main): Likewise.
65102         * tests/test-ftell.c (main): Likewise.
65103         * tests/test-ftello.c (main): Likewise.
65104         * tests/test-fseek2.sh: New file.
65105         * tests/test-fseeko2.sh: Likewise.
65106         * tests/test-ftell2.sh: Likewise.
65107         * tests/test-ftello2.sh: Likewise.
65109 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
65111         test-getaddrinfo: fix usage of skip return code 77
65112         * tests/test-gettaddrinfo.c: Return skip code 77 only
65113         for first occurrence of skip (4x77 is not 77)
65115 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
65117         strtod: avoid C99 decl-after-statement
65118         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
65120 2009-02-24  Eric Blake  <ebb9@byu.net>
65122         strtod: detect HP-UX 11.31 bug
65123         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
65124         Reported by Gary V. Vaughan.
65126 2009-02-23  Bruno Haible  <bruno@clisp.org>
65128         Fix invalid read past end of memory block.
65129         * lib/vasnprintf.c (DCHAR_SET): Define.
65130         (local_wcslen): Define only when needed.
65131         (local_strnlen, local_wcsnlen): New functions.
65132         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
65133         directives that involve a conversion ourselves.
65134         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
65135         wcsnlen, mbrtowc, wcrtomb.
65136         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
65137         * tests/test-vasprintf-posix.c (test_function): Likewise.
65138         * tests/test-snprintf-posix.h (test_function): Likewise.
65139         * tests/test-sprintf-posix.h (test_function): Likewise.
65140         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65142 2009-02-22  Bruno Haible  <bruno@clisp.org>
65144         Implement new clarified decomposition of Hangul syllables.
65145         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
65146         of type LTV, return only a pairwise decomposition.
65147         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
65148         Likewise.
65149         * tests/uninorm/test-decomposition.c (main): Updated expected result.
65150         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
65151         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
65153 2009-02-22  Bruno Haible  <bruno@clisp.org>
65155         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
65156         zero-length results and shrink excess allocated memory.
65157         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
65158         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
65159         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
65160         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
65161         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
65162         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
65163         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
65164         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
65165         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
65166         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
65167         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
65168         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
65170 2009-02-21  Bruno Haible  <bruno@clisp.org>
65172         * doc/gnulib.texi: Include safe-alloc.texi earlier.
65173         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
65174         spaces after a period. Put a space between a macro name and its
65175         argument list. Trivial rewordings.
65176         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
65177         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
65178         (main): Return 0 explicitly.
65180 2009-02-21  Bruno Haible  <bruno@clisp.org>
65182         Tests for module 'uninorm/filter'.
65183         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
65184         * modules/uninorm/filter-tests: New file.
65186         New module 'uninorm/filter'.
65187         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
65188         uninorm_filter_flush, uninorm_filter_free): New declarations.
65189         * lib/uninorm/uninorm-filter.c: New file.
65190         * modules/uninorm/filter: New file.
65192 2009-02-21  Bruno Haible  <bruno@clisp.org>
65194         Tests for module 'uninorm/nfkc'.
65195         * tests/uninorm/test-nfkc.c: New file.
65196         * tests/uninorm/test-u8-nfkc.c: New file.
65197         * tests/uninorm/test-u16-nfkc.c: New file.
65198         * tests/uninorm/test-u32-nfkc.c: New file.
65199         * tests/uninorm/test-u32-nfkc-big.sh: New file.
65200         * tests/uninorm/test-u32-nfkc-big.c: New file.
65201         * modules/uninorm/nfkc-tests: New file.
65203         New module 'uninorm/nfkc'.
65204         * lib/uninorm/nfkc.c: New file.
65205         * modules/uninorm/nfkc: New file.
65207         Tests for module 'uninorm/nfkd'.
65208         * tests/uninorm/test-nfkd.c: New file.
65209         * tests/uninorm/test-u8-nfkd.c: New file.
65210         * tests/uninorm/test-u16-nfkd.c: New file.
65211         * tests/uninorm/test-u32-nfkd.c: New file.
65212         * tests/uninorm/test-u32-nfkd-big.sh: New file.
65213         * tests/uninorm/test-u32-nfkd-big.c: New file.
65214         * modules/uninorm/nfkd-tests: New file.
65216         New module 'uninorm/nfkd'.
65217         * lib/uninorm/nfkd.c: New file.
65218         * modules/uninorm/nfkd: New file.
65220         Tests for module 'uninorm/nfc'.
65221         * tests/uninorm/test-nfc.c: New file.
65222         * tests/uninorm/test-u8-nfc.c: New file.
65223         * tests/uninorm/test-u16-nfc.c: New file.
65224         * tests/uninorm/test-u32-nfc.c: New file.
65225         * tests/uninorm/test-u32-nfc-big.sh: New file.
65226         * tests/uninorm/test-u32-nfc-big.c: New file.
65227         * modules/uninorm/nfc-tests: New file.
65229         New module 'uninorm/nfc'.
65230         * lib/uninorm/nfc.c: New file.
65231         * modules/uninorm/nfc: New file.
65233         Tests for module 'uninorm/nfd'.
65234         * tests/uninorm/test-nfd.c: New file.
65235         * tests/uninorm/test-u8-nfd.c: New file.
65236         * tests/uninorm/test-u16-nfd.c: New file.
65237         * tests/uninorm/test-u32-nfd.c: New file.
65238         * tests/uninorm/test-u32-nfd-big.sh: New file.
65239         * tests/uninorm/test-u32-nfd-big.c: New file.
65240         * tests/uninorm/test-u32-normalize-big.h: New file.
65241         * tests/uninorm/test-u32-normalize-big.c: New file.
65242         * tests/uninorm/NormalizationTest.txt: New file, created from
65243         Unicode 5.1.0 NormalizationTest.txt.
65244         * modules/uninorm/nfd-tests: New file.
65246         New module 'uninorm/nfd'.
65247         * lib/uninorm/nfd.c: New file.
65248         * modules/uninorm/nfd: New file.
65250         New module 'uninorm/u32-normalize'.
65251         * lib/uninorm/u32-normalize.c: New file.
65252         * modules/uninorm/u32-normalize: New file.
65254         New module 'uninorm/u16-normalize'.
65255         * lib/uninorm/u16-normalize.c: New file.
65256         * modules/uninorm/u16-normalize: New file.
65258         New module 'uninorm/u8-normalize'.
65259         * lib/uninorm/u8-normalize.c: New file.
65260         * lib/uninorm/normalize-internal.h: New file.
65261         * lib/uninorm/u-normalize-internal.h: New file.
65262         * modules/uninorm/u8-normalize: New file.
65264         New module 'uninorm/decompose-internal'.
65265         * lib/uninorm/decompose-internal.c: New file.
65266         * modules/uninorm/decompose-internal: New file.
65268         Tests for module 'uninorm/composition'.
65269         * tests/uninorm/test-composition.c: New file.
65270         * modules/uninorm/composition-tests: New file.
65272         New module 'uninorm/composition'.
65273         * lib/uninorm/composition.c: New file.
65274         * lib/uninorm/composition-table.gperf: New file, generated by
65275         gen-uni-tables.
65276         * modules/uninorm/composition: New file.
65278         Tests for module 'uninorm/compat-decomposition'.
65279         * tests/uninorm/test-compat-decomposition.c: New file.
65280         * modules/uninorm/compat-decomposition-tests: New file.
65282         New module 'uninorm/compat-decomposition'.
65283         * lib/uninorm/decompose-internal.h: New file.
65284         * lib/uninorm/compat-decomposition.c: New file.
65285         * modules/uninorm/compat-decomposition: New file.
65287         Tests for module 'uninorm/canonical-decomposition'.
65288         * tests/uninorm/test-canonical-decomposition.c: New file.
65289         * modules/uninorm/canonical-decomposition-tests: New file.
65291         New module 'uninorm/canonical-decomposition'.
65292         * lib/uninorm/canonical-decomposition.c: New file.
65293         * modules/uninorm/canonical-decomposition: New file.
65295         Tests for module 'uninorm/decomposition'.
65296         * tests/uninorm/test-decomposition.c: New file.
65297         * modules/uninorm/decomposition-tests: New file.
65299         New module 'uninorm/decomposition'.
65300         * lib/uninorm/decomposition.c: New file.
65301         * modules/uninorm/decomposition: New file.
65303         New module 'uninorm/decomposition-table'.
65304         * lib/uninorm/decomposition-table.h: New file.
65305         * lib/uninorm/decomposition-table.c: New file.
65306         * lib/uninorm/decomposition-table1.h: New file, generated by
65307         gen-uni-tables.
65308         * lib/uninorm/decomposition-table2.h: New file, generated by
65309         gen-uni-tables.
65310         * modules/uninorm/decomposition-table: New file.
65312         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
65313         (UC_DECOMP_*): New enumeration items.
65314         (get_decomposition): New function.
65315         (struct decomp_table): New type.
65316         (output_decomposition, output_decomposition_tables): New functions.
65317         (unicode_composition_exclusions): New variable.
65318         (fill_composition_exclusions, debug_output_composition_tables): New
65319         functions.
65320         (main): Accept one more argument. Invoke fill_composition_exclusions.
65321         Output decomposition and composition tables.
65323         New module 'uninorm/base'.
65324         * lib/uninorm.h: New file.
65325         * lib/unictype.h: Update comment.
65326         * modules/uninorm/base: New file.
65328 2009-02-21  David Lutterkort  <lutter@redhat.com>
65330         Tests for module 'safe-alloc'.
65331         * tests/test-safe-alloc.c: New file.
65332         * modules/safe-alloc-tests: New file.
65334         New module 'safe-alloc'.
65335         * lib/safe-alloc.h: New file.
65336         * lib/safe-alloc.c: New file.
65337         * m4/safe-alloc.m4: New file.
65338         * modules/safe-alloc: New file.
65339         * doc/safe-alloc.texi: New file.
65340         * doc/gnulib.texi: Include it.
65341         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
65342         safe-alloc.
65344 2009-02-18  Bruno Haible  <bruno@clisp.org>
65346         Fix link error on non-glibc systems.
65347         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
65348         variable.
65349         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65351 2009-02-18  Jim Meyering  <meyering@redhat.com>
65353         fts: avoid used-uninitialized error due to recent change
65354         * lib/fts.c (fts_read): Guard uses of the new member,
65355         parent->fts_n_dirs_remaining, since it's not relevant for
65356         the parent of a directory specified on the command-line.
65358 2009-02-17  James Youngman  <jay@gnu.org>
65359             Bruno Haible  <bruno@clisp.org>
65361         * m4/include_next.m4: Reformulate comment.
65363 2009-02-16  Jim Meyering  <meyering@redhat.com>
65365         fts: add #if guards so that the fts_lgpl module still builds
65366         * lib/fts.c: Guard just-added hash-table-using parts with
65367         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
65368         Reported by Simon Josefsson.
65370 2009-02-15  Bruno Haible  <bruno@clisp.org>
65372         * modules/array-mergesort-tests: New file.
65373         * tests/test-array-mergesort.c: New file.
65375         New module 'array-mergesort'.
65376         * modules/array-mergesort: New file.
65377         * lib/array-mergesort.h: New file.
65379 2009-02-15  Bruno Haible  <bruno@clisp.org>
65381         Fix 2009-02-07 commit.
65382         * lib/gen-uni-tables.c (output_predicate, output_category,
65383         output_combclass, output_bidi_category, output_decimal_digit,
65384         output_digit, output_numeric, output_mirror, output_scripts,
65385         output_ident_category, output_simple_mapping): Fix format directives.
65386         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
65388 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
65390         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
65391         fixes are available from IBM.
65393 2009-02-13  Jim Meyering  <meyering@redhat.com>
65395         fts: arrange not to stat non-directories in more cases
65396         This makes GNU find (when it doesn't need to stat each file)
65397         *much* more efficient at traversing reiserfs file systems.
65398         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
65399         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
65400         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
65401         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
65402         (leaf_optimization_applies): New function.
65403         (LCO_hash, LCO_compare): New helper functions.
65404         (link_count_optimize_ok): New function.
65405         (fts_stat): Initialize new member (if dir).
65406         (fts_read): Decrement parent's fts_n_dirs_remaining count if
65407         we've just stat'ed a directory.  Skip the stat call when possible.
65408         ---
65409         Note this AFS-related exchange:
65410         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
65411         and note find's pioctl call in find/fstype.c.
65412         But that is necessary only if you want to enable the
65413         optimization for AFS, and for now, I don't.
65415         fts: move a function definition "up" (no semantic change)
65416         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
65417         "up" to precede upcoming use of a related function.
65419 2009-02-11  Jim Meyering  <meyering@redhat.com>
65421         fts: correct internal computation of nlinks (optimization-related)
65422         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
65423         whether the current entry is a directory, so don't test it.
65425 2009-02-10  Bruno Haible  <bruno@clisp.org>
65427         Tests for module 'uniwbrk/ulc-wordbreaks'.
65428         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
65429         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
65430         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
65432         Tests for module 'uniwbrk/u32-wordbreaks'.
65433         * modules/uniwbrk/u32-wordbreaks-tests: New file.
65434         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
65436         Tests for module 'uniwbrk/u16-wordbreaks'.
65437         * modules/uniwbrk/u16-wordbreaks-tests: New file.
65438         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
65440         Tests for module 'uniwbrk/u8-wordbreaks'.
65441         * modules/uniwbrk/u8-wordbreaks-tests: New file.
65442         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
65444 2009-02-10  Bruno Haible  <bruno@clisp.org>
65446         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
65447         property.
65448         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
65449         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
65450         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
65452 2009-02-10  Simon Josefsson  <simon@josefsson.org>
65454         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
65455         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
65457 2009-02-10  Bruno Haible  <bruno@clisp.org>
65459         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
65460         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
65461         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
65462         * lib/unilbrk/u8-possible-linebreaks.c: Update.
65463         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
65464         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
65466 2009-02-09  Simon Josefsson  <simon@josefsson.org>
65468         * lib/sockets.h (gl_fd_to_handle): New function.
65470         * tests/test-sockets.c: Call gl_fd_to_handle.
65472 2009-02-09  Bruno Haible  <bruno@clisp.org>
65474         * doc/havelib.texi: Document the conventions on bi-arch systems.
65476 2009-02-08  Bruno Haible  <bruno@clisp.org>
65478         Document the AC_LIB_LINKFLAGS macro.
65479         * doc/havelib.texi: New file, mostly written on 2005-05-24.
65480         * doc/gnulib.texi: Include it.
65482 2009-02-08  Bruno Haible  <bruno@clisp.org>
65484         Fix wrong order of sections, compared to TOC.
65485         * doc/gnulib.texi: Include relocatable-maint.texi after the
65486         "Regular expressions" node, not before.
65488 2009-02-08  Bruno Haible  <bruno@clisp.org>
65490         Tests for module 'unicase/totitle'.
65491         * modules/unicase/totitle-tests: New file.
65493         Tests for module 'unicase/tolower'.
65494         * modules/unicase/tolower-tests: New file.
65496         Tests for module 'unicase/toupper'.
65497         * modules/unicase/toupper-tests: New file.
65498         * tests/unicase/test-mapping-part1.h: New file.
65499         * tests/unicase/test-mapping-part2.h: New file.
65501         New module 'unicase/totitle'.
65502         * modules/unicase/totitle: New file.
65503         * lib/unicase/totitle.c: New file.
65505         New module 'unicase/tolower'.
65506         * modules/unicase/tolower: New file.
65507         * lib/unicase/tolower.c: New file.
65509         New module 'unicase/toupper'.
65510         * modules/unicase/toupper: New file.
65511         * lib/unicase/toupper.c: New file.
65512         * lib/unicase/simple-mapping.h: New file.
65514         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
65515         (mapping_table): New structure.
65516         (output_simple_mapping): New function.
65517         (main): Invoke output_simple_mapping_test and output_simple_mapping.
65518         * modules/gen-uni-tables (Description): Update.
65519         * lib/unicase/toupper.h: New file, automatically generated by
65520         gen-uni-tables.
65521         * lib/unicase/tolower.h: New file, automatically generated by
65522         gen-uni-tables.
65523         * lib/unicase/totitle.h: New file, automatically generated by
65524         gen-uni-tables.
65525         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
65526         gen-uni-tables.
65527         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
65528         gen-uni-tables.
65529         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
65530         gen-uni-tables.
65532         New module 'unicase/base'.
65533         * modules/unicase/base: New file.
65534         * lib/unicase.h: New file.
65536 2009-02-08  Bruno Haible  <bruno@clisp.org>
65538         New module 'uniwbrk/ulc-wordbreaks'.
65539         * modules/uniwbrk/ulc-wordbreaks: New file.
65540         * lib/uniwbrk/ulc-wordbreaks.c: New file.
65542         New module 'uniwbrk/u32-wordbreaks'.
65543         * modules/uniwbrk/u32-wordbreaks: New file.
65544         * lib/uniwbrk/u32-wordbreaks.c: New file.
65546         New module 'uniwbrk/u16-wordbreaks'.
65547         * modules/uniwbrk/u16-wordbreaks: New file.
65548         * lib/uniwbrk/u16-wordbreaks.c: New file.
65550         New module 'uniwbrk/u8-wordbreaks'.
65551         * modules/uniwbrk/u8-wordbreaks: New file.
65552         * lib/uniwbrk/u8-wordbreaks.c: New file.
65553         * lib/uniwbrk/u-wordbreaks.h: New file.
65555         New module 'uniwbrk/table'.
65556         * modules/uniwbrk/table: New file.
65557         * lib/uniwbrk/wbrktable.h: New file.
65558         * lib/uniwbrk/wbrktable.c: New file.
65560         New module 'uniwbrk/wordbreak-property'.
65561         * modules/uniwbrk/wordbreak-property: New file.
65562         * lib/uniwbrk/wordbreak-property.c: New file.
65564         * lib/gen-uni-tables.c (WBP_*): New enum items.
65565         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
65566         (unicode_org_wbp): New variable.
65567         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
65568         New functions.
65569         (wbp_table): New structure.
65570         (output_wbp, output_wbrk_tables): New functions.
65571         (main): Accept additional argument. Invoke fill_org_wbp,
65572         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
65573         output_wbrk_tables.
65574         * modules/gen-uni-tables (Description): Update.
65575         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
65576         gen-uni-tables.
65578         New module 'uniwbrk/base'.
65579         * modules/uniwbrk/base: New file.
65580         * lib/uniwbrk.h: New file.
65582 2009-02-08  Bruno Haible  <bruno@clisp.org>
65584         Update to Unicode 5.1.0.
65585         * lib/gen-uni-tables.c (is_property_alphabetic): Include
65586         U+2185..U+2188.
65587         (is_property_default_ignorable_code_point): Don't include characters
65588         of category Cc or Cs and not-a-characters.
65589         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
65590         U+0D79, U+109E, U+109F, U+A60C.
65591         * lib/unictype/bidi_of.h: Regenerated.
65592         * lib/unictype/blocks.h: Regenerated.
65593         * lib/unictype/categ_C.h: Regenerated.
65594         * lib/unictype/categ_Cf.h: Regenerated.
65595         * lib/unictype/categ_Cn.h: Regenerated.
65596         * lib/unictype/categ_L.h: Regenerated.
65597         * lib/unictype/categ_Ll.h: Regenerated.
65598         * lib/unictype/categ_Lm.h: Regenerated.
65599         * lib/unictype/categ_Lo.h: Regenerated.
65600         * lib/unictype/categ_Lu.h: Regenerated.
65601         * lib/unictype/categ_M.h: Regenerated.
65602         * lib/unictype/categ_Mc.h: Regenerated.
65603         * lib/unictype/categ_Me.h: Regenerated.
65604         * lib/unictype/categ_Mn.h: Regenerated.
65605         * lib/unictype/categ_N.h: Regenerated.
65606         * lib/unictype/categ_Nd.h: Regenerated.
65607         * lib/unictype/categ_Nl.h: Regenerated.
65608         * lib/unictype/categ_No.h: Regenerated.
65609         * lib/unictype/categ_P.h: Regenerated.
65610         * lib/unictype/categ_Pd.h: Regenerated.
65611         * lib/unictype/categ_Pe.h: Regenerated.
65612         * lib/unictype/categ_Pf.h: Regenerated.
65613         * lib/unictype/categ_Pi.h: Regenerated.
65614         * lib/unictype/categ_Po.h: Regenerated.
65615         * lib/unictype/categ_Ps.h: Regenerated.
65616         * lib/unictype/categ_S.h: Regenerated.
65617         * lib/unictype/categ_Sk.h: Regenerated.
65618         * lib/unictype/categ_Sm.h: Regenerated.
65619         * lib/unictype/categ_So.h: Regenerated.
65620         * lib/unictype/categ_of.h: Regenerated.
65621         * lib/unictype/combining.h: Regenerated.
65622         * lib/unictype/ctype_alnum.h: Regenerated.
65623         * lib/unictype/ctype_alpha.h: Regenerated.
65624         * lib/unictype/ctype_graph.h: Regenerated.
65625         * lib/unictype/ctype_lower.h: Regenerated.
65626         * lib/unictype/ctype_print.h: Regenerated.
65627         * lib/unictype/ctype_punct.h: Regenerated.
65628         * lib/unictype/ctype_upper.h: Regenerated.
65629         * lib/unictype/decdigit.h: Regenerated.
65630         * lib/unictype/digit.h: Regenerated.
65631         * lib/unictype/mirror.h: Regenerated.
65632         * lib/unictype/numeric.h: Regenerated.
65633         * lib/unictype/pr_alphabetic.h: Regenerated.
65634         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
65635         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
65636         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
65637         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
65638         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
65639         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
65640         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
65641         * lib/unictype/pr_combining.h: Regenerated.
65642         * lib/unictype/pr_dash.h: Regenerated.
65643         * lib/unictype/pr_decimal_digit.h: Regenerated.
65644         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
65645         * lib/unictype/pr_deprecated.h: Regenerated.
65646         * lib/unictype/pr_diacritic.h: Regenerated.
65647         * lib/unictype/pr_extender.h: Regenerated.
65648         * lib/unictype/pr_format_control.h: Regenerated.
65649         * lib/unictype/pr_grapheme_base.h: Regenerated.
65650         * lib/unictype/pr_grapheme_extend.h: Regenerated.
65651         * lib/unictype/pr_grapheme_link.h: Regenerated.
65652         * lib/unictype/pr_id_continue.h: Regenerated.
65653         * lib/unictype/pr_id_start.h: Regenerated.
65654         * lib/unictype/pr_ideographic.h: Regenerated.
65655         * lib/unictype/pr_ignorable_control.h: Regenerated.
65656         * lib/unictype/pr_lowercase.h: Regenerated.
65657         * lib/unictype/pr_math.h: Regenerated.
65658         * lib/unictype/pr_numeric.h: Regenerated.
65659         * lib/unictype/pr_other_alphabetic.h: Regenerated.
65660         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
65661         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
65662         * lib/unictype/pr_other_id_continue.h: Regenerated.
65663         * lib/unictype/pr_other_lowercase.h: Regenerated.
65664         * lib/unictype/pr_other_math.h: Regenerated.
65665         * lib/unictype/pr_punctuation.h: Regenerated.
65666         * lib/unictype/pr_sentence_terminal.h: Regenerated.
65667         * lib/unictype/pr_soft_dotted.h: Regenerated.
65668         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
65669         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
65670         * lib/unictype/pr_unified_ideograph.h: Regenerated.
65671         * lib/unictype/pr_uppercase.h: Regenerated.
65672         * lib/unictype/pr_xid_continue.h: Regenerated.
65673         * lib/unictype/pr_xid_start.h: Regenerated.
65674         * lib/unictype/pr_zero_width.h: Regenerated.
65675         * lib/unictype/scripts.h: Regenerated.
65676         * lib/unictype/scripts_byname.gperf: Regenerated.
65677         * lib/unictype/sy_java_ident.h: Regenerated.
65678         * lib/unilbrk/lbrkprop1.h: Regenerated.
65679         * lib/unilbrk/lbrkprop2.h: Regenerated.
65680         * tests/unictype/test-categ_C.c: Regenerated.
65681         * tests/unictype/test-categ_Cf.c: Regenerated.
65682         * tests/unictype/test-categ_Cn.c: Regenerated.
65683         * tests/unictype/test-categ_L.c: Regenerated.
65684         * tests/unictype/test-categ_Ll.c: Regenerated.
65685         * tests/unictype/test-categ_Lm.c: Regenerated.
65686         * tests/unictype/test-categ_Lo.c: Regenerated.
65687         * tests/unictype/test-categ_Lu.c: Regenerated.
65688         * tests/unictype/test-categ_M.c: Regenerated.
65689         * tests/unictype/test-categ_Mc.c: Regenerated.
65690         * tests/unictype/test-categ_Me.c: Regenerated.
65691         * tests/unictype/test-categ_Mn.c: Regenerated.
65692         * tests/unictype/test-categ_N.c: Regenerated.
65693         * tests/unictype/test-categ_Nd.c: Regenerated.
65694         * tests/unictype/test-categ_Nl.c: Regenerated.
65695         * tests/unictype/test-categ_No.c: Regenerated.
65696         * tests/unictype/test-categ_P.c: Regenerated.
65697         * tests/unictype/test-categ_Pd.c: Regenerated.
65698         * tests/unictype/test-categ_Pe.c: Regenerated.
65699         * tests/unictype/test-categ_Pf.c: Regenerated.
65700         * tests/unictype/test-categ_Pi.c: Regenerated.
65701         * tests/unictype/test-categ_Po.c: Regenerated.
65702         * tests/unictype/test-categ_Ps.c: Regenerated.
65703         * tests/unictype/test-categ_S.c: Regenerated.
65704         * tests/unictype/test-categ_Sk.c: Regenerated.
65705         * tests/unictype/test-categ_Sm.c: Regenerated.
65706         * tests/unictype/test-categ_So.c: Regenerated.
65707         * tests/unictype/test-ctype_alnum.c: Regenerated.
65708         * tests/unictype/test-ctype_alpha.c: Regenerated.
65709         * tests/unictype/test-ctype_graph.c: Regenerated.
65710         * tests/unictype/test-ctype_lower.c: Regenerated.
65711         * tests/unictype/test-ctype_print.c: Regenerated.
65712         * tests/unictype/test-ctype_punct.c: Regenerated.
65713         * tests/unictype/test-ctype_upper.c: Regenerated.
65714         * tests/unictype/test-decdigit.h: Regenerated.
65715         * tests/unictype/test-digit.h: Regenerated.
65716         * tests/unictype/test-numeric.h: Regenerated.
65717         * tests/unictype/test-pr_alphabetic.c: Regenerated.
65718         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
65719         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
65720         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
65721         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
65722         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
65723         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
65724         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
65725         * tests/unictype/test-pr_combining.c: Regenerated.
65726         * tests/unictype/test-pr_dash.c: Regenerated.
65727         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
65728         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
65729         * tests/unictype/test-pr_deprecated.c: Regenerated.
65730         * tests/unictype/test-pr_diacritic.c: Regenerated.
65731         * tests/unictype/test-pr_extender.c: Regenerated.
65732         * tests/unictype/test-pr_format_control.c: Regenerated.
65733         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
65734         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
65735         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
65736         * tests/unictype/test-pr_id_continue.c: Regenerated.
65737         * tests/unictype/test-pr_id_start.c: Regenerated.
65738         * tests/unictype/test-pr_ideographic.c: Regenerated.
65739         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
65740         * tests/unictype/test-pr_lowercase.c: Regenerated.
65741         * tests/unictype/test-pr_math.c: Regenerated.
65742         * tests/unictype/test-pr_numeric.c: Regenerated.
65743         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
65744         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
65745         Regenerated.
65746         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
65747         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
65748         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
65749         * tests/unictype/test-pr_other_math.c: Regenerated.
65750         * tests/unictype/test-pr_punctuation.c: Regenerated.
65751         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
65752         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
65753         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
65754         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
65755         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
65756         * tests/unictype/test-pr_uppercase.c: Regenerated.
65757         * tests/unictype/test-pr_xid_continue.c: Regenerated.
65758         * tests/unictype/test-pr_xid_start.c: Regenerated.
65759         * tests/unictype/test-pr_zero_width.c: Regenerated.
65761         Update to Unicode 5.1.0.
65762         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
65763         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
65764         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
65765         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
65766         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
65767         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
65768         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
65769         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
65770         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
65771         (nonspacing_table_ind): Update.
65772         * tests/uniwidth/test-uc_width2.sh: Update expected result.
65774         Update to Unicode 5.1.0.
65775         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
65776         code transform.
65777         * lib/uniname/uniname.c (unicode_character_name,
65778         unicode_name_character): Add the range 0x1Fxxx to the code transform.
65779         * lib/uniname/uninames.h: Regenerated.
65780         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
65782 2009-02-07  Bruno Haible  <bruno@clisp.org>
65784         Merge gen-ctype and gen-lbrk into a single program.
65785         * lib/gen-uni-tables.c: New file, incorporating
65786         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
65787         Add directory prefixes to the names of the generated files.
65788         * lib/unictype/gen-ctype.c: Remove file.
65789         * lib/unilbrk/gen-lbrk.c: Remove file.
65790         * modules/gen-uni-tables: New file.
65791         * modules/unictype/gen-ctype: Remove file.
65792         * modules/unilbrk/gen-lbrk: Remove file.
65794 2009-02-07  Bruno Haible  <bruno@clisp.org>
65796         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
65798         New module 'unistr/u32-strcoll'.
65799         * modules/unistr/u32-strcoll: New file.
65800         * lib/unistr/u32-strcoll.c: New file.
65802         New module 'unistr/u16-strcoll'.
65803         * modules/unistr/u16-strcoll: New file.
65804         * lib/unistr/u16-strcoll.c: New file.
65806         New module 'unistr/u8-strcoll'.
65807         * modules/unistr/u8-strcoll: New file.
65808         * lib/unistr/u8-strcoll.c: New file.
65809         * lib/unistr/u-strcoll.h: New file.
65811 2009-02-07  Bruno Haible  <bruno@clisp.org>
65813         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
65814         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
65815         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
65816         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
65817         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
65818         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
65820 2009-02-07  Bruno Haible  <bruno@clisp.org>
65822         Make 64-bit clean.
65823         * lib/unictype/gen-ctype.c (output_predicate, output_category,
65824         output_combclass, output_bidi_category, output_decimal_digit,
65825         output_digit, output_numeric, output_mirror, output_scripts,
65826         output_ident_category): Use proper width specifier in format strings.
65828 2009-02-07  Bruno Haible  <bruno@clisp.org>
65830         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
65831         failure behaviour.
65833 2009-02-07  Jim Meyering  <meyering@redhat.com>
65835         regex: avoid compilation failure with upcoming gcc-4.4
65836         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
65837         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
65838         "... error: integer overflow in preprocessor expression".
65840 2009-02-05  Ben Pfaff  <blp@gnu.org>
65842         Fix link errors on Windows when close module is used.
65843         * modules/close: Add $(LIB_CLOSE) to Link section.
65844         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
65845         $(LIB_CLOSE) on Windows.
65847 2009-02-05  Jim Meyering  <meyering@redhat.com>
65849         still avoid unused-parameter warnings, but do it cleanly
65850         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
65851         (get_fs_usage): Cast to void instead.
65852         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
65853         (dev_from_mount_options, read_file_system_list): Cast to void.
65854         Prompted by Bruno Haible.
65856 2009-02-04  Jim Meyering  <meyering@redhat.com>
65858         fsusage.c: correct copyright year
65859         * lib/fsusage.c: Reflect year in which the change is pushed into
65861         avoid misc. warnings
65862         * lib/fsusage.c (UNUSED_PARAM): Define.
65863         (get_fs_usage): Mark parameter "disk" as unused.
65864         * lib/getugroups.c (getgrent): Use "void" in prototype.
65865         * lib/mountlist.c: Mark unused parameters.
65866         (read_file_system_list): Declare a local with "const".
65867         * lib/nanosleep.c (getnow): Declare static.
65868         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
65870         dirfd: set errno upon failure
65871         * lib/dirfd.c: Include <errno.h>.
65872         Set errno to ENOTSUP when returning -1.
65873         * modules/dirfd (Depends-on): Add errno.
65874         Suggested by John Kodis <kodis@comcast.net>.
65876 2009-02-01  Bruno Haible  <bruno@clisp.org>
65878         Don't assume sizeof (long) >= sizeof (void *).
65879         * lib/memcmp.c: Include stdint.h.
65880         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
65881         srcp2 to 'const byte *'.
65882         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
65883         types to uintptr_t.
65884         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
65885         * modules/memcmp (Depends-on): Add stdint.
65886         Reported by Ozkan Sezer <sezeroz@gmail.com>.
65888 2009-01-30  Eric Blake  <ebb9@byu.net>
65890         fix more require-before-expand issues
65891         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
65892         expand, AC_PROG_AWK.
65893         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
65895 2009-01-28  Eric Blake  <ebb9@byu.net>
65897         version-etc: use consistent URL formatting
65898         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
65899         Improve formatting.  Use fputs for string without %.
65901 2009-01-28  Jim Meyering  <meyering@redhat.com>
65903         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
65904         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
65905         "underquoted definition of NAME" from autoconf-2.59.
65907 2009-01-28  Bruno Haible  <bruno@clisp.org>
65909         * doc/gnulib.texi: Add "Obsolete modules" to index.
65911 2009-01-28  Jim Meyering  <meyering@redhat.com>
65913         useless-if-before-free: recognize more variants
65914         * build-aux/useless-if-before-free: Also recognize e.g.,
65915         if (NULL != p) free (p);
65917 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
65919         test-getaddrinfo: skip (don't fail) this test when there's no network
65920         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
65921         on the presumption that it means you lack network access.
65923 2009-01-26  Jim Meyering  <meyering@redhat.com>
65925         fflush: avoid warnings on modern systems
65926         * lib/fflush.c (rpl_fflush): Move declarations of locals,
65927         pos and result, into scopes where they're used.
65929 2009-01-26  Eric Blake  <ebb9@byu.net>
65931         Silence warning reintroduced by recent extensions patch.
65932         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
65933         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
65934         autoconf.
65936         Backport improved autoconf semantics of AC_DEFUN_ONCE.
65937         * m4/00gnulib.m4: New file.
65938         * gnulib-tool (func_get_filelist): Always use it.
65939         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
65940         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
65942 2009-01-25  Bruno Haible  <bruno@clisp.org>
65944         Make test-quotearg work on MacOS X and AIX.
65945         * tests/test-quotearg.sh: New file.
65946         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
65947         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
65948         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
65949         include <libintl.h>.
65950         (fake_locale): Remove variable.
65951         (gettext, dgettext, dcgettext): Remove functions.
65952         (main): Instead of setting a fake locale, set a real locale. Call
65953         textdomain and bindtextdomain.
65954         * modules/quotearg-tests (Files): Add the new files.
65955         (Depends-on): Add gettext, setenv, unsetenv.
65956         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
65957         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
65958         Augment TESTS_ENVIRONMENT.
65960 2009-01-25  Bruno Haible  <bruno@clisp.org>
65962         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
65963         fr_FR.ISO8859-1 locale on MacOS X.
65964         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
65965         ja_JP.eucJP locale on MacOS X.
65966         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
65967         zh_CN.GB18030 locale on MacOS X.
65969 2009-01-25  Bruno Haible  <bruno@clisp.org>
65971         Avoid link errors on MacOS X 10.3.
65972         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
65973         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
65975 2009-01-25  Bruno Haible  <bruno@clisp.org>
65977         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
65978         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
65979         * modules/pipe (Files): Remove m4/posix_spawn.m4.
65980         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
65981         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
65982         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
65983         posix_spawnattr_init, posix_spawnattr_setsigmask,
65984         posix_spawnattr_setflags, posix_spawnattr_destroy.
65986         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
65987         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
65988         * modules/execute (Files): Remove m4/posix_spawn.m4.
65989         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
65990         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
65991         posix_spawnattr_init, posix_spawnattr_setsigmask,
65992         posix_spawnattr_setflags, posix_spawnattr_destroy.
65994 2009-01-25  Bruno Haible  <bruno@clisp.org>
65996         * lib/glthread/threadlib.c: Include <stdlib.h>.
65998 2009-01-25  Bruno Haible  <bruno@clisp.org>
66000         * lib/glthread/threadlib.c (dummy): New declaration.
66002 2009-01-25  Bruno Haible  <bruno@clisp.org>
66004         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
66005         multibyte characters also for the GB18030 encoding. Don't crash when
66006         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
66008 2009-01-25  Bruno Haible  <bruno@clisp.org>
66010         Avoid redefining 'struct random_data' on OSF/1 5.1.
66011         * lib/stdlib.in.h: Include <random.h> if it exists.
66012         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
66013         HAVE_RANDOM_H. Include <random.h> when testing whether
66014         'struct random_data' exists.
66015         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
66017 2009-01-25  Bruno Haible  <bruno@clisp.org>
66019         Don't install charset.alias on MacOS X >= 10.3.
66020         * lib/localcharset.c (DARWIN7): New macro.
66021         (get_charset_aliases): Hardcode the result for Darwin7.
66022         * modules/localcharset (install-exec-local): Don't install
66023         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
66025 2009-01-25  Bruno Haible  <bruno@clisp.org>
66027         Don't install charset.alias on mingw and Cygwin.
66028         * modules/localcharset (install-exec-local): Don't install
66029         charset.alias on mingw and Cygwin, if the file does not yet exist.
66030         The result for these platforms is hardcoded in localcharset.c.
66032 2009-01-25  Bruno Haible  <bruno@clisp.org>
66034         Make it possible again to use AC_GNU_SOURCE together with gnulib.
66035         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
66036         before requiring AC_USE_SYSTEM_EXTENSIONS.
66038 2009-01-25  Jim Meyering  <meyering@redhat.com>
66040         c-strtod: avoid warnings
66041         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
66042         "assignment discards qualifiers from pointer target type" warnings.
66044 2009-01-24  Bruno Haible  <bruno@clisp.org>
66046         Add support for non-UTF-8 locales on MacOS X.
66047         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
66048         canonical encodings. For Darwin 7 and newer, don't map traditional
66049         encodings to UTF-8.
66050         Reported by Vincent Lefevre <vincent@vinc17.org>
66051         at <http://savannah.gnu.org/bugs/?25235>.
66053 2009-01-24  Bruno Haible  <bruno@clisp.org>
66055         * doc/gnulib.texi (Obsolete modules): New section.
66056         Reported by Mike Frysinger <vapier@gentoo.org>.
66058 2009-01-24  Bruno Haible  <bruno@clisp.org>
66060         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
66061         (%.dvi): New rule.
66063 2009-01-24  Bruno Haible  <bruno@clisp.org>
66065         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
66066         Reported by Eric Blake.
66068 2009-01-24  Bruno Haible  <bruno@clisp.org>
66070         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
66071         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
66072         Reported by Gary V. Vaughan <gary@gnu.org>.
66074 2009-01-24  Bruno Haible  <bruno@clisp.org>
66076         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
66078 2009-01-23  Bruno Haible  <bruno@clisp.org>
66080         Make c-strtod, c-strtold usable in libraries.
66081         * lib/c-strtod.c: Include string.h instead of xalloc.h.
66082         (C_STRTOD): Call strdup instead of xstrdup.
66083         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
66084         * modules/c-strtold (Depends-on): Likewise.
66085         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
66086         * NEWS: Mention the change.
66087         Reported by Michael Gold <mgold@ncf.ca>.
66089 2009-01-23  Jim Meyering  <meyering@redhat.com>
66091         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
66092         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
66093         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
66095 2009-01-23  Simon Josefsson  <simon@josefsson.org>
66097         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
66098         GNU CoreUtils.
66099         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
66100         * modules/version-etc (Description): Update.
66102 2009-01-22  Bruno Haible  <bruno@clisp.org>
66104         Cache the C locale object.
66105         * lib/c-strtod.c (c_locale_cache): New variable.
66106         (c_locale): New function.
66107         (C_STRTOD): Use it, and don't call freelocale.
66108         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
66109         Suggested by Paolo Bonzini.
66111 2009-01-21  Bruno Haible  <bruno@clisp.org>
66113         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
66114         conditions other than overflow.
66116 2009-01-21  Bruno Haible  <bruno@clisp.org>
66118         * lib/c-strtod.c: Include errno.h.
66119         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
66120         value from STRTOD_L and STRTOD.
66122 2009-01-21  Bruno Haible  <bruno@clisp.org>
66123         and Jim Meyering  <meyering@redhat.com>
66125         nanosleep: skip configure test (fail it) for apple universal builds
66126         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
66127         universal builds, assume that nanosleep does not work.
66128         * modules/nanosleep (Depends-on): Add multiarch.
66130         mktime: skip configure test (fail it) for apple universal builds
66131         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
66132         universal builds, assume that mktime does not work.
66133         * modules/mktime (Depends-on): Add multiarch.
66135 2009-01-21  Eric Blake  <ebb9@byu.net>
66137         multiarch: avoid expand-before-require warning
66138         * modules/multiarch (configure.ac): Require, rather than expand,
66139         gl_MULTIARCH.
66140         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
66141         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
66142         enforce that all clients require it.  Partial reversion of
66143         2008-12-29 patch.
66145         error: avoid expand-before-require warning
66146         * modules/errno (configure.ac): Require, rather than expand,
66147         gl_HEADER_ERRNO_H.
66148         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
66149         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
66150         enforce that all clients require it.
66152         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
66153         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
66154         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
66155         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
66157 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
66159         Revert:
66160         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
66162         regex: do not depend on obsolete modules.
66163         * modules/regex: Remove memcmp and memmove.
66165 2009-01-20  Bruno Haible  <bruno@clisp.org>
66167         Make the 'link' module link on Windows NT 4.
66168         * lib/link.c (_WIN32_WINNT): Don't define.
66169         (CreateHardLinkFuncType): New type.
66170         (CreateHardLinkFunc, initialized): New variables.
66171         (initialize): New function.
66172         (link): Invoke CreateHardLink indirectly through the function pointer.
66174 2009-01-20  Bruno Haible  <bruno@clisp.org>
66176         Fix compilation failure on mingw.
66177         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
66179 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
66181         * doc/c-strtod.texi: Mention a couple of restrictions.
66183 2009-01-20  Jim Meyering  <meyering@redhat.com>
66185         gettimeofday: move more declarations out of functions
66186         * lib/gettimeofday.c: Move extern declarations of tzset and
66187         gmtime out of containing functions.  Prompted by Bruno Haible.
66189 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
66191         regex: do not depend on obsolete modules.
66192         * modules/regex: Remove memcmp and memmove.
66194 2009-01-19  Bruno Haible  <bruno@clisp.org>
66196         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
66197         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
66198         gl_BIGENDIAN, not AC_C_BIGENDIAN.
66199         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
66200         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
66202 2009-01-19  Bruno Haible  <bruno@clisp.org>
66204         * tests/test-link.c: Include <errno.h>.
66205         (main): Exit with code 77 when a hard link cannot be created due to
66206         the file system.
66207         * tests/test-link.sh: Skip test when a hard link cannot be created due
66208         to the file system.
66209         Suggested by Eric Blake.
66211 2009-01-19  Martin Lambers  <marlam@marlam.de>
66213         * modules/link-tests: New file.
66214         * tests/test-link.sh: New file.
66215         * tests/test-link.c: New file.
66217 2009-01-19  Eric Blake  <ebb9@byu.net>
66219         doc: mention another function added in cygwin 1.7.0
66220         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
66221         Another new function in cygwin 1.7.
66223 2009-01-19  Bruno Haible  <bruno@clisp.org>
66225         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
66226         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
66227         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
66228         gl_BIGENDIAN, not AC_C_BIGENDIAN.
66229         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
66230         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
66231         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
66232         * m4/md4.m4 (gl_MD4): Likewise.
66233         * m4/md5.m4 (gl_MD5): Likewise.
66234         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
66235         * m4/sha1.m4 (gl_SHA1): Likewise.
66236         * m4/sha256.m4 (gl_SHA256): Likewise.
66237         * m4/sha512.m4 (gl_SHA512): Likewise.
66239 2009-01-19  Bruno Haible  <bruno@clisp.org>
66241         * modules/uniname/uniname-tests (Depends-on): Add progname.
66242         * tests/uniname/test-uninames.c: Include progname.h.
66243         (main): Call set_program_name.
66245         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
66246         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
66247         (main): Call set_program_name.
66249         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
66250         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
66251         (main): Call set_program_name.
66253         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
66254         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
66255         (main): Call set_program_name.
66257         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
66258         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
66259         (main): Call set_program_name.
66261         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
66262         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
66263         (main): Call set_program_name.
66265         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
66266         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
66267         (main): Call set_program_name.
66269         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
66270         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
66271         (main): Call set_program_name.
66273         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
66274         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
66275         (main): Call set_program_name.
66277 2009-01-19  Eric Blake  <ebb9@byu.net>
66279         test-unistd: test previous patch
66280         * tests/test-unistd.c: Test *_FILENO macros.
66282         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
66283         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
66284         Guarantee a definition.
66285         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
66286         * modules/unistd-safer (Depends-on): Add dependency on unistd.
66287         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
66288         * lib/dup-safer.c (STDERR_FILENO): Likewise.
66289         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
66290         Likewise.
66291         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
66292         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
66293         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
66294         Likewise.
66295         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
66296         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
66297         (STDERR_FILENO): Likewise.
66298         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
66299         (STDERR_FILENO): Likewise.
66300         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
66301         (STDERR_FILENO): Likewise.
66302         Reported by Elbert Pol.
66304 2009-01-19  Eric Blake  <ebb9@byu.net>
66306         doc: mention more functions added in cygwin 1.7.0
66307         * doc/posix-functions/abort.texi (abort): Update wording related
66308         to cygwin.
66309         * doc/posix-functions/daylight.texi (daylight): Likewise.
66310         * doc/posix-functions/optarg.texi (optarg): Likewise.
66311         * doc/posix-functions/optarg.texi (opterr): Likewise.
66312         * doc/posix-functions/optarg.texi (optind): Likewise.
66313         * doc/posix-functions/optarg.texi (optopt): Likewise.
66314         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
66315         worked in 1.5.x, and was withdrawn in 1.7.
66316         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
66317         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
66318         cygwin versions.
66319         * doc/posix-functions/perror.texi (perror): Likewise.
66320         * doc/posix-functions/printf.texi (printf): Likewise.
66321         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
66322         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
66323         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
66324         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
66325         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
66326         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
66327         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
66328         Likewise.
66329         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
66330         Likewise.
66331         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
66332         this function.
66333         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
66334         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
66335         Likewise.
66336         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
66337         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
66338         * doc/posix-functions/confstr.texi (confstr): Likewise.
66339         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
66340         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
66341         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
66342         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
66343         * doc/posix-functions/fputws.texi (fputws): Likewise.
66344         * doc/posix-functions/fwide.texi (fwide): Likewise.
66345         * doc/posix-functions/getwc.texi (getwc): Likewise.
66346         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
66347         * doc/posix-functions/putwc.texi (putwc): Likewise.
66348         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
66349         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
66350         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
66351         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
66352         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
66353         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
66354         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
66355         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
66356         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
66357         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
66358         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
66360 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
66362         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
66363         * lib/ioctl.c: Include <sys/ioctl.h>.
66365 2009-01-19  Simon Josefsson  <simon@josefsson.org>
66367         * modules/getdate-tests (Depends-on): Add progname.
66368         * tests/test-getdate.c: Use progname module, to avoid link errors
66369         on non-glibc systems.
66371 2009-01-18  Simon Josefsson  <simon@josefsson.org>
66373         * modules/filenamecat-tests (Depends-on): Add progname.
66374         * modules/fstrcmp-tests (Depends-on): Likewise.
66376         * tests/test-filenamecat.c: Use progname module, to avoid link
66377         errors on non-glibc systems.
66378         * tests/test-fstrcmp.c: Likewise.
66380 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
66382         gettimeofday: avoid warning: nested extern declaration of 'localtime'
66383         * lib/gettimeofday.c: Move extern declaration out of function.
66385 2009-01-18  Bruno Haible  <bruno@clisp.org>
66387         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
66388         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
66389         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
66391 2009-01-18  Bruno Haible  <bruno@clisp.org>
66393         * lib/strftime.c (MEMPCPY): Remove unused macro.
66394         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
66396 2009-01-18  Martin Lambers  <marlam@marlam.de>
66398         New module 'link'.
66399         * lib/unistd.in.h (link): New declaration.
66400         * lib/link.c: New file.
66401         * m4/link.m4: New file.
66402         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
66403         HAVE_LINK.
66404         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
66405         * modules/link: New file.
66406         * doc/posix-functions/link.texi: Mention the new module.
66408 2009-01-18  Bruno Haible  <bruno@clisp.org>
66410         * tests/test-avltree_list.c (main): Call set_program_name.
66411         * tests/test-avltree_oset.c (main): Likewise.
66412         * tests/test-obstack-printf.c: Include progname.h.
66413         (main): Call set_program_name.
66414         * tests/test-quotearg.c: Include progname.h.
66415         (main): Call set_program_name.
66416         * tests/test-xmemdup0.c: Include progname.h.
66417         (main): Call set_program_name.
66419 2009-01-18  Bruno Haible  <bruno@clisp.org>
66421         New module 'alphasort'.
66422         * lib/dirent.in.h (alphasort): New declaration.
66423         * lib/alphasort.c: New file, from glibc with modifications.
66424         * m4/alphasort.m4: New file.
66425         * modules/alphasort: New file.
66426         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
66427         HAVE_ALPHASORT.
66428         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
66429         HAVE_ALPHASORT.
66430         * doc/posix-functions/alphasort.texi: Mention the new module and the
66431         portability problems.
66433 2009-01-18  Bruno Haible  <bruno@clisp.org>
66435         New module 'scandir'.
66436         * lib/dirent.in.h (scandir): New declaration.
66437         * lib/scandir.c: New file, from glibc with modifications.
66438         * m4/scandir.m4: New file.
66439         * modules/scandir: New file.
66440         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
66441         HAVE_SCANDIR.
66442         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
66443         HAVE_SCANDIR.
66444         * doc/posix-functions/scandir.texi: Mention the new module and the
66445         portability problems.
66447 2009-01-17  Bruno Haible  <bruno@clisp.org>
66449         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
66450         Update documentation.
66451         (func_remove_suffix): Escape all dots in the suffix. Update
66452         documentation.
66453         (func_filter_filelist): Update documentation.
66454         Reported by Ralf Wildenhues.
66456 2009-01-17  Bruno Haible  <bruno@clisp.org>
66458         * modules/dprintf-posix-tests: New file.
66459         * tests/test-dprintf-posix.sh: New file.
66460         * tests/test-dprintf-posix.c: New file.
66462         New modules 'dprintf', 'dprintf-posix'.
66463         * lib/stdio.in.h (dprintf): New declaration.
66464         * lib/dprintf.c: New file.
66465         * m4/dprintf.m4: New file.
66466         * m4/dprintf-posix.m4: New file.
66467         * modules/dprintf: New file.
66468         * modules/dprintf-posix: New file.
66469         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
66470         HAVE_DPRINTF, REPLACE_DPRINTF.
66471         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
66472         HAVE_DPRINTF, REPLACE_DPRINTF.
66473         * doc/posix-functions/dprintf.texi: Mention the new modules.
66475 2009-01-17  Bruno Haible  <bruno@clisp.org>
66477         * modules/vdprintf-posix-tests: New file.
66478         * tests/test-vdprintf-posix.sh: New file.
66479         * tests/test-vdprintf-posix.c: New file.
66481         New modules 'vdprintf', 'vdprintf-posix'.
66482         * lib/stdio.in.h (vdprintf): New declaration.
66483         * lib/vdprintf.c: New file.
66484         * m4/vdprintf.m4: New file.
66485         * m4/vdprintf-posix.m4: New file.
66486         * modules/vdprintf: New file.
66487         * modules/vdprintf-posix: New file.
66488         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
66489         HAVE_VDPRINTF, REPLACE_VDPRINTF.
66490         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
66491         HAVE_VDPRINTF, REPLACE_VDPRINTF.
66492         * doc/posix-functions/vdprintf.texi: Mention the new modules.
66494 2009-01-17  Bruno Haible  <bruno@clisp.org>
66496         Fix replacement of fopen on mingw.
66497         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
66498         mingw.
66500 2009-01-17  Bruno Haible  <bruno@clisp.org>
66502         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
66503         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
66505 2009-01-17  Bruno Haible  <bruno@clisp.org>
66507         Avoid test-fflush2.sh failure on mingw.
66508         * tests/test-fflush2.c: Include binary-io.h.
66509         (main): Put standard input into binary mode.
66510         * modules/fflush-tests (Depends-on): Add binary-io.
66512 2009-01-17  Bruno Haible  <bruno@clisp.org>
66514         * lib/wchar.in.h: In another particular situation, include only the
66515         system's <wchar.h> file.
66516         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
66517         Reported by Albert Chin-A-Young <china@thewrittenword.com>
66518         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
66520 2009-01-17  Bruno Haible  <bruno@clisp.org>
66522         Support for stripping executables in --enable-relocatable.
66523         * build-aux/install-reloc: Expect one more argument, or an environment
66524         variable RELOC_STRIP_PROG. If set, strip the destination program and
66525         its wrapper.
66526         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
66527         RELOC_STRIP_PROG.
66528         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
66529         to set RELOCATABLE_STRIP.
66530         * NEWS: Mention the new Makefile requirement.
66532 2009-01-17  Bruno Haible  <bruno@clisp.org>
66534         * build-aux/install-reloc: Remove debugging information left over by
66535         C compiler on MacOS X.
66537 2009-01-17  Bruno Haible  <bruno@clisp.org>
66539         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
66540         * lib/progreloc.c (find_executable): Fix type of pointer passed to
66541         _NSGetExecutablePath.
66543 2009-01-16  Jim Meyering  <meyering@redhat.com>
66545         strerror: avoid warnings about discarding "const"
66546         * lib/strerror.c (rpl_strerror): Instead of returning a const
66547         string from each and every "case", use a variable, and add a single
66548         cast after the switch.
66550 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
66552         * lib/arpa_inet.in.h: Add extern "C" block for C++.
66554 2009-01-16  Bruno Haible  <bruno@clisp.org>
66556         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
66557         array initializer syntax that also works in C++ mode.
66558         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
66560 2009-01-16  Jim Meyering  <meyering@redhat.com>
66562         poll: suppress a warning
66563         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
66564         to ignore "...unsigned expression < 0 is always false" warnings.
66566 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
66568         poll: remove declarations of unused variables
66569         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
66570         sockbuf and optlen.
66572 2009-01-15  Bruno Haible  <bruno@clisp.org>
66574         Make fflush-after-ungetc POSIX compliant on BSD systems.
66575         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
66576         (clear_ungetc_buffer): Implement also for other systems.
66577         (rpl_fflush): On glibc systems, invoke
66578         clear_ungetc_buffer_preserving_position. Otherwise, invoke
66579         clear_ungetc_buffer after fetching the stream's position, not before.
66581 2009-01-15  Bruno Haible  <bruno@clisp.org>
66583         Make fflush-after-ungetc POSIX compliant on glibc systems.
66584         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
66585         after ungetc.
66586         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
66587         (rpl_fflush): On glibc systems, simply call the system's fflush
66588         function after clearing the ungetc buffer.
66589         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
66590         Instead, lseek only to the end of file, then use the system's fseeko
66591         for the rest. On glibc systems, reset the EOF indicator bit.
66593 2009-01-15  Jim Meyering  <meyering@redhat.com>
66595         openmp.m4: revert quote-adding change, for portability to older autoconf
66596         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
66597         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
66598         Simon Josefsson noticed the problem when using autoconf-2.61.
66600 2009-01-15  Bruno Haible  <bruno@clisp.org>
66602         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
66603         * tests/test-fflush2.c (ASSERT): Always fail.
66604         (main): Add two tests for fflush() after ungetc(), taking into account
66605         the Austin Group's clarification.
66606         Suggested by Eric Blake.
66608 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
66610         mktime.m4: remove K&R-style function prototypes
66611         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
66612         for the Sun C++ compiler.
66614 2009-01-14  Bruno Haible  <bruno@clisp.org>
66616         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
66617         while including <wchar.h>.
66618         * lib/wchar.in.h: In two particular situations on HP-UX, include only
66619         the system's <wchar.h> file.
66620         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
66622 2009-01-14  Bruno Haible  <bruno@clisp.org>
66624         * m4/csharp.m4: Don't mention gettext on the serial number line.
66625         * m4/csharpexec.m4: Likewise.
66626         * m4/eaccess.m4: Likewise.
66627         * m4/javaexec.m4: Likewise.
66628         * m4/sig_atomic_t.m4: Likewise.
66629         * m4/tmpdir.m4: Likewise.
66630         * m4/intldir.m4: Bump gettext version.
66631         * m4/lib-ld.m4: Likewise.
66633 2009-01-14  Bruno Haible  <bruno@clisp.org>
66635         * lib/progname.c (set_program_name): Add more comments.
66636         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
66638 2009-01-14  Simon Josefsson  <simon@josefsson.org>
66640         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
66641         were sys/stat.h does not define it.
66643 2009-01-14  Jim Meyering  <meyering@redhat.com>
66645         many *.m4 files: improve m4 quoting
66646         99% of this change was performed by running the following commands:
66647         git ls-files | grep '\.m4$' | xargs perl -pi \
66648           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
66649           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
66650           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
66651           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
66652         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
66653         The remainder were to add Copyright dates, increment serial numbers,
66654         undo some changes in comments, exclude m4/intl.m4, and add quotes
66655         around the "1" in ",1" where the unusual spacing prohibited the
66656         above regexps from doing the job.  For more details, see
66657         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
66658         * m4/acl.m4: Modified.
66659         * m4/afs.m4: Likewise.
66660         * m4/alloca.m4: Likewise.
66661         * m4/argp.m4: Likewise.
66662         * m4/argz.m4: Likewise.
66663         * m4/atexit.m4: Likewise.
66664         * m4/bison-i18n.m4: Likewise.
66665         * m4/bison.m4: Likewise.
66666         * m4/byteswap.m4: Likewise.
66667         * m4/c-stack.m4: Likewise.
66668         * m4/c-strtod.m4: Likewise.
66669         * m4/calloc.m4: Likewise.
66670         * m4/canonicalize-lgpl.m4: Likewise.
66671         * m4/chown.m4: Likewise.
66672         * m4/clock_time.m4: Likewise.
66673         * m4/codeset.m4: Likewise.
66674         * m4/copy-file.m4: Likewise.
66675         * m4/csharp.m4: Likewise.
66676         * m4/csharpcomp.m4: Likewise.
66677         * m4/csharpexec.m4: Likewise.
66678         * m4/d-ino.m4: Likewise.
66679         * m4/d-type.m4: Likewise.
66680         * m4/dirfd.m4: Likewise.
66681         * m4/double-slash-root.m4: Likewise.
66682         * m4/eaccess.m4: Likewise.
66683         * m4/eealloc.m4: Likewise.
66684         * m4/environ.m4: Likewise.
66685         * m4/errno_h.m4: Likewise.
66686         * m4/euidaccess.m4: Likewise.
66687         * m4/execute.m4: Likewise.
66688         * m4/fatal-signal.m4: Likewise.
66689         * m4/fchdir.m4: Likewise.
66690         * m4/fcntl_h.m4: Likewise.
66691         * m4/fileblocks.m4: Likewise.
66692         * m4/filenamecat.m4: Likewise.
66693         * m4/findprog.m4: Likewise.
66694         * m4/flexmember.m4: Likewise.
66695         * m4/fnmatch.m4: Likewise.
66696         * m4/fopen.m4: Likewise.
66697         * m4/fpending.m4: Likewise.
66698         * m4/fprintf-posix.m4: Likewise.
66699         * m4/free.m4: Likewise.
66700         * m4/frexp.m4: Likewise.
66701         * m4/frexpl.m4: Likewise.
66702         * m4/fsusage.m4: Likewise.
66703         * m4/ftruncate.m4: Likewise.
66704         * m4/gc-camellia.m4: Likewise.
66705         * m4/gc-random.m4: Likewise.
66706         * m4/gc.m4: Likewise.
66707         * m4/getaddrinfo.m4: Likewise.
66708         * m4/getcwd-abort-bug.m4: Likewise.
66709         * m4/getcwd-path-max.m4: Likewise.
66710         * m4/getdate.m4: Likewise.
66711         * m4/getdomainname.m4: Likewise.
66712         * m4/getgroups.m4: Likewise.
66713         * m4/gethostname.m4: Likewise.
66714         * m4/gethrxtime.m4: Likewise.
66715         * m4/getline.m4: Likewise.
66716         * m4/getloadavg.m4: Likewise.
66717         * m4/getndelim2.m4: Likewise.
66718         * m4/getpass.m4: Likewise.
66719         * m4/gettext.m4: Likewise.
66720         * m4/gettime.m4: Likewise.
66721         * m4/gettimeofday.m4: Likewise.
66722         * m4/gnulib-common.m4: Likewise.
66723         * m4/group-member.m4: Likewise.
66724         * m4/host-os.m4: Likewise.
66725         * m4/iconv.m4: Likewise.
66726         * m4/iconv_open.m4: Likewise.
66727         * m4/inet_ntop.m4: Likewise.
66728         * m4/inet_pton.m4: Likewise.
66729         * m4/inline.m4: Likewise.
66730         * m4/intldir.m4: Likewise.
66731         * m4/intlmacosx.m4: Likewise.
66732         * m4/intmax.m4: Likewise.
66733         * m4/intmax_t.m4: Likewise.
66734         * m4/inttypes.m4: Likewise.
66735         * m4/inttypes_h.m4: Likewise.
66736         * m4/inttypes-pri.m4: Likewise.
66737         * m4/isapipe.m4: Likewise.
66738         * m4/isnand.m4: Likewise.
66739         * m4/isnanf.m4: Likewise.
66740         * m4/isnanl.m4: Likewise.
66741         * m4/javacomp.m4: Likewise.
66742         * m4/javaexec.m4: Likewise.
66743         * m4/jm-winsz1.m4: Likewise.
66744         * m4/jm-winsz2.m4: Likewise.
66745         * m4/lchown.m4: Likewise.
66746         * m4/lcmessage.m4: Likewise.
66747         * m4/ldexpl.m4: Likewise.
66748         * m4/lib-ld.m4: Likewise.
66749         * m4/lib-link.m4: Likewise.
66750         * m4/libsigsegv.m4: Likewise.
66751         * m4/link-follow.m4: Likewise.
66752         * m4/localcharset.m4: Likewise.
66753         * m4/locale-fr.m4: Likewise.
66754         * m4/locale-ja.m4: Likewise.
66755         * m4/locale-tr.m4: Likewise.
66756         * m4/locale-zh.m4: Likewise.
66757         * m4/lock.m4: Likewise.
66758         * m4/longlong.m4: Likewise.
66759         * m4/ls-mntd-fs.m4: Likewise.
66760         * m4/lstat.m4: Likewise.
66761         * m4/malloc.m4: Likewise.
66762         * m4/mathl.m4: Likewise.
66763         * m4/mbrtowc.m4: Likewise.
66764         * m4/mbstate_t.m4: Likewise.
66765         * m4/mbswidth.m4: Likewise.
66766         * m4/memchr.m4: Likewise.
66767         * m4/memcmp.m4: Likewise.
66768         * m4/memcpy.m4: Likewise.
66769         * m4/memmem.m4: Likewise.
66770         * m4/memmove.m4: Likewise.
66771         * m4/mempcpy.m4: Likewise.
66772         * m4/memrchr.m4: Likewise.
66773         * m4/memset.m4: Likewise.
66774         * m4/minmax.m4: Likewise.
66775         * m4/mkdir-slash.m4: Likewise.
66776         * m4/mkdtemp.m4: Likewise.
66777         * m4/mktime.m4: Likewise.
66778         * m4/mmap-anon.m4: Likewise.
66779         * m4/mountlist.m4: Likewise.
66780         * m4/nanosleep.m4: Likewise.
66781         * m4/nls.m4: Likewise.
66782         * m4/nocrash.m4: Likewise.
66783         * m4/open.m4: Likewise.
66784         * m4/openat.m4: Likewise.
66785         * m4/openmp.m4: Likewise.
66786         * m4/pathmax.m4: Likewise.
66787         * m4/perl.m4: Likewise.
66788         * m4/physmem.m4: Likewise.
66789         * m4/pipe.m4: Likewise.
66790         * m4/po.m4: Likewise.
66791         * m4/poll.m4: Likewise.
66792         * m4/posixtm.m4: Likewise.
66793         * m4/posixver.m4: Likewise.
66794         * m4/printf-frexp.m4: Likewise.
66795         * m4/printf-frexpl.m4: Likewise.
66796         * m4/printf-posix.m4: Likewise.
66797         * m4/printf-posix-rpl.m4: Likewise.
66798         * m4/printf.m4: Likewise.
66799         * m4/progtest.m4: Likewise.
66800         * m4/putenv.m4: Likewise.
66801         * m4/readline.m4: Likewise.
66802         * m4/readlink.m4: Likewise.
66803         * m4/readutmp.m4: Likewise.
66804         * m4/realloc.m4: Likewise.
66805         * m4/regex.m4: Likewise.
66806         * m4/relocatable.m4: Likewise.
66807         * m4/relocatable-lib.m4: Likewise.
66808         * m4/rename-dest-slash.m4: Likewise.
66809         * m4/rename.m4: Likewise.
66810         * m4/rmdir-errno.m4: Likewise.
66811         * m4/rmdir.m4: Likewise.
66812         * m4/roundf.m4: Likewise.
66813         * m4/roundl.m4: Likewise.
66814         * m4/rpmatch.m4: Likewise.
66815         * m4/save-cwd.m4: Likewise.
66816         * m4/selinux-selinux-h.m4: Likewise.
66817         * m4/setenv.m4: Likewise.
66818         * m4/settime.m4: Likewise.
66819         * m4/sig2str.m4: Likewise.
66820         * m4/sig_atomic_t.m4: Likewise.
66821         * m4/signalblocking.m4: Likewise.
66822         * m4/signbit.m4: Likewise.
66823         * m4/sigpipe.m4: Likewise.
66824         * m4/sockets.m4: Likewise.
66825         * m4/sockpfaf.m4: Likewise.
66826         * m4/st_dm_mode.m4: Likewise.
66827         * m4/stat-time.m4: Likewise.
66828         * m4/stdbool.m4: Likewise.
66829         * m4/stdint.m4: Likewise.
66830         * m4/stdint_h.m4: Likewise.
66831         * m4/stpcpy.m4: Likewise.
66832         * m4/stpncpy.m4: Likewise.
66833         * m4/strcase.m4: Likewise.
66834         * m4/strchrnul.m4: Likewise.
66835         * m4/strcspn.m4: Likewise.
66836         * m4/strdup.m4: Likewise.
66837         * m4/strftime.m4: Likewise.
66838         * m4/strndup.m4: Likewise.
66839         * m4/strnlen.m4: Likewise.
66840         * m4/strpbrk.m4: Likewise.
66841         * m4/strptime.m4: Likewise.
66842         * m4/strsep.m4: Likewise.
66843         * m4/strtod.m4: Likewise.
66844         * m4/strtoimax.m4: Likewise.
66845         * m4/strtok_r.m4: Likewise.
66846         * m4/strtol.m4: Likewise.
66847         * m4/strtoll.m4: Likewise.
66848         * m4/strtoul.m4: Likewise.
66849         * m4/strtoull.m4: Likewise.
66850         * m4/strtoumax.m4: Likewise.
66851         * m4/strverscmp.m4: Likewise.
66852         * m4/threadlib.m4: Likewise.
66853         * m4/timegm.m4: Likewise.
66854         * m4/tm_gmtoff.m4: Likewise.
66855         * m4/tmpdir.m4: Likewise.
66856         * m4/tmpfile.m4: Likewise.
66857         * m4/tzset.m4: Likewise.
66858         * m4/uintmax_t.m4: Likewise.
66859         * m4/unlinkdir.m4: Likewise.
66860         * m4/unlocked-io.m4: Likewise.
66861         * m4/uptime.m4: Likewise.
66862         * m4/userspec.m4: Likewise.
66863         * m4/utimbuf.m4: Likewise.
66864         * m4/utime.m4: Likewise.
66865         * m4/utimes-null.m4: Likewise.
66866         * m4/utimes.m4: Likewise.
66867         * m4/vararrays.m4: Likewise.
66868         * m4/vasnprintf.m4: Likewise.
66869         * m4/vfprintf-posix.m4: Likewise.
66870         * m4/vprintf-posix.m4: Likewise.
66871         * m4/wait-process.m4: Likewise.
66872         * m4/wchar_t.m4: Likewise.
66873         * m4/wint_t.m4: Likewise.
66874         * m4/write-any-file.m4: Likewise.
66875         * m4/yield.m4: Likewise.
66877 2009-01-13  Bruno Haible  <bruno@clisp.org>
66879         Avoid test-copy-file.sh failures when ACL support insufficient.
66880         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
66881         TESTS_ENVIRONMENT.
66882         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
66883         Reported by Jim Meyering.
66885 2009-01-13  Bruno Haible  <bruno@clisp.org>
66887         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
66888         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
66889         * modules/unistdio/u8-printf-parse (Files): Likewise.
66890         * modules/unistdio/u32-printf-parse (Files): Likewise.
66891         * modules/unistdio/ulc-printf-parse (Files): Likewise.
66893 2009-01-13  Simon Josefsson  <simon@josefsson.org>
66895         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
66896         and m4/inttypes_h.m4 too.
66898 2009-01-12  Eric Blake  <ebb9@byu.net>
66900         tests: IRIX 6.2 cc can't compile -0.0 into .data
66901         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
66902         rather than at compile-time.
66903         * tests/test-floorl.c (minus_zero): Likewise.
66904         * tests/test-frexpl.c (minus_zero): Likewise.
66905         * tests/test-isnan.c (minus_zerol): Likewise.
66906         * tests/test-isnanl.h (minus_zero): Likewise.
66907         * tests/test-ldexpl.c (minus_zero): Likewise.
66908         * tests/test-roundl.c (minus_zero): Likewise.
66909         * tests/test-signbit.c (minus_zerol): Likewise.
66910         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
66911         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
66912         * tests/test-truncl.c (minus_zero): Likewise.
66913         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
66914         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
66915         Reported by Tom G. Christensen and Nelson H. F. Beebe.
66917 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
66919         regex: fix glibc bug 9697
66920         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
66921         handling.
66923 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
66925         regex: fix glibc bug 697
66926         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
66927         being NULL also if there are no backreferences.
66929 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
66931         regex: merge glibc changes
66932         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
66933         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
66934         re_string_skip_chars, re_string_reconstruct): Likewise.
66935         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
66937 2009-01-07  Jim Meyering  <meyering@redhat.com>
66939         poll: filter through cppi
66940         * lib/poll.c: Indent cpp directives to reflect nesting.
66942 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
66944         poll: don't return uninitialized
66945         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
66947 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
66949         avoid compile failure on AIX 6.1
66950         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
66951         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
66953 2009-01-04  Jim Meyering  <meyering@redhat.com>
66955         remove duplicate inclusion of <stdio.h>
66956         * tests/test-fprintf-posix.c: Likewise.
66957         * tests/test-printf-posix.c: Likewise.
66958         * tests/test-snprintf-posix.c: Likewise.
66959         * tests/test-sprintf-posix.c: Likewise.
66960         * tests/test-vasprintf-posix.c: Likewise.
66961         * tests/test-vfprintf-posix.c: Likewise.
66962         * tests/test-vprintf-posix.c: Likewise.
66963         * tests/test-vsnprintf-posix.c: Likewise.
66964         * tests/test-vsprintf-posix.c: Likewise.
66966 2009-01-03  Jim Meyering  <meyering@redhat.com>
66968         gnulib-tool: fix sed-based filtering
66969         * gnulib-tool (func_filter_filelist): Remove extra backslash
66970         in sed_fff_filter definition.
66972 2009-01-02  Jim Meyering  <meyering@redhat.com>
66974         strftime: avoid compilation failure on Solaris 2.6
66975         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
66976         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
66977         Don't #define mbrlen or mbsinit, since now they're guaranteed to
66978         be available.  Reported by Tom G. Christensen.  Details in
66979         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
66981 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66982             Bruno Haible  <bruno@clisp.org>
66984         Speed up gnulib-tool by doing more string processing through shell
66985         built-ins.
66986         * gnulib-tool (fast_func_append): New variable.
66987         (func_remove_prefix, func_remove_suffix): New functions.
66988         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
66989         (func_filter_filelist): New function.
66990         (func_get_dependencies): Use func_remove_suffix instead of sed.
66991         (func_get_automake_snippet): Use func_filter_filelist instead of a
66992         subshell and sed invocation.
66994 2009-01-01  Bruno Haible  <bruno@clisp.org>
66996         Fix a security bug.
66997         * gnulib-tool (func_import, import, update): Don't allow the characters
66998         '"', '$', '`', '\' in macro arguments that become part of commands that
66999         are evaluated.
67001 2009-01-01  Bruno Haible  <bruno@clisp.org>
67003         * gnulib-tool (func_reset_sigpipe): Add more comments.
67005 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67007         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
67008         func_emit_tests_Makefile_am, func_import): Abort loops early if we
67009         already know the answer.
67011 2009-01-01  Jim Meyering  <meyering@redhat.com>
67013         * lib/version-etc.c (version_etc_va): Update copyright year.
67015 2008-12-30  Bruno Haible  <bruno@clisp.org>
67017         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
67018         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
67019         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
67021 2008-12-29  Eric Blake  <ebb9@byu.net>
67023         multiarch: avoid autoconf AC_REQUIRE bug
67024         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
67025         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
67026         2.63 and older.
67027         Reported by Bruno Haible, and analyzed in
67028         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
67030 2008-12-29  Bruno Haible  <bruno@clisp.org>
67032         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
67033         files in subdirectories correctly.
67034         Reported by Ralf Wildenhues.
67036 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67038         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
67039         rather than 'join FILE -', for Solaris join.
67041 2008-12-29  Bruno Haible  <bruno@clisp.org>
67043         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
67044         quoting.
67045         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
67046         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
67047         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
67048         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
67049         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
67050         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
67051         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
67052         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
67053         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
67054         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
67055         * m4/nls.m4 (AM_NLS): Likewise.
67056         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
67057         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
67058         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
67059         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
67060         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
67061         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
67062         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
67063         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
67064         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
67065         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
67066         * m4/xsize.m4 (gl_XSIZE): Likewise.
67067         Suggested by Jim Meyering.
67069 2008-11-17  Bruce Korb  <bkorb@gnu.org>
67071         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
67072         * lib/parse-duration.c: use a switch instead of cascading if's.
67074 2008-12-29  Eric Blake  <ebb9@byu.net>
67076         wchar.h: supply WEOF on Irix 5.3
67077         * lib/wchar.in.h (wint_t): Also supply WEOF.
67078         * lib/wctype.in.h (wint_t): Likewise.
67079         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
67080         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
67081         Reported by Tom G. Christensen.
67083 2008-12-26  Bruno Haible  <bruno@clisp.org>
67085         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
67086         i486, i586, i686.
67088 2008-12-26  Bruno Haible  <bruno@clisp.org>
67090         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
67092 2008-12-26  Bruno Haible  <bruno@clisp.org>
67094         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
67095         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
67096         not __STDC_CONSTANT_MACROS.
67097         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
67099 2008-12-25  Bruno Haible  <bruno@clisp.org>
67101         Add support for universal builds to vasnprintf.
67102         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
67103         universal builds, guess no.
67104         * modules/vasnprintf-posix (Depends-on): Add multiarch.
67105         * modules/vasprintf-posix (Depends-on): Likewise.
67106         * modules/fprintf-posix (Depends-on): Likewise.
67107         * modules/vfprintf-posix (Depends-on): Likewise.
67108         * modules/snprintf-posix (Depends-on): Likewise.
67109         * modules/vsnprintf-posix (Depends-on): Likewise.
67110         * modules/sprintf-posix (Depends-on): Likewise.
67111         * modules/vsprintf-posix (Depends-on): Likewise.
67112         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
67113         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
67114         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
67115         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
67116         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
67117         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
67118         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
67120         Add support for universal builds to <inttypes.h>.
67121         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
67122         _SCNu64_PREFIX): In Apple
67123         universal builds, define directly, using _LP64.
67124         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
67125         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
67126         * modules/inttypes (Depends-on): Add multiarch.
67127         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
67129         Add support for universal builds to <stdint.h>.
67130         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
67131         universal builds, define directly, using _LP64.
67132         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
67133         Apple universal builds, don't test for the size and suffix of ptrdiff_t
67134         and size_t.
67135         * modules/stdint (Depends-on): Add multiarch.
67136         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
67138         New module 'multiarch'.
67139         * modules/multiarch: New file.
67140         * m4/multiarch.m4: New file.
67142 2008-12-25  Bruno Haible  <bruno@clisp.org>
67144         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
67146 2008-12-25  Bruno Haible  <bruno@clisp.org>
67148         * modules/btowc (License): Relicense under LGPLv2+.
67149         * modules/mbsinit (License): Likewise.
67150         * modules/mbrtowc (License): Likewise.
67151         * modules/wcrtomb (License): Likewise.
67152         * modules/streq (License): Likewise.
67153         Reported by David Lutterkort <lutter@redhat.com>.
67155 2008-12-23  Bruno Haible  <bruno@clisp.org>
67157         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
67159 2008-12-23  Bruno Haible  <bruno@clisp.org>
67161         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
67162         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
67163         GETADDRINFO_LIB, not in LIBS.
67164         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
67165         * modules/canon-host (Link): Likewise.
67166         * NEWS: Mention the change.
67167         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
67168         GETADDRINFO_LIB.
67170 2008-12-22  Bruno Haible  <bruno@clisp.org>
67172         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
67173         * doc/posix-functions/iswalpha_l.texi: Likewise.
67174         * doc/posix-functions/iswblank_l.texi: Likewise.
67175         * doc/posix-functions/iswcntrl_l.texi: Likewise.
67176         * doc/posix-functions/iswctype_l.texi: Likewise.
67177         * doc/posix-functions/iswdigit_l.texi: Likewise.
67178         * doc/posix-functions/iswgraph_l.texi: Likewise.
67179         * doc/posix-functions/iswlower_l.texi: Likewise.
67180         * doc/posix-functions/iswprint_l.texi: Likewise.
67181         * doc/posix-functions/iswpunct_l.texi: Likewise.
67182         * doc/posix-functions/iswspace_l.texi: Likewise.
67183         * doc/posix-functions/iswupper_l.texi: Likewise.
67184         * doc/posix-functions/iswxdigit_l.texi: Likewise.
67185         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
67186         * doc/posix-functions/open_wmemstream.texi: Likewise.
67187         * doc/posix-functions/swscanf.texi: Likewise.
67188         * doc/posix-functions/towctrans_l.texi: Likewise.
67189         * doc/posix-functions/towlower.texi: Likewise.
67190         * doc/posix-functions/towlower_l.texi: Likewise.
67191         * doc/posix-functions/towupper.texi: Likewise.
67192         * doc/posix-functions/towupper_l.texi: Likewise.
67193         * doc/posix-functions/vfwprintf.texi: Likewise.
67194         * doc/posix-functions/vfwscanf.texi: Likewise.
67195         * doc/posix-functions/vswscanf.texi: Likewise.
67196         * doc/posix-functions/vwprintf.texi: Likewise.
67197         * doc/posix-functions/vwscanf.texi: Likewise.
67198         * doc/posix-functions/wcpcpy.texi: Likewise.
67199         * doc/posix-functions/wcpncpy.texi: Likewise.
67200         * doc/posix-functions/wcscasecmp.texi: Likewise.
67201         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
67202         * doc/posix-functions/wcscoll_l.texi: Likewise.
67203         * doc/posix-functions/wcsdup.texi: Likewise.
67204         * doc/posix-functions/wcsncasecmp.texi: Likewise.
67205         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
67206         * doc/posix-functions/wcsnlen.texi: Likewise.
67207         * doc/posix-functions/wcsnrtombs.texi: Likewise.
67208         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
67209         * doc/posix-functions/wctrans_l.texi: Likewise.
67210         * doc/posix-functions/wctype_l.texi: Likewise.
67211         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
67212         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
67213         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
67214         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
67215         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
67216         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
67217         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
67218         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
67219         * doc/glibc-functions/wcschrnul.texi: Likewise.
67220         * doc/glibc-functions/wcsftime_l.texi: Likewise.
67221         * doc/glibc-functions/wcstod_l.texi: Likewise.
67222         * doc/glibc-functions/wcstof_l.texi: Likewise.
67223         * doc/glibc-functions/wcstol_l.texi: Likewise.
67224         * doc/glibc-functions/wcstold_l.texi: Likewise.
67225         * doc/glibc-functions/wcstoll_l.texi: Likewise.
67226         * doc/glibc-functions/wcstoq.texi: Likewise.
67227         * doc/glibc-functions/wcstoul_l.texi: Likewise.
67228         * doc/glibc-functions/wcstoull_l.texi: Likewise.
67229         * doc/glibc-functions/wcstouq.texi: Likewise.
67230         * doc/glibc-functions/wmempcpy.texi: Likewise.
67232 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
67233             Eric Blake  <ebb9@byu.net>
67234             Paolo Bonzini  <bonzini@gnu.org>
67235             Bruno Haible  <bruno@clisp.org>
67237         Make c-stack work on Haiku.
67238         * lib/c-stack.c (SA_ONSTACK): Define fallback.
67239         (c_stack_action): Use SA_ONSTACK flag.
67241 2008-12-22  Bruno Haible  <bruno@clisp.org>
67243         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
67245 2008-12-22  Bruno Haible  <bruno@clisp.org>
67247         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
67248         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
67249         being overridden.
67250         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
67251         New macros.
67252         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
67253         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
67254         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
67255         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
67257 2008-12-22  Bruno Haible  <bruno@clisp.org>
67259         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
67260         from test code.
67262 2008-12-22  Eric Blake  <ebb9@byu.net>
67264         Avoid gcc warnings on cygwin.
67265         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
67266         Avoid unused variable.
67267         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
67268         Likewise.
67270 2008-12-22  Bruno Haible  <bruno@clisp.org>
67272         Remove HAVE_MBRTOWC conditionals.
67273         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
67274         (mbscasecmp): Assume mbrtowc function.
67275         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
67276         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
67277         * lib/mbschr.c: Include mbuiter.h unconditionally.
67278         (mbschr): Assume mbrtowc function.
67279         * lib/mbscspn.c: Include mbuiter.h unconditionally.
67280         (mbscspn): Assume mbrtowc function.
67281         * lib/mbslen.c: Include mbuiter.h unconditionally.
67282         (mbslen): Assume mbrtowc function.
67283         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
67284         (mbsncasecmp): Assume mbrtowc function.
67285         * lib/mbsnlen.c: Include mbiter.h unconditionally.
67286         (mbsnlen): Assume mbrtowc function.
67287         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
67288         (mbspbrk): Assume mbrtowc function.
67289         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
67290         (mbspcasecmp): Assume mbrtowc function.
67291         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
67292         (mbsrchr): Assume mbrtowc function.
67293         * lib/mbssep.c: Include mbuiter.h unconditionally.
67294         (mbssep): Assume mbrtowc function.
67295         * lib/mbsspn.c: Include mbuiter.h unconditionally.
67296         (mbsspn): Assume mbrtowc function.
67297         * lib/mbsstr.c: Include mbuiter.h unconditionally.
67298         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
67299         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
67300         (mbstok_r): Assume mbrtowc function.
67301         * lib/propername.c: Include mbuiter.h unconditionally.
67302         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
67303         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
67304         (trim2): Assume mbrtowc function.
67305         * lib/mbswidth.c (mbsinit): Remove fallback definition.
67306         (mbsnwidth): Assume mbrtowc function.
67307         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
67308         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
67309         fallback definitions.
67310         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
67312 2008-12-22  Bruno Haible  <bruno@clisp.org>
67314         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
67316 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
67318         * modules/regex: Request emulations for the mb*/wc* functions we need.
67319         * m4/regex.m4: Don't look for those functions here.
67320         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
67322 2008-12-22  Bruno Haible  <bruno@clisp.org>
67324         * modules/fnmatch (Depends-on): Remove duplicated dependency.
67326 2008-12-21  Bruno Haible  <bruno@clisp.org>
67328         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
67329         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
67330         (Include): Remove conditionalization.
67331         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
67332         (Include): Remove conditionalization.
67333         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
67334         (Include): Remove conditionalization.
67335         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
67336         * m4/mbfile.m4 (gl_MBFILE): Likewise.
67337         * NEWS: Mention the change.
67338         Reported by Alan Hourihane <alanh@fairlite.co.uk>
67339         via Sergey Poznyakoff <gray@gnu.org.ua>.
67341 2008-12-21  Bruno Haible  <bruno@clisp.org>
67343         * MODULES.html.sh (Extended multibyte and wide character utilities
67344         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
67345         wcrtomb, wcsrtombs.
67346         (Support for systems lacking POSIX:2008): Add accept, bind, close,
67347         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
67348         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
67349         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
67351 2008-12-21  Bruno Haible  <bruno@clisp.org>
67353         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
67355 2008-12-21  Bruno Haible  <bruno@clisp.org>
67357         * modules/wcsnrtombs-tests: New file.
67358         * tests/test-wcsnrtombs1.sh: New file.
67359         * tests/test-wcsnrtombs2.sh: New file.
67360         * tests/test-wcsnrtombs3.sh: New file.
67361         * tests/test-wcsnrtombs4.sh: New file.
67362         * tests/test-wcsnrtombs.c: New file.
67364         New module 'wcsnrtombs'.
67365         * lib/wchar.in.h (wcsnrtombs): New declaration.
67366         * lib/wcsnrtombs.c: New file.
67367         * lib/wcsrtombs-state.c: New file.
67368         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
67369         (internal_state): Remove variable.
67370         * m4/wcsnrtombs.m4: New file.
67371         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
67372         compilation units.
67373         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
67374         HAVE_WCSNRTOMBS.
67375         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
67376         HAVE_WCSNRTOMBS.
67377         * modules/wcsnrtombs: New file.
67378         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
67379         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
67381 2008-12-21  Bruno Haible  <bruno@clisp.org>
67383         * modules/wcsrtombs-tests: New file.
67384         * tests/test-wcsrtombs1.sh: New file.
67385         * tests/test-wcsrtombs2.sh: New file.
67386         * tests/test-wcsrtombs3.sh: New file.
67387         * tests/test-wcsrtombs4.sh: New file.
67388         * tests/test-wcsrtombs.c: New file.
67390         New module 'wcsrtombs'.
67391         * lib/wchar.in.h (wcsrtombs): New declaration.
67392         * lib/wcsrtombs.c: New file.
67393         * m4/wcsrtombs.m4: New file.
67394         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
67395         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
67396         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
67397         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
67398         * modules/wcsrtombs: New file.
67399         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
67400         bugs.
67402 2008-12-21  Bruno Haible  <bruno@clisp.org>
67404         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
67405         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
67406         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
67407         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
67408         if not correct.
67409         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
67410         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
67411         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
67412         m4/locale-zh.m4, m4/codeset.m4.
67413         * doc/posix-functions/wcrtomb.texi: Document the bug.
67415 2008-12-21  Bruno Haible  <bruno@clisp.org>
67417         Work around a btowc() bug on IRIX 6.5.
67418         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
67419         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
67420         REPLACE_WTOBC if not.
67421         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
67422         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
67423         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
67425 2008-12-21  Bruno Haible  <bruno@clisp.org>
67427         * modules/wcrtomb-tests: New file.
67428         * tests/test-wcrtomb.sh: New file.
67429         * tests/test-wcrtomb.c: New file.
67431         New module 'wcrtomb'.
67432         * lib/wchar.in.h (wcrtomb): New declaration.
67433         * lib/wcrtomb.c: New file.
67434         * m4/wcrtomb.m4: New file.
67435         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
67436         HAVE_WCRTOMB.
67437         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
67438         HAVE_WCRTOMB.
67439         * modules/wcrtomb: New file.
67440         * doc/posix-functions/wcrtomb.texi: Mention the new module.
67442 2008-12-21  Bruno Haible  <bruno@clisp.org>
67444         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
67445         * modules/mbsrtowcs (Files): Likewise.
67446         * modules/wctob (Files): Likewise.
67447         * modules/c-strcase-tests (Files): Likewise.
67448         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
67449         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
67450         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
67451         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
67452         * modules/vasnprintf-posix-tests (Files): Likewise.
67454 2008-12-21  William Pursell  <bill.pursell@gmail.com>
67456         gitlog-to-changelog: pass all command-line arguments to git-log
67457         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
67458         it is sometimes convenient to filter the commits in various ways.
67459         gitlog-to-changelog only allows --since to specify a start date,
67460         but git-log itself supports many other filtering mechanisms.
67461         At the moment, I want to filter by branch name.  Rather than
67462         adding a --branch option to gitlog-to-changelog, it seems more
67463         flexible to simply pass all options directly to git-log and let
67464         git do the work.  Notice that this effectively makes --since a
67465         redundant option for gitlog-to-changelog, but removing it would
67466         require current usage to change since calls would then require
67467         an additional '--'.
67469 2008-12-21  Bruno Haible  <bruno@clisp.org>
67471         * modules/mbsnrtowcs-tests: New file.
67472         * tests/test-mbsnrtowcs1.sh: New file.
67473         * tests/test-mbsnrtowcs2.sh: New file.
67474         * tests/test-mbsnrtowcs3.sh: New file.
67475         * tests/test-mbsnrtowcs4.sh: New file.
67476         * tests/test-mbsnrtowcs.c: New file.
67478         New module 'mbsnrtowcs'.
67479         * lib/wchar.in.h (mbsnrtowcs): New declaration.
67480         * lib/mbsnrtowcs.c: New file.
67481         * lib/mbsrtowcs-state.c: New file.
67482         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
67483         (internal_state): Remove variable.
67484         * m4/mbsnrtowcs.m4: New file.
67485         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
67486         compilation units.
67487         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
67488         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
67489         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
67490         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
67491         * modules/mbsnrtowcs: New file.
67492         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
67493         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
67494         portability problem.
67496 2008-12-21  Bruno Haible  <bruno@clisp.org>
67498         Work around mbsrtowcs bug.
67499         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
67500         (gl_FUNC_MBSRTOWCS): Invoke it.
67501         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
67502         m4/locale-zh.m4.
67503         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
67505 2008-12-21  Bruno Haible  <bruno@clisp.org>
67507         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
67509 2008-12-21  Bruno Haible  <bruno@clisp.org>
67511         Update doc for AIX.
67512         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
67513         16-bit wchar_t type.
67514         * doc/posix-functions/btowc.texi: Likewise.
67515         * doc/posix-functions/fgetwc.texi: Likewise.
67516         * doc/posix-functions/fgetws.texi: Likewise.
67517         * doc/posix-functions/fputwc.texi: Likewise.
67518         * doc/posix-functions/fputws.texi: Likewise.
67519         * doc/posix-functions/fwide.texi: Likewise.
67520         * doc/posix-functions/fwprintf.texi: Likewise.
67521         * doc/posix-functions/fwscanf.texi: Likewise.
67522         * doc/posix-functions/getwchar.texi: Likewise.
67523         * doc/posix-functions/getwc.texi: Likewise.
67524         * doc/posix-functions/iswalnum.texi: Likewise.
67525         * doc/posix-functions/iswalpha.texi: Likewise.
67526         * doc/posix-functions/iswblank.texi: Likewise.
67527         * doc/posix-functions/iswcntrl.texi: Likewise.
67528         * doc/posix-functions/iswctype.texi: Likewise.
67529         * doc/posix-functions/iswdigit.texi: Likewise.
67530         * doc/posix-functions/iswgraph.texi: Likewise.
67531         * doc/posix-functions/iswlower.texi: Likewise.
67532         * doc/posix-functions/iswprint.texi: Likewise.
67533         * doc/posix-functions/iswpunct.texi: Likewise.
67534         * doc/posix-functions/iswspace.texi: Likewise.
67535         * doc/posix-functions/iswupper.texi: Likewise.
67536         * doc/posix-functions/iswxdigit.texi: Likewise.
67537         * doc/posix-functions/mbrtowc.texi: Likewise.
67538         * doc/posix-functions/mbsrtowcs.texi: Likewise.
67539         * doc/posix-functions/mbstowcs.texi: Likewise.
67540         * doc/posix-functions/mbtowc.texi: Likewise.
67541         * doc/posix-functions/putwchar.texi: Likewise.
67542         * doc/posix-functions/putwc.texi: Likewise.
67543         * doc/posix-functions/swprintf.texi: Likewise.
67544         * doc/posix-functions/tolower.texi: Likewise.
67545         * doc/posix-functions/toupper.texi: Likewise.
67546         * doc/posix-functions/towctrans.texi: Likewise.
67547         * doc/posix-functions/ungetwc.texi: Likewise.
67548         * doc/posix-functions/vswprintf.texi: Likewise.
67549         * doc/posix-functions/wcrtomb.texi: Likewise.
67550         * doc/posix-functions/wcscat.texi: Likewise.
67551         * doc/posix-functions/wcschr.texi: Likewise.
67552         * doc/posix-functions/wcscmp.texi: Likewise.
67553         * doc/posix-functions/wcscoll.texi: Likewise.
67554         * doc/posix-functions/wcscpy.texi: Likewise.
67555         * doc/posix-functions/wcscspn.texi: Likewise.
67556         * doc/posix-functions/wcsftime.texi: Likewise.
67557         * doc/posix-functions/wcslen.texi: Likewise.
67558         * doc/posix-functions/wcsncat.texi: Likewise.
67559         * doc/posix-functions/wcsncmp.texi: Likewise.
67560         * doc/posix-functions/wcsncpy.texi: Likewise.
67561         * doc/posix-functions/wcspbrk.texi: Likewise.
67562         * doc/posix-functions/wcsrchr.texi: Likewise.
67563         * doc/posix-functions/wcsrtombs.texi: Likewise.
67564         * doc/posix-functions/wcsspn.texi: Likewise.
67565         * doc/posix-functions/wcsstr.texi: Likewise.
67566         * doc/posix-functions/wcstod.texi: Likewise.
67567         * doc/posix-functions/wcstof.texi: Likewise.
67568         * doc/posix-functions/wcstoimax.texi: Likewise.
67569         * doc/posix-functions/wcstok.texi: Likewise.
67570         * doc/posix-functions/wcstold.texi: Likewise.
67571         * doc/posix-functions/wcstoll.texi: Likewise.
67572         * doc/posix-functions/wcstol.texi: Likewise.
67573         * doc/posix-functions/wcstombs.texi: Likewise.
67574         * doc/posix-functions/wcstoull.texi: Likewise.
67575         * doc/posix-functions/wcstoul.texi: Likewise.
67576         * doc/posix-functions/wcstoumax.texi: Likewise.
67577         * doc/posix-functions/wcswidth.texi: Likewise.
67578         * doc/posix-functions/wcsxfrm.texi: Likewise.
67579         * doc/posix-functions/wctob.texi: Likewise.
67580         * doc/posix-functions/wctomb.texi: Likewise.
67581         * doc/posix-functions/wctrans.texi: Likewise.
67582         * doc/posix-functions/wctype.texi: Likewise.
67583         * doc/posix-functions/wcwidth.texi: Likewise.
67584         * doc/posix-functions/wmemchr.texi: Likewise.
67585         * doc/posix-functions/wmemcmp.texi: Likewise.
67586         * doc/posix-functions/wmemcpy.texi: Likewise.
67587         * doc/posix-functions/wmemmove.texi: Likewise.
67588         * doc/posix-functions/wmemset.texi: Likewise.
67589         * doc/posix-functions/wprintf.texi: Likewise.
67590         * doc/posix-functions/wscanf.texi: Likewise.
67592 2008-12-21  Bruno Haible  <bruno@clisp.org>
67594         Update doc for HP-UX 11.11.
67595         * doc/posix-functions/btowc.texi: Clarify that the function is missing
67596         in HP-UX version 11.00, not in all versions of HP-UX 11.
67597         * doc/posix-functions/fwide.texi: Likewise.
67598         * doc/posix-functions/fwprintf.texi: Likewise.
67599         * doc/posix-functions/fwscanf.texi: Likewise.
67600         * doc/posix-functions/inet_ntop.texi: Likewise.
67601         * doc/posix-functions/inet_pton.texi: Likewise.
67602         * doc/posix-functions/mbrlen.texi: Likewise.
67603         * doc/posix-functions/mbrtowc.texi: Likewise.
67604         * doc/posix-functions/mbsinit.texi: Likewise.
67605         * doc/posix-functions/mbsrtowcs.texi: Likewise.
67606         * doc/posix-functions/swprintf.texi: Likewise.
67607         * doc/posix-functions/swscanf.texi: Likewise.
67608         * doc/posix-functions/towctrans.texi: Likewise.
67609         * doc/posix-functions/vfwprintf.texi: Likewise.
67610         * doc/posix-functions/vswprintf.texi: Likewise.
67611         * doc/posix-functions/vwprintf.texi: Likewise.
67612         * doc/posix-functions/wcrtomb.texi: Likewise.
67613         * doc/posix-functions/wcsrtombs.texi: Likewise.
67614         * doc/posix-functions/wcsstr.texi: Likewise.
67615         * doc/posix-functions/wctob.texi: Likewise.
67616         * doc/posix-functions/wctrans.texi: Likewise.
67617         * doc/posix-functions/wmemchr.texi: Likewise.
67618         * doc/posix-functions/wmemcmp.texi: Likewise.
67619         * doc/posix-functions/wmemcpy.texi: Likewise.
67620         * doc/posix-functions/wmemmove.texi: Likewise.
67621         * doc/posix-functions/wmemset.texi: Likewise.
67622         * doc/posix-functions/wprintf.texi: Likewise.
67623         * doc/posix-functions/wscanf.texi: Likewise.
67625 2008-12-21  Bruno Haible  <bruno@clisp.org>
67627         Work around a portability problem.
67628         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
67629         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
67631 2008-12-20  Bruno Haible  <bruno@clisp.org>
67633         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
67634         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
67635         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
67636         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
67637         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
67639         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
67640         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
67641         set.
67642         (GNULIB_defined_mbstate_t): New macro.
67643         (mbsinit): Redefine if REPLACE_MBSINIT is set.
67644         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
67645         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
67646         reuses the system's mbrtowc function but works around the bugs.
67647         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
67648         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
67649         macros.
67650         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
67651         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
67652         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
67653         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
67654         REPLACE_MBSINIT if mbsinit needs to be overridden.
67655         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
67656         REPLACE_MBSINIT, REPLACE_MBRTOWC.
67657         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
67658         REPLACE_MBSINIT, REPLACE_MBRTOWC.
67659         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
67660         m4/locale-zh.m4.
67661         (Depends): Add mbsinit.
67662         * modules/mbsinit (Depends): Add mbrtowc.
67663         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
67665 2008-12-20  Bruno Haible  <bruno@clisp.org>
67667         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
67668         so that there are no conversion errors on AIX.
67669         * tests/test-mbsrtowcs.c (main): LIkewise.
67671 2008-12-20  Bruno Haible  <bruno@clisp.org>
67673         Work around wctob bug on Solaris <= 9.
67674         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
67675         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
67676         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
67677         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
67678         * modules/wctob (Files): Add m4/locale-fr.m4.
67679         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
67681 2008-12-20  Bruno Haible  <bruno@clisp.org>
67683         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
67684         /dev/null.
67685         * tests/test-select-in.sh: Likewise.
67686         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
67688 2008-12-20  Bruno Haible  <bruno@clisp.org>
67690         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
67691         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
67692         Cygwin 1.5.x.
67694 2008-12-20  Bruno Haible  <bruno@clisp.org>
67696         Ensure mbstate_t is defined on HP-UX 11.11.
67697         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
67698         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
67699         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
67700         AC_USE_SYSTEM_EXTENSIONS.
67701         * modules/fnmatch (Depends-on): Add extensions.
67702         * modules/mbrlen (Depends-on): Likewise.
67703         * modules/mbrtowc (Depends-on): Likewise.
67704         * modules/mbsinit (Depends-on): Likewise.
67705         * modules/mbsrtowcs (Depends-on): Likewise.
67706         * modules/mbswidth (Depends-on): Likewise.
67707         * modules/quotearg (Depends-on): Likewise.
67708         * modules/strftime (Depends-on): Likewise.
67710 2008-12-20  Bruno Haible  <bruno@clisp.org>
67712         Ensure wctob is declared on IRIX 6.5.
67713         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
67714         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
67715         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
67716         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
67717         of HAVE_WCTOB.
67718         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
67719         HAVE_WCTOB.
67720         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
67722 2008-12-19  Bruno Haible  <bruno@clisp.org>
67724         * modules/mbsrtowcs-tests: New file.
67725         * tests/test-mbsrtowcs1.sh: New file.
67726         * tests/test-mbsrtowcs2.sh: New file.
67727         * tests/test-mbsrtowcs3.sh: New file.
67728         * tests/test-mbsrtowcs4.sh: New file.
67729         * tests/test-mbsrtowcs.c: New file.
67731         New module 'mbsrtowcs'.
67732         * lib/wchar.in.h (mbsrtowcs): New declaration.
67733         * lib/mbsrtowcs.c: New file.
67734         * m4/mbsrtowcs.m4: New file.
67735         * modules/mbsrtowcs: New file.
67736         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
67737         HAVE_MBSRTOWCS.
67738         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
67739         HAVE_MBSRTOWCS.
67740         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
67742 2008-12-19  Bruno Haible  <bruno@clisp.org>
67744         New module 'mbrlen'.
67745         * lib/wchar.in.h (mbrlen): New declaration.
67746         * lib/mbrlen.c: New file.
67747         * m4/mbrlen.m4: New file.
67748         * modules/mbrlen: New file.
67749         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
67750         HAVE_MBRLEN.
67751         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
67752         HAVE_MBRLEN.
67753         * doc/posix-functions/mbrlen.texi: Document the new module.
67755 2008-12-19  Bruno Haible  <bruno@clisp.org>
67757         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
67758         * modules/mbrtowc (Depends-on): Add verify.
67759         Suggested by Paul Eggert.
67761 2008-12-18  Bruno Haible  <bruno@clisp.org>
67763         * modules/mbsinit-tests: New file.
67764         * tests/test-mbsinit.sh: New file.
67765         * tests/test-mbsinit.c: New file.
67767 2008-12-18  Bruno Haible  <bruno@clisp.org>
67769         * modules/mbrtowc-tests: New file.
67770         * tests/test-mbrtowc1.sh: New file.
67771         * tests/test-mbrtowc2.sh: New file.
67772         * tests/test-mbrtowc3.sh: New file.
67773         * tests/test-mbrtowc4.sh: New file.
67774         * tests/test-mbrtowc.c: New file.
67776         New module 'mbrtowc'.
67777         * lib/wchar.in.h (mbstate_t): Override when the system does not have
67778         mbsinit and mbrtowc.
67779         (mbrtowc): New declaration.
67780         * lib/mbrtowc.c: New file.
67781         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
67782         * modules/mbrtowc: New file.
67783         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
67784         HAVE_MBRTOWC.
67785         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
67786         HAVE_MBRTOWC.
67787         * doc/posix-functions/mbrtowc.texi: Document the new module.
67789 2008-12-18  Bruno Haible  <bruno@clisp.org>
67791         New module 'wctob'.
67792         * lib/wchar.in.h (wctob): New declaration.
67793         * lib/wctob.c: New file.
67794         * m4/wctob.m4: New file.
67795         * modules/wctob: New file.
67796         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
67797         HAVE_WCTOB.
67798         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
67799         * doc/posix-functions/wctob.texi: Document the new module.
67801 2008-12-18  Bruno Haible  <bruno@clisp.org>
67803         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
67804         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
67806 2008-12-18  Simon Josefsson  <simon@josefsson.org>
67808         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
67809         G. Christensen" <tgc@jupiterrise.com>.
67811         * lib/flock.c: Need to include errno.h.  Reported by "Tom
67812         G. Christensen" <tgc@jupiterrise.com>.
67814         * lib/flock.c: Need to include string.h.  Reported by "Tom
67815         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
67816         <ebb9@byu.net>.
67818 2008-12-18  Bruno Haible  <bruno@clisp.org>
67820         * m4/locale-ja.m4: New file, from GNU gettext.
67822 2008-12-17  Bruno Haible  <bruno@clisp.org>
67824         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
67825         Suggested by Eric Blake.
67827 2008-12-17  Bruno Haible  <bruno@clisp.org>
67829         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
67831 2008-12-17  Bruno Haible  <bruno@clisp.org>
67833         * lib/mbsinit.c: Include verify.h. Verify an assumption.
67834         * modules/mbsinit (Depends-on): Add verify.
67835         Suggested by Paul Eggert.
67837 2008-12-17  Bruno Haible  <bruno@clisp.org>
67839         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
67840         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
67841         gl_FUNC_MBRTOWC.
67842         * m4/mbiter.m4 (gl_MBITER): LIkewise.
67843         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
67844         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
67845         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
67846         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
67847         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
67848         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
67849         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
67850         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
67851         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
67852         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
67853         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
67854         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
67855         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
67856         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
67857         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67858         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
67859         * modules/trim (configure.ac): Likewise.
67861 2008-12-17  Bruno Haible  <bruno@clisp.org>
67863         * modules/btowc-tests: New file.
67864         * tests/test-btowc1.sh: New file.
67865         * tests/test-btowc2.sh: New file.
67866         * tests/test-btowc.c: New file.
67868         New module 'btowc'.
67869         * lib/wchar.in.h (btowc): New declaration.
67870         * lib/btowc.c: New file.
67871         * m4/btowc.m4: New file.
67872         * modules/btowc: New file.
67873         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
67874         HAVE_BTOWC.
67875         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
67876         * doc/posix-functions/btowc.texi: Document the new module.
67878 2008-12-17  Bruno Haible  <bruno@clisp.org>
67880         New module 'mbsinit'.
67881         * lib/wchar.in.h (mbsinit): New declaration.
67882         * lib/mbsinit.c: New file.
67883         * m4/mbsinit.m4: New file.
67884         * modules/mbsinit: New file.
67885         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
67886         HAVE_MBSINIT.
67887         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
67888         HAVE_MBSINIT.
67889         * doc/posix-functions/mbsinit.texi: Document the new module.
67891 2008-12-16  Bruno Haible  <bruno@clisp.org>
67893         * lib/unistd.in.h: Add comment.
67894         * tests/test-environ.c: Don't include <stdlib.h>.
67896 2008-12-16  Bruno Haible  <bruno@clisp.org>
67898         * lib/parse-duration.h (parse_duration): Document return value
67899         convention.
67900         * lib/parse-duration.c: Include specification header first. Add
67901         comments.
67902         (_): Remove macro.
67903         (parse_year_month_day, parse_hour_minute_second): Move side effects
67904         outside of strchr call.
67905         (parse_non_iso8601): Move side effects outside of isspace call.
67906         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
67907         call.
67909 2008-12-16  Bruno Haible  <bruno@clisp.org>
67911         * tests/test-parse-duration.sh: Produce no output when the test
67912         succeeds.
67914 2008-12-16  Bruno Haible  <bruno@clisp.org>
67916         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
67917         expressions.
67919 2008-12-15  Bruno Haible  <bruno@clisp.org>
67921         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
67922         * doc/glibc-functions/flistxattr.texi: Likewise.
67923         * doc/glibc-functions/fopencookie.texi: Likewise.
67924         * doc/glibc-functions/fremovexattr.texi: Likewise.
67925         * doc/glibc-functions/fsetxattr.texi: Likewise.
67926         * doc/glibc-functions/getxattr.texi: Likewise.
67927         * doc/glibc-functions/lgetxattr.texi: Likewise.
67928         * doc/glibc-functions/listxattr.texi: Likewise.
67929         * doc/glibc-functions/llistxattr.texi: Likewise.
67930         * doc/glibc-functions/lremovexattr.texi: Likewise.
67931         * doc/glibc-functions/lsetxattr.texi: Likewise.
67932         * doc/glibc-functions/removexattr.texi: Likewise.
67933         * doc/glibc-functions/setxattr.texi: Likewise.
67934         * doc/posix-functions/open_memstream.texi: Likewise.
67936 2008-12-15  Eric Blake  <ebb9@byu.net>
67938         Update doc for cygwin 1.7.
67939         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
67940         functions.
67941         * doc/posix-functions/fchmodat.texi: Likewise.
67942         * doc/posix-functions/fchownat.texi: Likewise.
67943         * doc/posix-functions/fdopendir.texi: Likewise.
67944         * doc/posix-functions/fmemopen.texi: Likewise.
67945         * doc/posix-functions/freeaddrinfo.texi: Likewise.
67946         * doc/posix-functions/fstatat.texi: Likewise.
67947         * doc/posix-functions/futimens.texi: Likewise.
67948         * doc/posix-functions/gai_strerror.texi: Likewise.
67949         * doc/posix-functions/getaddrinfo.texi: Likewise.
67950         * doc/posix-functions/getnameinfo.texi: Likewise.
67951         * doc/posix-functions/if_freenameindex.texi: Likewise.
67952         * doc/posix-functions/if_indextoname.texi: Likewise.
67953         * doc/posix-functions/if_nameindex.texi: Likewise.
67954         * doc/posix-functions/if_nametoindex.texi: Likewise.
67955         * doc/posix-functions/insque.texi: Likewise.
67956         * doc/posix-functions/linkat.texi: Likewise.
67957         * doc/posix-functions/llrint.texi: Likewise.
67958         * doc/posix-functions/llrintf.texi: Likewise.
67959         * doc/posix-functions/llrintl.texi: Likewise.
67960         * doc/posix-functions/lockf.texi: Likewise.
67961         * doc/posix-functions/lrintl.texi: Likewise.
67962         * doc/posix-functions/mkdirat.texi: Likewise.
67963         * doc/posix-functions/mkfifoat.texi: Likewise.
67964         * doc/posix-functions/mknodat.texi: Likewise.
67965         * doc/posix-functions/mq_close.texi: Likewise.
67966         * doc/posix-functions/mq_getattr.texi: Likewise.
67967         * doc/posix-functions/mq_notify.texi: Likewise.
67968         * doc/posix-functions/mq_open.texi: Likewise.
67969         * doc/posix-functions/mq_receive.texi: Likewise.
67970         * doc/posix-functions/mq_send.texi: Likewise.
67971         * doc/posix-functions/mq_setattr.texi: Likewise.
67972         * doc/posix-functions/mq_timedreceive.texi: Likewise.
67973         * doc/posix-functions/mq_timedsend.texi: Likewise.
67974         * doc/posix-functions/mq_unlink.texi: Likewise.
67975         * doc/posix-functions/open_memstream.texi: Likewise.
67976         * doc/posix-functions/openat.texi: Likewise.
67977         * doc/posix-functions/posix_fadvise.texi: Likewise.
67978         * doc/posix-functions/posix_fallocate.texi: Likewise.
67979         * doc/posix-functions/posix_madvise.texi: Likewise.
67980         * doc/posix-functions/posix_memalign.texi: Likewise.
67981         * doc/posix-functions/posix_openpt.texi: Likewise.
67982         * doc/posix-functions/readlinkat.texi: Likewise.
67983         * doc/posix-functions/remque.texi: Likewise.
67984         * doc/posix-functions/renameat.texi: Likewise.
67985         * doc/posix-functions/rintl.texi: Likewise.
67986         * doc/posix-functions/sem_unlink.texi: Likewise.
67987         * doc/posix-functions/shm_open.texi: Likewise.
67988         * doc/posix-functions/shm_unlink.texi: Likewise.
67989         * doc/posix-functions/signgam.texi: Likewise.
67990         * doc/posix-functions/sigset.texi: Likewise.
67991         * doc/posix-functions/stpcpy.texi: Likewise.
67992         * doc/posix-functions/stpncpy.texi: Likewise.
67993         * doc/posix-functions/strerror.texi: Likewise.
67994         * doc/posix-functions/strtod.texi: Likewise.
67995         * doc/posix-functions/symlinkat.texi: Likewise.
67996         * doc/posix-functions/unlinkat.texi: Likewise.
67997         * doc/posix-functions/utimensat.texi: Likewise.
67998         * doc/glibc-functions/bindresvport.texi: Likewise.
67999         * doc/glibc-functions/dn_expand.texi: Likewise.
68000         * doc/glibc-functions/exp10.texi: Likewise.
68001         * doc/glibc-functions/exp10f.texi: Likewise.
68002         * doc/glibc-functions/fgetxattr.texi: Likewise.
68003         * doc/glibc-functions/flistxattr.texi: Likewise.
68004         * doc/glibc-functions/fopencookie.texi: Likewise.
68005         * doc/glibc-functions/freeifaddrs.texi: Likewise.
68006         * doc/glibc-functions/fremovexattr.texi: Likewise.
68007         * doc/glibc-functions/fsetxattr.texi: Likewise.
68008         * doc/glibc-functions/getifaddrs.texi: Likewise.
68009         * doc/glibc-functions/getxattr.texi: Likewise.
68010         * doc/glibc-functions/lgetxattr.texi: Likewise.
68011         * doc/glibc-functions/listxattr.texi: Likewise.
68012         * doc/glibc-functions/llistxattr.texi: Likewise.
68013         * doc/glibc-functions/lremovexattr.texi: Likewise.
68014         * doc/glibc-functions/lsetxattr.texi: Likewise.
68015         * doc/glibc-functions/pow10.texi: Likewise.
68016         * doc/glibc-functions/pow10f.texi: Likewise.
68017         * doc/glibc-functions/rcmd_af.texi: Likewise.
68018         * doc/glibc-functions/removexattr.texi: Likewise.
68019         * doc/glibc-functions/res_init.texi: Likewise.
68020         * doc/glibc-functions/res_mkquery.texi: Likewise.
68021         * doc/glibc-functions/res_query.texi: Likewise.
68022         * doc/glibc-functions/res_querydomain.texi: Likewise.
68023         * doc/glibc-functions/res_send.texi: Likewise.
68024         * doc/glibc-functions/rresvport_af.texi: Likewise.
68025         * doc/glibc-functions/setxattr.texi: Likewise.
68026         * doc/glibc-functions/strcasestr.texi: Likewise.
68028 2008-12-15  Bruno Haible  <bruno@clisp.org>
68030         Fix compilation error on OSF/1 4.0.
68031         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
68032         <sys/time.h>, simply delegate to the system header.
68033         Reported by Daniel Richard G. <oss@teragram.com>.
68035 2008-12-15  Bruno Haible  <bruno@clisp.org>
68037         * doc/posix-functions/openat.texi: Mention the 'openat' module.
68038         * doc/posix-functions/fchmodat.texi: Likewise.
68039         * doc/posix-functions/fchownat.texi: Likewise.
68040         * doc/posix-functions/fdopendir.texi: Likewise.
68041         * doc/posix-functions/fstatat.texi: Likewise.
68042         * doc/posix-functions/mkdirat.texi: Likewise.
68043         * doc/posix-functions/unlinkat.texi: Likewise.
68045 2008-12-14  Bruno Haible  <bruno@clisp.org>
68047         Update doc for POSIX:2008.
68048         * doc/posix-functions/faccessat.texi: New file.
68049         * doc/posix-functions/fchmodat.texi: New file.
68050         * doc/posix-functions/fchownat.texi: New file.
68051         * doc/posix-functions/fdopendir.texi: New file.
68052         * doc/posix-functions/fstatat.texi: New file.
68053         * doc/posix-functions/futimens.texi: New file.
68054         * doc/posix-functions/linkat.texi: New file.
68055         * doc/posix-functions/mkdirat.texi: New file.
68056         * doc/posix-functions/mkfifoat.texi: New file.
68057         * doc/posix-functions/mknodat.texi: New file.
68058         * doc/posix-functions/open_wmemstream.texi: New file.
68059         * doc/posix-functions/openat.texi: New file.
68060         * doc/posix-functions/psiginfo.texi: New file.
68061         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
68062         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
68063         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
68064         * doc/posix-functions/readlinkat.texi: New file.
68065         * doc/posix-functions/renameat.texi: New file.
68066         * doc/posix-functions/strerror_l.texi: New file.
68067         * doc/posix-functions/symlinkat.texi: New file.
68068         * doc/posix-functions/unlinkat.texi: New file.
68069         * doc/posix-functions/utimensat.texi: New file.
68070         * doc/gnulib.texi (Function Substitutes): Add these subsections.
68072 2008-12-14  Bruno Haible  <bruno@clisp.org>
68074         Update doc for POSIX:2008.
68075         * doc/posix-functions/alphasort.texi: Renamed from
68076         doc/glibc-functions/alphasort.texi.
68077         * doc/posix-functions/dirfd.texi: Renamed from
68078         doc/glibc-functions/dirfd.texi.
68079         * doc/posix-functions/dprintf.texi: Renamed from
68080         doc/glibc-functions/dprintf.texi.
68081         * doc/posix-functions/duplocale.texi: Renamed from
68082         doc/glibc-functions/duplocale.texi.
68083         * doc/posix-functions/fexecve.texi: Renamed from
68084         doc/glibc-functions/fexecve.texi.
68085         * doc/posix-functions/fmemopen.texi: Renamed from
68086         doc/glibc-functions/fmemopen.texi.
68087         * doc/posix-functions/freelocale.texi: Renamed from
68088         doc/glibc-functions/freelocale.texi.
68089         * doc/posix-functions/getdate_err.texi: Renamed from
68090         doc/glibc-functions/getdate_err.texi.
68091         * doc/posix-functions/isalnum_l.texi: Renamed from
68092         doc/glibc-functions/isalnum_l.texi.
68093         * doc/posix-functions/isalpha_l.texi: Renamed from
68094         doc/glibc-functions/isalpha_l.texi.
68095         * doc/posix-functions/isblank_l.texi: Renamed from
68096         doc/glibc-functions/isblank_l.texi.
68097         * doc/posix-functions/iscntrl_l.texi: Renamed from
68098         doc/glibc-functions/iscntrl_l.texi.
68099         * doc/posix-functions/isdigit_l.texi: Renamed from
68100         doc/glibc-functions/isdigit_l.texi.
68101         * doc/posix-functions/isgraph_l.texi: Renamed from
68102         doc/glibc-functions/isgraph_l.texi.
68103         * doc/posix-functions/islower_l.texi: Renamed from
68104         doc/glibc-functions/islower_l.texi.
68105         * doc/posix-functions/isprint_l.texi: Renamed from
68106         doc/glibc-functions/isprint_l.texi.
68107         * doc/posix-functions/ispunct_l.texi: Renamed from
68108         doc/glibc-functions/ispunct_l.texi.
68109         * doc/posix-functions/isspace_l.texi: Renamed from
68110         doc/glibc-functions/isspace_l.texi.
68111         * doc/posix-functions/isupper_l.texi: Renamed from
68112         doc/glibc-functions/isupper_l.texi.
68113         * doc/posix-functions/iswalnum_l.texi: Renamed from
68114         doc/glibc-functions/iswalnum_l.texi.
68115         * doc/posix-functions/iswalpha_l.texi: Renamed from
68116         doc/glibc-functions/iswalpha_l.texi.
68117         * doc/posix-functions/iswblank_l.texi: Renamed from
68118         doc/glibc-functions/iswblank_l.texi.
68119         * doc/posix-functions/iswcntrl_l.texi: Renamed from
68120         doc/glibc-functions/iswcntrl_l.texi.
68121         * doc/posix-functions/iswctype_l.texi: Renamed from
68122         doc/glibc-functions/iswctype_l.texi.
68123         * doc/posix-functions/iswdigit_l.texi: Renamed from
68124         doc/glibc-functions/iswdigit_l.texi.
68125         * doc/posix-functions/iswgraph_l.texi: Renamed from
68126         doc/glibc-functions/iswgraph_l.texi.
68127         * doc/posix-functions/iswlower_l.texi: Renamed from
68128         doc/glibc-functions/iswlower_l.texi.
68129         * doc/posix-functions/iswprint_l.texi: Renamed from
68130         doc/glibc-functions/iswprint_l.texi.
68131         * doc/posix-functions/iswpunct_l.texi: Renamed from
68132         doc/glibc-functions/iswpunct_l.texi.
68133         * doc/posix-functions/iswspace_l.texi: Renamed from
68134         doc/glibc-functions/iswspace_l.texi.
68135         * doc/posix-functions/iswupper_l.texi: Renamed from
68136         doc/glibc-functions/iswupper_l.texi.
68137         * doc/posix-functions/iswxdigit_l.texi: Renamed from
68138         doc/glibc-functions/iswxdigit_l.texi.
68139         * doc/posix-functions/isxdigit_l.texi: Renamed from
68140         doc/glibc-functions/isxdigit_l.texi.
68141         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
68142         doc/glibc-functions/mbsnrtowcs.texi.
68143         * doc/posix-functions/mkdtemp.texi: Renamed from
68144         doc/glibc-functions/mkdtemp.texi.
68145         * doc/posix-functions/newlocale.texi: Renamed from
68146         doc/glibc-functions/newlocale.texi.
68147         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
68148         doc/glibc-functions/nl_langinfo_l.texi.
68149         * doc/posix-functions/open_memstream.texi: Renamed from
68150         doc/glibc-functions/open_memstream.texi.
68151         * doc/posix-functions/opterr.texi: Renamed from
68152         doc/glibc-functions/opterr.texi.
68153         * doc/posix-functions/optind.texi: Renamed from
68154         doc/glibc-functions/optind.texi.
68155         * doc/posix-functions/optopt.texi: Renamed from
68156         doc/glibc-functions/optopt.texi.
68157         * doc/posix-functions/psignal.texi: Renamed from
68158         doc/glibc-functions/psignal.texi.
68159         * doc/posix-functions/scandir.texi: Renamed from
68160         doc/glibc-functions/scandir.texi.
68161         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
68162         doc/glibc-functions/sched_get_priority_min.texi.
68163         * doc/posix-functions/signgam.texi: Renamed from
68164         doc/glibc-functions/signgam.texi.
68165         * doc/posix-functions/stpcpy.texi: Renamed from
68166         doc/glibc-functions/stpcpy.texi.
68167         * doc/posix-functions/stpncpy.texi: Renamed from
68168         doc/glibc-functions/stpncpy.texi.
68169         * doc/posix-functions/strcasecmp_l.texi: Renamed from
68170         doc/glibc-functions/strcasecmp_l.texi.
68171         * doc/posix-functions/strcoll_l.texi: Renamed from
68172         doc/glibc-functions/strcoll_l.texi.
68173         * doc/posix-functions/strfmon_l.texi: Renamed from
68174         doc/glibc-functions/strfmon_l.texi.
68175         * doc/posix-functions/strftime_l.texi: Renamed from
68176         doc/glibc-functions/strftime_l.texi.
68177         * doc/posix-functions/strncasecmp_l.texi: Renamed from
68178         doc/glibc-functions/strncasecmp_l.texi.
68179         * doc/posix-functions/strndup.texi: Renamed from
68180         doc/glibc-functions/strndup.texi.
68181         * doc/posix-functions/strnlen.texi: Renamed from
68182         doc/glibc-functions/strnlen.texi.
68183         * doc/posix-functions/strsignal.texi: Renamed from
68184         doc/glibc-functions/strsignal.texi.
68185         * doc/posix-functions/strxfrm_l.texi: Renamed from
68186         doc/glibc-functions/strxfrm_l.texi.
68187         * doc/posix-functions/timer_gettime.texi: Renamed from
68188         doc/glibc-functions/timer_gettime.texi.
68189         * doc/posix-functions/tolower_l.texi: Renamed from
68190         doc/glibc-functions/tolower_l.texi.
68191         * doc/posix-functions/toupper_l.texi: Renamed from
68192         doc/glibc-functions/toupper_l.texi.
68193         * doc/posix-functions/towctrans_l.texi: Renamed from
68194         doc/glibc-functions/towctrans_l.texi.
68195         * doc/posix-functions/towlower_l.texi: Renamed from
68196         doc/glibc-functions/towlower_l.texi.
68197         * doc/posix-functions/towupper_l.texi: Renamed from
68198         doc/glibc-functions/towupper_l.texi.
68199         * doc/posix-functions/uselocale.texi: Renamed from
68200         doc/glibc-functions/uselocale.texi.
68201         * doc/posix-functions/vdprintf.texi: Renamed from
68202         doc/glibc-functions/vdprintf.texi.
68203         * doc/posix-functions/wcpcpy.texi:
68204         Renamed from doc/glibc-functions/wcpcpy.texi.
68205         * doc/posix-functions/wcpncpy.texi: Renamed from
68206         doc/glibc-functions/wcpncpy.texi.
68207         * doc/posix-functions/wcscasecmp.texi: Renamed from
68208         doc/glibc-functions/wcscasecmp.texi.
68209         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
68210         doc/glibc-functions/wcscasecmp_l.texi.
68211         * doc/posix-functions/wcscoll_l.texi: Renamed from
68212         doc/glibc-functions/wcscoll_l.texi.
68213         * doc/posix-functions/wcsdup.texi: Renamed from
68214         doc/glibc-functions/wcsdup.texi.
68215         * doc/posix-functions/wcsncasecmp.texi: Renamed from
68216         doc/glibc-functions/wcsncasecmp.texi.
68217         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
68218         doc/glibc-functions/wcsncasecmp_l.texi.
68219         * doc/posix-functions/wcsnlen.texi: Renamed from
68220         doc/glibc-functions/wcsnlen.texi.
68221         * doc/posix-functions/wcsnrtombs.texi: Renamed from
68222         doc/glibc-functions/wcsnrtombs.texi.
68223         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
68224         doc/glibc-functions/wcsxfrm_l.texi.
68225         * doc/posix-functions/wctrans_l.texi: Renamed from
68226         doc/glibc-functions/wctrans_l.texi.
68227         * doc/posix-functions/wctype_l.texi: Renamed from
68228         doc/glibc-functions/wctype_l.texi.
68229         * doc/gnulib.texi (Function Substitutes): Add these subsections.
68230         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
68231         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
68232         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
68233         these subsections.
68234         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
68235         Remove sections.
68237 2008-12-14  Bruno Haible  <bruno@clisp.org>
68239         Update doc for POSIX:2008.
68240         * doc/posix-functions/*.texi: Update URL of POSIX specification.
68242 2008-12-14  Bruno Haible  <bruno@clisp.org>
68244         Update doc for POSIX:2008.
68245         * doc/pastposix-functions/bcmp.texi: Renamed from
68246         doc/posix-functions/bcmp.texi.
68247         * doc/pastposix-functions/bcopy.texi: Renamed from
68248         doc/posix-functions/bcopy.texi.
68249         * doc/pastposix-functions/bsd_signal.texi: Renamed from
68250         doc/posix-functions/bsd_signal.texi.
68251         * doc/pastposix-functions/bzero.texi: Renamed from
68252         doc/posix-functions/bzero.texi.
68253         * doc/pastposix-functions/ecvt.texi: Renamed from
68254         doc/posix-functions/ecvt.texi.
68255         * doc/pastposix-functions/fcvt.texi: Renamed from
68256         doc/posix-functions/fcvt.texi.
68257         * doc/pastposix-functions/ftime.texi: Renamed from
68258         doc/posix-functions/ftime.texi.
68259         * doc/pastposix-functions/gcvt.texi: Renamed from
68260         doc/posix-functions/gcvt.texi.
68261         * doc/pastposix-functions/getcontext.texi: Renamed from
68262         doc/posix-functions/getcontext.texi.
68263         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
68264         doc/posix-functions/gethostbyaddr.texi.
68265         * doc/pastposix-functions/gethostbyname.texi: Renamed from
68266         doc/posix-functions/gethostbyname.texi.
68267         * doc/pastposix-functions/getwd.texi: Renamed from
68268         doc/posix-functions/getwd.texi.
68269         * doc/pastposix-functions/h_errno.texi: Renamed from
68270         doc/posix-functions/h_errno.texi.
68271         * doc/pastposix-functions/index.texi: Renamed from
68272         doc/posix-functions/index.texi.
68273         * doc/pastposix-functions/makecontext.texi: Renamed from
68274         doc/posix-functions/makecontext.texi.
68275         * doc/pastposix-functions/mktemp.texi: Renamed from
68276         doc/posix-functions/mktemp.texi.
68277         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
68278         doc/posix-functions/pthread_attr_getstackaddr.texi.
68279         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
68280         doc/posix-functions/pthread_attr_setstackaddr.texi.
68281         * doc/pastposix-functions/rindex.texi: Renamed from
68282         doc/posix-functions/rindex.texi.
68283         * doc/pastposix-functions/scalb.texi: Renamed from
68284         doc/posix-functions/scalb.texi.
68285         * doc/pastposix-functions/setcontext.texi: Renamed from
68286         doc/posix-functions/setcontext.texi.
68287         * doc/pastposix-functions/swapcontext.texi: Renamed from
68288         doc/posix-functions/swapcontext.texi.
68289         * doc/pastposix-functions/ualarm.texi: Renamed from
68290         doc/posix-functions/ualarm.texi.
68291         * doc/pastposix-functions/usleep.texi: Renamed from
68292         doc/posix-functions/usleep.texi.
68293         * doc/pastposix-functions/vfork.texi: Renamed from
68294         doc/posix-functions/vfork.texi.
68295         * doc/pastposix-functions/wcswcs.texi: Renamed from
68296         doc/posix-functions/wcswcs.texi.
68297         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
68298         (Function Substitutes): Update.
68300 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68302         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
68303         m4/strerror.m4.
68305 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68306             Bruno Haible  <bruno@clisp.org>
68308         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
68310 2008-12-13  Bruno Haible  <bruno@clisp.org>
68312         * modules/strtoull (Depends-on): Remove unistd.
68314 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68316         * modules/strtoull (Depends-on): Add stdlib.
68318 2008-12-11  Simon Josefsson  <simon@josefsson.org>
68320         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
68322 2008-12-10  Jim Meyering  <meyering@redhat.com>
68324         gl_ASSERT: don't say assertions are disabled when they're not
68325         * m4/assert.m4 (gl_ASSERT): Do not make configure report
68326         "checking whether to enable assertions... no", when they are in
68327         fact enabled.  This is solely a bug in the output of configure.
68328         In spite of saying "no", NDEBUG was not defined in that case.
68329         Also, as noted by Eric Blake, leave assertions enabled upon
68330         --enable-assert=INVALID.
68332 2008-12-10  Bruno Haible  <bruno@clisp.org>
68334         Change MODULES.html to refer to POSIX:2008 where possible.
68335         * MODULES.html.sh (POSIX2008_URL): New variable.
68336         (posix_headers): Remove sys/timeb, ucontext.
68337         (posix2001_headers): New variable.
68338         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
68339         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
68340         index, makecontext, mktemp, pthread_attr_getstackaddr,
68341         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
68342         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
68343         (posix2001_functions): New variable.
68344         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
68345         otherwise.
68347 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68349         add missing include to parse-duration.c
68350         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
68351         * modules/parse-duration (Depends-on): Add xalloc.
68353         fix sed script reading maint.mk
68354         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
68355         (syntax-check-rules): Use it.
68357 2008-12-09  Bruno Haible  <bruno@clisp.org>
68359         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
68360         MacOS X 10.4/PowerPC.
68361         Reported by Simon Josefsson.
68363 2008-12-08  Jim Meyering  <meyering@redhat.com>
68365         work around mingw's lack of some S_IF definitions
68366         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
68367         Reported by Simon Josefsson.
68369 2008-12-08  Bruno Haible  <bruno@clisp.org>
68371         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
68372         applied to variables. Needed on MacOS X 10.4/PowerPC.
68373         Reported by Simon Josefsson.
68375 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
68376         and Eric Blake  <ebb9@byu.net>
68378         assert: honor --enable-assert
68379         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
68380         order to honor --enable-assert, rather than treating it as a
68381         synonym for --disable-assert.
68383 2008-12-08  Jim Meyering  <meyering@redhat.com>
68385         * lib/posixtm.c: Remove now-useless declaration of mktime.
68387         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
68389 2008-12-07  Bruno Haible  <bruno@clisp.org>
68391         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
68392         test_once): Mark functions as static.
68393         * tests/test-tls.c (test_tls): Likewise.
68395 2008-12-07  Bruno Haible  <bruno@clisp.org>
68397         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
68398         iconv_register_autodetect.
68400 2008-12-07  Jim Meyering  <meyering@redhat.com>
68402         posixtm.c: avoid a warning
68403         * lib/posixtm.c (posixtime): Don't initialize tm0.
68404         It's no longer needed to placate gcc4's -Wuninitialized,
68405         and the attempt to placate would elicit a new warning.
68407         unicodeio.c: mark unused parameters
68408         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
68409         (fallback_failure_callback): Likewise.
68411 2008-12-07  Bruno Haible  <bruno@clisp.org>
68413         * gnulib-tool (func_create_testdir): When building the tests
68414         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
68415         Reported by Simon Josefsson.
68417 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68419         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
68421 2008-12-06  Bruno Haible  <bruno@clisp.org>
68423         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
68424         Suggested by Eric Blake.
68426 2008-12-06  Bruno Haible  <bruno@clisp.org>
68428         Fix a c-stack test failure on MacOS X.
68429         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
68430         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
68431         handler for SIGBUS as well.
68432         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
68433         install a signal handler for SIGBUS as well.
68434         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
68436 2008-12-06  Bruno Haible  <bruno@clisp.org>
68438         Advocacy documentation.
68439         * doc/gnulib-intro.texi (Benefits): New section.
68440         * doc/gnulib.texi: Update.
68442 2008-12-06  Bruno Haible  <bruno@clisp.org>
68444         Document the 'manywarnings' module.
68445         * doc/manywarnings.texi: New file.
68446         * doc/gnulib.texi: Include it.
68448 2008-12-05  Eric Blake  <ebb9@byu.net>
68450         tests: silence some gcc warnings
68451         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
68452         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
68453         type mismatches.
68455 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68456             Bruno Haible  <bruno@clisp.org>
68458         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
68460 2008-11-29  Jim Meyering  <meyering@redhat.com>
68462         unicodeio.c: mark unused parameters
68463         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
68464         (fallback_failure_callback): Likewise.
68466         fts: fix a thinko
68467         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
68468         (set_stat_type): Return S_IF*-valued "type" directly.
68469         Prompted by James Youngman's spotting a related bug.
68470         Confirmed by further testing through find.
68472         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
68473         * lib/fts.c (D_TYPE): Define.
68474         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
68475         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
68476         (s_ifmt_shift_bits): New function.
68477         (set_stat_type): New function.
68478         (fts_build): When not calling fts_stat, call set_stat_type
68479         to propagate dirent.d_type info to fts_read caller.
68480         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
68481         fts_statp->st_mode type information may be valid.
68483 2008-11-28  Simon Josefsson  <simon@josefsson.org>
68485         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
68486         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
68487         <sds@gnu.org>.
68489 2008-11-20  Bruno Haible  <bruno@clisp.org>
68491         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
68492         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
68493         INCLUDE_NEXT.
68494         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
68495         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
68496         * modules/math (Makefile.am): Substitute
68497         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
68498         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68500 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
68501             Bruno Haible  <bruno@clisp.org>
68503         * lib/stdint.in.h: Define all type macros so that their expansion is
68504         a single typedef'ed token. Fixes a compilation failure in Boost which
68505         does "using ::int8_t;".
68507 2008-11-18  Simon Josefsson  <simon@josefsson.org>
68509         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
68510         gl_MANYWARN_ALL_GCC.
68511         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
68512         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
68513         * modules/manywarnings: New file.
68514         * MODULES.html.sh: Mention manywarnings module.
68516 2008-11-18  Bruno Haible  <bruno@clisp.org>
68518         * doc/gnulib-tool.texi (Unit tests): New section.
68520 2008-11-18  Simon Josefsson  <simon@josefsson.org>
68522         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
68523         paths like 'lib/po/foo.po'.
68525 2008-11-17  Simon Josefsson  <simon@josefsson.org>
68527         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
68528         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
68530 2008-11-17  Simon Josefsson  <simon@josefsson.org>
68532         * m4/warnings.m4: Use CPPFLAGS to really check whether the
68533         parameter works.
68535 2008-11-17  Simon Josefsson  <simon@josefsson.org>
68537         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
68539 2008-11-17  Bruce Korb  <bkorb@gnu.org>
68541         * modules/parse-duration-tests: New file.
68542         * tests/test-parse-duration.sh: New file.
68543         * tests/test-parse-duration.c: New file.
68545         New module 'parse-duration'.
68546         * lib/parse-duration.h: New file.
68547         * lib/parse-duration.c: New file.
68548         * modules/parse-duration: New file.
68550 2008-11-17  Bruno Haible  <bruno@clisp.org>
68552         * tests/test-select-out.sh: Comment out the first pipe test.
68553         Reported by Simon Josefsson.
68555 2008-11-17  Bruno Haible  <bruno@clisp.org>
68557         * modules/getaddrinfo (Depends-on): Add servent, hostent.
68558         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
68559         gl_HOSTENT.
68561 2008-11-17  Bruno Haible  <bruno@clisp.org>
68563         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
68564         -lnetwork and -lnet. Needed for Haiku and BeOS.
68566 2008-11-16  Bruno Haible  <bruno@clisp.org>
68568         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
68570 2008-11-16  Bruno Haible  <bruno@clisp.org>
68572         Avoid test failure on Haiku.
68573         * tests/test-fsync.c: Include <errno.h>.
68574         (main): Don't require that fsync (0) fails.
68576 2008-11-15  Bruno Haible  <bruno@clisp.org>
68578         New module 'hostent'.
68579         * modules/hostent: New file.
68580         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
68582 2008-11-15  Bruno Haible  <bruno@clisp.org>
68584         New module 'servent'.
68585         * modules/servent: New file.
68586         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
68588 2008-11-15  Bruno Haible  <bruno@clisp.org>
68590         Avoid generating same test program with two different rules.
68591         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
68592         test-frexp to test-frexp-nolibm.
68593         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
68594         test-frexpl to test-frexpl-nolibm.
68596 2008-11-15  Bruno Haible  <bruno@clisp.org>
68598         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
68599         $(FREXPL_LIBM).
68601 2008-11-15  Bruno Haible  <bruno@clisp.org>
68603         * lib/netdb.in.h: Activate the definitions also when the system's
68604         <netdb.h> has 'struct addrinfo'.
68605         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
68606         EAI_OVERFLOW or AI_NUMERICSERV.
68607         * doc/posix-headers/netdb.texi: Document the problem.
68609 2008-11-15  Bruno Haible  <bruno@clisp.org>
68611         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
68613         Make the 'sched' module work on platforms where <sched.h> exists but
68614         is incomplete (such as Haiku).
68615         * lib/sched.in.h; Include the system's <sched.h> if it exists.
68616         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
68617         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
68618         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
68619         HAVE_STRUCT_SCHED_PARAM.
68620         * modules/sched (Depends-on): Add include_next.
68621         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
68622         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
68623         * doc/posix-headers/sched.texi: Document the issue.
68625 2008-11-13  Jim Meyering  <meyering@redhat.com>
68627         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
68628         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
68629         test would fail due to the difference in the Report bugs to ...
68630         line.  The expected address is empty, "<>", while the actual
68631         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
68633 2008-11-12  Bruno Haible  <bruno@clisp.org>
68635         lstat: don't compile lstat.c on systems lacking lstat
68636         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
68637         which don't have lstat; this is handled by lib/sys_stat.in.h already.
68638         Reported by Daniel P. Berrange via Jim Meyering.
68640 2008-11-12  Jim Meyering  <meyering@redhat.com>
68642         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
68644 2008-11-12  Simon Josefsson  <simon@josefsson.org>
68646         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
68647         instead.
68649 2008-11-12  Bruno Haible  <bruno@clisp.org>
68651         * lib/unicodeio.c: Include unistr.h.
68652         (utf8_wctomb): Remove function.
68653         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
68655 2008-11-12  Simon Josefsson  <simon@josefsson.org>
68657         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
68658         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
68659         <bruno@clisp.org>.
68660         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
68662 2008-11-12  Simon Josefsson  <simon@josefsson.org>
68664         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
68665         * doc/gnulib.texi: Add section for warnings.
68667 2008-11-11  Bruno Haible  <bruno@clisp.org>
68669         * lib/sockets.h: Add a comment.
68671 2008-11-11  Karl Berry  <karl@gnu.org>
68673         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
68675 2008-11-11  Eric Blake  <ebb9@byu.net>
68677         fdl.texi: avoid git symlinks
68678         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
68680 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
68682         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
68684 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
68686         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
68687         (gl_WARN_ADD): Substitute $2 if literal.
68689 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
68691         * m4/warning.m4: Remove.
68693 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
68695         * m4/warnings.m4: Almost complete rewrite. :-)
68697 2008-11-10  Simon Josefsson  <simon@josefsson.org>
68699         * modules/warnings: New module.
68700         * m4/warnings.m4: New file.
68701         * MODULES.html.sh: Mention warnings module.
68702         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
68703         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68705 2008-11-10  Eric Blake  <ebb9@byu.net>
68707         fdl.texi: make a symlink to the latest version
68708         * doc/standards.texi: Revert today's earlier change.
68709         * doc/fdl-1.2.texi: Rename from old fdl.texi...
68710         * doc/fdl.texi: ...and replace this with a symlink to the newer
68711         fdl-1.3.texi.
68713 2008-11-10  Bruno Haible  <bruno@clisp.org>
68715         * tests/test-select-fd.c (main): Accept the result file name as fourth
68716         argument.
68717         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
68718         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
68720 2008-11-10  Bruno Haible  <bruno@clisp.org>
68722         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
68723         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
68724         as autoconf-substituted macros.
68725         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
68726         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
68727         gl_NETDB_H_DEFAULTS. Set these variables.
68728         * modules/netdb (Makefile.am): Substitute these variables.
68730 2008-11-10  Eric Blake  <ebb9@byu.net>
68732         standards.texi: include correct file for FDL 1.3
68733         * doc/standards.texi (GNU Free Documentation License): Change
68734         include file to pull in FDL 1.3, not 1.2.
68736         fdl.texi: revert accidental change to license
68737         * doc/fdl.texi: This is FDL 1.2, not 1.3.
68739 2008-11-10  Bruno Haible  <bruno@clisp.org>
68741         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
68742         cross-compiling guesses also when the native compile gives no result.
68744 2008-11-10  Bruno Haible  <bruno@clisp.org>
68746         * lib/spawni.c (__spawni): Force variable into the stack.
68748 2008-11-10  Bruno Haible  <bruno@clisp.org>
68750         Add support for Haiku.
68751         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
68752         glibc and BeOS, but also on Haiku.
68753         * lib/fpurge.c (fpurge): Likewise.
68754         * lib/freadable.c (freadable): Likewise.
68755         * lib/freadahead.c (freadahead): Likewise.
68756         * lib/freading.c (freading): Likewise.
68757         * lib/freadptr.c (freadptr): Likewise.
68758         * lib/freadseek.c (freadptrinc): Likewise.
68759         * lib/fseeko.c (rpl_fseeko): Likewise.
68760         * lib/fseterr.c (fseterr): Likewise.
68761         * lib/fwritable.c (fwritable): Likewise.
68762         * lib/fwriting.c (fwriting): Likewise.
68763         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
68765 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
68767         * lib/config.charset: Treat Haiku like BeOS.
68769 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
68771         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
68772         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
68774 2008-11-08  Bruno Haible  <bruno@clisp.org>
68776         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
68777         AC_CACHE_CHECK.
68779 2008-11-08  Bruno Haible  <bruno@clisp.org>
68781         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
68783 2008-11-08  Bruno Haible  <bruno@clisp.org>
68785         * tests/test-select-fd.c: New file.
68786         * tests/test-select-in.sh: New file.
68787         * tests/test-select-out.sh: New file.
68788         * tests/test-select-stdin.c: New file.
68789         * modules/select-tests (Files): Add the new files.
68790         (Depends-on): Add gettimeofday.
68791         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
68792         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
68793         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
68795 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
68796             Bruno Haible  <bruno@clisp.org>
68798         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
68800 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
68802         * build-aux/pmccabe2html: Added support for C++ source files.
68804 2008-11-05  Ben Pfaff  <blp@gnu.org>
68806         Fix lib/close.c build on Windows.
68807         * modules/close (Files): Add lib/w32sock.h.
68809 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
68811         Accept Bison's NEWS format.
68812         * build-aux/announce-gen (print_news_deltas): Tweak
68813         $re_prefix.
68815 2008-11-04  Bruno Haible  <bruno@clisp.org>
68817         * modules/random_r (Maintainer): Add glibc.
68819 2008-11-04  Simon Josefsson  <simon@josefsson.org>
68821         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
68822         by karl@freefriends.org (Karl Berry).
68823         * doc/alloca.texi: Likewise.
68824         * doc/c-ctype.texi: Likewise.
68825         * doc/c-strcase.texi: Likewise.
68826         * doc/c-strcaseeq.texi: Likewise.
68827         * doc/c-strcasestr.texi: Likewise.
68828         * doc/c-strstr.texi: Likewise.
68829         * doc/c-strtod.texi: Likewise.
68830         * doc/c-strtold.texi: Likewise.
68831         * doc/ctime.texi: Likewise.
68832         * doc/error.texi: Likewise.
68833         * doc/fdl.texi: Likewise.
68834         * doc/gcd.texi: Likewise.
68835         * doc/getdate.texi: Likewise.
68836         * doc/gnulib-intro.texi: Likewise.
68837         * doc/gnulib-tool.texi: Likewise.
68838         * doc/gnulib.texi: Likewise.
68839         * doc/inet_ntoa.texi: Likewise.
68840         * doc/maintain.texi: Likewise.
68841         * doc/make-stds.texi: Likewise.
68842         * doc/quote.texi: Likewise.
68843         * doc/regexprops-generic.texi: Likewise.
68844         * doc/standards.texi: Likewise.
68845         * doc/verify.texi: Likewise.
68846         * doc/visibility.texi: Likewise.
68847         * doc/gnulib.texi (GNU Free Documentation License): Include
68848         fdl-1.3.texi instead of fdl.texi.
68850 2008-11-04  Simon Josefsson  <simon@josefsson.org>
68852         * doc/fdl-1.3.texi: New file, from
68853         <http://www.gnu.org/licenses/fdl-1.3.texi>.
68854         * modules/fdl-1.3: Add.
68855         * MODULES.html.sh: Add fdl-1.3.
68857 2008-11-03  Bruno Haible  <bruno@clisp.org>
68859         Make determination of absolute name of header file work with AIX xlc.
68860         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
68861         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
68862         preprocessing.
68863         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
68864         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
68866 2008-11-03  Simon Josefsson  <simon@josefsson.org>
68868         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
68869         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
68870         <ludo@gnu.org>.
68872 2008-11-02  Bruno Haible  <bruno@clisp.org>
68874         Mark 'strpbrk' obsolete.
68875         * modules/strpbrk (Status, Notice): New sections.
68876         * modules/strtok_r (Depends-on): Add strpbrk.
68878 2008-11-02  Bruno Haible  <bruno@clisp.org>
68880         Mark 'strdup' obsolete.
68881         * modules/strdup (Status, Notice): New sections.
68882         * modules/findprog (Depends-on): Add strdup.
68883         * modules/getaddrinfo (Depends-on): Likewise.
68884         * modules/localename (Depends-on): Likewise.
68885         * modules/relocatable-lib (Depends-on): Likewise.
68886         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
68887         * modules/relocatable-prog (Depends-on): Likewise.
68888         * modules/trim (Depends-on): Likewise.
68889         * modules/unictype/gen-ctype (Depends-on): Likewise.
68890         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
68892 2008-11-02  Bruno Haible  <bruno@clisp.org>
68894         Mark 'strcspn' obsolete.
68895         * modules/strcspn (Status, Notice): New sections.
68897 2008-11-02  Bruno Haible  <bruno@clisp.org>
68899         Mark 'rmdir' obsolete.
68900         * modules/rmdir (Status, Notice): New sections.
68901         * modules/clean-temp (Depends-on): Add rmdir.
68902         * modules/openat (Depends-on): Likewise.
68904 2008-11-02  Bruno Haible  <bruno@clisp.org>
68906         Mark 'raise' obsolete.
68907         * modules/raise (Status, Notice): New sections.
68908         (Include): Specify <signal.h>.
68909         * modules/stdio (Depends-on): Add raise.
68910         * modules/write (Depends-on): Likewise.
68912 2008-11-02  Bruno Haible  <bruno@clisp.org>
68914         Mark 'memset' obsolete.
68915         * modules/memset (Status, Notice): New sections.
68917 2008-11-02  Bruno Haible  <bruno@clisp.org>
68919         Mark 'memmove' obsolete.
68920         * modules/memmove (Status, Notice): New sections.
68921         * modules/argp (Depends-on): Add memmove.
68922         * modules/argz (Depends-on): Likewise.
68923         * modules/canonicalize (Depends-on): Likewise.
68924         * modules/canonicalize-lgpl (Depends-on): Likewise.
68925         * modules/fts (Depends-on): Likewise.
68926         * modules/getcwd (Depends-on): Likewise.
68927         * modules/human (Depends-on): Likewise.
68928         * modules/regex (Depends-on): Likewise.
68929         * modules/striconveh (Depends-on): Likewise.
68930         * modules/trim (Depends-on): Likewise.
68931         * modules/unistr/u8-move (Depends-on): Likewise.
68932         * modules/unistr/u16-move (Depends-on): Likewise.
68933         * modules/unistr/u32-move (Depends-on): Likewise.
68935 2008-11-02  Bruno Haible  <bruno@clisp.org>
68937         Mark 'memcpy' obsolete.
68938         * modules/memcpy (Status, Notice): New sections.
68940 2008-11-02  Bruno Haible  <bruno@clisp.org>
68942         Mark 'memcmp' obsolete.
68943         * modules/memcmp (Status, Notice): New sections.
68944         * modules/argmatch (Depends-on): Add memchr.
68945         * modules/backupfile (Depends-on): Likewise.
68946         * modules/c-strcasestr (Depends-on): Likewise.
68947         * modules/crypto/des (Depends-on): Likewise.
68948         * modules/csharpcomp (Depends-on): Likewise.
68949         * modules/fnmatch (Depends-on): Likewise.
68950         * modules/git-merge-changelog (Depends-on): Likewise.
68951         * modules/isnand (Depends-on): Likewise.
68952         * modules/isnand-nolibm (Depends-on): Likewise.
68953         * modules/isnanf (Depends-on): Likewise.
68954         * modules/isnanf-nolibm (Depends-on): Likewise.
68955         * modules/isnanl (Depends-on): Likewise.
68956         * modules/isnanl-nolibm (Depends-on): Likewise.
68957         * modules/mbchar (Depends-on): Likewise.
68958         * modules/memcoll (Depends-on): Likewise.
68959         * modules/quotearg (Depends-on): Likewise.
68960         * modules/regex (Depends-on): Likewise.
68961         * modules/relocatable-prog (Depends-on): Likewise.
68962         * modules/same (Depends-on): Likewise.
68963         * modules/signbit (Depends-on): Likewise.
68964         * modules/strcasestr-simple (Depends-on): Likewise.
68965         * modules/unictype/gen-ctype (Depends-on): Likewise.
68966         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
68967         * modules/uniname/uniname (Depends-on): Likewise.
68968         * modules/unistr/u8-cmp (Depends-on): Likewise.
68970 2008-11-02  Bruno Haible  <bruno@clisp.org>
68972         Mark 'memchr' obsolete.
68973         * modules/memchr (Status, Notice): New sections.
68974         * modules/argp (Depends-on): Add memchr.
68975         * modules/base64 (Depends-on): Likewise.
68976         * modules/c-strcasestr (Depends-on): Likewise.
68977         * modules/chdir-long (Depends-on): Likewise.
68978         * modules/fnmatch (Depends-on): Likewise.
68979         * modules/getsubopt (Depends-on): Likewise.
68980         * modules/git-merge-changelog (Depends-on): Likewise.
68981         * modules/glob (Depends-on): Likewise.
68982         * modules/strcasestr-simple (Depends-on): Likewise.
68983         * modules/strnlen (Depends-on): Likewise.
68985 2008-11-02  Bruno Haible  <bruno@clisp.org>
68987         Mark 'atexit' obsolete.
68988         * modules/atexit (Status, Notice): New sections.
68989         * modules/chdir-long (Depends-on): Add atexit.
68990         * modules/wait-process (Depends-on): Likewise.
68992 2008-11-02  Bruno Haible  <bruno@clisp.org>
68994         * gnulib-tool: New option --with-obsolete.
68995         (func_usage): Document it.
68996         (func_modules_transitive_closure): Drop obsolete dependencies if
68997         incobsolete is not true.
68998         (func_import): Read and save the incobsolete variable to the cache.
69000 2008-11-02  Bruno Haible  <bruno@clisp.org>
69002         * modules/TEMPLATE-EXTENDED: New field 'Status'.
69003         * gnulib-tool: New option --extract-status.
69004         (func_usage): Document it.
69005         (sed_extract_prog): Recognize it.
69006         (func_get_status): New function.
69008 2008-10-30  Simon Josefsson  <simon@josefsson.org>
69010         * modules/sockets (License): Change from LGPL to LGPLv2+.
69012 2008-10-28  Simon Josefsson  <simon@josefsson.org>
69014         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
69016 2008-10-28  Simon Josefsson  <simon@josefsson.org>
69018         * MODULES.html.sh (Support for systems lacking POSIX:2001):
69019         Mention times and sys_times.
69020         * modules/sys_times, modules/sys_times-tests: New modules.
69021         * modules/times, modules/times-tests: Likewise
69022         * m4/sys_times_h.m4: New file.
69023         * lib/sys_times.in.h: Likewise
69024         * lib/times.c: Likewise.
69025         * tests/test-sys_times.c: Likewise.
69026         * tests/test-times.c: Likewise.
69027         * doc/posix-headers/sys_times.texi: Update.
69028         * doc/posix-functions/times.texi: Update.
69030 2008-10-28  Jim Meyering  <meyering@redhat.com>
69032         * modules/tempname (Depends-on): Add lstat.
69034         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
69036 2008-10-28  Simon Josefsson  <simon@josefsson.org>
69038         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
69039         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
69040         using idiom used elsewhere in gnulib.
69042 2008-10-27  Jim Meyering  <meyering@redhat.com>
69044         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
69046 2008-10-27  Simon Josefsson  <simon@josefsson.org>
69048         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
69049         TESTS_ENVIRONMENT, for shell scripts that needs to call built
69050         programs.
69051         * tests/test-argp-2.sh: Use $EXEEXT when needed.
69053 2008-10-27  Simon Josefsson  <simon@josefsson.org>
69055         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
69057 2008-10-27  Bruno Haible  <bruno@clisp.org>
69059         * tests/test-lstat.c: Include <stdio.h>.
69061 2008-10-27  Simon Josefsson  <simon@josefsson.org>
69063         * modules/lstat-tests: New module.
69064         * tests/test-lstat.c: New file.
69066 2008-10-26  Jim Meyering  <meyering@redhat.com>
69068         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
69070 2008-10-26  Simon Josefsson  <simon@josefsson.org>
69071             Bruno Haible  <bruno@clisp.org>
69073         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
69074         * modules/configmake (Include): Add a note that the include must come
69075         after all system headers.
69076         * lib/javaversion.c: Include configmake.h after all other includes.
69078 2008-10-26  Bruno Haible  <bruno@clisp.org>
69080         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
69081         HAVE_STRUCT_RANDOM_DATA to 1.
69082         (gl_STDLIB_H): Simplify.
69084 2008-10-26  Simon Josefsson  <simon@josefsson.org>
69086         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
69087         substitute HAVE_STRUCT_RANDOM_DATA.
69088         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
69089         random_data.
69090         * modules/stdlib (Makefile.am): Substitute
69091         HAVE_STRUCT_RANDOM_DATA.
69093 2008-10-26  Simon Josefsson  <simon@josefsson.org>
69095         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
69096         * doc/gnulib-intro.texi (Copyright): Likewise.
69098 2008-10-26  Simon Josefsson  <simon@josefsson.org>
69100         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
69101         findings.
69103 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
69104             Bruno Haible  <bruno@clisp.org>
69106         * lib/unistd.in.h: Include <winsock2.h>.
69107         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
69108         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
69109         Provide dummy declarations.
69110         (gethostname): Override.
69111         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
69112         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
69113         gl_PREREQ_SYS_H_WINSOCK2.
69114         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
69115         * doc/posix-functions/gethostname.texi: More details.
69117 2008-10-25  Bruno Haible  <bruno@clisp.org>
69119         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
69120         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
69121         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
69123         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
69124         here ...
69125         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
69126         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
69127         gl_UNISTD_H_DEFAULTS.
69129 2008-10-25  Eric Blake  <ebb9@byu.net>
69131         signbit: avoid spurious compiler failure
69132         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
69133         declarations inside function.
69135 2008-10-24  Simon Josefsson  <simon@josefsson.org>
69136             Bruno Haible  <bruno@clisp.org>
69138         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
69139         * modules/random_r (Depends-on): Add stdint.
69141 2008-10-24  Bruno Haible  <bruno@clisp.org>
69143         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
69144         Eggert.
69145         * modules/strerror (License): Likewise.
69147 2008-10-24  Jim Meyering  <meyering@redhat.com>
69149         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
69150         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
69152 2008-10-24  Eric Blake  <ebb9@byu.net>
69154         getgroups: fix compilation when getgroups is available
69155         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
69156         but with <config.h> override of getgroups disabled.
69158 2008-10-24  Simon Josefsson  <simon@josefsson.org>
69160         * doc/gnulib.texi (Header files): Add note about C++ problems.
69161         Explained by Bruno Haible <bruno@clisp.org>.
69163 2008-10-23  Bruno Haible  <bruno@clisp.org>
69165         Define a dummy SA_NODEFER macro on Interix.
69166         * lib/signal.in.h (SA_NODEFER): Define fallback.
69167         Reported by Aleksey Cheusov <cheusov@tut.by> via
69168         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
69170 2008-10-23  Bruno Haible  <bruno@clisp.org>
69172         * modules/freadahead (License): Change to LGPLv2+.
69173         Suggested by Simon Josefsson.
69175 2008-10-23  Jim Meyering  <meyering@redhat.com>
69177         random_r: new module
69178         * modules/random_r: New file.
69179         * m4/random_r.m4: New file.
69180         * lib/random_r.c: New file, from glibc.
69181         * modules/random_r-tests: New file.
69182         * tests/test-random_r.c: New file.
69183         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
69184          Declare.
69185         (RAND_MAX): Define.
69186         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
69187         * modules/stdlib: Substitute them, too.
69188         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
69189         * doc/glibc-functions/initstate_r.texi: Mention the new module.
69190         * doc/glibc-functions/random_r.texi: Likewise.
69191         * doc/glibc-functions/setstate_r.texi: Likewise.
69192         * doc/glibc-functions/srandom_r.texi: Likewise.
69193         * config/srclist.txt: Mention it.
69195 2008-10-23  David Lutterkort  <lutter@redhat.com>
69197         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
69198         link requirement
69200 2008-10-23  Jim Meyering  <meyering@redhat.com>
69202         selinux-h: mark parameters of stub functions as intentionally unused
69203         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
69204         * lib/se-context.in.h: Likewise.
69206 2008-10-22  Simon Josefsson  <simon@josefsson.org>
69208         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
69210 2008-10-22  Simon Josefsson  <simon@josefsson.org>
69212         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
69214 2008-10-22  Eric Blake  <ebb9@byu.net>
69216         glthread/thread: avoid compiler warning
69217         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
69218         Add unreachable abort to silence compiler.
69220 2008-10-22  Eric Blake  <ebb9@byu.net>
69222         netdb: also supply struct addrinfo for cygwin 1.5.x
69223         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
69224         older cygwin.
69225         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
69226         cygwin.
69227         * doc/posix-headers/netdb.texi (netdb.h): Document this.
69229 2008-10-22  Bruno Haible  <bruno@clisp.org>
69231         * users.txt: Update entry about pspp.
69233 2008-10-21  Bruno Haible  <bruno@clisp.org>
69235         Simplification.
69236         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
69237         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
69239         Simplification.
69240         * lib/ioctl.c (ioctl): Don't undefine.
69241         * lib/socket.c (socket): Don't undefine.
69243         Remove unused module indicator macros.
69244         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
69245         GNULIB_$1 as a C macro.
69247         * doc/posix-functions/close.texi: Undo last change.
69248         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
69249         Windows platforms.
69251 2008-10-21  Bruno Haible  <bruno@clisp.org>
69253         Add gethostname() declaration to <unistd.h>.
69254         * lib/unistd.in.h (gethostname): New declaration.
69255         * lib/gethostname.c: Include <unistd.h>.
69256         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
69257         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
69258         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
69259         and HAVE_GETHOSTNAME.
69260         * modules/gethostname (Depends-on): Add unistd.
69261         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69262         (Include): Specify <unistd.h>.
69263         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
69264         HAVE_GETHOSTNAME.
69265         * tests/test-gethostname.c: Include <unistd.h> first.
69267 2008-10-21  Bruno Haible  <bruno@clisp.org>
69269         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
69270         * modules/select-tests (Depends-on): Likewise.
69271         Reported by Simon Josefsson.
69273 2008-10-21  Simon Josefsson  <simon@josefsson.org>
69275         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
69276         * lib/accept.c: New file, based on winsock.c.
69277         * lib/bind.c: New file, based on winsock.c.
69278         * lib/connect.c: New file, based on winsock.c.
69279         * lib/getpeername.c: New file, based on winsock.c.
69280         * lib/getsockname.c: New file, based on winsock.c.
69281         * lib/getsockopt.c: New file, based on winsock.c.
69282         * lib/ioctl.c: New file, based on winsock.c.
69283         * lib/listen.c: New file, based on winsock.c.
69284         * lib/recv.c: New file, based on winsock.c.
69285         * lib/recvfrom.c: New file, based on winsock.c.
69286         * lib/send.c: New file, based on winsock.c.
69287         * lib/sendto.c: New file, based on winsock.c.
69288         * lib/setsockopt.c: New file, based on winsock.c.
69289         * lib/shutdown.c: New file, based on winsock.c.
69290         * lib/socket.c: New file, based on winsock.c.
69291         * lib/w32sock.h: New file, based on winsock.c.
69292         * lib/winsock.c: Remove file.
69293         * modules/accept: Likewise.
69294         * modules/bind: Likewise.
69295         * modules/connect: Likewise.
69296         * modules/getpeername: Likewise.
69297         * modules/getsockname: Likewise.
69298         * modules/getsockopt: Likewise.
69299         * modules/ioctl: Likewise.
69300         * modules/listen: Likewise.
69301         * modules/recv: Likewise.
69302         * modules/recvfrom: Likewise.
69303         * modules/send: Likewise.
69304         * modules/sendto: Likewise.
69305         * modules/setsockopt: Likewise.
69306         * modules/shutdown: Likewise.
69307         * modules/socket: Use socket.c instead of winsock.c.
69308         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
69309         * doc/posix-functions/accept.texi: Doc fix.
69310         * doc/posix-functions/bind.texi: Doc fix.
69311         * doc/posix-functions/close.texi: Doc fix.
69312         * doc/posix-functions/connect.texi: Doc fix.
69313         * doc/posix-functions/getpeername.texi: Doc fix.
69314         * doc/posix-functions/getsockname.texi: Doc fix.
69315         * doc/posix-functions/getsockopt.texi: Doc fix.
69316         * doc/posix-functions/ioctl.texi: Doc fix.
69317         * doc/posix-functions/listen.texi: Doc fix.
69318         * doc/posix-functions/recv.texi: Doc fix.
69319         * doc/posix-functions/recvfrom.texi: Doc fix.
69320         * doc/posix-functions/send.texi: Doc fix.
69321         * doc/posix-functions/sendto.texi: Doc fix.
69322         * doc/posix-functions/setsockopt.texi: Doc fix.
69323         * doc/posix-functions/shutdown.texi: Doc fix.
69324         * doc/posix-functions/socket.texi: Doc fix.
69326 2008-10-20  Bruno Haible  <bruno@clisp.org>
69328         Take into account the role of SIGABRT_COMPAT on Windows 2008.
69329         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
69330         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
69331         as an alias for SIGABRT.
69332         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
69333         (sigaction): Map it to SIGABRT.
69334         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
69336 2008-10-20  Bruno Haible  <bruno@clisp.org>
69338         * lib/fts.c: Don't include lstat.h.
69339         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
69341         Move the lstat() declaration to <sys/stat.h>.
69342         * lib/lstat.h: Remove file.
69343         * lib/sys_stat.in.h: Add special invocation convention.
69344         (lstat): New declaration.
69345         * lib/lstat.c (orig_lstat): New function.
69346         (rpl_lstat): Use orig_lstat instead of lstat.
69347         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
69348         AC_C_INLINE. Set REPLACE_LSTAT.
69349         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
69350         and REPLACE_LSTAT.
69351         * modules/lstat (Files): Remove lib/lstat.h.
69352         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
69353         (Include): Specify <sys/stat.h> instead of lstat.h.
69354         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
69355         REPLACE_LSTAT.
69356         * NEWS: Mention the change.
69358 2008-10-20  Bruno Haible  <bruno@clisp.org>
69360         * modules/posix_spawn-tests: New file.
69361         * tests/test-posix_spawn3.c: New file.
69363 2008-10-20  Bruno Haible  <bruno@clisp.org>
69365         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
69366         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
69367         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
69368         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
69369         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
69371 2008-10-20  Bruno Haible  <bruno@clisp.org>
69373         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
69374         of posix_spawn on AIX 5.3.
69376 2008-10-20  Bruno Haible  <bruno@clisp.org>
69378         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
69380 2008-10-20  Bruno Haible  <bruno@clisp.org>
69382         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
69383         of AC_LANG_PROGRAM.
69385 2008-10-20  Simon Josefsson  <simon@josefsson.org>
69387         * lib/netdb.in.h: Don't define GNU specific constants until they
69388         are supported or needed.  Reported by Bruno Haible
69389         <bruno@clisp.org>.
69391 2008-10-20  Simon Josefsson  <simon@josefsson.org>
69393         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
69395 2008-10-20  Simon Josefsson  <simon@josefsson.org>
69397         * lib/getaddrinfo.h: Remove file.
69398         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
69399         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
69400         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
69401         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
69402         * modules/netdb: Substitute GNULIB_GETADDRINFO.
69403         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
69404         * tests/test-getaddrinfo.c: Likewise.
69405         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
69406         * NEWS: Mention change.
69408 2008-10-19  Bruno Haible  <bruno@clisp.org>
69410         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
69412 2008-10-19  Bruno Haible  <bruno@clisp.org>
69414         * lib/wait-process.c: Include simply <sys/wait.h>.
69415         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
69416         WIFSTOPPED): Remove fallback definitions.
69417         * modules/wait-process (Depends-on): Add sys_wait.
69419         New module 'sys_wait'.
69420         * modules/sys_wait: New file.
69421         * lib/sys_wait.in.h: New file, partially copied from
69422         lib/wait-process.c.
69423         * m4/sys_wait_h.m4: New file.
69424         * doc/posix-headers/sys_wait.texi: Mention the new module.
69426 2008-10-19  Bruno Haible  <bruno@clisp.org>
69428         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
69430 2008-10-19  Bruno Haible  <bruno@clisp.org>
69432         Assume that waitpid() fills an 'int' status, not a 'union wait'.
69433         * lib/wait-process.c (WAIT_T): Remove type.
69434         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
69435         (wait_subprocess): Update.
69437 2008-10-19  Bruno Haible  <bruno@clisp.org>
69439         New module 'atoll'.
69440         * modules/atoll: New file.
69441         * lib/stdlib.in.h (atoll): New declaration.
69442         * lib/atoll.c: New file, from glibc with modifications.
69443         * m4/atoll.m4: New file.
69444         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
69445         HAVE_ATOLL.
69446         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
69447         * doc/posix-functions/atoll.texi: Mention the new module.
69449 2008-10-19  Bruno Haible  <bruno@clisp.org>
69451         Add strtoull() declaration to <stdlib.h>.
69452         * lib/stdlib.in.h (strtoull): New declaration.
69453         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
69454         Set HAVE_STRTOULL.
69455         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
69456         HAVE_STRTOULL.
69457         * modules/strtoull (Depends-on): Add stdlib.
69458         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69459         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
69460         HAVE_STRTOULL.
69462 2008-10-19  Bruno Haible  <bruno@clisp.org>
69464         Add strtoll() declaration to <stdlib.h>.
69465         * lib/stdlib.in.h (strtoll): New declaration.
69466         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
69467         Set HAVE_STRTOLL.
69468         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
69469         HAVE_STRTOLL.
69470         * modules/strtoll (Depends-on): Add stdlib.
69471         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69472         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
69474 2008-10-19  Bruno Haible  <bruno@clisp.org>
69476         * modules/bcopy (Depends-on): Add strings.
69477         (Include): Specify <strings.h>.
69479 2008-10-19  Bruno Haible  <bruno@clisp.org>
69481         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
69483 2008-10-19  Bruno Haible  <bruno@clisp.org>
69485         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
69486         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
69487         mingw.
69489 2008-10-19  Bruno Haible  <bruno@clisp.org>
69491         * lib/atanl.c: Don't include isnanl.h.
69492         * lib/cosl.c: Likewise.
69493         * lib/ldexpl.c: Likewise.
69494         * lib/logl.c: Likewise.
69495         * lib/sinl.c: Likewise.
69496         * lib/sqrtl.c: Likewise.
69497         * lib/tanl.c: Likewise.
69499         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
69500         * lib/isnanf.h: Remove file.
69501         * lib/isnand.h: Remove file.
69502         * lib/isnanl.h: Remove file.
69503         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
69504         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
69505         macros.
69506         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
69507         HAVE_ISNANF, don't define it as a C macro.
69508         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
69509         HAVE_ISNAND, don't define it as a C macro.
69510         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
69511         HAVE_ISNANL, don't define it as a C macro.
69512         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
69513         HAVE_ISNAN[FDL].
69514         * modules/isnanf (Files): Remove lib/isnanf.h.
69515         (Depends-on): Add math.
69516         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
69517         (Include): Specify <math.h> instead of isnanf.h.
69518         * modules/isnand (Files): Remove lib/isnand.h.
69519         (Depends-on): Add math.
69520         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
69521         (Include): Specify <math.h> instead of isnand.h.
69522         * modules/isnanl (Files): Remove lib/isnanl.h.
69523         (Depends-on): Add math.
69524         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
69525         (Include): Specify <math.h> instead of isnanl.h.
69526         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
69527         HAVE_ISNAN[FDL].
69528         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
69529         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
69530         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
69531         * NEWS: Mention the change.
69533 2008-10-18  Bruno Haible  <bruno@clisp.org>
69535         Add getusershell(), setusershell(), endusershell() declarations to
69536         <unistd.h>.
69537         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
69538         declarations.
69539         * lib/getusershell.c: Include unistd.h.
69540         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
69541         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
69542         HAVE_GETUSERSHELL.
69543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
69544         and HAVE_GETUSERSHELL.
69545         * modules/getusershell (Depends-on): Add unistd, extensions.
69546         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69547         (Include): Specify <unistd.h>.
69548         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
69549         HAVE_GETUSERSHELL.
69551 2008-10-18  Bruno Haible  <bruno@clisp.org>
69553         Add a getloadavg() declaration to <stdlib.h>.
69554         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
69555         getloadavg declaration.
69556         (getloadavg): New declaration.
69557         * lib/getloadavg.c: Include <stdlib.h> first.
69558         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
69559         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
69560         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
69561         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
69562         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
69563         * modules/getloadavg (Depends-on): Add stdlib, extensions.
69564         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69565         (Include): Specify <stdlib.h>.
69566         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
69567         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
69569 2008-10-18  Bruno Haible  <bruno@clisp.org>
69571         * lib/dirchownmod.c: Don't include lchmod.h.
69573         Move the lchmod() declaration to <sys/stat.h>.
69574         * lib/lchmod.h: Remove file.
69575         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
69576         (lchmod): New declaration, moved here from lib/lchown.h.
69577         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
69578         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
69579         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
69580         and HAVE_LCHMOD.
69581         * modules/lchmod (Files): Remove lib/lchmod.h.
69582         (Depends-on): Add sys_stat, extensions.
69583         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
69584         (Include): Specify <sys/stat.h> instead of lchmod.h.
69585         * modules/sys_stat (Depends-on): Add link-warning.
69586         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
69587         definition of GL_LINK_WARNING.
69588         * NEWS: Mention the change.
69590 2008-10-18  Bruno Haible  <bruno@clisp.org>
69592         * lib/fchdir.c: Don't include dirfd.h.
69593         * lib/fts.c: Likewise.
69594         * lib/getcwd.c: Likewise.
69595         * lib/glob.c: Likewise.
69597         Move the dirfd() declaration to <dirent.h>.
69598         * lib/dirfd.h: Remove file.
69599         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
69600         (dirfd): New declaration.
69601         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
69602         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
69603         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
69604         HAVE_DECL_DIRFD.
69605         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
69606         HAVE_DECL_DIRFD.
69607         * modules/dirfd (Files): Remove lib/dirfd.h.
69608         (Depends-on): Add dirent, extensions.
69609         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
69610         (Include): Specify <dirent.h> instead of dirfd.h.
69611         * modules/dirent (Depends-on): Add link-warning.
69612         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
69613         definition of GL_LINK_WARNING.
69614         * NEWS: Mention the change.
69616 2008-10-18  Bruno Haible  <bruno@clisp.org>
69618         Move the euidaccess() declaration to <unistd.h>.
69619         * lib/euidaccess.h: Remove file.
69620         * lib/unistd.in.h (euidaccess): New declaration.
69621         * lib/euidaccess.c: Don't include euidaccess.h.
69622         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
69623         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
69624         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
69625         and HAVE_EUIDACCESS.
69626         * modules/euidaccess (Files): Remove lib/euidaccess.h.
69627         (Depends-on): Add unistd.
69628         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69629         (Include): Specify <unistd.h> instead of euidaccess.h.
69630         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
69631         HAVE_EUIDACCESS.
69632         * NEWS: Mention the change.
69634 2008-10-18  Bruno Haible  <bruno@clisp.org>
69636         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
69638         Move the getdomainname() declaration to <unistd.h>.
69639         * lib/getdomainname.h: Remove file.
69640         * lib/unistd.in.h (getdomainname): New declaration.
69641         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
69642         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
69643         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
69644         HAVE_GETDOMAINNAME.
69645         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
69646         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
69647         * modules/getdomainname (Files): Remove lib/getdomainname.h.
69648         (Depends-on): Add unistd, extensions.
69649         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69650         (Includes): Specify <unistd.h> instead of getdomainname.h.
69651         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
69652         HAVE_GETDOMAINNAME.
69653         * NEWS: Mention the change.
69655 2008-10-18  Bruno Haible  <bruno@clisp.org>
69657         * modules/dirent: New file.
69658         * m4/dirent_h.m4: New file.
69659         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
69660         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
69661         * modules/fchdir (Files): Remove lib/dirent.in.h.
69662         (Depends-on): Add dirent.
69663         (Makefile.am): Move rules to modules/dirent.
69664         * doc/posix-headers/dirent.texi: Mention the new module.
69666 2008-10-18  Bruno Haible  <bruno@clisp.org>
69668         Avoid -Wunused-parameter warnings in public gnulib header files.
69669         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
69670         macro.
69671         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
69673 2008-10-18  Bruno Haible  <bruno@clisp.org>
69675         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
69676         * doc/glibc-functions/error.texi: Mention the module 'error'.
69677         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
69678         * doc/glibc-functions/getdomainname.texi: Mention the module
69679         'getdomainname'.
69680         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
69681         * doc/glibc-functions/getpagesize.texi: Mention the module
69682         'getpagesize'.
69683         * doc/glibc-functions/getusershell.texi: Mention the module
69684         'getusershell'.
69685         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
69686         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
69687         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
69688         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
69689         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
69690         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
69691         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
69692         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
69693         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
69694         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
69695         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
69696         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
69697         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
69698         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
69700 2008-10-17  Bruno Haible  <bruno@clisp.org>
69702         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
69703         HP-UX and IRIX, use -0.0L.
69704         * tests/test-ceill.c (minus_zero): Likewise.
69705         * tests/test-floorl.c (minus_zero): Likewise.
69706         * tests/test-frexpl.c (minus_zero): Likewise.
69707         * tests/test-isnan.c (minus_zerol): Likewise.
69708         * tests/test-isnanl.h (minus_zero): Likewise.
69709         * tests/test-ldexpl.c (minus_zero): Likewise.
69710         * tests/test-roundl.c (minus_zero): Likewise.
69711         * tests/test-signbit.c (minus_zerol): Likewise.
69712         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
69713         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
69714         * tests/test-truncl.c (minus_zero): Likewise.
69715         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
69716         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
69717         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
69718         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
69720 2008-10-17  Bruno Haible  <bruno@clisp.org>
69722         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
69723         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
69724         that it gets activated only for gcc >= 3.0.
69725         * lib/dirent.in.h: Likewise.
69726         * lib/errno.in.h: Likewise.
69727         * lib/fcntl.in.h: Likewise.
69728         * lib/float.in.h: Likewise.
69729         * lib/iconv.in.h: Likewise.
69730         * lib/inttypes.in.h: Likewise.
69731         * lib/locale.in.h: Likewise.
69732         * lib/math.in.h: Likewise.
69733         * lib/netdb.in.h: Likewise.
69734         * lib/netinet_in.in.h: Likewise.
69735         * lib/search.in.h: Likewise.
69736         * lib/signal.in.h: Likewise.
69737         * lib/spawn.in.h: Likewise.
69738         * lib/stdarg.in.h: Likewise.
69739         * lib/stdint.in.h: Likewise.
69740         * lib/stdio.in.h: Likewise.
69741         * lib/stdlib.in.h: Likewise.
69742         * lib/string.in.h: Likewise.
69743         * lib/strings.in.h: Likewise.
69744         * lib/sys_file.in.h: Likewise.
69745         * lib/sys_ioctl.in.h: Likewise.
69746         * lib/sys_select.in.h: Likewise.
69747         * lib/sys_socket.in.h: Likewise.
69748         * lib/sys_stat.in.h: Likewise.
69749         * lib/sys_time.in.h: Likewise.
69750         * lib/sysexits.in.h: Likewise.
69751         * lib/time.in.h: Likewise.
69752         * lib/unistd.in.h: Likewise.
69753         * lib/wchar.in.h: Likewise.
69754         * lib/wctype.in.h: Likewise.
69755         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
69757 2008-10-17  Jim Meyering  <meyering@redhat.com>
69759         ignore-value: don't depend on inline module
69760         * modules/ignore-value (Depends-on): Remove 'inline'.
69761         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
69762         Suggestion from Bruno Haible.
69764 2008-10-17  Bruno Haible  <bruno@clisp.org>
69766         New implementation of condition variables for Win32.
69767         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
69768         (gl_linked_waitqueue_t): New type.
69769         (gl_cond_t): Use it.
69770         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
69771         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
69772         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
69773         (glthread_cond_init_func, glthread_cond_wait_func,
69774         glthread_cond_timedwait_func, glthread_cond_signal_func,
69775         glthread_cond_broadcast_func, glthread_cond_destroy_func):
69776         Reimplemented on the basis of gl_linked_waitqueue_t.
69777         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
69778         gl_waitqueue_t.
69779         (gl_rwlock_t): Update.
69780         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
69782 2008-10-17  Simon Josefsson  <simon@josefsson.org>
69784         * modules/recvfrom (Depends-on): Add dependency on getpeername.
69785         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
69787 2008-10-17  Jim Meyering  <meyering@redhat.com>
69789         ignore-value: new module
69790         * modules/ignore-value: New file.
69791         * lib/ignore-value.h: New file.
69792         * MODULES.html.sh (Compiler warning management): New section,
69793         just for this module.  More to come.
69795 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
69797         open-safer.c: avoid 'signed and unsigned in conditional...' warning
69798         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
69799         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
69801 2008-10-16  Jim Meyering  <meyering@redhat.com>
69803         openat-die.c: avoid 'no previous prototype' warning
69804         * lib/openat-die.c: Include "openat.h".
69805         Reported by Reuben Thomas <rrt@sc3d.org>.
69807 2008-10-16  Simon Josefsson  <simon@josefsson.org>
69809         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
69810         * lib/netdb.in.h: Fix typo.
69811         Reported by Bruno Haible  <bruno@clisp.org>
69813         * lib/netdb.in.h: Include sys/socket.h for platforms without
69814         netdb.h, to get structures like hostent on MinGW.
69815         * modules/netdb (Depends-on): Add sys_socket.
69817 2008-10-15  Simon Josefsson  <simon@josefsson.org>
69819         * modules/netdb, modules/netdb-tests: New file.
69820         * m4/netdb_h.m4: New file.
69821         * lib/netdb.in.h: Add, currently just an empty file pending
69822         definitions.
69823         * tests/test-netdb.c: New file.
69824         * doc/posix-headers/netdb.texi: Mention that we replace it if
69825         needed.
69826         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69827         netdb.
69829 2008-10-15  Simon Josefsson  <simon@josefsson.org>
69831         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
69832         with code.
69834 2008-10-13  Bruno Haible  <bruno@clisp.org>
69836         * lib/glthread/cond.c (glthread_cond_wait_func,
69837         glthread_cond_timedwait_func): Add a comment.
69839 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69841         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
69842         * tests/test-select.c: Likewise,
69844 2008-10-13  Bruno Haible  <bruno@clisp.org>
69846         * lib/glthread/cond.c (glthread_cond_wait_func,
69847         glthread_cond_timedwait_func): Fix variable name.
69848         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
69850 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
69852         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
69853         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
69854         struct sockaddr.sa_len.
69855         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
69857 2008-10-13  Simon Josefsson  <simon@josefsson.org>
69859         * build-aux/pmccabe2html: Add css and css_url parameters.
69861 2008-10-12  Bruno Haible  <bruno@clisp.org>
69863         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
69864         calling aclx_get.
69865         Reported by Rainer Tammer <tammer@tammer.net>.
69867 2008-10-12  Bruno Haible  <bruno@clisp.org>
69869         Use msvcrt aware primitives for creation/termination of Win32 threads.
69870         * lib/glthread/thread.c: Include <process.h>.
69871         (glthread_create_func): Use _beginthreadex instead of CreateThread.
69872         (wrapper_func): Update signature.
69873         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
69875 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69876             Bruno Haible  <bruno@clisp.org>
69878         Provide a Win32 implementation of the 'cond' module.
69879         * lib/glthread/cond.h [USE_WIN32]: New implementation.
69880         * lib/glthread/cond.c (glthread_cond_init_func,
69881         glthread_cond_wait_func, glthread_cond_timedwait_func,
69882         glthread_cond_signal_func, glthread_cond_broadcast_func,
69883         glthread_cond_destroy_func) [USE_WIN32]: New functions.
69884         * modules/cond (Dependencies): Add gettimeofday.
69886 2008-10-11  Bruno Haible  <bruno@clisp.org>
69888         Make sleep work on older versions of mingw.
69889         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
69890         only whether it exists.
69891         * doc/posix-functions/sleep.texi: Mention the problem with older
69892         versions of mingw.
69894 2008-10-11  Bruno Haible  <bruno@clisp.org>
69896         New module 'shutdown'.
69897         * modules/shutdown: New file.
69898         * lib/sys_socket.in.h (shutdown): New declaration.
69899         * lib/winsock.c (shutdown): New function.
69900         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
69901         GNULIB_SHUTDOWN.
69902         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
69903         * doc/posix-functions/shutdown.texi: Document the new module.
69905 2008-10-11  Jim Meyering  <meyering@redhat.com>
69907         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
69909 2008-10-11  Bruno Haible  <bruno@clisp.org>
69911         New module 'fclose'.
69912         * modules/fclose: New file.
69913         * lib/stdio.in.h (fclose): New declaration.
69914         * lib/fclose.c: New file.
69915         * m4/fclose.m4: New file.
69916         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
69917         REPLACE_FCLOSE.
69918         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
69919         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
69920         REPLACE_FCLOSE.
69921         * modules/close (Depends-on): fclose.
69922         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
69924 2008-10-11  Bruno Haible  <bruno@clisp.org>
69926         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
69927         set errno and don't call _close.
69929 2008-10-10  Bruno Haible  <bruno@clisp.org>
69931         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
69932         ACL, not afterwards. Fixes test failure on Cygwin.
69934 2008-10-09  Ben Pfaff  <blp@gnu.org>
69936         * build-aux/announce-gen: Fix gnulib version related part of usage
69937         message.  Die with a useful error message if no tarballs are
69938         found.
69940 2008-10-10  Jim Meyering  <meyering@redhat.com>
69942         bootstrap: use git's --depth=N option only if it's supported
69943         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
69944         recognize the --depth option.  Reported by Pádraig Brady.
69946 2008-10-09  Bruno Haible  <bruno@clisp.org>
69948         New module 'ioctl'.
69949         * modules/ioctl: New file.
69950         * lib/sys_socket.in.h (ioctl): Remove declaration.
69951         * lib/winsock.c: Include <sys/ioctl.h>.
69952         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
69953         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
69954         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
69955         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
69956         * doc/posix-functions/ioctl.texi: Mention the new module.
69958 2008-10-09  Bruno Haible  <bruno@clisp.org>
69960         New module 'sys_ioctl'.
69961         * lib/sys_ioctl.in.h: New file.
69962         * m4/sys_ioctl_h.m4: New file.
69963         * modules/sys_ioctl: New file.
69964         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
69966 2008-10-09  Bruno Haible  <bruno@clisp.org>
69968         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
69969         * lib/winsock.c: Include <stdarg.h>.
69970         (rpl_ioctl): Change to second argument 'int' and then varargs.
69972 2008-10-09  Bruno Haible  <bruno@clisp.org>
69974         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
69975         when the sys_socket module is present and the system has <winsock2.h>.
69977 2008-10-09  Bruno Haible  <bruno@clisp.org>
69979         * doc/posix-functions/close.texi: Mention module 'close' instead of
69980         module 'sys_socket'.
69982 2008-10-09  Bruno Haible  <bruno@clisp.org>
69984         * doc/glibc-headers/sys_ioctl.texi: New file.
69985         * doc/gnulib.texi: Include it.
69987 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
69988             Bruno Haible  <bruno@clisp.org>
69990         Combine the two replacements of 'close'.
69991         * lib/sys_socket.in.h (close): Define to a reminder to include
69992         <unistd.h>.
69993         (_gl_close_fd_maybe_socket): New declaration.
69994         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
69995         * lib/winsock.c (close): Remove undefinition.
69996         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
69997         needed for the gnulib module 'close'.
69998         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
69999         define to an error symbol or to a warning, if suitable.
70000         * lib/close.c: Include <sys/socket.h>.
70001         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
70002         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
70003         UNISTD_H_HAVE_WINSOCK2_H.
70004         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
70005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
70006         UNISTD_H_HAVE_WINSOCK2_H.
70007         * modules/sys_socket (Files): Add m4/unistd_h.m4.
70008         (configure.ac): Set a module indicator.
70009         (Makefile.am): Substitute GNULIB_CLOSE.
70010         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
70011         * modules/poll-tests (Depends-on): Add close.
70012         * modules/select-tests (Depends-on): Likewise.
70014 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
70015             Bruno Haible  <bruno@clisp.org>
70017         New module 'close'.
70018         * modules/close: New file.
70019         * lib/unistd.in.h (close): Move declaration out of the
70020         FCHDIR_REPLACEMENT scope.
70021         (_gl_unregister_fd): New declaration.
70022         * lib/close.c: New file.
70023         * lib/fchdir.c (rpl_close): Remove function.
70024         * m4/close.m4: New file.
70025         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
70026         close.
70027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
70028         REPLACE_CLOSE.
70029         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
70030         REPLACE_CLOSE.
70031         * modules/fchdir (Depends-on): Add close.
70033 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
70034             Bruno Haible  <bruno@clisp.org>
70036         * lib/fcntl.in.h (open): Simplify conditionals.
70037         (_gl_register_fd): New declaration.
70038         * lib/fchdir.c (rpl_open): Remove function.
70039         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
70040         also.
70041         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
70042         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
70043         open.
70045 2008-10-09  Jim Meyering  <meyering@redhat.com>
70047         GNUmakefile: use the more name-space-friendly "_version"
70048         * top/GNUmakefile (_dummy): Update.
70049         (_version): Rename from "version".
70051 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
70052             Bruno Haible  <bruno@clisp.org>
70054         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
70055         rpl_close.
70056         (_gl_register_fd): New function, extracted from rpl_open.
70057         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
70058         (rpl_open, rpl_opendir): Use _gl_register_fd.
70060 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
70062         Fix organization of 'open' replacement.
70063         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
70064         (gl_FUNC_OPEN): Use it.
70065         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
70067 2008-10-08  Bruno Haible  <bruno@clisp.org>
70069         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
70071 2008-10-08  Simon Josefsson  <simon@josefsson.org>
70073         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
70074         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
70075         listen).
70077 2008-10-08  Eric Blake  <ebb9@byu.net>
70079         GNUmakefile: add 'make version' target
70080         * top/GNUmakefile (_curr-ver): Split version update rules...
70081         (version): ...into a target.
70083 2008-10-07  Bruno Haible  <bruno@clisp.org>
70085         Use a more portable replacement expression for -0.0L.
70086         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
70087         instead of -0.0L. Fix m4 quotation.
70089         * tests/test-signbit.c: Include <float.h>.
70090         (minus_zero): New variable.
70091         (test_signbitl): Use minus_zero instead of -zero.
70092         * modules/signbit-tests (Depends-on): Add float.
70094         * tests/test-ceill.c: Include <float.h>.
70095         (zero): Remove variable.
70096         (minus_zero): New variable.
70097         (main): Use minus_zero instead of -zero.
70098         * modules/ceill-tests (Depends-on): Add float.
70100         * tests/test-floorl.c: Include <float.h>.
70101         (zero): Remove variable.
70102         (minus_zero): New variable.
70103         (main): Use minus_zero instead of -zero.
70104         * modules/floorl-tests (Depends-on): Add float.
70106         * tests/test-roundl.c: Include <float.h>.
70107         (zero): Remove variable.
70108         (minus_zero): New variable.
70109         (main): Use minus_zero instead of -zero.
70110         * modules/roundl-tests (Depends-on): Add float.
70112         * tests/test-truncl.c: Include <float.h>.
70113         (zero): Remove variable.
70114         (minus_zero): New variable.
70115         (main): Use minus_zero instead of -zero.
70116         * modules/truncl-tests (Depends-on): Add float.
70118         * tests/test-frexpl.c (zero): Remove variable.
70119         (minus_zero): New variable.
70120         (main): Use minus_zero instead of -zero.
70121         * modules/frexpl-tests (Depends-on): Add float.
70123         * tests/test-isnan.c (zerol): Remove variable.
70124         (minus_zerol): New variable.
70125         (test_long_double): Use minus_zerol instead of -zerol.
70126         * modules/isnan-tests (Depends-on): Add float.
70128         * tests/test-isnanl.h (zero): Remove variable.
70129         (minus_zero): New variable.
70130         (main): Use minus_zero instead of -zero.
70131         * modules/isnanl-nolibm-tests (Depends-on): Add float.
70132         * modules/isnanl-tests (Depends-on): Add float.
70134         * tests/test-ldexpl.c (zero): Remove variable.
70135         (minus_zero): New variable.
70136         (main): Use minus_zero instead of -zero.
70137         * modules/ldexpl-tests (Depends-on): Add float.
70139         * tests/test-snprintf-posix.h (zerol): Remove variable.
70140         (minus_zerol): New variable.
70141         (test_function): Use minus_zerol instead of -zerol.
70142         * modules/snprintf-posix-tests (Depends-on): Add float.
70143         * modules/vsnprintf-posix-tests (Depends-on): Add float.
70145         * tests/test-sprintf-posix.h (zerol): Remove variable.
70146         (minus_zerol): New variable.
70147         (test_function): Use minus_zerol instead of -zerol.
70148         * modules/sprintf-posix-tests (Depends-on): Add float.
70149         * modules/vsprintf-posix-tests (Depends-on): Add float.
70151         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
70152         (minus_zerol): New variable.
70153         (test_function): Use minus_zerol instead of -zerol.
70154         * modules/vasnprintf-posix-tests (Depends-on): Add float.
70156         * tests/test-vasprintf-posix.c (zerol): Remove variable.
70157         (minus_zerol): New variable.
70158         (test_function): Use minus_zerol instead of -zerol.
70159         * modules/vasprintf-posix-tests (Depends-on): Add float.
70161 2008-10-07  Simon Josefsson  <simon@josefsson.org>
70163         * MODULES.html.sh (Support for building documentation): Mention
70164         pmccabe2html.  Sort entries.
70166         Add pmccabe2html module, from gnupdf.
70167         * build-aux/pmccabe.css: New file.
70168         * build-aux/pmccabe2html: New file.
70169         * m4/pmccabe2html.m4: New file.
70170         * modules/pmccabe2html: New file.
70172 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
70174         flock: new module
70175         * MODULES.html.sh: Add to list of modules.
70176         * lib/flock.c: flock implementation for Windows and Unix systems
70177         which have fcntl.
70178         * doc/glibc-functions/flock.texi: Update documentation.
70179         * lib/sys_file.in.h: <sys/file.h> header file.
70180         * m4/flock.m4: M4 macros.
70181         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
70182         * modules/flock: flock module.
70183         * modules/flock-tests: flock tests module.
70184         * modules/sys_file: sys/file.h module.
70185         * tests/test-flock.c: test suite for flock.
70187 2008-10-06  Jim Meyering  <meyering@redhat.com>
70189         bootstrap: check for LT_INIT more portably still ;-)
70190         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
70191         Spotted by Bruno Haible.
70193 2008-10-06  Eric Blake  <ebb9@byu.net>
70195         test-signbit: avoid tripping Irix cc bug on -0.0L
70196         * tests/test-signbit.c (minus_zerol): Delete, and replace with
70197         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
70198         entire testsuite consistent and avoids an Irix 6.2 bug.
70200 2008-10-05  Bruno Haible  <bruno@clisp.org>
70201             Jim Meyering  <jim@meyering.net>
70203         Add an option for ignoring EPIPE during close_stdout.
70204         * lib/closeout.h: Include <stdbool.h>.
70205         (close_stdout_set_ignore_EPIPE): New declaration.
70206         * lib/closeout.c: Include <stdbool.h>.
70207         (ignore_EPIPE): New variable.
70208         (close_stdout_set_ignore_EPIPE): New function.
70209         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
70210         * lib/close-stream.c (close_stream): Mention the possible EPIPE
70211         failure.
70212         * modules/closeout (Depends-on): Add stdbool.
70214 2008-10-05  Bruno Haible  <bruno@clisp.org>
70216         * modules/accept: New file.
70217         * modules/bind: New file.
70218         * modules/connect: New file.
70219         * modules/getpeername: New file.
70220         * modules/getsockname: New file.
70221         * modules/getsockopt: New file.
70222         * modules/listen: New file.
70223         * modules/recv: New file.
70224         * modules/recvfrom: New file.
70225         * modules/send: New file.
70226         * modules/sendto: New file.
70227         * modules/setsockopt: New file.
70228         * modules/socket: New file.
70229         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
70230         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
70231         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
70232         the particular module is requested. Add a link warning when the
70233         particular module is not requested.
70234         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
70235         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
70236         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
70237         the particular module is requested.
70238         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
70239         gl_SYS_SOCKET_H_DEFAULTS): New macros.
70240         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
70241         * modules/sys_socket (Depends-on): Add link-warning.
70242         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
70243         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
70244         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
70245         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
70246         GL_LINK_WARNING.
70247         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
70248         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
70249         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
70250         * doc/posix-functions/getpeername.texi: Mention the new module
70251         'getpeername'.
70252         * doc/posix-functions/getsockname.texi: Mention the new module
70253         'getsockname'.
70254         * doc/posix-functions/getsockopt.texi: Mention the new module
70255         'getsockopt'.
70256         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
70257         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
70258         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
70259         * doc/posix-functions/send.texi: Mention the new module 'send'.
70260         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
70261         * doc/posix-functions/setsockopt.texi: Mention the new module
70262         'setsockopt'.
70263         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
70264         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
70265         listen, connect, accept.
70266         * modules/select-tests (Depends-on): Likewise.
70268 2008-10-05  Bruno Haible  <bruno@clisp.org>
70270         * lib/winsock.c (strerror): Remove unused #undef.
70271         (rpl_close): Remove unused local variable.
70273         * modules/sys_socket (Depends-on); Add errno.
70275 2008-10-05  Bruno Haible  <bruno@clisp.org>
70277         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
70278         (select): Add a link warning when the 'select' module is not used.
70279         * modules/sys_select (Depends-on): Add link-warning.
70280         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
70281         Suggested by Paolo Bonzini.
70283 2008-10-05  Jim Meyering  <meyering@redhat.com>
70285         bootstrap: check for LT_INIT more portably
70286         * build-aux/bootstrap: Avoid using grep -E, since it's not
70287         portable enough.  Suggestion from Bruno Haible.
70289 2008-10-05  Bruno Haible  <bruno@clisp.org>
70291         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
70292         as being fixed by gnulib.
70294 2008-10-05  Bruno Haible  <bruno@clisp.org>
70296         * modules/select-tests: New file, mostly copied from
70297         modules/sys_select-tests.
70298         * tests/test-select.c: New file, mostly copied from
70299         tests/test-sys_select.c.
70300         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
70301         * modules/sys_select-tests (Depends-on): Remove all dependencies.
70302         (Makefile.am): Remove test_sys_select_LDADD.
70304         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
70305         to an undefined symbol, for an error message.
70306         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
70307         (gl_SYS_SELECT_H_DEFAULTS): New macro.
70308         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
70309         winsock-select.c here.
70310         * modules/sys_select (Files): Remove lib/winsock-select.c.
70311         (Depends-on): Remove alloca.
70312         (Makefile.am): Substitute GNULIB_SELECT.
70313         * modules/select: New file.
70314         * doc/posix-functions/select.texi: Update.
70316 2008-10-05  Bruno Haible  <bruno@clisp.org>
70318         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
70319         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
70320         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
70321         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
70322         getdtablesize.
70323         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
70324         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
70326 2008-10-05  Bruno Haible  <bruno@clisp.org>
70328         * modules/getdtablesize-tests: New file.
70329         * tests/test-getdtablesize.c: New file.
70331         New module 'getdtablesize'.
70332         * lib/unistd.in.h (getdtablesize): New declaration.
70333         * lib/getdtablesize.c: New file.
70334         * m4/getdtablesize.m4: New file.
70335         * modules/getdtablesize: New file.
70336         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
70337         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
70338         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
70339         HAVE_GETDTABLESIZE.
70340         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
70342 2008-10-05  Bruno Haible  <bruno@clisp.org>
70344         * modules/sched (Makefile.am): Fix typo.
70345         Reported by Simon Josefsson.
70347 2008-10-05  Jim Meyering  <meyering@redhat.com>
70349         bootstrap: check for LT_INIT, too
70350         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
70351         are deprecated.  Suggestion from Ralf Wildenhues.
70353 2008-10-05  Bruno Haible  <bruno@clisp.org>
70355         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
70356         overriding them by ours.
70357         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
70359 2008-10-05  Jim Meyering  <meyering@redhat.com>
70361         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
70362         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
70363         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
70365 2008-10-04  Bruno Haible  <bruno@clisp.org>
70367         * modules/dup2 (License): Change to LGPLv2+.
70368         * modules/sleep (License): Likewise.
70369         * modules/perror (License): Likewise.
70370         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
70371         Blake.
70372         * modules/signal (License): Likewise.
70373         * modules/sigprocmask (License): Likewise.
70374         * modules/raise (License): Change to LGPLv2+, with approval by Jim
70375         Meyering.
70377 2008-10-04  Bruno Haible  <bruno@clisp.org>
70379         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
70380         Reported by Rainer Tammer <tammer@tammer.net>.
70382 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
70383             Bruno Haible  <bruno@clisp.org>
70385         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
70386         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
70387         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
70389 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
70391         filevercmp: new module
70392         * lib/filevercmp.h: New function filevercmp comparing version strings.
70393         * lib/filevercmp.c: Implementation of filevercmp function.
70394         * modules/filevercmp: Module metadata.
70395         * tests/test-filevercmp.c: Unit test for new module.
70396         * modules/filevercmp-tests: Unit test metadata.
70397         * MODULES.html.sh: Add filevercmp module.
70399 2008-10-03  Bruno Haible  <bruno@clisp.org>
70401         * lib/c-ctype.h: Add comment.
70402         Reported by Jim Meyering.
70404 2008-10-02  Bruno Haible  <bruno@clisp.org>
70406         * modules/posix_spawn-internal (Depends-on): Add 'open'.
70408 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
70410         * build-aux/bootstrap: Allow renaming bootstrap, and change the
70411         name of bootstrap.conf accordingly.
70413 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
70415         * build-aux/bootstrap: Install git-merge-changelog configuration
70416         items into .gitconfig if needed.
70418 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
70420         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
70421         git repository, and initialize/update it accordingly.
70423 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
70425         * modules/fsync-tests: New file.
70426         * tests/test-fsync.c: New file.
70428         New module 'fsync'.
70429         * lib/fsync.c: New file.
70430         * m4/fsync.m4: New file.
70431         * modules/fsync: New file.
70432         * lib/unistd.in.h (fsync): New declaration.
70433         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
70434         GNULIB_FSYNC and HAVE_FSYNC.
70435         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
70436         * MODULES.html.sh (posix_functions): Add fsync.
70437         * doc/posix-functions/fsync.texi: Mention the new module.
70439 2008-10-02  Jim Meyering  <meyering@redhat.com>
70441         fts.c: sync with similar code from coreutils' remove.c
70442         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
70443         Guard also with "#if defined __linux__", since for now at least,
70444         this code is Linux-kernel-specific.
70446 2008-10-02  Jim Meyering  <meyering@redhat.com>
70448         fts: bug fixes
70449         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
70450         Include <sys/vfs.h>, not <sys/statfs.h>.
70452         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
70453         Include <sys/vfs.h>, not <sys/statfs.h>.
70455 2008-10-01  Bruno Haible  <bruno@clisp.org>
70457         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
70458         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
70459         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
70460         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
70461         * doc/posix-functions/posix_spawnp.texi: Likewise.
70462         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
70463         whether posix_spawn actually works.
70464         * m4/pipe.m4 (gl_PIPE): Likewise.
70465         * modules/execute (Files): Add m4/posix_spawn.m4.
70466         * modules/pipe (Files): Add m4/posix_spawn.m4.
70467         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
70469 2008-10-01  Jim Meyering  <meyering@redhat.com>
70471         remove trailing spaces
70472         * NEWS: Likewise.
70473         * lib/poll.c (poll): Likewise.
70474         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
70475         * lib/winsock.c (rpl_close): Likewise.
70476         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
70477         * modules/yield: Likewise.
70478         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
70479         * tests/test-sys_select.c (connect_to_socket): Likewise.
70481         fts.c: adjust a new interface to be more generally useful
70482         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
70483         (fts_build): Adjust caller.
70485 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70487         * modules/cond-tests: New file.
70488         * tests/test-cond.c: New file.
70490 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70491             Bruno Haible  <bruno@clisp.org>
70493         * modules/cond (Dependencies): Add errno, time.
70494         * lib/glthread/cond.h: Include <time.h>.
70495         (gl_cond_define, gl_cond_define_initialized): Use the same definition
70496         across platforms.
70498 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70499             Bruno Haible  <bruno@clisp.org>
70501         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
70503 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70504             Bruno Haible  <bruno@clisp.org>
70506         * modules/tls-tests (Depends-on): Add thread, yield.
70507         (configure.ac): Remove all checks.
70508         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
70509         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
70510         gl_thread_self): Remove definitions. Include glthread/thread.h and
70511         glthread/yield.h instead.
70512         (test_tls): Pass an additional NULL argument to gl_thread_join.
70514 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70515             Bruno Haible  <bruno@clisp.org>
70517         * modules/lock-tests (Depends-on): Add thread, yield.
70518         (configure.ac): Remove all checks.
70519         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
70520         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
70521         gl_thread_self): Remove definitions. Include glthread/thread.h and
70522         glthread/yield.h instead.
70523         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
70524         additional NULL argument to gl_thread_join.
70526 2008-09-30  Bruno Haible  <bruno@clisp.org>
70528         Fix the Win32 implementation of the 'thread' module.
70529         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
70530         pointer type.
70531         (gl_thread_self): Invoke gl_thread_self_func.
70532         (gl_thread_self_func): New declaration.
70533         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
70534         (do_init_self_key, init_self_key): New functions.
70535         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
70536         Remove some fields.
70537         (running_threads, running_lock): Remove variables.
70538         (get_current_thread_handle): New function.
70539         (gl_thread_self_func, wrapper_func, glthread_create_func,
70540         glthread_join_func, gl_thread_exit_func): Largely rewritten and
70541         simplified.
70543 2008-09-30  Bruno Haible  <bruno@clisp.org>
70545         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
70546         files.
70548 2008-09-30  Jim Meyering  <meyering@redhat.com>
70550         fts.m4: correct the test for statfs.f_type
70551         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
70552         when checking for statfs.f_type.
70554 2008-09-15  Simon Josefsson  <simon@josefsson.org>
70556         tests: avoid some compiler warnings
70557         * tests/test-memchr.c (main): Pass NULL indirectly.
70558         * tests/test-getdate.c (main): Remove unused variable 'ret'.
70560 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
70562         getdate.y: disallow countable dayshifts like "4 yesterday ago"
70563         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
70564         exactly specified dayshifts.
70565         (dayshift): New rule.
70566         (rel): Add dayshift.
70567         (relative_time_table) [tomorrow, yesterday, today, now]:
70568         Use tDAY_SHIFT in place of tDAY_UNIT.
70569         * tests/test-getdate.c: Add tests for now-disallowed countable
70570         dayshifts, e.g., "4 yesterday ago".
70572 2008-09-29  Bruno Haible  <bruno@clisp.org>
70574         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
70575         * tests/test-posix_spawn1.in.sh: Renamed from
70576         tests/test-posix_spawn.in.sh.
70577         * tests/test-posix_spawn2.c: New file.
70578         * tests/test-posix_spawn2.in.sh: New file.
70579         * modules/posix_spawnp-tests (Files): Update.
70580         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
70582 2008-09-29  Bruno Haible  <bruno@clisp.org>
70584         Propagate effects of putenv/setenv/unsetenv to child processes.
70585         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
70586         * lib/pipe.c (create_pipe): Likewise.
70588 2008-09-29  Bruno Haible  <bruno@clisp.org>
70590         Enable use of shell scripts as executables in mingw.
70591         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
70592         run the program as a shell script.
70593         * lib/pipe.c (create_pipe): Likewise.
70594         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
70595         resulting array.
70597 2008-09-29  Eric Blake  <ebb9@byu.net>
70599         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
70601 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
70603         * doc/posix-functions/accept.texi: Update mingw problems.
70604         * doc/posix-functions/bind.texi: Update mingw problems.
70605         * doc/posix-functions/close.texi: Update mingw problems.
70606         * doc/posix-functions/connect.texi: Update mingw problems.
70607         * doc/posix-functions/getpeername.texi: Update mingw problems.
70608         * doc/posix-functions/getsockname.texi: Update mingw problems.
70609         * doc/posix-functions/getsockopt.texi: Update mingw problems.
70610         * doc/posix-functions/ioctl.texi: Update mingw problems.
70611         * doc/posix-functions/listen.texi: Update mingw problems.
70612         * doc/posix-functions/recv.texi: Update mingw problems.
70613         * doc/posix-functions/recvfrom.texi: Update mingw problems.
70614         * doc/posix-functions/select.texi: Update mingw problems.
70615         * doc/posix-functions/send.texi: Update mingw problems.
70616         * doc/posix-functions/sendto.texi: Update mingw problems.
70617         * doc/posix-functions/setsockopt.texi: Update mingw problems.
70618         * doc/posix-functions/socket.texi: Update mingw problems.
70620 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
70621             Bruno Haible  <bruno@clisp.org>
70623         * lib/sys_select.in.h: Include sys/time.h.
70624         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
70625         * modules/sys_select: Depend on sys_time.
70626         * tests/test-sys_select.c: Test that sys/select.h defines struct
70627         timeval fully.
70629 2008-09-29  Bruno Haible  <bruno@clisp.org>
70631         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
70632         * lib/sys_select.in.h: Likewise.
70634 2008-09-29  Bruno Haible  <bruno@clisp.org>
70636         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
70638 2008-09-29  Bruno Haible  <bruno@clisp.org>
70640         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
70641         Set LIBSOCKET instead of augmenting LIBS.
70642         * modules/sockets (Link): New section.
70643         * modules/sockets-tests (test_sockets_LDADD): New variable.
70644         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
70645         * modules/poll-tests (test_poll_LDADD): New variable.
70646         * NEWS: Document the change.
70648 2008-09-29  Bruno Haible  <bruno@clisp.org>
70650         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
70651         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
70652         ARPA_INET_H directly.
70653         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
70655 2008-09-28  Bruno Haible  <bruno@clisp.org>
70657         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
70658         from gl_HEADER_SYS_SOCKET.
70659         (gl_HEADER_SYS_SOCKET): Invoke it.
70660         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
70662 2008-09-28  Bruno Haible  <bruno@clisp.org>
70664         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
70665         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
70666         Needed on OSF/1 4.0.
70668 2008-09-28  Bruno Haible  <bruno@clisp.org>
70670         Override open more carefully.
70671         * lib/open.c (orig_open): New function.
70672         (rpl_open): Use orig_open instead of open.
70673         * lib/fcntl.in.h: Add special invocation convention.
70674         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
70675         (gl_FUNC_OPEN): Invoke it.
70677         Override freopen more carefully.
70678         * lib/freopen.c (orig_freopen): New function.
70679         (rpl_freopen): Use orig_freopen instead of freopen.
70680         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
70681         (gl_FUNC_FREOPEN): Invoke it.
70683         Override fopen more carefully.
70684         * lib/fopen.c (orig_fopen): New function.
70685         (rpl_fopen): Use orig_fopen instead of fopen.
70686         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
70687         (gl_FUNC_FOPEN): Invoke it.
70688         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
70690 2008-09-28  Bruno Haible  <bruno@clisp.org>
70692         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
70693         SIGPIPE.
70695 2008-09-28  Bruno Haible  <bruno@clisp.org>
70697         * tests/test-sigaction.c (handler, main): Disable the check whether
70698         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
70699         glibc systems with LinuxThreads.
70701 2008-09-28  Bruno Haible  <bruno@clisp.org>
70703         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
70705         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
70706         with AIX xlc.
70707         * lib/fcntl.in.h (open): Likewise.
70708         Reported by Rainer Tammer <tammer@tammer.net>.
70710 2008-09-28  Bruno Haible  <bruno@clisp.org>
70712         * modules/posix_spawnp-tests: New file.
70713         * tests/test-posix_spawn.c: New file.
70714         * tests/test-posix_spawn.in.sh: New file.
70716         New module 'posix_spawnp'.
70717         * modules/posix_spawnp: New file.
70718         * lib/spawnp.c: New file, from GNU libc with modifications.
70719         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
70721         New module 'posix_spawn'.
70722         * modules/posix_spawn: New file.
70723         * lib/spawn.c: New file, from GNU libc with modifications.
70724         * doc/posix-functions/posix_spawn.texi: Mention the new module.
70726         New module 'posix_spawnattr_destroy'.
70727         * modules/posix_spawnattr_destroy: New file.
70728         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
70729         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
70730         module.
70732         New module 'posix_spawnattr_setsigmask'.
70733         * modules/posix_spawnattr_setsigmask: New file.
70734         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
70735         modifications.
70736         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
70737         new module.
70739         New module 'posix_spawnattr_getsigmask'.
70740         * modules/posix_spawnattr_getsigmask: New file.
70741         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
70742         modifications.
70743         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
70744         new module.
70746         New module 'posix_spawnattr_setsigdefault'.
70747         * modules/posix_spawnattr_setsigdefault: New file.
70748         * lib/spawnattr_setdefault.c: New file, from GNU libc with
70749         modifications.
70750         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
70751         new module.
70753         New module 'posix_spawnattr_getsigdefault'.
70754         * modules/posix_spawnattr_getsigdefault: New file.
70755         * lib/spawnattr_getdefault.c: New file, from GNU libc with
70756         modifications.
70757         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
70758         new module.
70760         New module 'posix_spawnattr_setschedpolicy'.
70761         * modules/posix_spawnattr_setschedpolicy: New file.
70762         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
70763         modifications.
70764         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
70765         new module.
70767         New module 'posix_spawnattr_getschedpolicy'.
70768         * modules/posix_spawnattr_getschedpolicy: New file.
70769         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
70770         modifications.
70771         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
70772         new module.
70774         New module 'posix_spawnattr_setschedparam'.
70775         * modules/posix_spawnattr_setschedparam: New file.
70776         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
70777         modifications.
70778         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
70779         new module.
70781         New module 'posix_spawnattr_getschedparam'.
70782         * modules/posix_spawnattr_getschedparam: New file.
70783         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
70784         modifications.
70785         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
70786         new module.
70788         New module 'posix_spawnattr_setpgroup'.
70789         * modules/posix_spawnattr_setpgroup: New file.
70790         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
70791         modifications.
70792         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
70793         module.
70795         New module 'posix_spawnattr_getpgroup'.
70796         * modules/posix_spawnattr_getpgroup: New file.
70797         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
70798         modifications.
70799         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
70800         module.
70802         New module 'posix_spawnattr_setflags'.
70803         * modules/posix_spawnattr_setflags: New file.
70804         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
70805         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
70806         module.
70808         New module 'posix_spawnattr_getflags'.
70809         * modules/posix_spawnattr_getflags: New file.
70810         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
70811         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
70812         module.
70814         New module 'posix_spawnattr_init'.
70815         * modules/posix_spawnattr_init: New file.
70816         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
70817         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
70818         module.
70820         New module 'posix_spawn_file_actions_destroy'.
70821         * modules/posix_spawn_file_actions_destroy: New file.
70822         * lib/spawn_faction_destroy.c: New file, from GNU libc with
70823         modifications.
70824         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
70825         the new module.
70827         New module 'posix_spawn_file_actions_addopen'.
70828         * modules/posix_spawn_file_actions_addopen: New file.
70829         * lib/spawn_faction_addopen.c: New file, from GNU libc with
70830         modifications.
70831         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
70832         the new module.
70834         New module 'posix_spawn_file_actions_adddup2'.
70835         * modules/posix_spawn_file_actions_adddup2: New file.
70836         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
70837         modifications.
70838         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
70839         the new module.
70841         New module 'posix_spawn_file_actions_addclose'.
70842         * modules/posix_spawn_file_actions_addclose: New file.
70843         * lib/spawn_faction_addclose.c: New file, from GNU libc with
70844         modifications.
70845         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
70846         the new module.
70848         New module 'posix_spawn_file_actions_init'.
70849         * modules/posix_spawn_file_actions_init: New file.
70850         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
70851         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
70852         new module.
70854         New module 'posix_spawn-internal'.
70855         * modules/posix_spawn-internal: New file.
70856         * lib/spawn_int.h: New file, from GNU libc with modifications.
70857         * lib/spawni.c: New file, from GNU libc with modifications.
70858         * m4/posix_spawn.m4: New file.
70860         New module 'spawn'.
70861         * modules/spawn: New file.
70862         * lib/spawn.in.h: New file, from GNU libc with modifications.
70863         * m4/spawn_h.m4: New file.
70864         * doc/posix-headers/spawn.texi: Mention the new module.
70866 2008-09-28  Bruno Haible  <bruno@clisp.org>
70868         * modules/sched-tests: New file.
70869         * tests/test-sched.c: New file.
70871         New module 'sched'.
70872         * modules/sched: New file.
70873         * lib/sched.in.h: New file.
70874         * m4/sched_h.m4: New file.
70875         * doc/posix-headers/sched.texi: Mention the new module.
70877 2008-09-27  Eric Blake  <ebb9@byu.net>
70879         Fix previous patch, and tweak references to $0.
70880         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
70881         (func_version, func_gnulib_dir): Don't call this program
70882         gnulib-tool.
70883         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
70884         with using $0 in function.
70885         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
70886         (func_fatal_error): Reuse the name the user invoked us with.
70888 2008-09-27  Bruno Haible  <bruno@clisp.org>
70890         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
70891         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
70892         (gl_ICONV_H): Not here.
70893         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
70894         instead of assigning ICONV_H directly.
70896         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
70897         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
70898         WCHAR_H directly.
70900 2008-09-27  Bruno Haible  <bruno@clisp.org>
70902         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
70903         * modules/arpa_inet (Depends-on): Add link-warning.
70904         (Makefile.am): Insert the definition of GL_LINK-WARNING.
70905         * modules/unistd (Makefile.am): Likewise.
70907 2008-09-26  Bruno Haible  <bruno@clisp.org>
70909         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
70910         variables.
70911         (func_version): Essentially copied from gnulib-tool.
70912         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
70913         func_readlink): Copied from gnulib-tool.
70915 2008-09-26  Bruno Haible  <bruno@clisp.org>
70917         * gnulib-tool (func_version): Change directory to $gnulib_dir before
70918         invoking git-version-gen.
70920 2008-09-26  Bruno Haible  <bruno@clisp.org>
70922         * posix-modules: Update to directory names changed on 2008-01-19.
70923         Remove commas in output before splitting into words. No more need to
70924         avoid 'ftruncate' since 2007-02-19.
70926 2008-09-26  Bruno Haible  <bruno@clisp.org>
70928         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
70930 2008-09-26  Bruno Haible  <bruno@clisp.org>
70932         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
70933         * modules/fwriteerror (Depends-on): Add errno.
70935 2008-09-26  Bruno Haible  <bruno@clisp.org>
70937         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
70938         * tests/test-vc-list-files-cvs.sh: Likewise.
70940 2008-09-26  Bruno Haible  <bruno@clisp.org>
70942         * doc/posix-headers/sys_resource.texi: Reorder items.
70944 2008-09-26  Jim Meyering  <meyering@redhat.com>
70946         fts: tweak inode comparison function
70947         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
70948         inode numbers, as documented.
70950         fts: sort dirent entries on inode number before traversing
70951         This avoids a quadratic, seek-related performance penalty when
70952         operating on a directory containing many entries (measurable at 10k;
70953         3.5 hours at 2 million entries with a cold cache) on certain types
70954         of file systems, including ext3 and ext4, but not tmpfs.
70955         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
70956         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
70957         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
70958         (fs_handles_readdir_ordered_dirents_efficiently): New function.
70959         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
70960         (fts_build): Set the stat.st_ino member from D_INO.
70961         If it is likely to be useful, sort dirent entries on inode number.
70963         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
70964         and the struct statfs.f_type member.
70965         * modules/fts (Depends-on): Add d-ino.
70967 2008-09-26  Bruno Haible  <bruno@clisp.org>
70969         * modules/sigpipe-die (Depends-on): Add sigpipe.
70971         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
70972         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
70973         and GNULIB_STDIO_H_SIGPIPE are set.
70974         * lib/stdio-write.c: New file.
70975         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
70976         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
70977         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
70978         REPLACE_STDIO_WRITE_FUNCS.
70979         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
70980         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
70981         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
70982         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
70983         * modules/stdio (Files): Add lib/stdio-write.c.
70984         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
70985         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
70986         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
70987         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
70988         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
70989         REPLACE_FPRINTF_POSIX.
70990         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
70991         REPLACE_PRINTF_POSIX.
70992         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
70993         REPLACE_VFPRINTF_POSIX.
70994         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
70995         REPLACE_VPRINTF_POSIX.
70996         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
70997         SIGPIPE issue.
70998         * doc/posix-functions/fputc.texi: Likewise.
70999         * doc/posix-functions/fputs.texi: Likewise.
71000         * doc/posix-functions/fwrite.texi: Likewise.
71001         * doc/posix-functions/printf.texi: Likewise.
71002         * doc/posix-functions/putc.texi: Likewise.
71003         * doc/posix-functions/putchar.texi: Likewise.
71004         * doc/posix-functions/puts.texi: Likewise.
71005         * doc/posix-functions/vfprintf.texi: Likewise.
71006         * doc/posix-functions/vprintf.texi: Likewise.
71008         * modules/safe-write (Depends-on): Add write.
71010         * modules/sigpipe-tests: New file.
71011         * tests/test-sigpipe.c: New file.
71012         * tests/test-sigpipe.sh: New file.
71014         * modules/write: New file.
71015         * lib/unistd.in.h: Include <sys/types.h>.
71016         (write): New declaration.
71017         * lib/write.c: New file.
71018         * m4/write.m4: New file.
71019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
71020         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
71021         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
71022         GNULIB_WRITE, REPLACE_WRITE.
71023         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
71024         and the SIGPIPE issue.
71026         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
71027         (raise): New declaration.
71028         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
71029         (ext_signal): New function.
71030         (rpl_raise): New function.
71031         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
71032         GNULIB_SIGNAL_H_SIGPIPE.
71033         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
71034         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
71036         * modules/sigpipe: New file.
71037         * m4/sigpipe.m4: New file.
71039 2008-09-25  Derek Price  <derek@ximbiot.com>
71040             Bruno Haible  <bruno@clisp.org>
71042         * gnulib-tool (func_import): Report all license incompatibilities, not
71043         just the first one.
71045 2008-09-25  Bruno Haible  <bruno@clisp.org>
71047         * gnulib-tool (func_import): When computing the edits, consider not
71048         only the Makefile.ams that exist but also those that will be generated.
71050 2008-09-25  Simon Josefsson  <simon@josefsson.org>
71052         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
71053         fixes gnulib-tool --test warning about duplicate dependency.
71055 2008-09-25  Bruno Haible  <bruno@clisp.org>
71057         * gnulib-tool: Don't ask the user to perform edits in the generated
71058         Makefile.ams.
71059         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
71060         apply to the Makefile.am being generated.
71061         (func_emit_tests_Makefile_am): Execute edits that apply to the
71062         Makefile.am being generated.
71063         (func_import): Setup list of Makefile.am edits before emitting the
71064         Makefile.ams, not at the end.
71065         (func_create_testdir): Update.
71066         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71068 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71070         * gnulib-tool (func_import): Store the --tests-base option in the
71071         comment in gnulib-cache.m4.
71073 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
71075         * NEWS: Document increased portability that sys_select now provides.
71077         * lib/sys_select.in.h: Install select wrapper.
71078         * lib/sys_socket.in.h: Use more descriptive name when there is no
71079         select wrapper.
71080         * lib/winsock-select.c: New.
71081         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
71082         Require gl_HEADER_SYS_SOCKET.
71083         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
71084         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
71085         * tests/test-sys_select.c: Add functional tests.
71087 2008-09-24  Eric Blake  <ebb9@byu.net>
71089         open, fopen: close fd leak in last patch
71090         * lib/open.c (rpl_open): Close fd before returning error.
71091         * lib/fopen.c (rpl_fopen): Close fd before returning error.
71092         * doc/posix-functions/open.texi (open): Document that Irix also
71093         has the bug.
71094         * doc/posix-functions/fopen.texi (fopen): Likewise.
71095         Reported by Paolo Bonzini.
71097 2008-09-24  Bruno Haible  <bruno@clisp.org>
71099         Ensure that a filename ending in a slash cannot be used to access a
71100         non-directory.
71101         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
71102         to check whether it's really a directory.
71103         * lib/fopen.c: Include fcntl.h, unistd.h.
71104         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
71105         and fdopen().
71106         * modules/fopen (Depends-on): Add unistd.
71107         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
71108         * tests/test-fopen.c (main): Likewise.
71109         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
71110         * doc/posix-functions/fopen.texi: Likewise.
71111         Reported by Eric Blake.
71113 2008-09-23  Eric Blake  <ebb9@byu.net>
71115         c-stack: avoid compiler optimizations when provoking overflow
71116         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
71117         recursion harder to optimize, to ensure a stack overflow occurs.
71118         * tests/test-c-stack.c (recurse): Likewise.
71119         Borrowed from libsigsegv.
71121         c-stack: work around Irix sigaltstack bug
71122         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
71123         whether sigaltstack uses wrong end of stack_t (copied in part from
71124         libsigsegv).
71125         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
71126         Irix bug, without requiring an over-allocation.
71127         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
71128         bug.
71130         fopen: document mingw bug on directories
71131         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
71132         not allowing a stream visiting a directory, even though reading
71133         from such a stream is not portable.
71135 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
71137         * lib/poll.c: Rewrite.
71138         * modules/poll: Depend on alloca.
71140 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
71142         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
71143         instead define prototypes for a full set of wrappers.  Ensure
71144         that Cygwin does not use the compatibility code, which is only
71145         for MinGW.
71146         * lib/winsock.c: New.
71147         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
71148         * modules/sys_socket: Add lib/winsock.c.
71150         * modules/poll-tests: Add errno and perror.
71151         * tests/test-poll.c: Use ioctl, not ioctlsocket.
71153 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
71155         * tests/test-poll.c: Downgrade minimum needed Winsock version.
71157 2008-09-23  Bruno Haible  <bruno@clisp.org>
71159         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
71160         * doc/glibc-functions/*: Likewise.
71162 2008-09-23  Simon Josefsson  <simon@josefsson.org>
71164         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
71165         success.
71167 2008-09-22  Eric Blake  <ebb9@byu.net>
71168             Bruno Haible  <bruno@clisp.org>
71170         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
71171         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
71172         supply %A but mishandle pseudo-NaN.
71173         Reported by Simon Josefsson.
71175 2008-09-21  Bruno Haible  <bruno@clisp.org>
71177         * tests/test-lock.c (main): Tweak skip message.
71178         * tests/test-tls.c (main): Likewise.
71180 2008-09-21  Bruno Haible  <bruno@clisp.org>
71182         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
71183         whether 'struct sigaction' has sa_sigaction here...
71184         (gl_PREREQ_SIG_HANDLER_H): ... not here.
71185         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
71187 2008-09-21  Bruno Haible  <bruno@clisp.org>
71189         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
71190         section.
71191         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
71192         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
71193         the new section.
71194         (Support for obsolete systems lacking POSIX:2001): New section.
71195         (String handling <string.h>): Move strdup to the new section.
71196         Suggested by Simon Josefsson and Paolo Bonzini.
71198 2008-09-21  Bruno Haible  <bruno@clisp.org>
71200         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
71201         exponents in %e and %g results on 'long double'. Needed for mingw's
71202         improved *printf functions.
71203         * tests/test-vasprintf-posix.c (test_function): Likewise.
71204         * tests/test-snprintf-posix.h (test_function): Likewise.
71205         * tests/test-sprintf-posix.h (test_function): Likewise.
71206         Reported by Eric Blake.
71208 2008-09-21  Bruno Haible  <bruno@clisp.org>
71210         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
71211         * tests/test-sprintf-posix.h (test_function): Likewise.
71213 2008-09-21  Bruno Haible  <bruno@clisp.org>
71215         * modules/getpass (Depends-on): Add strdup-posix.
71217         New module 'strdup-posix'.
71218         * modules/strdup-posix: New file.
71219         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
71220         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
71221         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
71222         REPLACE_STRDUP.
71223         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
71224         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
71225         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71226         strdup-posix.
71228         * modules/strdup (Depends-on): Remove malloc-posix.
71230 2008-09-20  Bruno Haible  <bruno@clisp.org>
71232         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
71233         Wildenhues.
71235 2008-09-20  Bruno Haible  <bruno@clisp.org>
71237         Ensure that wint_t gets defined on IRIX 5.3.
71238         * lib/wchar.in.h (wint_t): Define if not defined by the system.
71239         * lib/wctype.in.h (wint_t): Likewise.
71240         (__wctype_wint_t): Remove type.
71241         (isw*): Use wint_t instead of __wctype_wint_t.
71242         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
71243         * modules/wchar (Files): Add m4/wint_t.m4.
71244         (Makefile.am): Substitute HAVE_WINT_T.
71245         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
71246         * tests/test-wctype.c: Check that wint_t is defined.
71247         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
71248         * doc/posix-headers/wctype.texi: Likewise.
71249         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
71251 2008-09-18  Bruno Haible  <bruno@clisp.org>
71253         * gnulib-tool (func_exit): Update comment.
71255 2008-09-18  Simon Josefsson  <simon@josefsson.org>
71257         * modules/getaddrinfo (Depends-on): Remove strdup, this module
71258         assumes strdup exists and does not depend on strdup to return
71259         ENOMEM on out of memory conditions.
71261 2008-09-18  Bruno Haible  <bruno@clisp.org>
71263         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
71264         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
71265         digits for the exponent.
71267 2008-09-18  Jim Meyering  <meyering@redhat.com>
71268             Bruno Haible  <bruno@clisp.org>
71270         * lib/vasnprintf.c (decimal_point_char): Define also if
71271         NEED_PRINTF_INFINITE_LONG_DOUBLE.
71273 2008-09-16  Bruno Haible  <bruno@clisp.org>
71274         and Eric Blake  <ebb9@byu.net>
71276         vasnprintf: support Irix 5.3
71277         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
71278         that mishandle long double infinity.
71279         Reported by Tom G. Christensen.
71281 2008-09-16  Bruno Haible  <bruno@clisp.org>
71283         * doc/glibc-functions/scandir.texi: Mention the function is missing on
71284         Solaris 9.
71285         * doc/glibc-functions/alphasort.texi: Likewise.
71286         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
71288 2008-09-16  Jim Meyering  <meyering@redhat.com>
71290         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
71291         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
71292         a umask modification leak out of a subshell.  Otherwise, the
71293         opensolaris /bin/sh would be accepted and thus cause unwarranted
71294         failures in the coreutils test suite.
71296 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
71298         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
71299         to succeed.
71301 2008-09-16  Jim Meyering  <meyering@redhat.com>
71303         avoid spurious test failure when library is built without ACL support
71304         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
71305         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
71306         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
71307         * tests/test-copy-acl.sh: Likewise.
71309 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71311         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
71312         based on character occurrence counts.
71314 2008-09-15  Eric Blake  <ebb9@byu.net>
71316         tests: avoid some compiler warnings
71317         * tests/test-memchr.c (main): Pass NULL indirectly.
71318         * tests/test-closein.c (main): Avoid unused variable.
71320 2008-09-15  Bruno Haible  <bruno@clisp.org>
71322         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
71323         are missing on OpenBSD 4.0 individually.
71324         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71326 2008-09-15  Bruno Haible  <bruno@clisp.org>
71328         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
71329         * doc/posix-functions/strerror.texi: Mention also Cygwin.
71330         * doc/posix-functions/perror.texi: Likewise.
71331         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
71332         is missing.
71333         Reported by Eric Blake.
71335         * lib/errno.in.h: Use replacement values >= 2000.
71336         Reported by Eric Blake.
71338 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71340         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
71341         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
71342         limit.
71343         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
71344         compareseq was aborted.
71346 2008-09-14  Bruno Haible  <bruno@clisp.org>
71348         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
71349         yvec_edit_count.
71350         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
71351         (fstrcmp_bounded): Simplify result computation accordingly.
71353 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71355         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
71356         (fstrcmp): Define in terms of fstrcmp_bounded.
71357         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
71358         lower_bound argument.
71359         Return quickly if the result is certainly < lower_bound.
71360         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
71362 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71364         * lib/diffseq.h (EARLY_ABORT): New macro.
71365         (compareseq): Change return type to bool. Return true when EARLY_ABORT
71366         evaluates to true.
71368 2008-09-14  Bruno Haible  <bruno@clisp.org>
71370         * modules/perror-tests: New file.
71371         * tests/test-perror.sh: New file.
71372         * tests/test-perror.c: New file.
71374         New module 'perror'.
71375         * lib/stdio.in.h (perror): New declaration.
71376         * lib/perror.c: New file.
71377         * m4/perror.m4: New file.
71378         * modules/perror: New file.
71379         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
71380         * doc/posix-functions/perror.texi: Mention the perror module.
71381         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
71382         REPLACE_PERROR.
71383         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
71384         REPLACE_PERROR.
71386 2008-09-14  Bruno Haible  <bruno@clisp.org>
71388         * modules/stdio (Makefile.am): Reorder to match the order in
71389         lib/stdio.in.h.
71390         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
71392 2008-09-13  Bruno Haible  <bruno@clisp.org>
71394         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
71396 2008-09-13  Bruno Haible  <bruno@clisp.org>
71398         Extend strerror to cover the added errno values.
71399         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
71400         (rpl_strerror): Provide error messages for the added errno values and
71401         for the WSA* values.
71402         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
71403         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
71404         strerror.
71405         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
71406         * modules/strerror (Depends-on): Add errno.
71407         * doc/posix-functions/strerror.texi: Document the change.
71408         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
71409         and EOVERFLOW.
71411 2008-09-13  Bruno Haible  <bruno@clisp.org>
71413         * modules/EOVERFLOW: Remove file.
71414         * m4/eoverflow.m4: Remove file.
71415         * modules/EOVERFLOW-tests: Remove file.
71416         * tests/test-EOVERFLOW.c: Remove file.
71417         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
71418         * modules/ftell (Depends-on): Likewise.
71419         * modules/getdelim (Depends-on): Likewise.
71420         * modules/getugroups (Depends-on): Likewise.
71421         * modules/poll (Depends-on): Likewise.
71422         * modules/snprintf (Depends-on): Likewise.
71423         * modules/sprintf-posix (Depends-on): Likewise.
71424         * modules/vasnprintf (Depends-on): Likewise.
71425         * modules/vasprintf (Depends-on): Likewise.
71426         * modules/vfprintf-posix (Depends-on): Likewise.
71427         * modules/vsnprintf (Depends-on): Likewise.
71428         * modules/vsprintf-posix (Depends-on): Likewise.
71429         * modules/xvasprintf (Depends-on): Likewise.
71430         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
71431         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
71432         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
71433         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
71434         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
71435         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
71436         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
71437         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
71438         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
71439         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
71440         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
71441         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
71442         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
71443         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
71444         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
71445         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
71446         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
71447         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
71448         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
71449         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
71450         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
71451         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
71452         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
71453         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
71454         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
71455         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
71456         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
71457         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
71458         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
71459         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
71460         * MODULES.html.sh: Remove EOVERFLOW.
71461         * NEWS: Mention the change.
71463 2008-09-13  Bruno Haible  <bruno@clisp.org>
71465         * modules/errno-tests: New file.
71466         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
71468         * lib/errno.in.h: New file.
71469         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
71470         * modules/errno: New file.
71471         * doc/posix-headers/errno.texi: Update documentation.
71472         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
71474 2008-09-13  Bruno Haible  <bruno@clisp.org>
71476         * tests/test-poll.c: Use #if for native Windows, rather than testing
71477         __MSVCRT__.
71479 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71480             Bruno Haible  <bruno@clisp.org>
71482         * lib/glob.c: Don't include <pwd.h> on native Windows.
71483         (WINDOWS32): New macro.
71484         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
71486 2008-09-13  Bruno Haible  <bruno@clisp.org>
71488         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
71489         (ETIMEDOUT): Remove macro.
71490         (glthread_cond_timedwait_multithreaded): New declaration.
71491         (glthread_cond_timedwait): Use it.
71492         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
71493         (glthread_cond_timedwait_multithreaded): New function.
71495 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
71497         * modules/poll-tests: Do not check for io.h.
71498         * tests/test-poll.c: Check for __MSVCRT__ instead.
71500 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
71502         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
71503         * modules/poll-tests: Add inet_pton, stdbool, sockets.
71504         * tests/test-poll.c: Use them.  Use _pipe on Windows.
71506 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
71508         * modules/poll-tests: New.
71509         * tests/test-poll.c: New.
71511 2008-09-12  Eric Blake  <ebb9@byu.net>
71513         frexp: test for NetBSD failure on -0.0
71514         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
71515         not all, bugs from NetBSD 3.0 have been fixed.
71516         * doc/posix-functions/frexp.texi (frexp): Document bug.
71517         Reported by Thomas Klausner.
71519         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
71520         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
71521         literal -0.0.
71522         Reported by Jonathan C. Patschke <jp@centtech.com>.
71524 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71526         * lib/glthread/cond.h: Use dummy implementation also if
71527         USE_WIN32_THREADS.
71529 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71531         * modules/fnmatch-posix (License): Change to LGPLv2+.
71532         * modules/fnmatch-gnu (License): Likewise.
71534 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71536         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
71538 2008-09-11  Jim Meyering  <meyering@redhat.com>
71540         * users.txt: Add gtk-vnc.
71542 2008-09-08  Simon Josefsson  <simon@josefsson.org>
71544         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
71545         rotate amounts.
71547         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
71548         required for 16-bit and 8-bit rotates.
71549         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
71550         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
71551         UINT8_MAX instead of hard-coded constants.
71552         Suggested by Paul Eggert.
71554 2008-09-07  Bruno Haible  <bruno@clisp.org>
71556         * tests/test-striconveh.c (main): Check behaviour when converting from
71557         UTF-7.
71559         Make striconveh work better with stateful encodings.
71560         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
71561         that iconv does not increment the inptr when returning -1/EINVAL.
71563 2008-09-07  Bruno Haible  <bruno@clisp.org>
71565         * build-aux/config.rpath: Update according to libtool-2.2.6.
71566         * build-aux/config.libpath: Likewise.
71568 2008-09-06  Bruno Haible  <bruno@clisp.org>
71570         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
71571         * lib/freadptr.c (freadptr): Likewise.
71572         * lib/freadseek.c (freadptrinc): Likewise.
71573         Reported by Simon Josefsson.
71575 2008-09-06  Bruno Haible  <bruno@clisp.org>
71577         * modules/freadptr (License): Change to LGPLv2+.
71578         * modules/freadseek (License): Likewise.
71579         Suggested by Eric Blake.
71581         * modules/memchr2 (License): Change to LGPLv2+.
71582         Approved by Eric Blake.
71584 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71585             Bruno Haible  <bruno@clisp.org>
71587         Make gnulib-tool work with native 'sed' on AIX.
71588         * gnulib-tool (sed_noop): New variable.
71589         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
71590         func_add_or_update, func_create_testdir): Use it to initialize sed
71591         script variables.
71592         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71594 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
71595             Bruno Haible  <bruno@clisp.org>
71597         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
71598         also works after #include directives.
71600 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
71602         getdate.y: reject an out-of-range timezone value
71603         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
71604         the range [-24...+24].  When specified with only one or two digits,
71605         * tests/test-getdate.c: Tests for the fix.
71606         * doc/getdate.texi: Document this change.
71608 2008-09-03  Bruno Haible  <bruno@clisp.org>
71610         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
71612 2008-09-02  Simon Josefsson  <simon@josefsson.org>
71614         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
71615         <bruce.korb@gmail.com> with ideas from Ben Pfaff
71616         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
71617         Blake <ebb9@byu.net>.
71619         * tests/test-bitrotate.c: Add more test vectors.
71621 2008-09-02  Eric Blake  <ebb9@byu.net>
71623         vasnprintf-posix: handle large precision via %.*d
71624         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
71625         when handling it ourselves.
71626         * tests/test-vasnprintf-posix.c (test_function): Add test.
71627         * tests/test-snprintf-posix.h (test_function): Likewise.
71628         * tests/test-sprintf-posix.h (test_function): Likewise.
71629         * tests/test-vasprintf-posix.c (test_function): Likewise.
71630         Reported by Alain Guibert.
71632 2008-09-01  Eric Blake  <ebb9@byu.net>
71634         c-stack: make configure-time check more robust
71635         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
71636         successful sigaction call.
71637         Reported by Tom G. Christensen.
71639 2008-09-01  Bruno Haible  <bruno@clisp.org>
71641         New module 'findprog-lgpl'.
71642         * modules/findprog-lgpl: New file.
71643         * lib/findprog-lgpl.c: New file.
71644         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
71645         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
71646         to decide whether to use strdup or xstrdup, concatenated_filename or
71647         xconcatenated_filename.
71649 2008-09-01  Bruno Haible  <bruno@clisp.org>
71651         Split module 'concat-filename' into 'concat-filename' (LGPL) and
71652         'xconcat-filename' (GPL).
71653         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
71654         (License): Change to LGPLv2+.
71655         * modules/xconcat-filename: New file.
71656         * lib/concat-filename.h (concatenated_filename): Change specification.
71657         (xconcatenated_filename): New declaration.
71658         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
71659         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
71660         memory situations.
71661         * lib/xconcat-filename.c: New file.
71662         * NEWS: Mention the change.
71663         * lib/findprog.c: Include concat-filename.h, not filename.h.
71664         (find_in_path): Use xconcatenated_filename instead of
71665         concatenated_filename.
71666         * lib/javacomp.c: Include concat-filename.h, not filename.h.
71667         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
71668         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
71669         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
71670         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
71671         instead of concatenated_filename.
71672         * lib/javaexec.c: Include concat-filename.h, not filename.h.
71673         (execute_java_class): Use xconcatenated_filename instead of
71674         concatenated_filename.
71675         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
71676         * modules/javacomp (Depends-on): Likewise.
71677         * modules/javaexec (Depends-on): Likewise.
71679 2008-09-01  Bruno Haible  <bruno@clisp.org>
71681         Split module 'filename' into 'filename' and 'concat-filename'.
71682         * modules/filename: Keep only lib/filename.h.
71683         (License): Change to LGPLv2+.
71684         * modules/concat-filename: New file, extracted from modules/filename.
71685         * lib/filename.h (concatenated_filename): Remove declaration.
71686         * lib/concat-filename.h: New file, extracted from lib/filename.h.
71687         * lib/concat-filename.c: Include concat-filename.h.
71688         * NEWS: Mention the change.
71690 2008-09-01  Simon Josefsson  <simon@josefsson.org>
71692         * lib/bitrotate.h (rotl8, rotr8): Add.
71694         * modules/bitrotate (configure.ac): Need
71695         AC_REQUIRE([AC_C_INLINE]).
71696         (Description): Mention stdint.h.  Reported by Bruno Haible
71697         <bruno@clisp.org>.
71699         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
71700         Paolo Bonzini <bonzini@gnu.org>.
71702 2008-08-31  Bruno Haible  <bruno@clisp.org>
71704         Assume Solaris specific bi-arch conventions on Solaris systems.
71705         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
71706         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
71707         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
71708         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
71709         like acl_libdirstem.
71710         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
71711         acl_libdirstem.
71712         * NEWS: Mention the change.
71713         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
71715 2008-08-31  Jim Meyering  <meyering@redhat.com>
71717         * lib/strftime.h: Add comments describing the two added arguments.
71719         remove duplicate #include directives
71720         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
71721         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
71723 2008-08-31  Bruno Haible  <bruno@clisp.org>
71725         New module 'sigpipe-die'.
71726         * modules/sigpipe-die: New file.
71727         * lib/sigpipe-die.h: New file.
71728         * lib/sigpipe-die.c: New file.
71729         * MODULES.html.sh (Signal handling): Add sigpipe-die.
71731 2008-08-31  Bruno Haible  <bruno@clisp.org>
71733         Don't override previously installed signal handlers.
71734         * lib/fatal-signal.c (saved_sigactions): New variable.
71735         (uninstall_handlers): Reset the signal to the saved handler, not
71736         to SIG_DFL (except when ignored).
71737         (install_handlers): Save the previous handlers.
71739 2008-08-30  Bruno Haible  <bruno@clisp.org>
71741         * gnulib-tool (func_reset_sigpipe): New function.
71742         (func_get_automake_snippet, func_modules_transitive_closure,
71743         func_import): Invoke it before a join command that reads from stdin,
71744         to avoid "echo: write error: Broken pipe" error messages on stderr.
71745         Reported by Sam Steingold <sds@gnu.org>.
71747 2008-08-30  Bruno Haible  <bruno@clisp.org>
71749         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
71750         Code copied from m4/open.m4.
71751         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
71752         access and the filename ends in a slash. Code copied from lib/open.c.
71753         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
71754         * tests/test-fopen.c (main): Check against bug with trailing slash.
71756 2008-08-29  Bruno Haible  <bruno@clisp.org>
71758         Avoid some "gcc -pedantic" warnings.
71759         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
71760         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
71761         * lib/dirent.in.h: Likewise.
71762         * lib/fcntl.in.h: Likewise.
71763         * lib/float.in.h: Likewise.
71764         * lib/iconv.in.h: Likewise.
71765         * lib/inttypes.in.h: Likewise.
71766         * lib/locale.in.h: Likewise.
71767         * lib/math.in.h: Likewise.
71768         * lib/netinet_in.in.h: Likewise.
71769         * lib/search.in.h: Likewise.
71770         * lib/signal.in.h: Likewise.
71771         * lib/stdarg.in.h: Likewise.
71772         * lib/stdint.in.h: Likewise.
71773         * lib/stdio.in.h: Likewise.
71774         * lib/stdlib.in.h: Likewise.
71775         * lib/string.in.h: Likewise.
71776         * lib/strings.in.h: Likewise.
71777         * lib/sys_select.in.h: Likewise.
71778         * lib/sys_socket.in.h: Likewise.
71779         * lib/sys_stat.in.h: Likewise.
71780         * lib/sys_time.in.h: Likewise.
71781         * lib/sysexits.in.h: Likewise.
71782         * lib/time.in.h: Likewise.
71783         * lib/unistd.in.h: Likewise.
71784         * lib/wchar.in.h: Likewise.
71785         * lib/wctype.in.h: Likewise.
71786         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
71787         * modules/fchdir (Makefile.am): Likewise.
71788         * modules/fcntl (Makefile.am): Likewise.
71789         * modules/float (Makefile.am): Likewise.
71790         * modules/iconv_open (Makefile.am): Likewise.
71791         * modules/inttypes (Makefile.am): Likewise.
71792         * modules/locale (Makefile.am): Likewise.
71793         * modules/math (Makefile.am): Likewise.
71794         * modules/netinet_in (Makefile.am): Likewise.
71795         * modules/search (Makefile.am): Likewise.
71796         * modules/signal (Makefile.am): Likewise.
71797         * modules/stdarg (Makefile.am): Likewise.
71798         * modules/stdint (Makefile.am): Likewise.
71799         * modules/stdio (Makefile.am): Likewise.
71800         * modules/stdlib (Makefile.am): Likewise.
71801         * modules/string (Makefile.am): Likewise.
71802         * modules/strings (Makefile.am): Likewise.
71803         * modules/sys_select (Makefile.am): Likewise.
71804         * modules/sys_socket (Makefile.am): Likewise.
71805         * modules/sys_stat (Makefile.am): Likewise.
71806         * modules/sys_time (Makefile.am): Likewise.
71807         * modules/sysexits (Makefile.am): Likewise.
71808         * modules/time (Makefile.am): Likewise.
71809         * modules/unistd (Makefile.am): Likewise.
71810         * modules/wchar (Makefile.am): Likewise.
71811         * modules/wctype (Makefile.am): Likewise.
71812         Reported by Reuben Thomas <rrt@sc3d.org>.
71814 2008-08-29  Bruno Haible  <bruno@clisp.org>
71816         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
71817         any more.
71819 2008-08-29  Simon Josefsson  <simon@josefsson.org>
71821         * MODULES.html.sh (Misc): Add bitrotate.
71823         * modules/bitrotate: New file.
71825         * lib/bitrotate.h: New file.
71827         * modules/bitrotate-tests: New file.
71829         * tests/test-bitrotate.c: New file.
71831         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
71832         on the bitrotate module.
71834         * lib/arctwo.c: Use new bitrotate module.
71836 2008-08-29  Jim Meyering  <meyering@redhat.com>
71838         bootstrap: merge changes from coreutils
71839         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
71840         of copied files.  Remove a kludge, now that this is fixed.
71841         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
71842         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
71843         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
71845 2008-08-29  Bruno Haible  <bruno@clisp.org>
71847         * MODULES.html.sh: Remove --cvs-urls option.
71849 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
71851         maint.mk: adjust to file name change
71852         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
71854 2008-08-28  Jim Meyering  <meyering@redhat.com>
71856         * modules/getndelim2 (License): Relicense to LGPLv2+.
71857         Approved by Richard Stallman for the version of 1995, and by
71858         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
71860 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
71862         * lib/getdelim.c (flockfile, funlockfile): Make all of them
71863         dummy if one is not available.  Do not touch them if
71864         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
71865         (getc_maybe_unlocked): New.
71866         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
71868 2008-08-26  Eric Blake  <ebb9@byu.net>
71870         doc/INSTALL: resync from autoconf
71871         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
71872         (INSTALL_PRELUDE): Delete; this is done more efficiently by
71873         moving...
71874         * install.texi [!autoconf]: ...here.  Resync from autoconf.
71875         * INSTALL: Regenerate.
71876         * INSTALL.ISO: New file.
71877         * INSTALL.UTF-8: Likewise.
71879 2008-08-26  Jim Meyering  <meyering@redhat.com>
71881         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
71882         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
71883         these definitions conditional, so that they may be overridden, too.
71885 2008-08-26  Bruno Haible  <bruno@clisp.org>
71887         Generate INSTALL file variants with prettier quotes.
71888         * doc/Makefile (INSTALL_PRELUDE): New macro.
71889         (INSTALL): Use it.
71890         (INSTALL.ISO, INSTALL.UTF-8): New rules.
71892 2008-08-26  Bruno Haible  <bruno@clisp.org>
71894         Run makeinfo in an English locale.
71895         * doc/Makefile (MAKEINFO): New variable.
71897 2008-08-26  Bruno Haible  <bruno@clisp.org>
71899         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
71900         Suggested by Eric Blake.
71902 2008-08-25  Bruno Haible  <bruno@clisp.org>
71904         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
71906 2008-08-25  Eric Blake  <ebb9@byu.net>
71908         c-stack: test that stack overflow can be caught
71909         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
71910         that platform allows handling stack overflow; at least OS/2 EMX
71911         has sigaltstack, but crashes before transferring control to
71912         handler on stack overflow.
71913         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
71914         check for HAVE_STACK_OVERFLOW_HANDLING.
71915         Reported by Elbert Pol.
71917 2008-08-25  Bruno Haible  <bruno@clisp.org>
71919         * doc/posix-functions/strftime.texi: Fix description of strftime
71920         module.
71922 2008-08-24  Bruno Haible  <bruno@clisp.org>
71924         * tests/uniwidth/test-uc_width2.c: New file.
71925         * tests/uniwidth/test-uc_width2.sh: New file.
71926         * modules/uniwidth/width-tests (Files): Add the new files.
71927         (TESTS): Add uniwidth/test-uc_width2.sh.
71928         (TESTS_ENVIRONMENT): New variable.
71929         (check_PROGRAMS): Add test-uc_width2.
71930         (test_uc_width2_SOURCES): New variable.
71932         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
71933         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
71934         not 0x00AB.
71935         Reported by Alexander V. Lukyanov <lav@netis.ru>.
71937 2008-08-22  Eric Blake  <ebb9@byu.net>
71939         test-lock, test-tls: mention why a test is skipped
71940         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
71941         skipped.
71942         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
71944         count-one-bits: relax license
71945         * modules/count-one-bits (License): Relicense to LGPLv2+.
71946         Suggested by Ludovic Courtès, approved by Ben Pfaff.
71948 2008-08-22  Andreas Schwab  <schwab@suse.de>
71950         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
71951         Remove spurious space in assignment.
71953 2008-08-21  Simon Josefsson  <simon@josefsson.org>
71955         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
71956         Paul Eggert <eggert@CS.UCLA.EDU>.
71958 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
71960         * modules/gettext: Add m4/threadlib.m4.
71962 2008-08-19  Eric Blake  <ebb9@byu.net>
71964         test-c-stack: fix compilation failure on FreeBSD 5.0
71965         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
71966         headers before <sys/resource.h>.
71967         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
71968         the bug.
71969         Reported by Nelson H. F. Beebe.
71971         strverscmp: migrate from "strverscmp.h" to <string.h>
71972         * modules/string (Makefile.am): Add new hooks.
71973         * modules/strverscmp (Files): Remove strverscmp.h.
71974         (Depends-on): Add string.
71975         (configure.ac): Add indicator.
71976         (Include): Mention new header.
71977         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
71978         defaults.
71979         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
71980         results.
71981         * lib/strverscmp.h: Delete.
71982         * lib/string.in.h (strverscmp): Provide declaration, when needed.
71983         * tests/test-strverscmp.c (includes): Adjust client.
71984         * lib/check-version.c (includes): Likewise.
71985         * NEWS: Document the change.
71987         strverscmp: add unit test
71988         * modules/strverscmp-tests: New file.
71989         * tests/test-strverscmp.c: Likewise.
71991 2008-08-19  Simon Josefsson  <simon@josefsson.org>
71993         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
71994         regarding Windows crypto stuff, from Mono.
71996 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
71998         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
71999         if present, for intel RND.  Return error on failures.
72001 2008-08-18  Ben Pfaff  <blp@gnu.org>
72003         gitlog-to-changelog: give better diagnostic for failed pipe-open
72004         * build-aux/gitlog-to-changelog: Improve error message: suggest
72005         that the version of Git may be too old.
72007 2008-08-18  Simon Josefsson  <simon@josefsson.org>
72009         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
72010         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
72012 2008-08-18  Bruno Haible  <bruno@clisp.org>
72014         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
72015         pthread_in_use().
72017 2008-08-18  Bruno Haible  <bruno@clisp.org>
72019         * lib/glthread/threadlib.c: Include <pthread.h>.
72021 2008-08-18  Bruno Haible  <bruno@clisp.org>
72023         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
72024         glthread_recursive_lock_* macros.
72025         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
72026         Fix syntax error.
72028 2008-08-18  Bruno Haible  <bruno@clisp.org>
72030         * lib/glthread/thread.c: Avoid forcing a context switch right after
72031         thread creation.
72033 2008-08-17  Bruno Haible  <bruno@clisp.org>
72035         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
72036         * lib/glthread/thread.h: Provide Win32 specific implementation.
72037         * modules/thread (Files): Add lib/glthread/thread.c.
72038         (Depends-on): Add lock.
72039         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
72041 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72043         New module 'yield'.
72044         * modules/yield: New file.
72045         * lib/glthread/yield.h: New file.
72046         * m4/yield.m4: New file.
72047         * MODULES.html.sh (Multithreading): Add yield.
72049 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72051         New module 'thread'.
72052         * modules/thread: New file.
72053         * lib/glthread/thread.h: New file.
72054         * m4/thread.m4: New file.
72055         * MODULES.html.sh (Multithreading): Add thread.
72057 2008-08-17  Bruno Haible  <bruno@clisp.org>
72059         * lib/glthread/lock.h: Include <stdlib.h> always.
72060         * lib/glthread/tls.h: Likewise.
72061         * lib/glthread/cond.h: Likewise.
72063 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72065         New module 'cond'.
72066         * modules/cond: New file.
72067         * lib/glthread/cond.h: New file.
72068         * lib/glthread/cond.c: New file.
72069         * m4/cond.m4: New file.
72070         * MODULES.html.sh (Multithreading): Add cond.
72072 2008-08-16  Eric Blake  <ebb9@byu.net>
72074         c-stack: fix regression on Irix 5.3 from 2008-06-21
72075         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
72076         sa_sigaction...
72077         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
72078         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
72079         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
72080         * modules/signal (Makefile.am): Use the value.
72081         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
72082         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
72083         * doc/posix-headers/signal.texi (signal.h): Document this
72084         portability issue.
72085         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
72086         Reported by Tom G. Christensen.
72088 2008-08-17  Bruno Haible  <bruno@clisp.org>
72090         New module 'threadlib'.
72091         * modules/threadlib: New file.
72092         * lib/glthread/threadlib.c: New file, extracted from
72093         lib/glthread/lock.c.
72094         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
72095         functions.
72096         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
72097         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
72098         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
72099         macros.
72100         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
72101         (gl_DISABLE_THREADS): Remove macro.
72102         * modules/lock (Files): Remove build-aux/config.rpath.
72103         (Depends-on): Remove havelib. Add threadlib.
72104         (configure.ac-early): Remove section.
72105         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
72106         * modules/tls (Depends-on): Remove lock. Add threadlib.
72107         (Link): New section, copied from threadlib.
72108         * MODULES.html.sh (Multithreading): Add threadlib.
72110 2008-08-14  Bruno Haible  <bruno@clisp.org>
72112         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
72113         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
72114         glthread_rwlock_unlock, glthread_rwlock_destroy,
72115         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
72116         glthread_recursive_lock_destroy): Define as macros always.
72117         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
72118         glthread_lock_lock.
72119         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
72120         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
72121         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
72122         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
72123         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
72124         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
72125         (glthread_recursive_lock_lock_func): Renamed from
72126         glthread_recursive_lock_lock.
72127         (glthread_recursive_lock_unlock_func): Renamed from
72128         glthread_recursive_lock_unlock.
72129         (glthread_recursive_lock_destroy_func): Renamed from
72130         glthread_recursive_lock_destroy.
72132 2008-08-14  Bruno Haible  <bruno@clisp.org>
72134         * lib/glthread/lock.h: Renamed from lib/lock.h.
72135         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
72136         * lib/glthread/tls.h: Renamed from lib/tls.h.
72137         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
72138         * lib/fstrcmp.c: Update includes.
72139         * lib/strsignal.c: Update includes.
72140         * modules/lock (Files, Makefile.am): Update.
72141         (Include): Change to "glthread/lock.h".
72142         * modules/tls (Files, Makefile.am): Update.
72143         (Include): Change to "glthread/tls.h".
72144         * tests/test-lock.c: Update includes.
72145         * tests/test-tls.c: Update includes.
72146         * NEWS: Mention the renamed header files.
72148 2008-08-11  Jim Meyering  <meyering@redhat.com>
72150         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
72152 2008-08-11  Eric Blake  <ebb9@byu.net>
72154         test-c-stack: avoid C99-ism
72155         * tests/test-c-stack.c (main): Fix whitespace, move declaration
72156         before statement.
72157         Reported by Alain Guibert.
72159 2008-08-10  Jim Meyering  <meyering@redhat.com>
72161         ensure that return value of uinttostr et al are not ignored
72162         * lib/inttostr.h (__GNUC_PREREQ): Define.
72163         (__attribute_warn_unused_result__): Define.
72164         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
72166 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
72168         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
72169         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
72171 2008-08-07  Jim Meyering  <meyering@redhat.com>
72173         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
72175         * modules/mkstemp (License): Relicense under LGPLv2+.
72176         * modules/tempname (License): Likewise.
72178 2008-08-06  Bruno Haible  <bruno@clisp.org>
72180         * lib/poll.c (poll): Further micro-optimization.
72182 2008-08-06  Jim Meyering  <meyering@redhat.com>
72184         inet_pton.c: use locale-independent tolower
72185         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
72186         (inet_pton6): Use c_tolower rather than tolower.
72187         * modules/inet_pton (Depends-on): Add c-ctype.
72189 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
72191         * lib/poll.c (poll): Avoid division when timeout is 0, cache
72192         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
72194 2008-08-06  Jim Meyering  <meyering@redhat.com>
72196         * modules/inet_pton (License): Relicense under LGPLv2+.
72198 2008-08-03  Bruno Haible  <bruno@clisp.org>
72200         Additional non-aborting API for lock and tls.
72201         * lib/lock.h: Include <errno.h>.
72202         (glthread_lock_init): New macro/function.
72203         (gl_lock_init): Define as wrapper around glthread_lock_init.
72204         (glthread_lock_lock): New macro/function.
72205         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
72206         (glthread_lock_unlock): New macro/function.
72207         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
72208         (glthread_lock_destroy): New macro/function.
72209         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
72210         (glthread_rwlock_init): New macro/function.
72211         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
72212         (glthread_rwlock_rdlock): New macro/function.
72213         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
72214         (glthread_rwlock_wrlock): New macro/function.
72215         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
72216         (glthread_rwlock_unlock): New macro/function.
72217         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
72218         (glthread_rwlock_destroy): New macro/function.
72219         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
72220         (glthread_recursive_lock_init): New macro/function.
72221         (gl_recursive_lock_init): Define as wrapper around
72222         glthread_recursive_lock_init.
72223         (glthread_recursive_lock_lock): New macro/function.
72224         (gl_recursive_lock_lock): Define as wrapper around
72225         glthread_recursive_lock_lock.
72226         (glthread_recursive_lock_unlock): New macro/function.
72227         (gl_recursive_lock_unlock): Define as wrapper around
72228         glthread_recursive_lock_unlock.
72229         (glthread_recursive_lock_destroy): New macro/function.
72230         (gl_recursive_lock_destroy): Define as wrapper around
72231         glthread_recursive_lock_destroy.
72232         (glthread_once): New macro/function.
72233         (gl_once): Define as wrapper around glthread_once.
72234         Update function declarations.
72235         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
72236         glthread_rwlock_init. Return error code.
72237         (glthread_rwlock_rdlock_multithreaded): Renamed from
72238         glthread_rwlock_rdlock. Return error code.
72239         (glthread_rwlock_wrlock_multithreaded): Renamed from
72240         glthread_rwlock_wrlock. Return error code.
72241         (glthread_rwlock_unlock_multithreaded): Renamed from
72242         glthread_rwlock_unlock. Return error code.
72243         (glthread_rwlock_destroy_multithreaded): Renamed from
72244         glthread_rwlock_destroy. Return error code.
72245         (glthread_recursive_lock_init_multithreaded): Renamed from
72246         glthread_recursive_lock_init. Return error code.
72247         (glthread_recursive_lock_lock_multithreaded): Renamed from
72248         glthread_recursive_lock_lock. Return error code.
72249         (glthread_recursive_lock_unlock_multithreaded): Renamed from
72250         glthread_recursive_lock_unlock. Return error code.
72251         (glthread_recursive_lock_destroy_multithreaded): Renamed from
72252         glthread_recursive_lock_destroy. Return error code.
72253         (glthread_once_call): Make static.
72254         (glthread_once_multithreaded): Renamed from glthread_once.
72255         * lib/tls.h: Include <errno.h>.
72256         (glthread_tls_key_init): New macro/function.
72257         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
72258         (glthread_tls_set): New macro/function.
72259         (gl_tls_set): Define as wrapper around glthread_tls_set.
72260         (glthread_tls_key_destroy): New macro/function.
72261         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
72262         Update function declarations.
72263         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
72264         glthread_tls_get.
72265         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
72267 2008-08-04  Eric Blake  <ebb9@byu.net>
72269         gnumakefile: use space, not TAB, outside of targets
72270         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
72272 2008-08-02  Jim Meyering  <meyering@redhat.com>
72274         getdate.y: avoid locale-dependent date parsing failure
72275         In Turkish locales, getdate would fail to recognize keywords
72276         containing a lowercase "i".  The solution is not to rely on
72277         locale-sensitive case-conversion.
72278         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
72279         (lookup_word): Use c_toupper in place of toupper.
72280         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
72281         Reported by Vefa Bicakci <bicave@superonline.com> in
72282         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
72283         * modules/getdate (Depends-on): Add c-ctype.
72285 2008-08-02  Bruno Haible  <bruno@clisp.org>
72287         * gnulib-tool (func_import): When updating or creating a .gitignore
72288         file, prepend each added line with a slash, and ignore leading slashes
72289         from the existing lines.
72290         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
72292 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72294         Portability fix for GNU make 3.79.1.
72295         * top/GNUmakefile: Avoid 'else COND', which older GNU make
72296         versions do not understand.
72298 2008-08-01  Bruno Haible  <bruno@clisp.org>
72300         Work around bug of HP-UX 10.20 cc with -0.0 literal.
72301         * tests/test-isnanf.h (zero): New variable.
72302         (main): Avoid literal -0.0f.
72303         * tests/test-isnand.h (zero): New variable.
72304         (main): Avoid literal -0.0.
72305         * tests/test-isnanl.h (zero): New variable.
72306         (main): Avoid literal -0.0L.
72307         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
72308         (test_float, test_double, test_long_double): Avoid literals -0.0f,
72309         -0.0, -0.0L.
72310         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
72311         (test_signbitd): Avoid literal -0.0.
72312         (test_signbitl): Avoid literal -0.0L.
72313         * tests/test-ceilf1.c (zero): New variable.
72314         (main): Avoid literal -0.0f.
72315         * tests/test-ceill.c (zero): New variable.
72316         (main): Avoid literal -0.0L.
72317         * tests/test-floorf1.c (zero): New variable.
72318         (main): Avoid literal -0.0f.
72319         * tests/test-floorl.c (zero): New variable.
72320         (main): Avoid literal -0.0L.
72321         * tests/test-roundf1.c (zero): New variable.
72322         (main): Avoid literal -0.0f.
72323         * tests/test-round1.c (zero): New variable.
72324         (main): Avoid literal -0.0.
72325         * tests/test-roundl.c (zero): New variable.
72326         (main): Avoid literal -0.0L.
72327         * tests/test-truncf1.c (zero): New variable.
72328         (main): Avoid literal -0.0f.
72329         * tests/test-trunc1.c (zero): New variable.
72330         (main): Avoid literal -0.0.
72331         * tests/test-truncl.c (zero): New variable.
72332         (main): Avoid literal -0.0L.
72333         * tests/test-frexp.c (zero): New variable.
72334         (main): Avoid literal -0.0.
72335         * tests/test-frexpl.c (zero): New variable.
72336         (main): Avoid literal -0.0L.
72337         * tests/test-ldexpl.c (zero): New variable.
72338         (main): Avoid literal -0.0L.
72339         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
72340         (zerod, zerol): New variables.
72341         (test_function): Avoid literals -0.0, -0.0L.
72342         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
72343         (zerod, zerol): New variables.
72344         (test_function): Avoid literals -0.0, -0.0L.
72345         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
72346         (zerod, zerol): New variables.
72347         (test_function): Avoid literals -0.0, -0.0L.
72348         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
72349         (zerod, zerol): New variables.
72350         (test_function): Avoid literals -0.0, -0.0L.
72351         * tests/test-strtod.c (zero): New variable.
72352         (main): Avoid literal -0.0.
72353         Reported by Jonathan C. Patschke <jp@centtech.com>.
72355 2008-07-31  Jim Meyering  <meyering@redhat.com>
72357         sha256.h: correct definition of SHA224_DIGEST_SIZE
72358         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
72359         Reported by Paulie Pena IV <paulie4@gmail.com>.
72360         Define as 224 / 8, rather than as a literal.
72361         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
72362         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
72363         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
72365 2008-07-31  Bruno Haible  <bruno@clisp.org>
72367         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
72368         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
72369         Reported by Jonathan Patschke <jp@centtech.com>.
72371 2008-07-31  Bruno Haible  <bruno@clisp.org>
72373         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
72374         Reported by Paolo Bonzini <bonzini@gnu.org>.
72376 2008-07-30  Eric Blake  <ebb9@byu.net>
72378         test-strtod: allow compilation without -lm
72379         * tests/test-strtod.c (main): Avoid link dependence on fabs.
72380         Reported by Dennis Clarke <blastwave@gmail.com>.
72382 2008-07-28  Jim Meyering  <meyering@redhat.com>
72384         bootstrap: work also when there are no .po files in po/
72385         * build-aux/bootstrap (update_po_files): Complete the change
72386         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
72388 2008-07-27  Jim Meyering  <meyering@redhat.com>
72390         * users.txt: Add zile.
72392 2008-07-26  Ben Pfaff  <blp@gnu.org>
72394         Add missing dependencies on new m4/exponent[fdl].m4 files.
72395         * modules/isnanf-nolibm: Add m4/exponentf.m4.
72396         * modules/isnand-nolibm: Add m4/exponentd.m4.
72397         * modules/isnanl-nolibm: Add m4/exponentl.m4.
72398         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
72399         m4/isnan[fdl].m4, because the macros actually used moved.
72400         Reported by Jim Meyering.
72402 2008-07-14  Ben Pfaff  <blp@gnu.org>
72404         Add isinf module.
72405         * lib/isinf.c: New file.
72406         * lib/math.in.h: Define isinf macro if we have decided to replace
72407         it.
72408         * m4/isinf.m4: New file.
72409         * m4/math_h.m4: Initialize and substitute variables for isinf
72410         module.
72411         * modules/isinf: New file.
72412         * modules/isinf-tests: New file.
72413         * modules/math: Add substitutions for new module.
72414         * tests/test-isinf.c: New file.
72415         * doc/posix-functions/isinf.texi: Mention new module.
72416         * MODULES.html.sh: Mention new module.
72418 2008-07-14  Ben Pfaff  <blp@gnu.org>
72420         Factor out some macros for use by additional modules.
72421         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
72422         exponentf.m4.
72423         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
72424         exponentd.m4.
72425         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
72426         file exponentl.m4.
72427         * m4/exponentf.m4: New file.
72428         * m4/exponentd.m4: New file.
72429         * m4/exponentl.m4: New file.
72430         * modules/isnanf: Use new file m4/exponentf.m4.
72431         * modules/isnand: Use new file m4/exponentd.m4.
72432         * modules/isnanl: Use new file m4/exponentl.m4.
72434 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
72436         mktime.c: normalize tp->tm_isdst value to -1/0/1.
72437         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
72438         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
72439         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
72441         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
72442         readlink on platforms without PATH_MAX.
72444 2008-07-21  Eric Blake  <ebb9@byu.net>
72446         Warn, not fail, on stale version.
72447         * top/GNUmakefile (_curr-ver): Tone down previous patch.
72449         Don't allow installation with stale devel version number.
72450         * top/GNUmakefile (_is-install-target): New macro.
72451         (_curr-ver): Forbid installation with stale version number.
72453 2008-07-20  Bruno Haible  <bruno@clisp.org>
72455         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
72456         TESTS_ENVIRONMENT.
72457         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
72459 2008-07-20  Bruno Haible  <bruno@clisp.org>
72461         * lib/c-stack.h (c_stack_action): Add documentation.
72462         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
72464 2008-07-20  Bruno Haible  <bruno@clisp.org>
72466         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
72467         * modules/readlink (License): Likewise.
72469 2008-07-17  Eric Blake  <ebb9@byu.net>
72471         * modules/c-stack (Link): Fix typo.
72473         Make c-stack use libsigsegv, when available.
72474         * modules/c-stack (Depends-on): Add libsigsegv.
72475         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
72476         needed.
72477         * lib/c-stack.c (SIGSTKSZ): Define fallback.
72478         (segv_handler, overflow_handler, c_stack_action)
72479         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
72480         implementation when libsigsegv is available, but only when using
72481         the library is necessary.
72482         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
72483         comment, explaining why XSI check fails on Linux.
72484         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
72485         * tests/test-c-stack2.sh: Tweak skip message.
72486         * NEWS: Document new link-time requirements.
72488 2008-07-16  Eric Blake  <ebb9@byu.net>
72490         c-stack: Expose false positives when not using libsigsegv.
72491         * modules/c-stack-tests (Files): Expand test.
72492         * tests/test-c-stack.c (main): Add means to conditionally trigger
72493         non-overflow SIGSEGV.
72494         * tests/test-c-stack2.sh: New file.
72496 2008-07-14  Bruno Haible  <bruno@clisp.org>
72498         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
72499         Reported by Eric Blake.
72501 2008-07-14  Sam Steingold  <sds@gnu.org>
72502             Bruno Haible  <bruno@clisp.org>
72504         New module libsigsegv.
72505         * modules/libsigsegv: New file.
72506         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
72507         modifications.
72508         * MODULES.html.sh (Signal handling): New section.
72510 2008-07-14  Bruno Haible  <bruno@clisp.org>
72512         * modules/unictype/ctype-* (Description): Add the word "function".
72513         Improves the resulting doc in MODULES.html.
72515 2008-07-12  Ben Pfaff  <blp@gnu.org>
72517         Add longlong module.
72518         * modules/longlong: New file.
72520 2008-07-12  Bruno Haible  <bruno@clisp.org>
72522         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
72523         to empty.
72525 2008-07-10  Ben Pfaff  <blp@gnu.org>
72527         Add isnan module.
72528         * doc/posix-functions/isnan.texi: Mention new module.
72529         * lib/math.in.h: Define isnan macro if we have decided to replace
72530         it.
72531         * m4/isnan.m4: New file.
72532         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
72533         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
72534         also.
72535         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
72536         redundancy.
72537         * m4/math_h.m4: Initialize and substitute variables for isnan
72538         module.
72539         * modules/isnan: New file.
72540         * modules/isnan-tests: New file.
72541         * modules/math: Add substitutions for new module.
72542         * tests/test-isnan.c: New file.
72543         * MODULES.html.sh: Mention new module.
72545 2008-07-10  Ben Pfaff  <blp@gnu.org>
72547         Add isnanf module.
72548         * lib/isnanf.m4: New file.
72549         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
72550         (gl_HAVE_ISNANF_IN_LIBM): New macro.
72551         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
72552         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
72553         * modules/isnanf: New file.
72554         * modules/isnanf-tests: New file.
72555         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
72556         files.
72557         * tests/test-isnanf-nolibm.c: factored most of its contents into
72558         new file tests/test-isnanf.h.
72559         * tests/test-isnanf.h: New file.
72560         * tests/test-isnanf.c: New file.
72561         * MODULES.html.sh: Mention new module.
72562         * doc/glibc-functions/isnanf.texi: Mention new module.
72564 2008-07-10  Ben Pfaff  <blp@gnu.org>
72566         Add isnand module.
72567         * lib/isnand.h: New file.
72568         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
72569         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
72570         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
72571         functionality also.
72572         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
72573         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
72574         (gl_HAVE_ISNAND_IN_LIBM): New macro.
72575         * modules/isnand: New file.
72576         * modules/isnand-tests: New file.
72577         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
72578         files.
72579         * tests/test-isnand-nolibm.c: factored most of its contents into
72580         new file tests/test-isnand.h.
72581         * tests/test-isnand.h: New file.
72582         * tests/test-isnand.c: New file.
72583         * MODULES.html.sh: Mention new module.
72585 2008-07-10  Ben Pfaff  <blp@gnu.org>
72587         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
72588         * lib/isnand.h: Rename lib/isnand-nolibm.h.
72589         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
72590         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
72591         * modules/isnanf-nolibm: Update references to renamed files.
72592         * modules/isnand-nolibm: Likewise.
72593         * modules/isnanf-nolibm-tests: Likewise.
72594         * modules/isnand-nolibm-tests: Likewise.
72595         * lib/frexp.c: Likewise.
72596         * lib/isfinite.c: Likewise.
72597         * lib/signbitd.c: Likewise.
72598         * lib/signbitf.c: Likewise.
72599         * lib/vasnprintf.c: Likewise.
72600         * tests/test-ceilf1.c: Likewise.
72601         * tests/test-ceilf2.c: Likewise.
72602         * tests/test-floorf1.c: Likewise.
72603         * tests/test-floorf2.c: Likewise.
72604         * tests/test-frexp.c: Likewise.
72605         * tests/test-round1.c: Likewise.
72606         * tests/test-round2.c: Likewise.
72607         * tests/test-roundf1.c: Likewise.
72608         * tests/test-strtod.c: Likewise.
72609         * tests/test-trunc1.c: Likewise.
72610         * tests/test-trunc2.c: Likewise.
72611         * tests/test-truncf1.c: Likewise.
72612         * tests/test-truncf2.c: Likewise.
72613         * NEWS: Mention the renamed header files.
72615 2008-07-11  Jim Meyering  <meyering@redhat.com>
72617         vc-list-files: make the last-resort awk code more portable
72618         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
72619         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
72620         does not support it.
72622 2008-07-10  Eric Blake  <ebb9@byu.net>
72624         Work with tar's bootstrap.
72625         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
72626         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
72627         an m4 comment.
72629 2008-07-09  Jim Meyering  <meyering@redhat.com>
72631         posix-shell.m4: fix typo that made this test malfunction
72632         * m4/posix-shell.m4: Remove capitalization in variable name.
72634 2008-07-08  Bruno Haible  <bruno@clisp.org>
72636         * m4/onceonly.m4: Update comments.
72637         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72639 2008-07-04  Jim Meyering  <meyering@redhat.com>
72641         * users.txt: Add vc-dwim.
72642         (bison, coreutils): Use the gitweb URL.
72644 2008-07-03  Jim Meyering  <meyering@redhat.com>
72646         * users.txt: Add libffcall.  From Sam Steingold.
72648 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
72650         getdate.y: do not ignore TZ with relative day, month or year offset
72651         * lib/getdate.y (get_date): Move the tz-handling block to follow the
72652         relative-date-handling, since otherwise, the latter would clobber the
72653         sole output (an updated Start value) of the tz-handling block.
72654         * tests/test-getdate.c: Tests for the fix
72656 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72658         Recognize 'foo_LIBRARIES += libgnu.a'.
72659         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
72660         makefile snippet has already specified an installation location,
72661         also using '+='.
72663 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
72665         getdate.y: factor out common actions
72666         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
72667         Use them in place of open-coded actions.
72669 2008-07-01  Simon Josefsson  <simon@josefsson.org>
72671         Add self-test for getdate module.
72672         * modules/getdate-tests: New file.
72673         * tests/test-getdate.c: New file.
72675 2008-06-29  Bruno Haible  <bruno@clisp.org>
72677         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
72678         .gitignore.
72679         Reported by Sylvain Beucler <beuc@beuc.net>.
72681 2008-06-29  Bruno Haible  <bruno@clisp.org>
72683         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
72684         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
72686 2008-06-29  Bruno Haible  <bruno@clisp.org>
72688         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
72689         EXTRA_DIST.
72690         Reported by Sylvain Beucler <beuc@beuc.net>.
72692 2008-06-26  Jim Meyering  <meyering@redhat.com>
72694         make several modules depend on the "open" module
72695         This provides slightly increased consistency when opening-for-write
72696         the name of a non-directory spelled with a trailing slash.
72697         * modules/chdir-safer: Likewise.
72698         * modules/chown: Likewise.
72699         * modules/clean-temp: Likewise.
72700         * modules/copy-file: Likewise.
72701         * modules/fchdir: Likewise.
72702         * modules/fcntl-safer: Likewise.
72703         * modules/pipe: Likewise.
72704         * modules/utime: Likewise.
72705         Prompted by Eric Blake and Bruno Haible.
72707 2008-06-24  Andreas Schwab  <schwab@suse.de>
72709         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
72710         literals can be used as initializers for global variables.
72712 2008-06-23  Eric Blake  <ebb9@byu.net>
72714         Make gnulib-cache.m4 easier to diff.
72715         * gnulib-tool (func_import): Allow newlines when reading cached
72716         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
72718 2008-06-23  Bruno Haible  <bruno@clisp.org>
72720         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
72721         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
72722         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
72723         m4/signalblocking.m4.
72724         (gl_PREREQ_SIGACTION): Don't invoke it.
72725         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
72726         gl_PREREQ_SIG_HANDLER_H.
72727         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
72728         Don't check for sigaction here.
72730 2008-06-23  Bruno Haible  <bruno@clisp.org>
72732         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
72733         (install_handlers): Don't set the SA_RESETHAND flag.
72735 2008-06-23  Bruno Haible  <bruno@clisp.org>
72737         * m4/sigaction.m4: Comment fixes.
72738         * lib/signal.in.h: Likewise.
72740 2008-06-23  Eric Blake  <ebb9@byu.net>
72742         Fix typo.
72743         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
72745         Avoid SA_ namespace.
72746         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
72747         Reported by Ralf Wildenhues.
72749         Avoid test failure due to SA_RESTORER.
72750         * tests/test-sigaction.c (SA_MASK): New macro.
72751         (main): Avoid failing due to extension flags being set.
72752         Reported by Jim Meyering.
72754         Revert use of sig-handler.h in sigprocmask.c.
72755         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
72756         it requires the existence of struct sigaction.
72757         * lib/sigprocmask.c (handler_t): Restore typedef.
72758         (rpl_signal, old_handlers): Use local type.
72760 2008-06-22  Bruno Haible  <bruno@clisp.org>
72762         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
72763         conditionally.
72764         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
72766 2008-06-22  Bruno Haible  <bruno@clisp.org>
72768         * doc/posix-functions/siginterrupt.texi: Move note.
72770         * lib/signal.in.h (SA_RESTART): New macro.
72771         * lib/sigaction.c: Update comment.
72773         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
72775         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
72776         (gl_PREREQ_SIGPROCMASK): Invoke it.
72777         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
72779         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
72781         * lib/sigprocmask.c: Update a comment.
72783 2008-06-21  Eric Blake  <ebb9@byu.net>
72785         Use sigaction module rather than signal().
72786         * modules/c-stack (Depends-on): Add sigaction.
72787         * modules/fatal-signal (Depends-on): Likewise.
72788         * modules/nanosleep (Depends-on): Likewise.
72789         * modules/sigprocmask (Files): Add sig-handler.h.
72790         * modules/sigaction (Files): Likewise.
72791         * lib/sig-handler.h (get_handler): New file, suggested by Paul
72792         Eggert.
72793         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
72794         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
72795         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
72796         (init_fatal_signals): Likewise.
72797         * lib/nanosleep.c (rpl_nanosleep): Likewise.
72798         (siginterrupt): Delete fallback.
72799         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
72800         instead.
72801         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
72802         siginterrupt.
72804         New module sigaction, for mingw.
72805         * modules/sigaction: New module...
72806         * modules/sigaction-tests: ...and its test.
72807         * m4/sigaction.m4: New file.
72808         * lib/sigaction.c: Likewise.
72809         * tests/test-sigaction.c: Likewise.
72810         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
72811         * modules/signal (Makefile.am): Likewise.
72812         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
72813         needed.
72814         * doc/posix-headers/signal.texi (signal.h): Mention provided
72815         types.
72816         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
72817         that sigaction is preferable.
72818         * doc/posix-functions/sigaction.texi (sigaction): Mention new
72819         module.
72820         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72821         sigaction.
72823         Improve robustness of sigprocmask by overriding signal.
72824         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
72825         is in use.
72826         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
72827         (SIGKILL, SIGSTOP): Provide fallbacks.
72828         (rpl_signal): Implement.
72829         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
72830         signal can be called inside handlers.
72832         Fix nanosleep module on mingw.
72833         * modules/nanosleep (Depends-on): Add sys_select.
72834         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
72836         Fix licensing of sigprocmask.
72837         * modules/raise (License): Relicense as LGPL.
72839 2008-06-21  Bruno Haible  <bruno@clisp.org>
72841         * lib/propername.c (proper_name_utf8): Don't use the transliterated
72842         result if it contains question marks.
72843         Reported by Michael Geng <linux@michaelgeng.de>.
72845 2008-06-19  Bruno Haible  <bruno@clisp.org>
72847         Fix CVS-ism.
72848         * doc/gnulib.texi: Include updated-stamp.texi.
72849         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
72850         (updated-stamp.texi): New rule.
72851         (gnulib.info): Depend on it.
72852         * doc/.gitignore: Add updated-stamp.texi.
72853         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
72855 2008-06-19  Bruno Haible  <bruno@clisp.org>
72857         * doc/Makefile (gnulib.info): Update and simplify dependencies.
72858         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
72860 2008-06-19  Eric Blake  <ebb9@byu.net>
72862         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
72863         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
72864         Reported by Stepan Kasal.
72866 2008-06-18  Bruno Haible  <bruno@clisp.org>
72868         * lib/fatal-signal.c (init_fatal_signals): Add comment.
72869         Reported by Eric Blake.
72871 2008-06-18  Eric Blake  <ebb9@byu.net>
72873         Work around cygwin 1.5.25 strsignal bug.
72874         * tests/test-strsignal.c: Allow for const char *.
72875         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
72877 2008-06-18  Simon Josefsson  <simon@josefsson.org>
72879         * users.txt: Update URL to article and add author/date
72880         information.
72882 2008-06-17  Bruno Haible  <bruno@clisp.org>
72884         New macro gl_DISABLE_THREADS.
72885         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
72886         if the user did not pass --enable-threads or --disable-threads option.
72887         (gl_DISABLE_THREADS): New macro.
72888         Reported by Eric Blake <ebb9@byu.net>.
72890 2008-06-17  Bruno Haible  <bruno@clisp.org>
72892         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
72893         when the macro ignores it.
72894         Based on a patch by Eric Blake <ebb9@byu.net>.
72896 2008-06-17  Bruno Haible  <bruno@clisp.org>
72898         * modules/tls (License): Change to LGPLv2+.
72899         Reported by Eric Blake.
72901 2008-06-17  Eric Blake  <ebb9@byu.net>
72903         Simplify c-stack prerequisites.
72904         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
72905         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
72906         no longer requires <ucontext.h> to exist.  Optimize setrlimit
72907         check.
72908         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
72909         <sys/resource.h>.
72911         Move c-stack test into testsuite.
72912         * modules/c-stack-tests: New file.
72913         * lib/c-stack.c [DEBUG]: Move test program...
72914         * tests/test-c-stack.c: ...into this new file.  Skip rather than
72915         fail test if sigaltstack is lacking.
72916         * tests/test-c-stack.sh: New driver file.
72918 2008-06-16  Eric Blake  <ebb9@byu.net>
72920         Use raise module consistently.
72921         * modules/fatal-signal (Depends-on): Add raise.
72922         * modules/sigprocmask (Depends-on): Likewise.
72923         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
72924         * lib/sigprocmask.c (sigprocmask): Likewise.
72925         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
72926         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
72928         Fix compliance bug in sigpending.
72929         * lib/sigprocmask.c (sigpending): Return pending array via
72930         parameter, not return value.
72932 2008-06-14  Eric Blake  <ebb9@byu.net>
72934         Improve obstack-printf test code.
72935         * tests/test-obstack-printf.c (test_function): Fix comment, and
72936         simplify usage of obstack_* in macros.  Add a test for coverage.
72937         Reported by Bruno Haible.
72939 2008-06-14  Bruno Haible  <bruno@clisp.org>
72941         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
72942         array size as a constant, not as a const variable.
72943         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
72944         AC_USE_SYSTEM_EXTENSIONS.
72945         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
72946         Test whether the obstack_printf function actually exists.
72947         * modules/obstack-printf (Depends-on): Add extensions.
72948         (Include): Remove obstack.h.
72949         * modules/obstack-printf-posix (Depends-on): Add extensions.
72950         (Include): Remove obstack.h.
72952 2008-06-13  Eric Blake  <ebb9@byu.net>
72954         Add obstack-printf and obstack-printf-posix modules.
72955         * modules/obstack-printf: New file.
72956         * modules/obstack-printf-posix: Likewise.
72957         * MODULES.html.sh (Misc): Mention them.
72958         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
72959         Likewise.
72960         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
72961         Likewise.
72962         * modules/stdio (Makefile.am): Accomodate new modules.
72963         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
72964         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
72965         Declare.
72966         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
72967         functions.
72968         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
72969         (gl_REPLACE_OBSTACK_PRINTF): New macros
72970         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
72971         * tests/test-obstack-printf.c: New file.
72972         * modules/obstack-printf-tests: Likewise.
72973         * modules/obstack-printf-posix-tests: Likewise.
72975 2008-06-11  Bruno Haible  <bruno@clisp.org>
72977         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
72978         * lib/open.c: Include errno.h.
72979         (open): Fail when attempting to write to a file that has a trailing
72980         slash.
72981         * tests/test-open.c (main): Test against trailing slash bug.
72982         * doc/posix-functions/open.texi: Mention the trailing slash bug.
72984 2008-06-10  Bruno Haible  <bruno@clisp.org>
72986         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
72987         for $? to work inside the trap command, with various /bin/sh-s.
72988         * tests/test-vc-list-files-cvs.sh: Likewise.
72990 2008-06-10  Bruno Haible  <bruno@clisp.org>
72992         * lib/acl-internal.h: Don't include gettext.h here.
72993         * lib/set-mode-acl.c: Include gettext.h here.
72994         * lib/copy-acl.c: Likewise.
72996 2008-06-10  Bruno Haible  <bruno@clisp.org>
72998         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
72999         * lib/wait-process.c (wait_subprocess): Likewise.
73000         * lib/execute.h (execute): Add termsigp argument.
73001         * lib/execute.c (execute): Likewise.
73002         * lib/csharpcomp.c (compile_csharp_using_pnet,
73003         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
73004         * lib/csharpexec.c (execute_csharp_using_pnet,
73005         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
73006         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
73007         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
73008         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
73009         is_jikes_present): Update.
73010         * lib/javaexec.c (execute_java_class): Update.
73011         * lib/javaversion.c (execute_and_read_line): Update.
73012         * NEWS: Document the changes.
73013         Reported by Eric Blake.
73015 2008-06-10  Eric Blake  <ebb9@byu.net>
73017         Add missing include.
73018         * tests/test-strstr.c (includes): Add <signal.h>.
73019         * tests/test-strcasestr.c (includes): Likewise.
73020         * tests/test-memmem.c (includes): Likewise.
73022 2008-06-10  Bruno Haible  <bruno@clisp.org>
73024         * lib/wait-process.c (wait_subprocess): Add an assertion.
73026 2008-06-10  Bruno Haible  <bruno@clisp.org>
73028         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
73030 2008-06-10  Bruno Haible  <bruno@clisp.org>
73032         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
73033         using alarm().
73034         * tests/test-strcasestr.c (main): Likewise.
73035         * tests/test-strstr.c (main): Likewise.
73037 2008-06-09  Bruno Haible  <bruno@clisp.org>
73039         Work around the Solaris 10 ACE ACLs ABI change.
73040         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
73041         declare if ACL_NO_TRIVIAL is present.
73042         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
73043         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
73044         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
73045         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
73046         define if ACL_NO_TRIVIAL is present.
73047         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
73048         and use the current ABI.
73049         (file_has_acl): Use same #if condition as elsewhere.
73050         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
73051         in use, and use the current ABI.
73052         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
73053         Reported by Jim Meyering.
73055 2008-06-09  Eric Blake  <ebb9@byu.net>
73057         Work around environments that (stupidly) ignore SIGALRM.
73058         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
73059         before using alarm().
73060         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
73061         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
73062         Reported by Ian Beckwith <ianb@erislabs.net>.
73064         Produce autobuild blurb earlier in log.
73065         * modules/autobuild (configure.ac-early): Move AB_INIT here.
73067 2008-06-09  Jim Meyering  <meyering@redhat.com>
73068         and Ondřej Vašík  <ovasik@redhat.com>
73070         utimens.c: correct kernel bug work-around
73071         Ondřej Vašík found that the invalid return value of 280 indicates
73072         failure, not success, and the kernel bug we're trying to work
73073         around affects not just the utimensat call, but also the fallback
73074         futimens call.
73075         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
73076         not success.
73077         [HAVE_FUTIMENS]: Use the same work-around, here.
73079 2008-06-09  Jim Meyering  <meyering@redhat.com>
73081         add more guards around definition of ACE_-related code
73082         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
73083         ALLOW and ACE_OWNER are also defined.
73085 2008-06-08  Bruno Haible  <bruno@clisp.org>
73087         * lib/acl-internal.h: Add me as co-author.
73088         * lib/file-has-acl.c: Likewise.
73089         * lib/set-mode-acl.c: Likewise.
73090         * lib/copy-acl.c: Likewise.
73092 2008-06-08  Bruno Haible  <bruno@clisp.org>
73094         Add support for AIX ACLs.
73095         * lib/acl-internal.h (acl_nontrivial): New declaration.
73096         * lib/file-has-acl.c (acl_nontrivial): New function.
73097         (file_has_acl): Add implementation using AIX 4 ACL API.
73098         * lib/set-mode-acl.c (qset_acl): Likewise.
73099         * lib/copy-acl.c (qcopy_acl): Likewise.
73101 2008-06-08  Bruno Haible  <bruno@clisp.org>
73103         Add support for HP-UX ACLs.
73104         * lib/acl-internal.h (acl_nontrivial): New declaration.
73105         * lib/file-has-acl.c (acl_nontrivial): New function.
73106         (file_has_acl): Add implementation using HP-UX 11 ACL API.
73107         * lib/set-mode-acl.c (qset_acl): Likewise.
73108         * lib/copy-acl.c (qcopy_acl): Likewise.
73110 2008-06-08  Bruno Haible  <bruno@clisp.org>
73112         Add support for Cygwin ACLs.
73113         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
73114         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
73115         the chmod_or_fchmod call.
73116         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
73118 2008-06-08  Bruno Haible  <bruno@clisp.org>
73120         Fix bug with setuid modes in Solaris 10+ code.
73121         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
73122         succeeded, when the mode contains some special bits.
73124 2008-06-08  Bruno Haible  <bruno@clisp.org>
73126         Add support for Solaris 7..10 ACLs.
73127         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
73128         declarations.
73129         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
73130         functions.
73131         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
73132         * lib/set-mode-acl.c (qset_acl): Likewise.
73133         * lib/copy-acl.c (qcopy_acl): Likewise.
73135 2008-06-08  Bruno Haible  <bruno@clisp.org>
73137         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
73138         declaration.
73139         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
73140         (acl_access_nontrivial): Remove MacOS X case.
73141         (file_has_acl): Use acl_extended_nontrivial.
73142         * lib/copy-acl.c (qcopy_acl): Likewise.
73144 2008-06-08  Bruno Haible  <bruno@clisp.org>
73146         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
73148 2008-06-08  Jim Meyering  <meyering@redhat.com>
73150         * modules/acl (Maintainer): Add Bruno Haible.
73152 2008-06-07  Bruno Haible  <bruno@clisp.org>
73154         Improve support for Tru64 ACLs.
73155         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
73156         ACL on OSF/1.
73158 2008-06-07  Bruno Haible  <bruno@clisp.org>
73160         Add support for MacOS X ACLs.
73161         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
73162         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
73163         * lib/set-mode-acl.c (qset_acl): Likewise.
73164         * lib/copy-acl.c (qcopy_acl): Likewise.
73166 2008-06-07  Bruno Haible  <bruno@clisp.org>
73168         Fix memory leak introduced on 2008-05-22.
73169         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
73170         use.
73172 2008-06-07  Bruno Haible  <bruno@clisp.org>
73174         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
73175         to construct an empty ACL.
73177 2008-06-07  Bruno Haible  <bruno@clisp.org>
73179         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
73180         precisely.
73181         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
73183 2008-06-07  Bruno Haible  <bruno@clisp.org>
73185         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
73186         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
73188 2008-06-07  Bruno Haible  <bruno@clisp.org>
73190         * doc/posix-functions/_setjmp.texi: Explain the use of this function
73191         regardless of POSIX.
73192         * doc/posix-functions/_longjmp.texi: Likewise.
73193         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
73194         SystemV platform in this case.
73196 2008-06-06  Eric Blake  <ebb9@byu.net>
73198         Document abort() bugs.
73199         * doc/posix-functions/abort.texi (abort): Mention anomalies.
73201         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
73202         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
73203         sigsetjmp.
73204         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
73205         siglongjmp, but only as a macro.
73206         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
73207         is obsolete.
73208         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
73210         Tweak documentation to cover cygwin argz bugs.
73211         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
73212         argz bug fix; no code change needed since no cygwin releases
73213         occurred between the last fix and the bug being tested.
73214         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
73215         module and recently fixed cygwin bugs.
73216         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
73217         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
73218         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
73219         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
73220         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
73221         Likewise.
73222         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
73223         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
73224         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
73225         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
73226         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
73227         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
73228         Likewise.
73230         Avoid gcc warning on cygwin.
73231         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
73232         !ACL_NO_TRIVIAL]: Avoid unused variable.
73234 2008-06-05  Eric Blake  <ebb9@byu.net>
73236         Be tolerant of UNKNOWN version in gnulib-tool test dir.
73237         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
73238         git-version-gen fails to come up with a version.
73239         Reported by Simon Josefsson.
73241 2008-06-05  Jim Meyering  <meyering@redhat.com>
73242             Paul Eggert  <eggert@cs.ucla.edu>
73244         utimens.c: work around a probable Linux kernel bug
73245         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
73246         appears to be a kernel bug that causes utimensat to return 280
73247         instead of 0, indicating success.
73249 2008-06-04  Bruno Haible  <bruno@clisp.org>
73251         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
73252         2008-06-01 commit.
73254 2008-06-04  Bruno Haible  <bruno@clisp.org>
73256         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
73257         * lib/file-has-acl.c (acl_access_nontrivial): New function.
73258         (file_has_acl): Use it. Save errno afterwards.
73259         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
73261 2008-06-03  Bruno Haible  <bruno@clisp.org>
73263         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
73264         draft code. Simplify #ifs.
73265         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
73266         Put Solaris code after POSIX-draft code. Fix comments regarding
73267         Solaris 10, HP-UX. Mention Cygwin.
73268         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
73270 2008-06-03  Eric Blake  <ebb9@byu.net>
73272         Provide fallback for older kernels.
73273         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
73274         Provide runtime fallback if kernel lacks support.
73275         Reported by Mike Frysinger.
73277 2008-06-02  Bruno Haible  <bruno@clisp.org>
73279         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
73280         it exists.
73282 2008-06-02  Bruno Haible  <bruno@clisp.org>
73284         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
73285         * lib/copy-acl.c (qcopy_acl): Update comment.
73287 2008-06-02  Bruno Haible  <bruno@clisp.org>
73289         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
73290         like ACL APIs.
73292 2008-06-02  Bruno Haible  <bruno@clisp.org>
73294         * tests/test-file-has-acl.sh: Use different code for Cygwin.
73295         * tests/test-set-mode-acl.sh: Likewise.
73296         * tests/test-copy-acl.sh: Likewise.
73297         * tests/test-copy-file.sh: Likewise.
73299 2008-06-02  Bruno Haible  <bruno@clisp.org>
73301         * tests/test-file-has-acl.sh: Remove unused code.
73303 2008-06-01  Bruno Haible  <bruno@clisp.org>
73305         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
73306         (copy_acl): Just a wrapper around qcopy_acl that emits the error
73307         messages.
73308         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
73310 2008-06-01  Bruno Haible  <bruno@clisp.org>
73312         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
73313         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
73314         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
73315         APIs.
73316         * modules/acl-tests (configure.ac): Remove tests now contained in
73317         m4/acl.m4.
73319 2008-06-02  Jim Meyering  <meyering@redhat.com>
73321         announce-gen: use a better key-server host name
73322         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
73323         it may be more consistently reliable.  Suggested by Werner Koch
73324         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
73326 2008-06-01  Bruno Haible  <bruno@clisp.org>
73328         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
73329         Reported by Voroskoi Andras <voroskoi@gmail.com>.
73331 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
73333         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
73335 2008-06-01  Bruno Haible  <bruno@clisp.org>
73337         New ACL tests.
73338         * tests/test-file-has-acl.sh: New file.
73339         * tests/test-file-has-acl.c: New file.
73340         * tests/test-set-mode-acl.sh: New file.
73341         * tests/test-set-mode-acl.c: New file.
73342         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
73343         * tests/test-copy-acl.c: New file.
73344         * modules/acl-tests: New file, based on modules/copy-file-tests.
73345         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
73346         (Depends-on): Add acl-tests.
73347         (configure.ac): Remove checks.
73348         (Makefile.am): Don't create test-sameacls program here any more.
73350 2008-06-01  Bruno Haible  <bruno@clisp.org>
73352         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
73353         * tests/test-sameacls.c: Include progname.h.
73354         (main): Invoke set_program_name. Portability fixes for MacOS X,
73355         Solaris, HP-UX.
73357 2008-06-01  Bruno Haible  <bruno@clisp.org>
73359         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
73360         function.
73361         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
73363 2008-06-01  Bruno Haible  <bruno@clisp.org>
73365         * modules/rpmatch (Depends-on): Add strdup.
73367 2008-06-01  Bruno Haible  <bruno@clisp.org>
73369         * lib/pipe.c: Include unistd-safer.h.
73370         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
73371         * modules/pipe (Depends-on): Add unistd-safer.
73373 2008-05-30  Simon Josefsson  <simon@josefsson.org>
73375         * modules/autobuild (configure.ac): Call AB_INIT.
73377 2008-05-30  Simon Josefsson  <simon@josefsson.org>
73379         * tests/test-getaddrinfo.c: Don't print debug messages by default.
73380         Suggested by Bruno Haible <bruno@clisp.org>.
73382 2008-05-30  Simon Josefsson  <simon@josefsson.org>
73384         * tests/test-base64.c: Cast size_t to unsigned long when invoking
73385         printf.  Use %lu instead of %d.  Reported by Bruno Haible
73386         <bruno@clisp.org>.
73388 2008-05-29  Eric Blake  <ebb9@byu.net>
73390         Prefer new POSIX 200x interfaces over futimesat.
73391         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
73392         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
73393         when available.
73394         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
73396 2008-05-28  Bruno Haible  <bruno@clisp.org>
73398         * modules/stpcpy (License): Change to LGPLv2+.
73399         Requested by David Lutterkort <dlutter@redhat.com>.
73401 2008-05-27  Bruno Haible  <bruno@clisp.org>
73403         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
73404         current mingw.
73405         Reported by Jose E. Marchesi <jemarch@gnu.org>.
73407 2008-05-27  Bruno Haible  <bruno@clisp.org>
73409         * modules/iconv_open (Link): New section, from module 'iconv'.
73410         * modules/striconv (Link): Likewise.
73411         * modules/striconveh (Link): Likewise.
73412         * modules/xstriconv (Link): Likewise.
73413         * modules/unicodeio (Link): Likewise.
73414         * modules/propername (Link): Likewise.
73415         Reported by Jim Meyering.
73417 2008-05-26  Jim Meyering  <meyering@redhat.com>
73419         sha256: do not artificially restrict buffer length to be < 2^32
73420         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
73421         uint32_t to size_t.
73422         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
73423         to match.
73425         avoid unaligned access errors, e.g., on sparc
73426         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
73427         direct access through a possibly-unaligned uint64* pointer.
73428         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
73429         direct access through a possibly-unaligned uint32* pointer.
73430         Prompted by this patch from Tom "spot" Callaway:
73431         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
73433         sha512.c: fix typo in comment
73434         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
73436 2008-05-25  Bruno Haible  <bruno@clisp.org>
73438         * lib/set-mode-acl.c: Renamed from lib/acl.c.
73439         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
73440         (Makefile.am): Update lib_SOURCES.
73442 2008-05-25  Bruno Haible  <bruno@clisp.org>
73444         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
73446 2008-05-25  Jim Meyering  <meyering@redhat.com>
73448         useless-if-before-free: freed expr may have white-space differences
73449         * build-aux/useless-if-before-free: Recognize cases in which the
73450         freed expression differs from the tested one in embedded white
73451         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
73452         $1 was used, so we can't make any regexp shy.  Improved tests now
73453         detect this.
73455         useless-if-before-free: accept white space in the expression.
73456         * build-aux/useless-if-before-free: For now, any white space
73457         in the expression must be identical in the free argument.
73459         useless-if-before-free: efficiency tweak
73460         * build-aux/useless-if-before-free: Make the expression-matching
73461         regexp "shy".
73462         Make the *outer* regexp shy, not the expr-matching one.
73464         update code-in-comment to accept cast of free arg
73465         * build-aux/useless-if-before-free: Update regexp.
73467 2008-05-25  Bruno Haible  <bruno@clisp.org>
73469         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
73470         * modules/copy-file-tests (Files, Makefile.am): Update.
73471         * tests/test-copy-file.c (func_test_copy): Update.
73473 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
73475         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
73477 2008-05-23  Bruno Haible  <bruno@clisp.org>
73479         Improve support for ACLs on OSF/1.
73480         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
73481         Remove fallback for unknown flavors of ACLs.
73483 2008-05-22  Bruno Haible  <bruno@clisp.org>
73485         Add support for ACLs on OSF/1.
73486         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
73487         replacements.
73488         (acl_free_text): New macro fallback.
73489         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
73490         acl_free.
73491         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
73492         acl_free_text function. Require AC_C_INLINE.
73494 2008-05-22  Bruno Haible  <bruno@clisp.org>
73496         Make copy_acl work on MacOS X 10.5.
73497         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
73498         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
73499         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
73500         If MODE_INSIDE_ACL, don't assume that every system has the same text
73501         representation for ACLs as FreeBSD.
73502         * lib/copy-acl.c (copy_acl): Add support for platforms with
73503         !MODE_INSIDE_ACL.
73504         * lib/file-has-acl.c (file_has_acl): Likewise.
73505         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
73506         FreeBSD, MacOS X, or IRIX, respectively.
73508 2008-05-22  Bruno Haible  <bruno@clisp.org>
73510         * lib/acl.h: Don't include <sys/acl.h>.
73511         (GETACLCNT): Move fallback to lib/acl-internal.h.
73512         * lib/acl-internal.h: Include <sys/acl.h> here.
73513         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
73515 2008-05-22  Bruno Haible  <bruno@clisp.org>
73517         Split off copy_acl function to separate file.
73518         * lib/copy-acl.c: New file, extracted from lib/acl.c.
73519         * lib/acl.c (copy_acl): Moved function to separate file.
73520         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
73521         * modules/acl (Files): Add lib/copy-acl.c.
73522         (Makefiles.am): Augment lib_SOURCES.
73524 2008-05-22  Bruno Haible  <bruno@clisp.org>
73526         * modules/copy-file-tests: New file.
73527         * tests/test-copy-file.sh: New file.
73528         * tests/test-copy-file.c: New file.
73529         * tests/test-copy-file-sameacls.c: New file.
73531 2008-05-22  Eric Blake  <ebb9@byu.net>
73533         Avoid gcc warning.
73534         * tests/test-memcmp.c (main): Pass NULL indirectly.
73536 2008-05-21  Bruno Haible  <bruno@clisp.org>
73538         Add reference doc about ACLs.
73539         * doc/acl-resources.txt: New file.
73540         * doc/acl-cygwin.txt: New file.
73542 2008-05-21  Bruno Haible  <bruno@clisp.org>
73544         Avoid one more warning from gcc.
73545         * lib/vasnprintf.c (IF_LINT): Update comments.
73546         (VASNPRINTF): Use it also for the 'prefix' array initializer.
73548 2008-05-21  Jim Meyering  <meyering@redhat.com>
73550         avoid a warning from gcc
73551         * lib/vasnprintf.c (IF_LINT): Define.
73552         (scale10_round_decimal_long_double):
73553         Use it to avoid a "may be used uninitialized" warning.
73554         (scale10_round_decimal_double): Likewise.
73556 2008-05-21  Simon Josefsson  <simon@josefsson.org>
73558         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
73559         declared.
73561 2008-05-20  Bruno Haible  <bruno@clisp.org>
73563         * tests/test-memcmp.c (main): Test also the sign of the result. Test
73564         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
73566 2008-05-20  Simon Josefsson  <simon@josefsson.org>
73568         * modules/memcmp-tests: New file.
73569         * tests/test-memcmp.c: New file.
73571 2008-05-19  Bruno Haible  <bruno@clisp.org>
73573         * modules/propername (Notice, configure.ac): Put quoted "..." into
73574         --keyword option.
73575         * lib/propername.h: Update comments accordingly.
73576         Reported by Eric Blake.
73578 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
73580         * modules/getpass-gnu (Depends-on): Add fseeko.
73582 2008-05-19  Simon Josefsson  <simon@josefsson.org>
73584         * modules/base64-tests: New file.
73586 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
73588         * lib/base64.c (base64_decode_ctx): If a decode context structure
73589         was passed in use it to ignore newlines.  If a context structure
73590         was _not_ passed in, continue to treat newlines as garbage (this
73591         is the historical behavior).  Formerly base64_decode.
73592         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
73593         takes a decode context structure.
73594         * lib/base64.h (base64_decode): Macro for four-argument calls.
73595         (base64_decode_alloc): Likewise.
73596         * lib/base64.c (base64_decode_ctx): If a decode context structure
73597         was passed in use it to ignore newlines.  If a context structure
73598         was _not_ passed in, continue to treat newlines as garbage (this
73599         is the historical behavior).  Formerly base64_decode.
73600         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
73601         takes a decode context structure.
73602         * lib/base64.h (base64_decode): Macro for four-argument calls.
73603         (base64_decode_alloc): Likewise.
73605 2008-05-19  Jim Meyering  <meyering@redhat.com>
73607         avoid a warning from gcc
73608         * lib/trim.c (IF_LINT): Define.
73609         (trim2): Use it to avoid a "may be used uninitialized" warning.
73611         Fix doc typo.
73612         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
73614 2008-05-19  Bruno Haible  <bruno@clisp.org>
73616         * doc/glibc-functions/getpass.texi: Document limits of other
73617         implementations.
73619 2008-05-19  Simon Josefsson  <simon@josefsson.org>
73620             Bruno Haible <bruno@clisp.org>
73622         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
73624 2008-05-18  Bruno Haible  <bruno@clisp.org>
73626         * modules/propername: New file, from GNU gettext.
73627         * lib/propername.h: New file, from GNU gettext.
73628         * lib/propername.c: New file, from GNU gettext.
73629         * MODULES.html.sh (Internationalization functions): Add propername.
73631 2008-05-16  Jim Meyering  <meyering@redhat.com>
73632             Bruno Haible  <bruno@clisp.org>
73634         Avoid some warnings from "gcc -Wshadow".
73635         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
73637 2008-05-15  Eric Blake  <ebb9@byu.net>
73639         Extend previous patch to cygwin 1.7.0.
73640         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
73641         fast implementation in cygwin >= 1.7.0.
73642         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
73643         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
73645 2008-05-15  Bruno Haible  <bruno@clisp.org>
73647         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
73648         implementation in glibc >= 2.9.
73649         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
73650         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
73652 2008-05-15  Bruno Haible  <bruno@clisp.org>
73654         * MODULES.html.sh (Internationalization functions): Remove linebreak.
73655         (Unicode string functions): Add unilbrk/*.
73656         Reported by Karl Berry.
73658 2008-05-15  Eric Blake  <ebb9@byu.net>
73660         Fix violation of <stdbool.h> replacement in regex.
73661         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
73662         * lib/regexec.c (re_search_internal): Likewise.
73663         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
73665 2008-05-15  Jim Meyering  <meyering@redhat.com>
73667         avoid distracting test output when git or cvs is not found
73668         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
73669         * tests/test-vc-list-files-git.sh: Likewise.
73671 2008-05-15  Eric Blake  <ebb9@byu.net>
73673         Glibc finally accepted the memmem speedup code, bugzilla #5514.
73674         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
73675         glibc version.
73676         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
73677         * doc/posix-functions/strstr.texi (strstr): Likewise.
73678         * lib/str-two-way.h (MAX): Sychronize with glibc.
73680 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
73682         * lib/regcomp.c (optimize_utf8): Add a note on why we test
73683         opr.ctx_type.
73684         (calc_first): Initialize constraint field.
73685         (duplicate_node_closure): Use it instead of special casing ANCHORS.
73686         Fix grammar.
73687         (duplicate_node): Merge constraint field for all node types.
73688         (calc_eclosure_iter): Look at constraint field for all node types.
73689         * lib/regex_internal.c (create_cd_newstate): Don't look at
73690         opr.ctx_type.
73692 2008-05-14  Bruno Haible  <bruno@clisp.org>
73694         Help GCC to do better code generation.
73695         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
73696         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
73697         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
73698         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
73699         Declare with attribute 'malloc' if supported.
73701 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
73703         use "echo STR|wc -c" rather than unportable "expr length STR"
73704         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
73705         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
73707 2008-05-14  Jim Meyering  <meyering@redhat.com>
73709         use dd ibs=$n count=1 ... rather than less-portable head -c$n
73710         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
73711         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
73712         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
73713         via Collin Lasse.
73715 2008-05-14  Eric Blake  <ebb9@byu.net>
73717         Avoid quadratic growth in gl_LIBSOURCES.
73718         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
73719         Suggested by Bruno Haible.
73721         Test xmemdup0.
73722         * modules/xmemdup0-tests: New file.
73723         * tests/test-xmemdup0.c: Likewise.
73725 2008-05-13  Eric Blake  <ebb9@byu.net>
73727         Split xmemdup0 into its own module.
73728         * modules/xmemdup0: New file.
73729         * lib/xmemdup0.h: Likewise.
73730         * lib/xmemdup0.c: Likewise.
73731         * MODULES.html.sh (Memory management functions): Add xmemdup0.
73732         * lib/xalloc.h (xmemdup0): Remove.
73733         * lib/xmalloc.c (xmemdup0): Likewise.
73735 2008-05-13  Eric Blake  <ebb9@byu.net>
73736             Bruno Haible  <bruno@clisp.org>
73738         Reduce number of forks required during autoconf.
73739         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
73740         and gl_LIBSOURCES_DIR.
73741         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
73742         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
73743         m4_syscmd per file.
73744         <m4_foreach_w>: Move...
73745         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
73747 2008-05-13  Eric Blake  <ebb9@byu.net>
73749         * gnulib-tool: Fix various comment typos.
73751 2008-05-12  Bruno Haible  <bruno@clisp.org>
73753         Tailor the linebreaking algorithm.
73754         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
73756 2008-05-12  Bruno Haible  <bruno@clisp.org>
73758         Update to Unicode 5.0.0.
73759         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
73760         LBP_JV, LBP_JT. Redistribute values.
73761         (unilbrk_table): Change size.
73762         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
73763         Unicode TR#14 rev. 22.
73764         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
73765         LBP_JV, LBP_JT. Redistribute values.
73766         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
73767         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
73768         Update.
73769         * lib/unilbrk/lbrkprop1.h: Regenerated.
73770         * lib/unilbrk/lbrkprop2.h: Regenerated.
73771         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
73772         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
73773         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
73774         Likewise.
73775         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
73776         Likewise.
73777         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
73778         result.
73779         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
73780         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
73781         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
73782         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
73783         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
73784         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
73786 2008-05-11  Bruno Haible  <bruno@clisp.org>
73788         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
73790 2008-05-11  Bruno Haible  <bruno@clisp.org>
73792         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
73793         * modules/unilbrk/gen-lbrk: New file.
73795 2008-05-11  Bruno Haible  <bruno@clisp.org>
73797         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
73798         * m4/sha512.m4 (gl_SHA512): Likewise.
73800 2008-05-11  Jim Meyering  <meyering@redhat.com>
73802         New modules: crypto/sha256, crypto/sha512 (from coreutils)
73803         * modules/crypto/sha256: New file.
73804         * modules/crypto/sha512: Likewise.
73805         * lib/sha256.c: Likewise.
73806         * lib/sha256.h: Likewise.
73807         * lib/sha512.c: Likewise.
73808         * lib/sha512.h: Likewise.
73809         * lib/u64.h: Likewise.
73810         * m4/sha256.m4: Likewise.
73811         * m4/sha512.m4: Likewise.
73812         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
73814 2008-05-10  Bruno Haible  <bruno@clisp.org>
73816         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
73817         (Input/Output <stdio.h>): Add xprintf.
73818         (Signal handling <signal.h>): Add strsignal.
73819         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
73820         (Core language properties): Add func.
73821         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
73822         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
73823         strings.
73824         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
73825         (Input/output): New section.
73826         (File system functions): Add openat-die, stat-macros.
73827         (Networking functions): Add sockets.
73828         (Unicode string functions): Add unictype/*.
73829         (Support for building libraries and executables): Add gperf.
73830         (Support for building documentation): Add agpl-3.0.
73831         (Misc): Add nocrash.
73833 2008-05-10  Bruno Haible  <bruno@clisp.org>
73835         * modules/unictype/gen-ctype: New file.
73837 2008-05-10  Jim Meyering  <meyering@redhat.com>
73839         Make chdir-safer.c more efficient on a system with no symlinks.
73840         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
73841         also if ELOOP is zero.  Suggested by Bruno Haible.
73843         Make chdir-safer.c slightly safer.
73844         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
73845         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
73847         Avoid compile failure on systems without ELOOP (like mingw).
73848         * lib/chdir-safer.c (ELOOP): Define if not already defined.
73849         Reported by Bruno Haible.
73851 2008-05-10  Bruno Haible  <bruno@clisp.org>
73853         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
73854         (is_utf8_encoding): Use a case-insensitive comparison.
73855         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
73856         streq.
73858 2008-05-10  Bruno Haible  <bruno@clisp.org>
73860         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
73861         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
73862         * lib/unilbrk/ulc-common.h (iconv_string_length,
73863         iconv_string_keeping_offsets): Remove declarations.
73864         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
73865         Don't include <iconv.h>, streq.h, xsize.h.
73866         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
73867         conversion.
73868         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
73869         <iconv.h>, streq.h, xsize.h.
73870         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
73871         conversion.
73872         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
73873         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
73874         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
73875         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
73877 2008-05-10  Bruno Haible  <bruno@clisp.org>
73879         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
73880         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
73882         * modules/unilbrk/u32-width-linebreaks-tests: New file.
73883         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
73885         * modules/unilbrk/u16-width-linebreaks-tests: New file.
73886         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
73888         * modules/unilbrk/u8-width-linebreaks-tests: New file.
73889         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
73891         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
73892         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
73894         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
73895         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
73897         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
73898         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
73900         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
73901         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
73903 2008-05-10  Bruno Haible  <bruno@clisp.org>
73905         Split up 'linebreak' module.
73906         * lib/unilbrk.h: New file, based on lib/linebreak.h.
73907         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
73908         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
73909         modifications.
73910         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
73911         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
73912         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
73913         lib/linebreak.c.
73914         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
73915         lib/linebreak.c.
73916         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
73917         lib/linebreak.c.
73918         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
73919         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
73920         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
73921         lib/linebreak.c.
73922         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
73923         lib/linebreak.c.
73924         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
73925         lib/linebreak.c.
73926         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
73927         lib/linebreak.c.
73928         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
73929         lib/linebreak.c.
73930         * modules/unilbrk/base: New file.
73931         * modules/unilbrk/tables: New file.
73932         * modules/unilbrk/u8-possible-linebreaks: New file.
73933         * modules/unilbrk/u16-possible-linebreaks: New file.
73934         * modules/unilbrk/u32-possible-linebreaks: New file.
73935         * modules/unilbrk/ulc-common: New file.
73936         * modules/unilbrk/ulc-possible-linebreaks: New file.
73937         * modules/unilbrk/u8-width-linebreaks: New file.
73938         * modules/unilbrk/u16-width-linebreaks: New file.
73939         * modules/unilbrk/u32-width-linebreaks: New file.
73940         * modules/unilbrk/ulc-width-linebreaks: New file.
73941         * lib/linebreak.h: Remove file.
73942         * lib/linebreak.c: Remove file.
73943         * m4/linebreak.m4: Remove file.
73944         * modules/linebreak: Remove file.
73945         * NEWS: Mention the changes.
73947 2008-05-09  Eric Blake  <ebb9@byu.net>
73949         Add xmemdup0.
73950         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
73951         implementation.
73952         * lib/xmalloc.c (xmemdup0): New C implementation.
73954 2008-05-08  Bruno Haible  <bruno@clisp.org>
73956         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
73958 2008-05-07  Eric Blake  <ebb9@byu.net>
73960         Support cross-compilation of <wctype.h>.
73961         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
73962         AC_CACHE_CHECK.
73964 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
73966         * build-aux/vc-list-files: Add support for bzr.
73968 2008-05-03  Jim Meyering  <meyering@redhat.com>
73970         avoid failed assertion with tight malloc
73971         * tests/test-getndelim2.c: Correct an off-by-one assertion.
73973 2008-05-03  Simon Josefsson  <simon@josefsson.org>
73975         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
73976         are needed from arpa/inet.h.
73977         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
73978         Reported by Bruno Haible.
73980 2008-05-02  Jim Meyering  <meyering@redhat.com>
73982         avoid compilation error on FreeBSD 6
73983         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
73985 2008-05-01  Jim Meyering  <meyering@redhat.com>
73987         useless-if-before-free: correct --help's exit status description
73988         * build-aux/useless-if-before-free (usage): Like grep, exit 0
73989         for one or more matches, etc.  Reported by Bruno Haible.
73991         vc-list-files: make the stand-alone gnulib test work
73992         * modules/vc-list-files-tests (configure.ac):
73993         Define and AC_SUBST abs_aux_dir.
73994         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
73995         $(abs_top_srcdir) to each script and having each of them
73996         duplicate the work of setting PATH, set PATH here, using
73997         the new variable, abs_aux_dir instead.
73998         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
73999         * tests/test-vc-list-files-git.sh: Likewise.
74000         Reported by Bruno Haible.
74002 2008-05-01  Bruno Haible  <bruno@clisp.org>
74004         * lib/getndelim2.c (getndelim2): Fix newsize computation during
74005         reallocation. Rename 'done' to 'found_delimiter'.
74007 2008-05-01  Jim Meyering  <meyering@redhat.com>
74009         vc-list-files: accommodate /bin/sh like the one from Solaris 10
74010         * build-aux/vc-list-files: Use `...`, not $(...).
74012 2008-04-30  Jim Meyering  <meyering@redhat.com>
74014         add tests for vc-list-files
74015         * modules/vc-list-files-tests: New module.
74016         * tests/test-vc-list-files-cvs.sh: New file.
74017         * tests/test-vc-list-files-git.sh: New file.
74019         avoid a warning from gcc
74020         * lib/getndelim2.c (IF_LINT): Define.
74021         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
74023         vc-list-files: work properly with build-aux/cvsu, too
74024         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
74025         to all cvs-based clauses.
74027         vc-list-files: work properly in the CVS+awk case, too
74028         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
74030         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
74031         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
74032         take more than one file argument, so .  Add quotes, just in case $dir
74033         ever contains a shell meta-character.  Prompted by Soren Hansen in
74034         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
74036 2008-04-29  Eric Blake  <ebb9@byu.net>
74038         Optimize getndelim2 to use block operations when possible.
74039         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
74040         freadseek, and memchr2.
74041         * lib/getndelim2.c (getndelim2): Use them for block reads.
74043 2008-04-29  Bruno Haible  <bruno@clisp.org>
74045         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
74046         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
74047         * modules/inet_ntop (Depends-on): Add extensions.
74048         * modules/inet_pton (Depends-on): Likewise.
74049         Reported by Simon Josefsson.
74051 2008-04-29  Jim Meyering  <meyering@redhat.com>
74053         When the is more than one match in a block, match all of them.
74054         * build-aux/useless-if-before-free: Iterate through each block
74055         until there are no more matches.
74057         Fix broken useless-if-before-free script.
74058         * build-aux/useless-if-before-free: Fix typo: missing "?" after
74059         the expression to match cast of argument to free-like function.
74061 2008-04-29  Eric Blake  <ebb9@byu.net>
74063         Use new header.
74064         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
74066 2008-04-29  Jim Meyering  <meyering@redhat.com>
74068         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
74069         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
74070         by gnulib to exist and to declare e.g., inet_ntop.
74071         Don't include "inet_ntop.h", now removed.
74073         * m4/arpa_inet_h.m4: Remove trailing blanks.
74075 2008-04-29  Eric Blake  <ebb9@byu.net>
74077         Silence valgrind on safe reads beyond potential array bounds.
74078         * lib/rawmemchr.valgrind: New file.
74079         * lib/strchrnul.valgrind: Likewise.
74080         * modules/rawmemchr (Files): Distribute new file.
74081         * modules/strchrnul (Files): Likewise.
74082         Suggested by Bruno Haible.
74084 2008-04-29  Bruno Haible  <bruno@clisp.org>
74086         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
74087         (inet_ntop, inet_pton): Change portability warning's wording.
74088         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
74089         Invoke gl_CHECK_NEXT_HEADERS.
74090         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
74091         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
74092         set ARPA_INET_H.
74093         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
74094         * modules/arpa_inet (Description): No longer only for systems that
74095         lack it.
74096         (Depends-on): Add include_next.
74097         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
74098         HAVE_ARPA_INET_H.
74100 2008-04-29  Jim Meyering  <meyering@redhat.com>
74102         * modules/mkdir (License): Re-license as LGPLv2+.
74104 2008-04-29  Bruno Haible  <bruno@clisp.org>
74106         * modules/rawmemchr (Maintainer): Set to Eric.
74107         * modules/strchrnul (Maintainer): Likewise.
74109 2008-04-29  Simon Josefsson  <simon@josefsson.org>
74111         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
74112         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
74114         * modules/arpa_inet (arpa/inet.h): Use them.
74116 2008-04-28  Eric Blake  <ebb9@byu.net>
74118         Test getndelim2.
74119         * modules/getndelim2-tests: New file.
74120         * tests/test-getndelim2.c: Likewise.
74121         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
74122         stream.
74123         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
74125         * MODULES.html.sh: Document new module.
74127 2008-04-20  Bruno Haible  <bruno@clisp.org>
74129         * lib/c-stack.c (die): Use raise.
74130         * modules/c-stack (Depends-on): Add raise.
74132 2008-04-28  Bruno Haible  <bruno@clisp.org>
74134         Expect rpmatch to be declared.
74135         * lib/yesno.c (rpmatch): Remove declaration.
74137         Declare rpmatch.
74138         * lib/stdlib.in.h (rpmatch): New declaration.
74139         * lib/rpmatch.c: Include <stdlib.h> first.
74140         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
74141         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
74142         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
74143         HAVE_RPMATCH.
74144         * modules/rpmatch (Depends-on): Add stdlib, extensions.
74145         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74146         (Include): Set to <stdlib.h>.
74147         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
74148         HAVE_RPMATCH.
74149         * NEWS: Document the change.
74151 2008-04-28  Bruno Haible  <bruno@clisp.org>
74153         Change rpmatch to use nl_langinfo when appropriate.
74154         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
74155         (N_): New macro.
74156         (localized_pattern): New function/macro.
74157         (try): Remove match, nomatch arguments. Copy the pattern into safe
74158         memory before caching it.
74159         (rpmatch): Use localized_pattern. Add translator comments.
74160         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
74161         Suggested by Eric Blake.
74162         * modules/rpmatch (Depends-on): Add stdbool.
74164 2008-04-28  Eric Blake  <ebb9@byu.net>
74166         Add rawmemchr module, matching glibc.
74167         * modules/string (Makefile.am): New indicator.
74168         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
74169         * lib/string.in.h (rawmemchr): Declare when appropriate.
74170         * modules/rawmemchr: New file.
74171         * m4/rawmemchr.m4: Likewise.
74172         * lib/rawmemchr.c: Likewise.
74173         * modules/rawmemchr-tests: Likewise.
74174         * tests/test-rawmemchr.c: Likewise.
74175         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
74176         module.
74177         * modules/strchrnul (Depends-on): Add rawmemchr.
74178         * lib/strchrnul.c (strchrnul): Optimize a corner case.
74180         Whitespace cleanup.
74181         * tests/test-strchrnul.c: Reindent.
74182         * lib/strchrnul.c: Likewise.
74184         Optimize and test strchrnul.
74185         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
74186         * modules/strchrnul-tests: New file.
74187         * tests/test-strchrnul.c: Likewise.
74189         Remove intprops dependency.
74190         * modules/memchr (Depends-on): Remove intprops.
74191         * modules/memrchr (Depends-on): Likewise.
74192         * modules/memchr2 (Depends-on): Likewise.
74193         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
74194         * lib/memrchr.c (__memrchr): Likewise.
74195         * lib/memrchr2.c (memchr2): Likewise.
74196         Reported by Simon Josefsson.
74198 2008-04-28  Simon Josefsson  <simon@josefsson.org>
74200         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
74201         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74203 2008-04-28  Simon Josefsson  <simon@josefsson.org>
74205         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
74207         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
74209         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
74211         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
74212         declarations.
74213         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
74215         * m4/inet_pton.m4: Don't check for header files.
74217         * m4/inet_ntop.m4: Don't check for header files.
74219 2008-04-28  Simon Josefsson  <simon@josefsson.org>
74221         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
74222         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
74223         trigger for cygwin).
74224         Reported by Bruno Haible  <bruno@clisp.org>.
74226 2008-04-28  Bruno Haible  <bruno@clisp.org>
74228         * doc/posix-functions/strdup.texi: Mention mingw problem.
74230 2008-04-27  Bruno Haible  <bruno@clisp.org>
74232         * modules/stat-time-tests (Depends-on): Add sleep.
74233         * tests/test-stat-time.c (force_unlink): New function.
74234         (cleanup): Use it.
74235         (test_mtime): Remove the ctime related tests.
74236         (test_ctime): New function, containing the ctime related tests.
74237         (main): Call test_ctime, except on native Windows platforms.
74239 2008-04-27  Bruno Haible  <bruno@clisp.org>
74241         * lib/rpmatch.c (rpmatch): Add some comments.
74242         Reported by James Youngman <jay@gnu.org>.
74244 2008-04-27  Bruno Haible  <bruno@clisp.org>
74246         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
74247         quiet NaNs.
74249 2008-04-27  Bruno Haible  <bruno@clisp.org>
74251         Make test-yesno.sh work on mingw.
74252         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
74253         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
74254         (main): Set stdin to binary mode.
74255         * modules/yesno-tests (Depends-on): Add binary-io.
74257 2008-04-27  Bruno Haible  <bruno@clisp.org>
74259         Fix 'isfinite' on x86, x86_64, ia64 platforms.
74260         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
74261         argument that lie outside the IEEE 854 domain.
74262         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
74263         (gl_ISFINITE): Use it.
74264         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
74266 2008-04-27  Bruno Haible  <bruno@clisp.org>
74268         Allow local renaming in config.h.
74269         * lib/memrchr.c (memrchr): Don't undefine outside libc.
74271 2008-04-27  Bruno Haible  <bruno@clisp.org>
74273         * lib/memchr.c (__memchr): Change type of 'i'.
74274         * lib/memchr2.c (memchr2): Likewise.
74276 2008-04-26  Eric Blake  <ebb9@byu.net>
74277         and Bruno Haible  <bruno@clisp.org>
74279         Optimize and test memrchr.
74280         * modules/memrchr (Depends-on): Add intprops.
74281         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
74282         * modules/memrchr-tests: New file.
74283         * tests/test-memrchr.c: New file.
74285 2008-04-26  Bruno Haible  <bruno@clisp.org>
74287         Add tentative support for DragonFly BSD.
74288         * lib/stdio-impl.h: Add macros for DragonFly BSD.
74289         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
74290         fp.
74291         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
74292         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
74293         * lib/fpurge.c (fpurge): Likewise.
74294         * lib/freadable.c (freaadable): Likewise.
74295         * lib/freadahead.c (freadahead): Likewise.
74296         * lib/freading.c (freading): Likewise.
74297         * lib/freadptr.c (freadptr): Likewise.
74298         * lib/freadseek.c (freadptrinc): Likewise.
74299         * lib/fseeko.c (fseeko): Likewise.
74300         * lib/fseterr.c (fseterr): Likewise.
74301         * lib/fwritable.c (fwritable): Likewise.
74302         * lib/fwriting.c (fwriting): Likewise.
74304 2008-04-26  Bruno Haible  <bruno@clisp.org>
74306         * lib/stdio-impl.h: New file.
74307         * lib/fbufmode.c: Include stdio-impl.h.
74308         (fbufmode): Use fp_, remove redundant #defines.
74309         * lib/fflush.c: Include stdio-impl.h.
74310         (clear_ungetc_buffer): Remove redundant #defines.
74311         * lib/fpurge.c: Include stdio-impl.h.
74312         (fpurge): Remove redundant #defines.
74313         * lib/freadable.c: Include stdio-impl.h.
74314         (freadable): Remove redundant #defines.
74315         * lib/freadahead.c: Include stdio-impl.h.
74316         (freadahead): Remove redundant #defines.
74317         * lib/freading.c: Include stdio-impl.h.
74318         (freading): Remove redundant #defines.
74319         * lib/freadptr.c: Include stdio-impl.h.
74320         (freadptr): Remove redundant #defines.
74321         * lib/freadseek.c: Include stdio-impl.h.
74322         (freadptrinc): Remove redundant #defines.
74323         * lib/fseeko.c: Include stdio-impl.h.
74324         (rpl_fseeko): Remove redundant #defines.
74325         * lib/fseterr.c: Include stdio-impl.h.
74326         (fseterr): Remove redundant #defines.
74327         * lib/fwritable.c: Include stdio-impl.h.
74328         (fwritable: Remove redundant #defines.
74329         * lib/fwriting.c: Include stdio-impl.h.
74330         (fwriting): Remove redundant #defines.
74331         * modules/fbufmode (Files): Add lib/stdio-impl.h.
74332         * modules/fflush (Files): Likewise.
74333         * modules/fpurge (Files): Likewise.
74334         * modules/freadable (Files): Likewise.
74335         * modules/freadahead (Files): Likewise.
74336         * modules/freading (Files): Likewise.
74337         * modules/freadptr (Files): Likewise.
74338         * modules/freadseek (Files): Likewise.
74339         * modules/fseeko (Files): Likewise.
74340         * modules/fseterr (Files): Likewise.
74341         * modules/fwritable (Files): Likewise.
74342         * modules/fwriting (Files): Likewise.
74344 2008-04-26  Bruno Haible  <bruno@clisp.org>
74346         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
74347         restore_seek_optimization, update_fpos_cache): New functions, extracted
74348         from rpl_fflush.
74349         (rpl_fflush): Use them.
74350         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
74351         (gl_REPLACE_FFLUSH): Use it.
74353 2008-04-26  Bruno Haible  <bruno@clisp.org>
74355         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
74356         on Solaris.
74357         * tests/test-xstrtoimax.sh: Likewise.
74358         * tests/test-xstrtoumax.sh: Likewise.
74359         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74361 2008-04-26  Bruno Haible  <bruno@clisp.org>
74363         * modules/memchr-tests: New file.
74364         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
74366 2008-04-26  Eric Blake  <ebb9@byu.net>
74367             Bruno Haible  <bruno@clisp.org>
74369         * lib/memchr.c: Include intprops.h.
74370         (__memchr): Optimize parallel detection of matching bytes. Rename local
74371         variables. Add explanatory comments.
74373 2008-04-26  Bruno Haible  <bruno@clisp.org>
74375         Fix module 'memchr', broken since 2000-10-28.
74376         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
74378 2008-04-26  Bruno Haible  <bruno@clisp.org>
74380         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
74381         comments.
74383 2008-04-25  Eric Blake  <ebb9@byu.net>
74385         Use native fstatat on cygwin 1.7.0.
74386         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
74387         first.
74389 2008-04-23  Eric Blake  <ebb9@byu.net>
74391         Improve memchr2 performance.
74392         * lib/memchr2.c (memchr2): Further optimize parallel detection of
74393         NUL bytes.
74394         * modules/memchr2 (Depends-on): Use intprops.h.
74396 2008-04-23  Simon Josefsson  <simon@josefsson.org>
74398         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
74399         an inline function instead of a CPP macro.  Patch by Ben Pfaff
74400         <blp@cs.stanford.edu>.
74402 2008-04-23  Simon Josefsson  <simon@josefsson.org>
74404         * lib/arpa_inet.in.h: New file.
74406         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
74407         (Makefile.am): Sed in substitute header file.
74409         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
74410         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
74412         * modules/inet_ntop (configure.ac): Use
74413         gl_ARPA_INET_MODULE_INDICATOR.
74415         * modules/inet_pton (configure.ac): Use
74416         gl_ARPA_INET_MODULE_INDICATOR.
74418 2008-04-22  Jim Meyering  <meyering@redhat.com>
74420         * modules/verify (License): Re-license as LGPLv2+.
74422 2008-04-22  Simon Josefsson  <simon@josefsson.org>
74424         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
74425         parameter to void* as per POSIX standard (MinGW uses char*).
74427 2008-04-21  Bruno Haible  <bruno@clisp.org>
74429         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
74430         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
74431         Define to replacements if REPLACE_ISWCNTRL is 1.
74432         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
74433         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
74434         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
74435         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
74436         what it fixes.
74437         * doc/posix-functions/iswalpha.texi: Likewise.
74438         * doc/posix-functions/iswblank.texi: Likewise.
74439         * doc/posix-functions/iswcntrl.texi: Likewise.
74440         * doc/posix-functions/iswdigit.texi: Likewise.
74441         * doc/posix-functions/iswgraph.texi: Likewise.
74442         * doc/posix-functions/iswlower.texi: Likewise.
74443         * doc/posix-functions/iswprint.texi: Likewise.
74444         * doc/posix-functions/iswpunct.texi: Likewise.
74445         * doc/posix-functions/iswspace.texi: Likewise.
74446         * doc/posix-functions/iswupper.texi: Likewise.
74447         * doc/posix-functions/iswxdigit.texi: Likewise.
74448         Reported by Alain Guibert.
74450 2008-04-21  Bruno Haible  <bruno@clisp.org>
74452         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
74453         Patch by Alain Guibert.
74455 2008-04-21  Bruno Haible  <bruno@clisp.org>
74457         Fix test failures on mingw.
74458         * tests/test-xstrtol.c (print_no_progname): New function.
74459         (main): Install it in error_print_progname hook.
74460         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
74461         * tests/test-xstrtoimax.sh: Likewise.
74462         * tests/test-xstrtoumax.sh: Likewise.
74464 2008-04-21  Bruno Haible  <bruno@clisp.org>
74466         Fix test failure on mingw.
74467         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
74469 2008-04-21  Bruno Haible  <bruno@clisp.org>
74471         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
74472         Actually assign a value.
74474 2008-04-20  Bruno Haible  <bruno@clisp.org>
74476         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
74477         take 2.
74478         * lib/canonicalize.c (canonicalize_file_name): Elide if the
74479         'canonicalize-lgpl' module is also used.
74480         * lib/canonicalize-lgpl.c: Undo last change.
74481         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
74483 2008-04-20  Bruno Haible  <bruno@clisp.org>
74485         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
74486         config.h. Provide _mkdir based fallback for mingw.
74487         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
74488         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
74489         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
74490         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
74491         rather than defining mkdir in config.h.
74492         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
74493         (gl_SYS_STAT_H_DEFAULTS): New macro.
74494         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
74495         HAVE_IO_H any more.
74496         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
74497         HAVE_DECL_MKDIR and HAVE_IO_H.
74499 2008-04-20  Bruno Haible  <bruno@clisp.org>
74501         * lib/isapipe.c: Port to native Windows platforms.
74503 2008-04-20  Bruno Haible  <bruno@clisp.org>
74505         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
74507 2008-04-21  Eric Blake  <ebb9@byu.net>
74509         Work around preprocessors that don't handle UINTMAX_MAX.
74510         * lib/memchr2.c (memchr2): Avoid embedded #if.
74511         Reported by Alain Guibert, fix suggested by Bruno Haible.
74513 2008-04-21  Simon Josefsson  <simon@josefsson.org>
74515         * doc/posix-functions/strftime.texi (strftime): Explain better
74516         Windows incompatibility.  Suggested by Micah Cowan
74517         <micah@cowan.name>.
74519 2008-04-20  Bruno Haible  <bruno@clisp.org>
74521         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
74522         unistr/u8-mblen.
74524 2008-04-20  Bruno Haible  <bruno@clisp.org>
74526         Fix test failure on platforms with non-GNU iconv.
74527         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
74528         (U_TO_U8): Use it, rather than u16_to_u8.
74529         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
74530         units at the end of the input string.
74531         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
74533 2008-04-20  Bruno Haible  <bruno@clisp.org>
74535         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
74536         when the resulting length is 0.
74537         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
74539 2008-04-20  Bruno Haible  <bruno@clisp.org>
74541         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
74542         works.
74543         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
74545 2008-04-20  Bruno Haible  <bruno@clisp.org>
74547         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
74548         * modules/tsearch-tests (configure.ac): Test for initstate function.
74550 2008-04-20  Bruno Haible  <bruno@clisp.org>
74552         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
74553         for nlink_t if missing.
74554         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
74556 2008-04-19  Bruno Haible  <bruno@clisp.org>
74558         Work around snprintf bug on Linux libc5.
74559         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
74560         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
74561         gl_SNPRINTF_SIZE1.
74562         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
74563         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
74564         that test failed.
74565         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
74566         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
74567         * modules/snprintf (Files): Add m4/printf.m4.
74568         * modules/vsnprintf (Files): Likewise.
74569         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
74570         * doc/posix-functions/vsnprintf.texi: Likewise.
74572 2008-04-19  Bruno Haible  <bruno@clisp.org>
74574         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
74575         from 0.0058 to less than 10^-7.
74577 2008-04-19  Bruno Haible  <bruno@clisp.org>
74579         Fix rounding when a precision is given.
74580         * lib/vasnprintf.c (is_borderline): New function.
74581         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
74582         9...9x.
74583         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
74584         %e, %g.
74585         * tests/test-vasprintf-posix.c (test_function): Likewise.
74586         * tests/test-snprintf-posix.h (test_function): Likewise.
74587         * tests/test-sprintf-posix.h (test_function): Likewise.
74588         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
74589         * tests/test-printf-posix.h (test_function): Likewise.
74590         * tests/test-printf-posix.output: Update.
74591         Reported by John Darrington <john@darrington.wattle.id.au> via
74592         Ben Pfaff <blp@cs.stanford.edu>.
74594 2008-04-18  Simon Josefsson  <simon@josefsson.org>
74596         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
74597         Suggested by Bruno Haible <bruno@clisp.org>.
74599 2008-04-17  Bruno Haible  <bruno@clisp.org>
74601         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
74602         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
74603         implementation.
74604         Patch by Bruce Merry <bmerry@gmail.com>.
74606 2008-04-17  Simon Josefsson  <simon@josefsson.org>
74608         * doc/posix-functions/strftime.texi (strftime): Mention that %e
74609         doesn't work under Windows.
74611 2008-04-16  Bruno Haible  <bruno@clisp.org>
74613         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
74614         New macros.
74615         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
74616         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
74617         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
74618         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
74619         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
74620         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
74621         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
74622         macros.
74623         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
74624         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
74625         Northern Sotho, Uighur.
74627 2008-04-16  Bruno Haible  <bruno@clisp.org>
74629         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
74630         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
74631         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
74632         Reported by Daniel Bergström <daniel@octocode.com>.
74634 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
74635             Bruno Haible  <bruno@clisp.org>
74637         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
74638         function.
74639         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
74640         New functions, mostly extracted from gl_locale_name_default.
74641         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
74643 2008-04-16  Eric Blake  <ebb9@byu.net>
74645         Adjust strtod detection to catch glibc 2.7 bug.
74646         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
74647         Reported by John Gatewood Ham.
74649 2008-04-16  Bruno Haible  <bruno@clisp.org>
74651         Add tentative support for Linux libc5.
74652         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
74653         * lib/fpurge.c (fpurge): Likewise.
74654         * lib/freadable.c (freadable): Likewise.
74655         * lib/freadahead.c (freadahead): Likewise.
74656         * lib/freading.c (freading): Likewise.
74657         * lib/freadptr.c (freadptr): Likewise.
74658         * lib/freadseek.c (freadptrinc): Likewise.
74659         * lib/fseeko.c (rpl_fseeko): Likewise.
74660         * lib/fseterr.c (fseterr): Likewise.
74661         * lib/fwritable.c (fwritable): Likewise.
74662         * lib/fwriting.c (fwriting): Likewise.
74663         Reported by Alain Guibert <alguibert+bts@free.fr>.
74665 2008-04-15  Bruno Haible  <bruno@clisp.org>
74667         * modules/mathl (configure.ac): Define module indicator.
74669 2008-04-15  Bruno Haible  <bruno@clisp.org>
74671         * lib/logl.c (logl): Remove unused variables.
74673 2008-04-15  Bruno Haible  <bruno@clisp.org>
74675         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
74676         fails.
74678 2008-04-15  Bruno Haible  <bruno@clisp.org>
74680         * lib/trim.c (trim2): Fix argument of isspace() macro.
74682 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
74684         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
74685         to 0.
74686         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
74688 2008-04-14  Bruno Haible  <bruno@clisp.org>
74690         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
74691         AC_LANG_PROGRAM argument.
74692         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
74693         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
74694         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
74695         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
74696         * m4/math_h.m4 (gl_MATH_H): Likewise.
74697         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
74698         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
74699         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
74700         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
74701         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
74702         * m4/regex.m4 (gl_REGEX): Likewise.
74703         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
74704         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
74705         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
74706         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
74707         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
74708         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
74709         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
74710         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
74712 2008-04-14  Jim Meyering  <meyering@redhat.com>
74714         test-strtod: fix typos: s/abs/fabs/
74715         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
74717 2008-04-13  Bruno Haible  <bruno@clisp.org>
74719         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
74720         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
74721         module is also used and while not building the reloc-wrapper.
74723 2008-04-13  Bruno Haible  <bruno@clisp.org>
74725         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
74727 2008-04-13  Bruno Haible  <bruno@clisp.org>
74729         Fix AIX compilation failure introduced on 2008-04-02.
74730         * tests/test-frexp.c (exp): Undefine before redefining.
74731         * tests/test-frexpl.c (exp): Likewise.
74733 2008-04-13  Bruno Haible  <bruno@clisp.org>
74735         Work around a HP-UX stdio bug.
74736         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
74737         * tests/test-ftello.c (main): Likewise.
74738         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
74739         * doc/posix-functions/ftello.texi: Likewise.
74741 2008-04-13  Bruno Haible  <bruno@clisp.org>
74743         Make test-signbit pass on HP-UX/hppa.
74744         * tests/test-signbit.c (minus_zerol): New variable.
74745         (test_signbitl): Use it.
74747 2008-04-13  Bruno Haible  <bruno@clisp.org>
74749         Make truncl work on OSF/1 4.0.
74750         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
74751         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
74752         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
74753         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
74754         HAVE_DECL_TRUNCL.
74755         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
74756         HAVE_DECL_TRUNCL.
74757         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
74759 2008-04-13  Bruno Haible  <bruno@clisp.org>
74761         * lib/unictype.h: Remove trailing comma from enumeration definitions.
74763 2008-04-13  Bruno Haible  <bruno@clisp.org>
74765         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
74766         expression, so as to avoid HP-UX 11 cc compiler bug.
74768 2008-04-13  Bruno Haible  <bruno@clisp.org>
74770         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
74772 2008-04-13  Bruno Haible  <bruno@clisp.org>
74774         * lib/git-merge-changelog.c: Remove empty declaration outside of
74775         functions.
74777 2008-04-13  Bruno Haible  <bruno@clisp.org>
74779         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
74781 2008-04-13  Bruno Haible  <bruno@clisp.org>
74783         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
74784         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
74785         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
74786         also if it exists but lacks definitions of the SHUT_* macros.
74787         * modules/sys_socket (Description): Update.
74788         Reported by Elbert Pol <e.pol@chello.nl>.
74790 2008-04-13  Bruno Haible  <bruno@clisp.org>
74792         * lib/localcharset.c (OS2): Don't redefine if already defined.
74793         Reported by Elbert Pol <e.pol@chello.nl>.
74795 2008-04-13  Bruno Haible  <bruno@clisp.org>
74797         * lib/binary-io.h [__EMX__]: Include <io.h>.
74798         Reported by Elbert Pol <e.pol@chello.nl>.
74800 2008-04-12  Bruno Haible  <bruno@clisp.org>
74802         * lib/fpucw.h: Enable the definitions also for x86_64.
74803         Needed for NetBSD/x86_64.
74804         Reported by Thomas Klausner <tk@giga.or.at>.
74806 2008-04-12  Bruno Haible  <bruno@clisp.org>
74808         * tests/test-strtod.c: Include isnand.h.
74809         (main): Use isnand instead of isnan.
74810         Reported by Jim Meyering.
74812 2008-04-12  Bruno Haible  <bruno@clisp.org>
74814         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
74815         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
74817 2008-04-12  Jim Meyering  <meyering@redhat.com>
74819         * m4/math_h.m4 (gl_MATH_H): Fix typos.
74821 2008-04-12  Bruno Haible  <bruno@clisp.org>
74823         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
74824         Reported by Elbert Pol <e.pol@chello.nl>.
74826 2008-04-12  Eric Blake  <ebb9@byu.net>
74828         Work around Solaris 10 math.h bug.
74829         * m4/math_h.m4 (gl_MATH_H): Check for bug.
74830         (gl_MATH_H_DEFAULTS): Set up default.
74831         * modules/math (Makefile.am): Replace new indicators.
74832         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
74833         * tests/test-math.c (main): Test this.
74834         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
74835         * doc/posix-headers/math.texi (math.h): Mention bug.
74836         Reported by Nelson H. F. Beebe and Jim Meyering.
74838 2008-04-11  Bruno Haible  <bruno@clisp.org>
74840         Adapt to future versions of Apple GCC.
74841         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
74842         Reported by Peter O'Gorman <peter@pogma.com>.
74844 2008-04-11  Bruno Haible  <bruno@clisp.org>
74846         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
74848 2008-04-11  Bruno Haible  <bruno@clisp.org>
74850         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
74852         * modules/getaddrinfo-tests (Makefile.am): Define
74853         test_getaddrinfo_LDADD.
74855 2008-04-11  Bruno Haible  <bruno@clisp.org>
74857         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
74858         (init): Fix syntax error.
74859         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
74860         is declared.
74862 2008-04-11  Bruno Haible  <bruno@clisp.org>
74864         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
74865         * modules/glob (Depends-on): Add stdbool.
74867 2008-04-11  Bruno Haible  <bruno@clisp.org>
74869         * lib/trim.c: Include <string.h>.
74871 2008-04-11  Eric Blake  <ebb9@byu.net>
74873         Avoid compile failure on OS/2.
74874         * lib/regex_internal.h (internal_function): Disable optimization
74875         on OS/2 (__EMX__), where it caused compiler error.
74876         Reported by Elbert Pol.
74878 2008-04-11  Bruno Haible  <bruno@clisp.org>
74880         Flush the standard error stream before aborting. Needed on mingw.
74881         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
74882         * tests/test-array_list.c (ASSERT): Likewise.
74883         * tests/test-array_oset.c (ASSERT): Likewise.
74884         * tests/test-avltree_list.c (ASSERT): Likewise.
74885         * tests/test-avltree_oset.c (ASSERT): Likewise.
74886         * tests/test-avltreehash_list.c (ASSERT): Likewise.
74887         * tests/test-binary-io.c (ASSERT): Likewise.
74888         * tests/test-byteswap.c (ASSERT): Likewise.
74889         * tests/test-c-ctype.c (ASSERT): Likewise.
74890         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
74891         * tests/test-c-strcasestr.c (ASSERT): Likewise.
74892         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
74893         * tests/test-c-strstr.c (ASSERT): Likewise.
74894         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
74895         * tests/test-canonicalize.c (ASSERT): Likewise.
74896         * tests/test-carray_list.c (ASSERT): Likewise.
74897         * tests/test-ceilf1.c (ASSERT): Likewise.
74898         * tests/test-ceilf2.c (ASSERT): Likewise.
74899         * tests/test-ceill.c (ASSERT): Likewise.
74900         * tests/test-count-one-bits.c (ASSERT): Likewise.
74901         * tests/test-fbufmode.c (ASSERT): Likewise.
74902         * tests/test-fflush2.c (ASSERT): Likewise.
74903         * tests/test-floorf1.c (ASSERT): Likewise.
74904         * tests/test-floorf2.c (ASSERT): Likewise.
74905         * tests/test-floorl.c (ASSERT): Likewise.
74906         * tests/test-fopen.c (ASSERT): Likewise.
74907         * tests/test-fpending.c (ASSERT): Likewise.
74908         * tests/test-fprintf-posix.c (ASSERT): Likewise.
74909         * tests/test-fpurge.c (ASSERT): Likewise.
74910         * tests/test-freadable.c (ASSERT): Likewise.
74911         * tests/test-freadahead.c (ASSERT): Likewise.
74912         * tests/test-freading.c (ASSERT): Likewise.
74913         * tests/test-freadptr.c (ASSERT): Likewise.
74914         * tests/test-freadptr2.c (ASSERT): Likewise.
74915         * tests/test-freadseek.c (ASSERT): Likewise.
74916         * tests/test-freopen.c (ASSERT): Likewise.
74917         * tests/test-frexp.c (ASSERT): Likewise.
74918         * tests/test-frexpl.c (ASSERT): Likewise.
74919         * tests/test-fseek.c (ASSERT): Likewise.
74920         * tests/test-fseeko.c (ASSERT): Likewise.
74921         * tests/test-fstrcmp.c (ASSERT): Likewise.
74922         * tests/test-ftell.c (ASSERT): Likewise.
74923         * tests/test-ftello.c (ASSERT): Likewise.
74924         * tests/test-func.c (ASSERT): Likewise.
74925         * tests/test-fwritable.c (ASSERT): Likewise.
74926         * tests/test-fwriting.c (ASSERT): Likewise.
74927         * tests/test-getdelim.c (ASSERT): Likewise.
74928         * tests/test-getline.c (ASSERT): Likewise.
74929         * tests/test-i-ring.c (ASSERT): Likewise.
74930         * tests/test-iconv-utf.c (ASSERT): Likewise.
74931         * tests/test-iconv.c (ASSERT): Likewise.
74932         * tests/test-isfinite.c (ASSERT): Likewise.
74933         * tests/test-isnand.c (ASSERT): Likewise.
74934         * tests/test-isnanf.c (ASSERT): Likewise.
74935         * tests/test-isnanl.h (ASSERT): Likewise.
74936         * tests/test-ldexpl.c (ASSERT): Likewise.
74937         * tests/test-linked_list.c (ASSERT): Likewise.
74938         * tests/test-linkedhash_list.c (ASSERT): Likewise.
74939         * tests/test-localename.c (ASSERT): Likewise.
74940         * tests/test-lseek.c (ASSERT): Likewise.
74941         * tests/test-mbscasecmp.c (ASSERT): Likewise.
74942         * tests/test-mbscasestr1.c (ASSERT): Likewise.
74943         * tests/test-mbscasestr2.c (ASSERT): Likewise.
74944         * tests/test-mbscasestr3.c (ASSERT): Likewise.
74945         * tests/test-mbscasestr4.c (ASSERT): Likewise.
74946         * tests/test-mbschr.c (ASSERT): Likewise.
74947         * tests/test-mbscspn.c (ASSERT): Likewise.
74948         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
74949         * tests/test-mbspbrk.c (ASSERT): Likewise.
74950         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
74951         * tests/test-mbsrchr.c (ASSERT): Likewise.
74952         * tests/test-mbsspn.c (ASSERT): Likewise.
74953         * tests/test-mbsstr1.c (ASSERT): Likewise.
74954         * tests/test-mbsstr2.c (ASSERT): Likewise.
74955         * tests/test-mbsstr3.c (ASSERT): Likewise.
74956         * tests/test-memchr2.c (ASSERT): Likewise.
74957         * tests/test-memmem.c (ASSERT): Likewise.
74958         * tests/test-open.c (ASSERT): Likewise.
74959         * tests/test-printf-frexp.c (ASSERT): Likewise.
74960         * tests/test-printf-frexpl.c (ASSERT): Likewise.
74961         * tests/test-printf-posix.c (ASSERT): Likewise.
74962         * tests/test-quotearg.c (ASSERT): Likewise.
74963         * tests/test-rbtree_list.c (ASSERT): Likewise.
74964         * tests/test-rbtree_oset.c (ASSERT): Likewise.
74965         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
74966         * tests/test-round1.c (ASSERT): Likewise.
74967         * tests/test-roundf1.c (ASSERT): Likewise.
74968         * tests/test-roundl.c (ASSERT): Likewise.
74969         * tests/test-signbit.c (ASSERT): Likewise.
74970         * tests/test-sleep.c (ASSERT): Likewise.
74971         * tests/test-snprintf-posix.c (ASSERT): Likewise.
74972         * tests/test-snprintf.c (ASSERT): Likewise.
74973         * tests/test-sprintf-posix.c (ASSERT): Likewise.
74974         * tests/test-stat-time.c (ASSERT): Likewise.
74975         * tests/test-strcasestr.c (ASSERT): Likewise.
74976         * tests/test-strerror.c (ASSERT): Likewise.
74977         * tests/test-striconv.c (ASSERT): Likewise.
74978         * tests/test-striconveh.c (ASSERT): Likewise.
74979         * tests/test-striconveha.c (ASSERT): Likewise.
74980         * tests/test-strsignal.c (ASSERT): Likewise.
74981         * tests/test-strstr.c (ASSERT): Likewise.
74982         * tests/test-strtod.c (ASSERT): Likewise.
74983         * tests/test-trunc1.c (ASSERT): Likewise.
74984         * tests/test-trunc2.c (ASSERT): Likewise.
74985         * tests/test-truncf1.c (ASSERT): Likewise.
74986         * tests/test-truncf2.c (ASSERT): Likewise.
74987         * tests/test-truncl.c (ASSERT): Likewise.
74988         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
74989         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
74990         * tests/test-vasnprintf.c (ASSERT): Likewise.
74991         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
74992         * tests/test-vasprintf.c (ASSERT): Likewise.
74993         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
74994         * tests/test-vprintf-posix.c (ASSERT): Likewise.
74995         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
74996         * tests/test-vsnprintf.c (ASSERT): Likewise.
74997         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
74998         * tests/test-wcwidth.c (ASSERT): Likewise.
74999         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
75000         * tests/test-xprintf-posix.c (ASSERT): Likewise.
75001         * tests/test-xvasprintf.c (ASSERT): Likewise.
75002         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
75003         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
75004         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
75005         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
75006         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
75007         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
75008         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
75009         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
75010         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
75011         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
75012         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
75013         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
75014         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
75015         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
75016         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
75017         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
75018         * tests/unictype/test-block_list.c (ASSERT): Likewise.
75019         * tests/unictype/test-block_of.c (ASSERT): Likewise.
75020         * tests/unictype/test-block_test.c (ASSERT): Likewise.
75021         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
75022         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
75023         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
75024         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
75025         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
75026         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
75027         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
75028         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
75029         * tests/unictype/test-combining.c (ASSERT): Likewise.
75030         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
75031         * tests/unictype/test-digit.c (ASSERT): Likewise.
75032         * tests/unictype/test-mirror.c (ASSERT): Likewise.
75033         * tests/unictype/test-numeric.c (ASSERT): Likewise.
75034         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
75035         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
75036         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
75037         * tests/unictype/test-scripts.c (ASSERT): Likewise.
75038         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
75039         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
75040         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
75041         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
75042         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
75043         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
75044         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
75045         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
75046         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
75047         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
75048         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
75049         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
75050         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
75051         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
75052         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
75053         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
75054         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
75055         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
75056         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
75057         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
75058         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
75059         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
75060         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
75061         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
75062         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
75063         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
75064         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
75065         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
75066         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
75067         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
75068         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
75069         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
75070         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
75071         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
75072         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
75073         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
75074         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
75075         Reported by Eric Blake.
75077 2008-04-11  Bruno Haible  <bruno@clisp.org>
75079         * lib/wchar.in.h: Tweak comment.
75081 2008-04-11  Bruno Haible  <bruno@clisp.org>
75083         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
75084         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
75085         gl_COMMON.
75086         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
75088 2008-04-11  Bruno Haible  <bruno@clisp.org>
75090         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
75092 2008-04-11  Simon Josefsson  <simon@josefsson.org>
75094         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
75095         of attempting to use non-existing /dev/*random.  Based on patch
75096         from Adam Strzelecki <ono@java.pl> in
75097         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
75099 2008-04-08  Bruno Haible  <bruno@clisp.org>
75101         Add tentative support for emx+gcc.
75102         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
75103         * lib/fpurge.c (fpurge): Likewise.
75104         * lib/freadable.c (freadable): Likewise.
75105         * lib/freadahead.c (freadahead): Likewise.
75106         * lib/freading.c (freading): Likewise.
75107         * lib/freadptr.c (freadptr): Likewise.
75108         * lib/freadseek.c (freadptrinc): Likewise.
75109         * lib/fseeko.c (rpl_fseeko): Likewise.
75110         * lib/fseterr.c (fseterr): Likewise.
75111         * lib/fwritable.c (fwritable): Likewise.
75112         * lib/fwriting.c (fwriting): Likewise.
75113         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
75115 2008-04-09  Eric Blake  <ebb9@byu.net>
75117         Avoid some autoconf warnings.
75118         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
75119         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
75120         * m4/afs.m4 (gl_AFS): Likewise.
75121         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
75122         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
75123         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
75124         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
75125         (gl_INTEGER_TYPE_SUFFIX): Likewise.
75126         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
75127         (AC_CHECK_DECLS_ONCE): Likewise.
75128         Rename file...
75129         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
75130         gnulib-tool requires autoconf 2.59 or better.
75131         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
75133 2008-04-08  Eric Blake  <ebb9@byu.net>
75135         Use 'git describe --match' if present (added in git 1.5.5).
75136         * build-aux/git-version-gen: Limit result to tags that match 'v*'
75137         if possible.
75139 2008-04-08  Bruno Haible  <bruno@clisp.org>
75141         Add tentative support for OpenServer.
75142         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
75143         _ptr, _cnt.
75144         * lib/fpurge.c (fpurge): Likewise.
75145         * lib/freadable.c (freadable): Likewise.
75146         * lib/freadahead.c (freadahead): Likewise.
75147         * lib/freading.c (freading): Likewise.
75148         * lib/freadptr.c (freadptr): Likewise.
75149         * lib/freadseek.c (freadptrinc): Likewise.
75150         * lib/fseeko.c (rpl_fseeko): Likewise.
75151         * lib/fseterr.c (fseterr): Likewise.
75152         * lib/fwritable.c (fwritable): Likewise.
75153         * lib/fwriting.c (fwriting): Likewise.
75154         Reported by Roger Cornelius <rac@tenzing.org> and
75155         Brian K. White <brian@aljex.com>.
75157 2008-04-06  Jim Meyering  <meyering@redhat.com>
75159         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
75161 2008-04-06  Bruno Haible  <bruno@clisp.org>
75163         Avoid possible error with non-ASCII bytes in UTF-8 locales.
75164         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
75165         * tests/test-printf-posix.sh: Likewise.
75166         * tests/test-vfprintf-posix.sh: Likewise.
75167         * tests/test-vprintf-posix.sh: Likewise.
75168         * tests/test-xprintf-posix.sh: Likewise.
75170 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75172         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
75173         hide error from 'ls', needed on OS/2.
75174         Report by Elbert Pol <elbert.pol@gmail.com>.
75176 2008-04-04  Eric Blake  <ebb9@byu.net>
75178         Make test-fseeko.c failures meaningful.
75179         * tests/test-fseeko.c: Print line number on failure.
75180         * tests/test-fseek.c: Likewise.
75181         Reported by Nelson H. F. Beebe.
75183         Improve strtod bug detection check.
75184         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
75185         required for Solaris 10.
75186         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
75188 2008-04-04  Bruno Haible  <bruno@clisp.org>
75190         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
75191         by m4/setenv.m4.
75193 2008-04-03  Eric Blake  <ebb9@byu.net>
75195         Ensure sane .version contents.
75196         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
75197         version string.
75198         * build-aux/git-version-gen: Improve documentation.
75200         Make GNU make output nicer.
75201         * top/GNUmakefile [!_have-Makefile]: Add dependency on
75202         MAKECMDGOALS to enforce message for all command line targets.  Set
75203         srcdir for use in maint.mk.
75205         Another maintainer tweak.
75206         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
75207         a target that regenerates version.
75209 2008-04-03  Jim Meyering  <meyering@redhat.com>
75211         vc-list-files: don't cause coreutils "make po-check" failure
75212         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
75214 2008-04-03  Eric Blake  <ebb9@byu.net>
75216         Allow VPATH usage of vc-list-files.
75217         * build-aux/vc-list-files (scriptversion): Add timestamp.
75218         (options): Add --help, --version, -C.
75219         (CVS): Support installed cvsu.
75221 2008-04-02  Bruno Haible  <bruno@clisp.org>
75223         Avoid some "statement with no effect" warnings from gcc.
75224         * tests/test-wctype.c (main): Explicitly ignore unused values.
75225         Reported by Jim Meyering.
75227 2008-04-02  Jim Meyering  <meyering@redhat.com>
75229         Avoid some warnings from "gcc -Wshadow".
75230         * tests/test-frexp.c (exp): Define to a different identifier.
75231         * tests/test-frexpl.c (exp): Likewise.
75233 2008-04-03  Jim Meyering  <meyering@redhat.com>
75235         bootstrap: remove dangling *.[ch] symlinks from lib
75236         * build-aux/bootstrap [dangling symlink removal]: Move find's
75237         -depth option to precede all others, to avoid a warning.
75238         Remove *.[ch] files too, and from "$source_base" (usually lib/).
75240 2008-04-02  Bruno Haible  <bruno@clisp.org>
75242         Avoid some warnings from "gcc -Wshadow".
75243         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
75244         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
75245         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
75246         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
75247         Reported by Jim Meyering.
75249 2008-04-01  Bruno Haible  <bruno@clisp.org>
75251         Fix test to work on IRIX 6.5 with cc.
75252         * tests/test-math.c (numeric_equal): New function.
75253         (main): Use it.
75255 2008-04-01  Bruno Haible  <bruno@clisp.org>
75257         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
75259 2008-04-01  Bruno Haible  <bruno@clisp.org>
75261         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
75262         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
75263         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
75264         (Depends-on): Remove math.
75266         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
75267         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
75268         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
75269         (Depends-on): Remove math.
75271         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
75272         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
75273         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
75274         (Depends-on): Remove math.
75275         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
75276         (Depends-on): Remove math.
75278         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
75279         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
75280         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
75281         (Depends-on): Remove math.
75282         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
75283         (Depends-on): Remove math.
75285         * tests/test-round1.c: Include nan.h.
75286         (main): Use NaNd instead of NAN.
75287         * modules/round-tests (Files): Add tests/nan.h.
75289         * tests/test-trunc1.c: Include nan.h.
75290         (main): Use NaNd instead of NAN.
75291         * modules/trunc-tests (Files): Add tests/nan.h.
75293         * tests/test-roundf1.c: Include nan.h.
75294         (main): Use NaNf instead of NAN.
75295         * modules/roundf-tests (Files): Add tests/nan.h.
75297         * tests/test-truncf1.c: Include nan.h.
75298         (main): Use NaNf instead of NAN.
75299         * modules/truncf-tests (Files): Add tests/nan.h.
75301         * tests/test-ceilf1.c: Include nan.h.
75302         (main): Use NaNf instead of NAN.
75303         * modules/ceilf-tests (Files): Add tests/nan.h.
75305         * tests/test-floorf1.c: Include nan.h.
75306         (main): Use NaNf instead of NAN.
75307         * modules/floorf-tests (Files): Add tests/nan.h.
75309         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
75310         (main): Use NaNf instead of NAN.
75311         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
75313         * tests/test-isnand.c: Include nan.h instead of <math.h>.
75314         (main): Use NaNd instead of NAN.
75315         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
75317         * tests/test-frexp.c: Include nan.h.
75318         (main): Use NaNd instead of NAN.
75319         * modules/frexp-tests (Files): Add tests/nan.h.
75321         * lib/isnan.c: Don't include <math.h>.
75322         (FUNC): Don't use NAN macro.
75323         * modules/isnand-nolibm (Depends-on): Remove math.
75324         * modules/isnanf-nolibm (Depends-on): Remove math.
75325         * modules/isnanl (Depends-on): Remove math.
75326         * modules/isnanl-nolibm (Depends-on): Remove math.
75328         * tests/nan.h: New file.
75330 2008-04-01  Eric Blake  <ebb9@byu.net>
75332         Fix typos.
75333         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
75334         values to be the right type.
75336         For now, cater to gnulib strtod inaccuracies.
75337         * tests/test-strtod.c (main): Allow 1-ulp error on expected
75338         fractional results.  While not as nice from a QoI perspective, it
75339         is a quicker patch than correctly implementing decimal to binary
75340         rounding.
75342 2008-03-31  Eric Blake  <ebb9@byu.net>
75344         Guarantee a definition of NAN.
75345         * lib/math.in.h (NAN): Define if missing.
75346         * tests/test-math.c (main): Test it.
75347         * doc/posix-headers/math.texi (math.h): Document this.
75348         * lib/isnan.c (rpl_isnand): Use it.
75349         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
75350         * tests/test-floorf1.c (NaN): Likewise.
75351         * tests/test-frexp.c (NaN): Likewise.
75352         * tests/test-isnand.c (NaN): Likewise.
75353         * tests/test-isnanf.c (NaN): Likewise.
75354         * tests/test-round1.c (NaN): Likewise.
75355         * tests/test-roundf1.c (NaN): Likewise.
75356         * tests/test-snprintf-posix.h (NaN): Likewise.
75357         * tests/test-sprintf-posix.h (NaN): Likewise.
75358         * tests/test-trunc1.c (NaN): Likewise.
75359         * tests/test-truncf1.c (NaN): Likewise.
75360         * tests/test-vasnprintf-posix.c (NaN): Likewise.
75361         * tests/test-vasprintf-posix.c (NaN): Likewise.
75362         * modules/isnand-nolibm (Depends-on): Add math.
75363         * modules/isnanf-nolibm (Depends-on): Likewise.
75364         * modules/isnanl (Depends-on): Likewise.
75365         * modules/isnanl-nolibm (Depends-on): Likewise.
75366         * modules/snprintf-posix-tests (Depends-on): Likewise.
75367         * modules/sprintf-posix-tests (Depends-on): Likewise.
75368         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
75369         * modules/vsprintf-posix-tests (Depends-on): Likewise.
75370         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
75371         * modules/vasprintf-posix-tests (Depends-on): Likewise.
75373 2008-03-31  Bruno Haible  <bruno@clisp.org>
75375         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
75376         * doc/posix-functions/strtod.texi: Likewise.
75378 2008-03-31  Bruno Haible  <bruno@clisp.org>
75380         * tests/test-strtod.c (main): Don't use C99 syntax.
75382 2008-03-31  Bruno Haible  <bruno@clisp.org>
75384         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
75385         Reported by Eric Blake.
75387 2008-03-31  Jim Meyering  <meyering@redhat.com>
75389         Don't compare actual signbit return values.
75390         * tests/test-strtod.c (main): Rather, compare only their
75391         zero/non-zero nature.
75393 2008-03-31  Eric Blake  <ebb9@byu.net>
75395         More strtod documentation.
75396         * doc/posix-functions/strtod.texi (strtod): Interpret more test
75397         failures as distinct bugs.
75399 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
75401         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
75402         Problem reported by Erik Benada in
75403         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
75405 2008-03-30  Bruno Haible  <bruno@clisp.org>
75407         * tests/test-strtod.c: Add comments about which assertion fails on which
75408         platform.
75409         * doc/posix-functions/strtod.texi: Add info about many more platforms.
75411 2008-03-30  Eric Blake  <ebb9@byu.net>
75413         Test signbit behavior on zeros.
75414         * tests/test-signbit.c (test_signbitf): Add tests for zero.
75415         (test_signbitd, test_signbitl): Likewise.
75417         More strtod touchups.
75418         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
75419         sign of negative underflow, for now.  Use .5, not .1.
75420         * doc/posix-functions/strtod.texi (strtod): Mention these
75421         limitations.
75422         Reported by Jim Meyering.
75424 2008-03-30  Bruno Haible  <bruno@clisp.org>
75426         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
75427         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
75429 2008-03-30  Bruno Haible  <bruno@clisp.org>
75431         Avoid failure when attempting to return empty iconv results on some
75432         platforms.
75433         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
75434         allocation, don't report ENOMEM when the resulting string is empty.
75436 2008-03-30  Bruno Haible  <bruno@clisp.org>
75438         Fix buffer overrun.
75439         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
75440         Don't consider the width for tmp_length. Check count against tmp_length
75441         before doing the padding. Ensure enough allocation during padding.
75443 2008-03-30  Eric Blake  <ebb9@byu.net>
75445         strtod touchups.
75446         * lib/strtod.c (strtod): Avoid compiler warnings.
75447         Reported by Jim Meyering.
75449 2008-03-30  Bruno Haible  <bruno@clisp.org>
75451         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
75452         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
75453         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
75454         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
75455         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
75456         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
75457         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
75458         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
75460         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
75461         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
75462         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
75463         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
75464         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
75465         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
75466         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
75467         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
75469         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
75470         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
75471         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
75472         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
75473         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
75474         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
75475         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
75476         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
75478         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
75479         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
75481         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
75482         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
75484         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
75485         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
75487         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
75488         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
75489         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
75491         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
75492         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
75493         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
75495         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
75496         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
75497         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
75499         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
75500         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
75501         * modules/vasprintf (Depends-on): Add EOVERFLOW.
75503         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
75504         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
75505         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
75506         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
75507         (Depends-on): Add EOVERFLOW.
75508         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
75509         (Depends-on): Add EOVERFLOW.
75510         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
75511         (Depends-on): Add EOVERFLOW.
75512         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
75513         (Depends-on): Add EOVERFLOW.
75514         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
75515         (Depends-on): Add EOVERFLOW.
75516         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
75517         (Depends-on): Add EOVERFLOW.
75518         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
75519         (Depends-on): Add EOVERFLOW.
75520         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
75521         (Depends-on): Add EOVERFLOW.
75523         * lib/sprintf.c (EOVERFLOW): Remove fallback.
75524         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
75525         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
75527         * lib/snprintf.c (EOVERFLOW): Remove fallback.
75528         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
75529         * modules/snprintf (Depends-on): Add EOVERFLOW.
75531         * lib/poll.c (EOVERFLOW): Remove fallback.
75532         * modules/poll (Depends-on): Add EOVERFLOW.
75534         * lib/getugroups.c (EOVERFLOW): Remove fallback.
75535         * modules/getugroups (Depends-on): Add EOVERFLOW.
75537         * lib/getdelim.c (EOVERFLOW): Remove fallback.
75538         * modules/getdelim (Depends-on): Add EOVERFLOW.
75540         * lib/ftell.c (EOVERFLOW): Remove fallback.
75541         * modules/ftell (Depends-on): Add EOVERFLOW.
75543         * lib/fprintf.c (EOVERFLOW): Remove fallback.
75544         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
75545         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
75547         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
75549         * modules/EOVERFLOW-tests: New file.
75550         * tests/test-EOVERFLOW.c: New file.
75552         * modules/EOVERFLOW: New file.
75553         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
75555 2008-03-30  Bruno Haible  <bruno@clisp.org>
75557         Fix bug introduced on 2007-06-10.
75558         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
75559         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
75561 2008-03-30  Bruno Haible  <bruno@clisp.org>
75563         Improve freadseek's efficiency after ungetc.
75564         * lib/freadseek.c: Include freadahead.h.
75565         (freadptrinc): New function, extracted from freadseek.
75566         (freadseek): Use it in a loop. Use freadahead to determine the number
75567         of loop iterations.
75568         * modules/freadseek (Depends-on): Add freadahead.
75569         (configure.ac): Require AC_C_INLINE.
75571 2008-03-30  Bruno Haible  <bruno@clisp.org>
75573         * lib/freadseek.c (freadseek): Don't ignore the return value of
75574         freadptr.
75576 2008-03-29  Eric Blake  <ebb9@byu.net>
75578         Add hex float support.
75579         * modules/strtod (Depends-on): Add c-ctype.
75580         (Link): Mention POW_LIB.
75581         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
75582         whitespace between 'e' and exponent.
75583         * tests/test-strtod.c (main): Enable hex float tests.
75584         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
75585         now provides.
75587         Document various strtod bugs, with some fixes.
75588         * doc/posix-functions/strtod.texi (strtod): Document bugs with
75589         "-0x", "inf", "nan", and hex constants.
75590         * doc/posix-functions/atof.texi (atof): Likewise.
75591         * modules/stdlib (Makefile.am): Support strtod.
75592         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
75593         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
75594         detect additional strtod bugs.
75595         * lib/stdlib.in.h (rpl_strtod): Add declarations.
75596         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
75597         bool where appropriate.  Parse 'inf' and 'nan'.
75598         * tests/test-strtod.c: New file.
75599         * modules/strtod (Depends-on): Add stdbool, stdlib.
75600         (configure.ac): Turn on module indicator.
75601         * modules/strtod-tests: New module.
75603 2008-03-29  Eric Blake  <ebb9@byu.net>
75605         Fix ftell on mingw.
75606         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
75607         * modules/ftell-tests (Depends-on): Add binary-io.
75608         * modules/ftello-tests (Depends-on): Likewise.
75609         * tests/test-ftell.c (main): Enhance test to cover behavior after
75610         ungetc.  Enforce binary mode.
75611         * tests/test-ftello.c (main): Likewise.
75613         Pass test-freadseek on cygwin.
75614         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
75615         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
75616         ungetc buffer.
75618         * tests/test-fflush2.c (main): Fix typo.
75620 2008-03-29  Bruno Haible  <bruno@clisp.org>
75622         * tests/test-fflush2.c (main): Temporarily disable the contents of
75623         this test.
75624         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
75625         Reported by Eric Blake.
75627 2008-03-28  Simon Josefsson  <simon@josefsson.org>
75629         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
75630         (GC_SHA224_DIGEST_SIZE): Add.
75632         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
75633         (gc_hash_digest_length): Likewise.
75634         (gc_hash_buffer): Likewise.
75636 2008-03-25  Bruno Haible  <bruno@clisp.org>
75638         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
75639         detail which gettext release to use.
75640         Reported by Simon Josefsson.
75642 2008-03-26  Jim Meyering  <meyering@redhat.com>
75644         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
75645         * modules/gnumakefile (clean-GNUmakefile): Also, use
75646         test ... && ... || : syntax rather than if-then ... fi.
75648         gnumakefile: Don't double-quote-expand $(VPATH) value.
75649         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
75651 2008-03-24  Eric Blake  <ebb9@byu.net>
75653         Alter GNUmakefile to install into top directory.
75654         * modules/maintainer-makefile: Split, and add dependency...
75655         * modules/gnumakefile: to this new module.
75656         * build-aux/GNUmakefile: Move...
75657         * top/GNUmakefile: ...here.
75658         * build-aux/maint.mk: Move...
75659         * top/maint.mk: ...here.
75660         * MODULES.html.sh (Support for maintaining...): Document new
75661         module.
75663 2008-03-23  Bruno Haible  <bruno@clisp.org>
75665         * gnulib-tool: New options --vc-files, --no-vc-files.
75666         (func_usage): Document them.
75667         (vc_files): New variable.
75668         (func_import): Consider vc_files.
75669         (func_create_testdir): Set vc_files to empty.
75670         Suggested by Jim Meyering and Karl Berry.
75672 2008-03-23  Bruno Haible  <bruno@clisp.org>
75674         Fix regex compilation error on HP-UX 11.
75675         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
75676         * modules/regex (Files): Add m4/mbstate_t.m4.
75677         Reported by Ton Voon <ton.voon@altinity.com>.
75679 2008-03-23  Bruno Haible  <bruno@clisp.org>
75681         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
75683 2008-03-23  Eric Blake  <ebb9@byu.net>
75684             Bruno Haible  <bruno@clisp.org>
75686         Install files from top/ in the destination directory.
75687         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
75688         augmentation also for the files from top/.
75689         (func_import, func_create_testdir): Rewrite file names:
75690         top/filename -> filename.
75692 2008-03-23  Bruno Haible  <bruno@clisp.org>
75694         Tweak "gnulib --version" output.
75695         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
75697 2008-03-23  Bruno Haible  <bruno@clisp.org>
75699         Tweak "gnulib --version" output.
75700         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
75701         rather than contents of ChangeLog, when possible.
75703 2008-03-21  Eric Blake  <ebb9@byu.net>
75705         More --version tweaks.
75706         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
75707         date of last ChangeLog entry.
75709 2008-03-21  Jim Meyering  <meyering@redhat.com>
75711         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
75713 2008-03-20  Eric Blake  <ebb9@byu.net>
75715         VPATH fix.
75716         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
75718 2008-03-20  Simon Josefsson  <simon@josefsson.org>
75720         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
75721         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
75723 2008-03-20  Eric Blake  <ebb9@byu.net>
75725         Sync GNUmakefile with coreutils.
75726         * build-aux/GNUmakefile (have-Makefile): Rename...
75727         (_have-Makefile): ...to this, for namespace consideration.
75728         (GNUmakefile.cfg): Include, if present.
75729         (_autoreconf): Define a default.
75730         (_is-dist-target): New rule for rebuilds to pick up intra-release
75731         version.
75732         (maint-cfg.mk): Rename...
75733         (cfg.mk): ...to this.
75735 2008-03-18  Jim Meyering  <meyering@redhat.com>
75737         New script and module: mktempd
75738         * MODULES.html.sh (maint+release support): Add mktempd.
75739         * build-aux/mktempd: New file.
75740         * modules/mktempd: New file.
75742 2008-03-15  Jim Meyering  <meyering@redhat.com>
75744         Undo last change.
75745         * lib/sha1.c, lib/md5.c: 63 != ~63.
75746         Reported by Andreas Schwab.
75748         sha1.c, md5.c: Hoist a redundant expression.
75749         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
75750         "ctx->buflen" only once, before calling *_process_block.
75751         * lib/md5.c (md5_process_bytes): Likewise.
75753 2008-03-14  Eric Blake  <ebb9@byu.net>
75755         Bump copyright year in files generated by gnulib-tool.
75756         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
75757         gnulib-tool, rather than hard-coding it.
75759         Fix 'gnulib-tool --version' output to work with git.
75760         * gnulib-tool (func_gnulib_dir): New function, extracted from...
75761         (startup): ...here.
75762         (func_version): Use it to invoke git-version-gen, rather than
75763         relying on CVS keyword expansion.  Modernize wording.
75764         (cvsdatestamp, last_checkin_date, version): Kill unused
75765         variables.
75767 2008-03-12  Jim Meyering  <meyering@redhat.com>
75769         Recognize optional cast of the argument to free.
75770         * build-aux/useless-if-before-free: Update regexps.
75772         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
75774 2008-03-11  Bruno Haible  <bruno@clisp.org>
75776         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
75777         by a single package.
75778         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
75779         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
75780         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
75781         Reported by Sam Steingold <sds@gnu.org>.
75783 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
75785         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
75786         repositories.
75788 2008-03-11  Bruno Haible  <bruno@clisp.org>
75790         Avoid conflicts between local macro definitions.
75791         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
75792         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
75794 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
75795             Bruno Haible  <bruno@clisp.org>
75797         Make va_copy work with some version of xlc on AIX 5.1.
75798         * lib/stdarg.in.h: New file.
75799         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
75800         On AIX, use a <stdarg.h> file substitute.
75801         * modules/stdarg (Files): Add lib/stdarg.in.h.
75802         (Depends-on): Add include_next.
75803         (Makefile.am): Build a stdarg.h substitute if requested.
75804         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
75806 2008-03-10  Bruno Haible  <bruno@clisp.org>
75808         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
75809         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
75810         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
75812 2008-03-10  Bruno Haible  <bruno@clisp.org>
75814         * modules/stdlib (Depends-on): Add include_next, remove
75815         absolute-header.
75817 2008-03-09  Bruno Haible  <bruno@clisp.org>
75819         * lib/freadahead.h (freadahead): Document more precisely.
75820         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
75821         the sum of both buffer sizes.
75822         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
75823         * NEWS: Document the change.
75825 2008-03-09  Bruno Haible  <bruno@clisp.org>
75827         Extend freadptr to return also the buffer size.
75828         * lib/freadptr.h (freadptr): Add sizep argument.
75829         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
75830         (freadptr): Add sizep argument. Determine buffer size like freadahead
75831         does.
75832         * tests/test-freadptr.c: Don't include freadahead.h.
75833         (main): Adapt for new calling convention of freadptr.
75834         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
75835         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
75836         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
75837         tests/test-freadptr2.sh.
75838         (Depends): Remove freadahead.
75839         (TESTS): Add test-freadptr2.sh.
75840         (check_PROGRAMS): Add test-freadptr2.
75842 2008-03-09  Bruno Haible  <bruno@clisp.org>
75844         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
75845         Report and solution by Simon Josefsson.
75847 2008-03-06  Bruno Haible  <bruno@clisp.org>
75849         Make fflush after ungetc work on BSD platforms.
75850         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
75851         * tests/test-fflush2.c: New file.
75852         * tests/test-fflush2.sh: New file.
75853         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
75854         tests/test-fflush2.c.
75855         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
75856         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
75858 2008-03-06  Eric Blake  <ebb9@byu.net>
75860         Likewise for ftello.
75861         * modules/ftello (Dependencies): Add extensions.
75862         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
75864 2008-03-06  Bruno Haible  <bruno@clisp.org>
75866         * modules/fseeko (Dependencies): Add extensions.
75867         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
75868         Needed on glibc systems.
75870 2008-03-06  Bruno Haible  <bruno@clisp.org>
75872         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
75873         email address.
75874         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
75876 2008-03-06  Bruno Haible  <bruno@clisp.org>
75878         * users.txt: Add libgnupdf.
75880 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
75882         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
75883         (Header File Substitutes, Function Substitutes,
75884         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
75885         (Build robot for gnulib): Fix typo.
75887 2008-03-06  Bruno Haible  <bruno@clisp.org>
75889         * doc/gnulib-tool.texi (VCS Issues): Small updates.
75890         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
75892 2008-03-06  Bruno Haible  <bruno@clisp.org>
75894         * doc/func.texi: New file, extracted from doc/gnulib.texi.
75895         * doc/gnulib.texi: Include it.
75897 2008-03-06  Simon Josefsson  <simon@josefsson.org>
75899         * modules/func (License): Change license to unlimited; there was
75900         no LGPL parts in the module anyway.
75902 2008-03-06  Simon Josefsson  <simon@josefsson.org>
75904         * modules/__func__: Renamed to modules/func.
75905         * modules/__func__-tests: Renamed to modules/func-tests.
75906         * tests/test-__func__.c: Renamed to tests/test-func.c.
75907         * m4/__func__.m4: Renamed to m4/func.m4.
75908         * doc/gnulib.texi (__func__): Section renamed to func.
75909         Suggested by Eric Blake <ebb9@byu.net>.
75911 2008-03-06  Simon Josefsson  <simon@josefsson.org>
75913         * doc/gnulib.texi (__func__): Use C99 terminology when talking
75914         about __func__.  Make example self-contained.  Suggested by Eric
75915         Blake <ebb9@byu.net>.
75917         * tests/test-__func__.c (main): Avoid extraneous () around __func.
75918         Suggested by Eric Blake <ebb9@byu.net>.
75920 2008-03-06  Simon Josefsson  <simon@josefsson.org>
75922         * modules/__func__: New file.
75923         * modules/__func__-tests: New file.
75924         * tests/test-__func__.c: New file.
75925         * m4/__func__.m4: New file.
75926         * doc/gnulib.texi (__func__): Document __func__ module.
75928 2008-03-05  Simon Josefsson  <simon@josefsson.org>
75930         * modules/byteswap (License): Re-license as LGPLv2+.
75932 2008-03-05  Simon Josefsson  <simon@josefsson.org>
75934         * doc/Makefile: Add pdf target.
75936 2008-03-05  Simon Josefsson  <simon@josefsson.org>
75938         * modules/inline (License): Use 'unlimited', since there are only
75939         *.m4 files in this module.
75941 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
75942             Bruno Haible  <bruno@clisp.org>
75944         Add support for HP C 7.1 on OpenVMS 8.3.
75945         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
75947 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
75949         Update VMS specifics.
75950         * lib/getopt.c [VMS]: Remove include of unixlib.h.
75952 2008-03-02  Jim Meyering  <meyering@redhat.com>
75954         Remove the last dependency on the "free" module.
75955         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
75956         Reported by Bob Proulx.
75958         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
75960         Remove useless "if" tests before free.  Deprecate "free" module.
75961         * doc/posix-functions/free.texi: Mention that this
75962         module is no longer useful.
75963         * modules/free (Notice): Say this module is obsolete.
75964         * modules/readutmp (Depends-on): Remove free.
75965         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
75966         * lib/putenv.c (putenv): Likewise.
75967         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
75968         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
75969         * tests/test-c-strcasestr.c (main): Likewise.
75970         * tests/test-c-strstr.c (main): Likewise.
75971         * tests/test-mbscasestr1.c (main): Likewise.
75972         * tests/test-mbscasestr2.c (main): Likewise.
75973         * tests/test-mbsstr1.c (main): Likewise.
75974         * tests/test-mbsstr2.c (main): Likewise.
75975         * tests/test-memmem.c (main): Likewise.
75976         * tests/test-strcasestr.c (main): Likewise.
75977         * tests/test-striconv.c (main): Likewise.
75978         * tests/test-striconveh.c (main): Likewise.
75979         * tests/test-striconveha.c (main): Likewise.
75980         * tests/test-strstr.c (main): Likewise.
75982         * build-aux/git-version-gen: Adjust a comment and the Usage string.
75984         bootstrap: sync from coreutils again
75985         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
75987 2008-03-01  Jim Meyering  <meyering@redhat.com>
75989         bootstrap: sync from coreutils
75990         * build-aux/bootstrap (update_po_files): Copy a .po file into place
75991         also when the target doesn't exist.
75993 2008-03-01  Eric Blake  <ebb9@byu.net>
75995         Fix bugs in last patch.
75996         * lib/memchr2.c (memchr2): Fix typo.
75997         * tests/test-memchr2.c: Test previous bug, and don't use GNU
75998         extension.
75999         Reported by Bruce Korb.
76001         New module 'memchr2'.
76002         * modules/memchr2: New file.
76003         * modules/memchr2-tests: Likewise.
76004         * lib/memchr2.h: Likewise.
76005         * lib/memchr2.c: Likewise, based on memchr.c.
76006         * tests/test-memchr2.c: New test.
76007         * MODULES.html.sh (String handling): Add memchr2.
76009 2008-02-29  Bruno Haible  <bruno@clisp.org>
76011         * modules/freadseek-tests: New file.
76012         * tests/test-freadseek.sh: New file.
76013         * tests/test-freadseek.c: New file.
76015         New module 'freadseek'.
76016         * modules/freadseek: New file.
76017         * lib/freadseek.h: New file.
76018         * lib/freadseek.c: New file.
76019         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
76021 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
76023         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
76024         wydawca.
76026         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
76027         program_invocation_name and program_invocation_short_name are
76028         present.
76030 2008-02-28  Bruno Haible  <bruno@clisp.org>
76032         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
76033         * tests/test-freadptr.sh: Also test non-seekable stdin.
76035 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
76037         * build-aux/bootstrap (source_base, m4_base)
76038         (doc_base, tests_base): New variables.
76039         (gnulib_tool_options): Do not hardcode base directories, use
76040         the above variables instead.
76042 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
76044         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
76046 2008-02-28  Bruno Haible  <bruno@clisp.org>
76048         * modules/freadptr-tests: New file.
76049         * tests/test-freadptr.sh: New file.
76050         * tests/test-freadptr.c: New file.
76052         New module 'freadptr'.
76053         * modules/freadptr: New file.
76054         * lib/freadptr.h: New file.
76055         * lib/freadptr.c: New file.
76056         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
76058 2008-02-26  Karl Berry  <karl@freefriends.org>
76060         Sync from Libtool:
76061         * libltdl/argz.c (argz_add, argz_count): New functions.
76062         * libltdl/argz.in.h: Declare them.
76063         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
76065 2008-02-22  Bruno Haible  <bruno@clisp.org>
76067         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
76068         is a pointer type.  Needed for HP-UX 10.
76069         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
76070         * doc/posix-functions/gmtime_r.texi: Likewise.
76071         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
76073 2008-02-24  Bruno Haible  <bruno@clisp.org>
76075         * modules/environ-tests: New file.
76076         * tests/test-environ.c: New file.
76078         New module 'environ'.
76079         * modules/environ: New file.
76080         * lib/unistd.in.h (environ): New declaration.
76081         * m4/environ.m4: New file.
76082         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
76083         after use.
76084         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
76085         HAVE_DECL_ENVIRON.
76086         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
76087         HAVE_DECL_ENVIRON.
76088         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
76089         wrong claim that 'environ' is missing on some systems.
76090         * modules/execute (Depends-on): Add environ.
76091         * lib/execute.c (environ): Remove fallback declaration.
76092         * modules/pipe (Depends-on): Add environ.
76093         * lib/pipe.c (environ): Remove fallback declaration.
76094         * modules/setenv (Depends-on): Add environ.
76095         * lib/setenv.c (environ): Remove fallback declaration.
76096         * modules/unsetenv (Depends-on): Add environ.
76097         * lib/unsetenv.c (environ): Remove fallback declaration.
76098         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
76099         m4/environ.m4.
76100         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
76101         (gl_PREREQ_UNSETENV): Likewise.
76103 2008-02-24  Bruno Haible  <bruno@clisp.org>
76105         * doc/posix-functions/environ.texi: Document the MacOS X problem.
76107 2008-02-20  Bob Proulx  <bob@proulx.com>
76109         Enable use of older two part flavor 'git describe'.
76110         * build-aux/git-version-gen: If using the older two part flavor of
76111         git version then recreate the third part now present in the
76112         newer three part flavor of git describe.
76114 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
76116         * lib/fts.c (fts_build): Typo correction to comment.
76118 2008-02-17  Bruno Haible  <bruno@clisp.org>
76120         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
76121         generating no-op conflicts.
76123 2008-02-17  Bruno Haible  <bruno@clisp.org>
76125         Speed up by 10%.
76126         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
76127         result_entries, rather than an index-based loop.
76129 2008-02-17  Bruno Haible  <bruno@clisp.org>
76131         Speed up by 25%.
76132         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
76133         'hashcode_cached'.
76134         (entry_create): New function.
76135         (entry_hashcode): Use the cached hashcode if possible.
76136         (read_changelog_file, try_split_merged_entry): Use entry_create.
76138 2008-02-17  Bruno Haible  <bruno@clisp.org>
76140         Speed up from O(n^2) to O(n) for long ChangeLog files.
76141         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
76142         (read_changelog_file): Change implementation of entries_reversed list
76143         to rbtreehash.
76144         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
76146 2008-02-17  Bruno Haible  <bruno@clisp.org>
76148         New option --split-merged-entry.
76149         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
76150         (find_paragraph_end, try_split_merged_entry): New functions.
76151         (long_options): Add option --split-merged-entry.
76152         (usage): Document option --split-merged-entry.
76153         (main): Implement option --split-merged-entry.
76154         Reported by Eric Blake.
76156 2008-02-17  Bruno Haible  <bruno@clisp.org>
76158         * lib/git-merge-changelog.c: Include c-strstr.h.
76159         (main): Support the "git pull --rebase" situation.
76160         * modules/git-merge-changelog (Depends-on): Add c-strstr.
76161         Reported by Eric Blake.
76163 2008-02-16  Eric Blake  <ebb9@byu.net>
76165         Avoid doubling \ in common case of "c-maybe" quoting style.
76166         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
76167         eliding outer quotes.
76168         * lib/quotearg.h: Document this.
76169         * tests/test-quotearg.c (result_strings, inputs, results_g)
76170         (flag_results, locale_results): Test it by adding a new string to
76171         each test group.
76172         (compare_strings): Test new string.
76174 2008-02-13  Eric Blake  <ebb9@byu.net>
76176         Avoid trigraph quoting in default output.
76177         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
76178         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
76179         unless explicitly requested.
76180         * tests/test-quotearg.c (flag_results, main): Add additional tests.
76182 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
76184         Don't rely on signed integer overflowing to negative value.
76185         * lib/getugroups.c (getugroups): Include <limits.h>.
76186         Instead, compare against INT_MAX, and increment only if the test passes.
76188 2008-02-13  Jim Meyering  <meyering@redhat.com>
76189         and Eric Blake  <ebb9@byu.net>
76191         Avoid shadowing warning and compile errors on Linux.
76192         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
76193         forwarding macros on Linux.
76194         (dcgettext): Define a stub, for Linux.
76195         (results_g, main): Avoid warnings.
76197 2008-02-12  Eric Blake  <ebb9@byu.net>
76199         Silence warning in last patch.
76200         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
76202         Quotearg part 4: add tests, fix c-maybe colon quoting.
76203         * lib/quotearg.h: Improve documentation.
76204         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
76205         escapes when adding outer quotes.  When quoting trigraphs, use
76206         valid C notation.  When quoting NUL, omit extra characters if next
76207         character is not digit.  Alter prototype.
76208         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
76209         callers.
76210         * modules/quotearg-tests: New module.
76211         * tests/test-quotearg.c: New test.
76213 2008-02-07  Eric Blake  <ebb9@byu.net>
76215         Quotearg part 3: add flag to control outer quote elision.
76216         * lib/quotearg.h (c_maybe_quoting_style): New style.
76217         (enum quoting_flags): Better documentation of flags.
76218         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
76219         c-maybe style.
76220         (quotearg_buffer_restyled): Handle new flag to elide outer
76221         quotes.
76223         Quotearg part 2: add flag that can control NUL elision.
76224         * lib/quotearg.h (set_quoting_flags): New prototype.
76225         * lib/quotearg.c (struct quoting_options): Add flag field.
76226         (set_quoting_flags): New function.
76227         (quotearg_buffer_restyled): Add flags parameter.
76228         (quotearg_alloc_mem): Set the flag if length cannot be returned.
76229         (quotearg_n_options): Set the flag, since length cannot be
76230         returned.
76231         (quoting_options_from_style): Default flags correctly.
76233         Quotearg part 1: more wrappers, restore quotearg_char state.
76234         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
76235         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
76236         (quotearg_colon_mem): New wrappers.
76237         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
76238         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
76239         functions.
76240         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
76241         (quotearg_colon_mem): New functions.
76243 2008-02-11  Bruno Haible  <bruno@clisp.org>
76245         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
76246         library in the current directory: it does not work with parallel make.
76247         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76249 2008-02-11  Bruno Haible  <bruno@clisp.org>
76251         * .gitattributes: New file.
76253 2008-02-11  Jim Meyering  <meyering@redhat.com>
76255         useless-if-before-free: Fix reversed exit values.
76256         * build-aux/useless-if-before-free: Use correct values
76257         for EXIT_MATCH and EXIT_NO_MATCH.
76259         * build-aux/useless-if-before-free: Close stdout carefully.
76261 2008-02-10  Bruno Haible  <bruno@clisp.org>
76263         New module 'git-merge-changelog'.
76264         * modules/git-merge-changelog: New file.
76265         * lib/git-merge-changelog.c: New file.
76267 2008-02-10  Jim Meyering  <meyering@redhat.com>
76269         useless-if-before-free: New option: --list (-l).
76271         useless-if-before-free: Don't exit immediately upon open failure.
76272         * build-aux/useless-if-before-free: Exit 2 for errors.
76273         Upon failure to open a file, don't exit immediately.
76274         Rather, just warn and continue with any remaining files.
76276 2008-02-10  Bruno Haible  <bruno@clisp.org>
76278         New abstract list operation 'node_set_value'.
76279         * lib/gl_list.h (gl_list_node_set_value): New function.
76280         (struct gl_list_implementation): New field node_set_value.
76281         * lib/gl_list.c (gl_list_node_set_value): New function.
76282         * lib/gl_array_list.c (gl_array_node_set_value): New function.
76283         (gl_array_list_implementation): Update.
76284         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
76285         (gl_carray_list_implementation): Update.
76286         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
76287         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76288         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76289         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
76290         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76291         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76292         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76293         Update.
76294         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
76295         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
76296         (gl_sublist_list_implementation): Update.
76298 2008-02-10  Bruno Haible  <bruno@clisp.org>
76300         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
76301         Needed when ELEMENT is #defined to 'some_type *'.
76303 2008-02-10  Jim Meyering  <meyering@redhat.com>
76305         New script and module: useless-if-before-free
76306         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
76307         * build-aux/useless-if-before-free: New file.
76308         * modules/useless-if-before-free: New file.
76310         * build-aux/gitlog-to-changelog: Use committer date, not author date.
76312         xstrtol_error: Fix typo.
76313         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
76314         s/exit_failure/exit_status/.
76316 2008-02-09  Jim Meyering  <meyering@redhat.com>
76318         New script and module: gitlog-to-changelog
76319         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
76320         * modules/gitlog-to-changelog: New file.
76321         * build-aux/gitlog-to-changelog: New file.
76323 2008-02-08  Jim Meyering  <meyering@redhat.com>
76325         Avoid two "parameter unused" warnings.
76326         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
76327         Mark "st" as used.
76329         Use "git COMMAND", not "git-COMMAND".
76330         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
76331         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
76332         * build-aux/git-version-gen: Use "git status", not "git-status".
76334 2008-02-07  Bruno Haible  <bruno@clisp.org>
76336         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
76337         Avoids a crash on Windows Vista.
76338         Reported by Adam Strzelecki <ono@java.pl> via
76339         Simon Josefsson <simon@josefsson.org>.
76341 2008-02-06  Bruno Haible  <bruno@clisp.org>
76343         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
76344         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
76345         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
76346         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
76347         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
76348         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
76349         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
76350         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
76351         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
76352         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
76353         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
76354         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
76355         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
76356         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
76357         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
76358         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
76359         left-adjust flag.
76360         * tests/test-snprintf-posix.h (test_function): Likewise.
76361         * tests/test-sprintf-posix.h (test_function): Likewise.
76362         * tests/test-vasprintf-posix.c (test_function): Likewise.
76363         * doc/posix-functions/fprintf.texi: Update.
76364         * doc/posix-functions/printf.texi: Update.
76365         * doc/posix-functions/snprintf.texi: Update.
76366         * doc/posix-functions/sprintf.texi: Update.
76367         * doc/posix-functions/vfprintf.texi: Update.
76368         * doc/posix-functions/vprintf.texi: Update.
76369         * doc/posix-functions/vsnprintf.texi: Update.
76370         * doc/posix-functions/vsprintf.texi: Update.
76371         Reported by Peter Fales <psfales@alcatel-lucent.com>.
76373 2008-02-06  Bruno Haible  <bruno@clisp.org>
76375         Fix bug introduced on 2008-01-26.
76376         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
76378 2008-02-06  Bruno Haible  <bruno@clisp.org>
76380         Fix bug introduced on 2007-06-10.
76381         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
76382         !NEED_PRINTF_FLAG_ZERO.
76384 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
76386         getloadavg: use libperfstat on AIX5
76387         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
76389 2008-02-03  Bruno Haible  <bruno@clisp.org>
76391         * lib/diffseq.h: Add comments about required #includes.
76392         Reported by Michael Biggs <gnulib@doubleplum.net>.
76394 2008-02-01  Bruno Haible  <bruno@clisp.org>
76396         * users.txt: Add gnuit.
76398 2008-01-31  Bruno Haible  <bruno@clisp.org>
76400         * lib/md4.c (set_uint32): Mark as inline.
76401         * lib/md5.c (set_uint32): Likewise.
76402         * lib/sha1.c (set_uint32): Likewise.
76403         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
76404         * m4/md5.m4 (gl_MD5): Likewise.
76405         * m4/sha1.m4 (gl_SHA1): Likewise.
76407 2008-01-31  Jim Meyering  <meyering@redhat.com>
76409         Use "sizeof VAR", rather than a literal "4".
76410         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
76411         * lib/md4.c (md4_read_ctx): Likewise.
76412         * lib/sha1.c (sha1_read_ctx): Likewise.
76414 2008-01-31  Simon Josefsson  <simon@josefsson.org>
76416         * tests/test-sha1.c: New file, based on test-md5.c.
76418         * modules/crypto/sha1-tests: New file.
76420 2008-01-31  Simon Josefsson  <simon@josefsson.org>
76422         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
76424 2008-01-31  Jim Meyering  <meyering@redhat.com>
76426         Prefer "sizeof v" over the equivalent "4".
76427         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
76428         * lib/md5.c (set_uint32): Likewise.
76429         * lib/sha1.c (set_uint32): Likewise.
76431 2008-01-31  Simon Josefsson  <simon@josefsson.org>
76433         * lib/sha1.c (set_uint32): Mark function as static.
76435 2008-01-31  Simon Josefsson  <simon@josefsson.org>
76437         md2: clarify comments to say that alignment is not required.
76438         * lib/md2.h: Remove warning about alignment in comment.
76439         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
76440         never been required.
76442 2008-01-31  Simon Josefsson  <simon@josefsson.org>
76444         md4: adapt alignment constraint fix from sha1.
76445         * lib/md4.c (set_uint32): New function, from sha1.c
76446         (md4_read_ctx): Use it.
76447         (md4_finish_ctx): Doc fix.
76448         * lib/md4.h: Doc fix.
76450 2008-01-31  Simon Josefsson  <simon@josefsson.org>
76452         md5: adapt alignment constraint fix from sha1.
76453         * lib/md5.c (set_uint32): New function, from sha1.c
76454         (md5_read_ctx): Use it.
76455         (md5_finish_ctx): Doc fix.
76456         * lib/md5.h: Doc fix.
76458 2008-01-30  Peter Palfrader  <weasel@debian.org>
76460         sha1: remove the result buffer alignment constraint
76461         * lib/sha1.c (set_uint32): New function.
76462         (sha1_read_ctx): Rewrite to remove the result buffer alignment
76463         constraint.
76464         (sha1_finish_ctx): Remove comment warning about alignment constraint.
76465         * lib/sha1.h: Likewise.
76467 2008-01-30  Andreas Schwab  <schwab@suse.de>
76468             Bruno Haible  <bruno@clisp.org>
76470         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
76471         correct definition of LDBL_MIN_EXP.
76473 2008-01-30  Karl Berry  <karl@gnu.org>
76475         * config/srclist-update: try to preserve x bit on updates.
76476         * config/srclistvars.sh: update for karl.
76478 2008-01-29  Jim Meyering  <meyering@redhat.com>
76480         vasnprintf.c: Avoid warning about unused label
76481         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
76482         "overflow" label definition and associated code with the
76483         same cpp condition that guards the sole use of that label.
76485 2008-01-26  Bruno Haible  <bruno@clisp.org>
76487         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
76488         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
76489         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
76490         * lib/isnanl-nolibm.h (isnanl): Likewise.
76491         Reported by Paul Eggert <eggert@cs.ucla.edu>.
76493 2008-01-26  Bruno Haible  <bruno@clisp.org>
76495         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
76496         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
76498 2008-01-26  Bruno Haible  <bruno@clisp.org>
76500         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
76501         GCC >= 4.0 built-in.
76502         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
76504 2008-01-26  Bruno Haible  <bruno@clisp.org>
76506         Rename isnan, applicable to 'double' only, to isnand.
76507         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
76508         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
76509         (configure.ac): Update.
76510         (Include): Replace "isnan.h" with "isnand.h".
76511         * m4/isnand.m4: Renamed from m4/isnan.m4.
76512         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
76513         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
76514         instead of isnan.c.
76515         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
76516         instead of HAVE_ISNAN_IN_LIBC.
76517         (isnand): Renamed from isnan.
76518         * lib/isnand.c: New file.
76519         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
76520         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
76521         (Makefile.am): Update.
76522         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
76523         Include isnand.h instead of isnan.h.
76524         (main): Test isnand instead of isnan.
76525         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
76526         isnan-nolibm.
76527         * modules/frexp (Depends-on): Likewise.
76528         * modules/frexp-tests (Depends-on): Likewise.
76529         * modules/frexp-nolibm (Depends-on): Likewise.
76530         * modules/frexp-nolibm-tests (Depends-on): Likewise.
76531         * modules/isfinite (Depends-on): Likewise.
76532         * modules/round-tests (Depends-on): Likewise.
76533         * modules/signbit (Depends-on): Likewise.
76534         * modules/signbit-tests (Depends-on): Likewise.
76535         * modules/snprintf-posix (Depends-on): Likewise.
76536         * modules/sprintf-posix (Depends-on): Likewise.
76537         * modules/trunc-tests (Depends-on): Likewise.
76538         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
76539         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
76540         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
76541         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
76542         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
76543         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
76544         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
76545         * modules/vasnprintf-posix (Depends-on): Likewise.
76546         * modules/vasprintf-posix (Depends-on): Likewise.
76547         * modules/vfprintf-posix (Depends-on): Likewise.
76548         * modules/vsnprintf-posix (Depends-on): Likewise.
76549         * modules/vsprintf-posix (Depends-on): Likewise.
76550         * lib/frexp.c: Include isnand.h instead of isnan.h.
76551         (ISNAN): Set to isnand instead of isnan.
76552         * lib/isfinite.c: Include isnand.h instead of isnan.h.
76553         (gl_isfinited): Use isnand instead of isnan.
76554         * lib/signbitd.c: Include isnand.h instead of isnan.h.
76555         (gl_signbitd): Use isnand instead of isnan.
76556         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
76557         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
76558         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
76559         (main): Use isnand instead of isnan.
76560         * tests/test-round1.c: Include isnand.h.
76561         (main): Use isnand instead of isnan.
76562         * tests/test-round2.c: Include isnand.h instead of isnan.h.
76563         (ISNAN): Set to isnand instead of isnan.
76564         * tests/test-trunc1.c: Include isnand.h.
76565         (main): Use isnand instead of isnan.
76566         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
76567         (equal): Use isnand instead of isnan.
76568         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
76569         isnand-nolibm.
76570         * NEWS: Mention the change.
76572 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
76573             Bruno Haible  <bruno@clisp.org>
76575         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
76576         the GCC builtins for signbits are present and set
76577         REPLACE_SIGNBIT_USING_GCC if so.
76578         * lib/math.in.h (signbit): Define using GCC builtins if
76579         REPLACE_SIGNBIT_USING_GCC is set.
76580         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
76581         REPLACE_SIGNBIT_USING_GCC.
76582         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
76584 2008-01-25  Jim Meyering  <meyering@redhat.com>
76586         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
76587         * lib/poll.c: Include <config.h>, not "config.h".
76588         * tests/test-getaddrinfo.c: Likewise.
76590 2008-01-25  Simon Josefsson  <simon@josefsson.org>
76592         * modules/sockets-tests: New file.
76594 2008-01-24  Simon Josefsson  <simon@josefsson.org>
76596         * modules/sockets: New module, can be used to call WSA_Startup and
76597         WSA_Cleanup when needed.
76599         * lib/sockets.h, lib/sockets.c: New files.
76601         * m4/sockets.m4: New file.
76603         * tests/test-sockets.c: New file.
76605 2008-01-19  Bruno Haible  <bruno@clisp.org>
76607         * doc/posix-headers: Renamed from doc/headers.
76608         * doc/posix-functions: Renamed from doc/functions.
76609         * doc/gnulib.texi: Update.
76611 2008-01-19  Bruno Haible  <bruno@clisp.org>
76613         * doc/glibc-functions/strcasestr.texi: Include contents of
76614         doc/functions/strcasestr.texi, fixing the list of platforms.
76615         * doc/functions/strcasestr.texi: Remove file.
76617 2008-01-19  Bruno Haible  <bruno@clisp.org>
76619         * doc/glibc-functions/memmem.texi: Include contents of
76620         doc/functions/memmem.texi.
76621         * doc/functions/memmem.texi: Remove file.
76623 2008-01-18  Bruno Haible  <bruno@clisp.org>
76625         * doc/glibc-functions/*.texi: New files.
76626         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
76627         to use the new files.
76629 2008-01-17  Bruno Haible  <bruno@clisp.org>
76631         * tests/test-gethostname.c (main): Fix printf statement.
76633 2008-01-17  Simon Josefsson  <simon@josefsson.org>
76635         * modules/gethostname-tests: New file.
76637         * tests/test-gethostname.c: New file.
76639 2008-01-17  Simon Josefsson  <simon@josefsson.org>
76641         * lib/gethostname.c: Include string.h unconditionally, strncpy is
76642         used by the UNAME case.  Reported by Bruno Haible
76643         <bruno@clisp.org>.
76645 2008-01-17  Eric Blake  <ebb9@byu.net>
76647         Convert c-strcasestr to be more efficient.
76648         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
76649         (Depends-on): Add c-strcase, remove malloca, strnlen.
76650         * tests/test-c-strcasestr.c (main): Enhance test.
76651         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
76653 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
76655         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
76656         Use it in creating po/Makevars.
76658 2008-01-15  Simon Josefsson  <simon@josefsson.org>
76660         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
76661         Applications that requires it should initialize libgcrypt
76662         manually.
76664 2008-01-16  Simon Josefsson  <simon@josefsson.org>
76666         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
76668 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
76670         Fix problem with getdate on mingw32 reported by Simon Josefsson
76671         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
76672         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
76673         tzname", when deciding whether to declare tzname.
76674         * lib/strftime.c (tzname): Likewise.
76676 2008-01-15  Bruno Haible  <bruno@clisp.org>
76678         Work around a MacOS X 10.5 bug in frexpl().
76679         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
76680         * doc/functions/frexpl.texi: Document the bug.
76681         Reported by Elias Pipping <pipping@gentoo.org>.
76683 2008-01-14  Eric Blake  <ebb9@byu.net>
76685         Touch up previous patch.
76686         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
76687         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
76689         Convert strcasestr module to use Two-Way algorithm.
76690         * modules/strcasestr-simple: New module, based on the old
76691         strcasestr, but with Two-Way rather than KMP.
76692         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
76693         * lib/string.in.h (rpl_strcasestr): Declare.
76694         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
76695         performance.
76696         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
76697         * modules/string (Makefile.am): Support strcasestr.
76698         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
76699         * modules/strcasestr-tests (Depends-on): Check for alarm.
76700         * tests/test-strcasestr.c: Augment test.
76701         * lib/str-two-way.h: Clean up stray macro.
76702         * NEWS: Document new module.
76703         * MODULES.html.sh (string handling): Likewise.
76704         * doc/functions/strcasestr.texi: New file.
76705         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
76706         here, since it is not a POSIX function.
76708 2008-01-14  Colin Watson  <cjwatson@debian.org>
76709             Bruno Haible  <bruno@clisp.org>
76711         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
76712         works fine; if not, set REPLACE_STRSIGNAL.
76713         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
76714         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
76715         REPLACE_STRSIGNAL.
76716         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
76717         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
76718         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
76720 2008-01-14  Bruno Haible  <bruno@clisp.org>
76722         * modules/strsignal (Include): Change to <string.h>.
76724 2008-01-14  Colin Watson  <cjwatson@debian.org>
76726         * modules/argp (Notice): Add a notice recommending to change
76727         XGETTEXT_OPTIONS.
76728         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
76730 2008-01-13  Colin Watson  <cjwatson@debian.org>
76732         * modules/strsignal-tests: New file.
76733         * tests/test-strsignal.c: New file.
76735         * lib/strsignal.c: New file, from glibc with modifications.
76736         * lib/siglist.h: New file, from glibc with modifications.
76737         * lib/string.in.h (strsignal): New declaration.
76738         * m4/strsignal.m4: New file.
76739         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
76740         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
76741         * modules/strsignal: New file.
76742         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
76743         HAVE_DECL_STRSIGNAL.
76745 2008-01-13  Bruno Haible  <bruno@clisp.org>
76747         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
76748         locale encoding is not ASCII. Needed for OpenBSD 4.0.
76749         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
76750         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
76752 2008-01-13  Bruno Haible  <bruno@clisp.org>
76754         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
76755         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
76756         * lib/argp.h (__attribute__): Likewise.
76757         * lib/c-stack.c (__attribute__): Likewise.
76758         * lib/error.h (__attribute__): Likewise.
76759         * lib/fts.c (__attribute__): Likewise.
76760         * lib/openat.h (__attribute__): Likewise.
76761         * lib/stdio.in.h (__attribute__): Likewise.
76762         * lib/string.in.h (__attribute__): Likewise.
76763         * lib/utimens.c (__attribute__): Likewise.
76764         * lib/vasnprintf.h (__attribute__): Likewise.
76765         * lib/xalloc.h (__attribute__): Likewise.
76766         * lib/xprintf.h (__attribute__): Likewise.
76767         * lib/xstrtol.h (__attribute__): Likewise.
76768         * lib/xvasprintf.h (__attribute__): Likewise.
76770 2008-01-12  Bruno Haible  <bruno@clisp.org>
76772         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
76773         * doc/glibc-headers/a.out.texi: New file.
76774         * doc/glibc-headers/aliases.texi: New file.
76775         * doc/glibc-headers/alloca.texi: New file.
76776         * doc/glibc-headers/ar.texi: New file.
76777         * doc/glibc-headers/argp.texi: New file.
76778         * doc/glibc-headers/argz.texi: New file.
76779         * doc/glibc-headers/byteswap.texi: New file.
76780         * doc/glibc-headers/crypt.texi: New file.
76781         * doc/glibc-headers/endian.texi: New file.
76782         * doc/glibc-headers/envz.texi: New file.
76783         * doc/glibc-headers/err.texi: New file.
76784         * doc/glibc-headers/error.texi: New file.
76785         * doc/glibc-headers/execinfo.texi: New file.
76786         * doc/glibc-headers/fpu_control.texi: New file.
76787         * doc/glibc-headers/fstab.texi: New file.
76788         * doc/glibc-headers/fts.texi: New file.
76789         * doc/glibc-headers/getopt.texi: New file.
76790         * doc/glibc-headers/ieee754.texi: New file.
76791         * doc/glibc-headers/ifaddrs.texi: New file.
76792         * doc/glibc-headers/libintl.texi: New file.
76793         * doc/glibc-headers/mcheck.texi: New file.
76794         * doc/glibc-headers/mntent.texi: New file.
76795         * doc/glibc-headers/obstack.texi: New file.
76796         * doc/glibc-headers/paths.texi: New file.
76797         * doc/glibc-headers/printf.texi: New file.
76798         * doc/glibc-headers/pty.texi: New file.
76799         * doc/glibc-headers/resolv.texi: New file.
76800         * doc/glibc-headers/shadow.texi: New file.
76801         * doc/glibc-headers/sysexits.texi: New file.
76802         * doc/glibc-headers/ttyent.texi: New file.
76804 2008-01-12  Jim Meyering  <meyering@redhat.com>
76806         announce-gen: emit Gnulib's git-based version string.
76807         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
76808         New option --gnulib-version=V, where V is expected to be
76809         the output of running git describe in the gnulib directory.
76810         (get_tool_versions): Request feedback on xdelta.  I suspect it's
76811         not useful, and plan to stop publishing an xdelta file with each
76812         coreutils release.
76814         * build-aux/announce-gen: Also check for lzma-compressed files.
76816 2008-01-11  Bruno Haible  <bruno@clisp.org>
76818         * tests/test-memmem.c (main): Increase maximum allowed time.
76819         * tests/test-strstr.c (main): Likewise.
76821 2008-01-11  Bruno Haible  <bruno@clisp.org>
76823         * doc/functions/memmem.texi: Add more precisions about platforms.
76824         * doc/functions/strstr.texi: Likewise.
76826 2008-01-10  Eric Blake  <ebb9@byu.net>
76828         * m4/strstr.m4: Delete cruft from copy-n-paste.
76829         Reported by Bruno Haible.
76831 2008-01-10  Bruno Haible  <bruno@clisp.org>
76833         Make c-strstr rely on strstr.
76834         * lib/c-strstr.c: Don't include str-kmp.h.
76835         (c_strstr): Define in terms of strstr.
76836         * modules/c-strstr (Files): Remove lib/str-kmp.h.
76837         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
76839 2008-01-10  Bruno Haible  <bruno@clisp.org>
76841         * doc/gnulib.texi (String Functions in C Locale): New section.
76842         * doc/c-ctype.texi: New file.
76843         * doc/c-strcase.texi: New file.
76844         * doc/c-strcaseeq.texi: New file.
76845         * doc/c-strcasestr.texi: New file.
76846         * doc/c-strstr.texi: New file.
76847         * doc/c-strtod.texi: New file.
76848         * doc/c-strtold.texi: New file.
76850 2008-01-10  Eric Blake  <ebb9@byu.net>
76852         * lib/relocatable.h: Fix a comment.
76854 2008-01-10  Eric Blake  <ebb9@byu.net>
76856         Share two-way algorithm.
76857         * lib/str-two-way.h: New file, merged from...
76858         * lib/memmem.c: ...here...
76859         * lib/strstr.c: ...and here.
76860         * modules/memmem (Files): Use it.
76861         * modules/strstr (Files): Likewise.
76863         Avoid quadratic strstr implementations.
76864         * lib/strstr.c: New file.
76865         * m4/strstr.m4: Likewise.
76866         * modules/strstr: Likewise.
76867         * modules/strstr-tests: Likewise.
76868         * tests/test-strstr.c: Likewise.
76869         * lib/string.in.h (rpl_strstr): Declare.
76870         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
76871         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
76872         * modules/string (Makefile.am): Likewise.
76873         * MODULES.html.sh (string handling): Mention new module.
76874         * doc/functions/strstr.texi (strstr): Document the bug.
76876 2008-01-10  Bruno Haible  <bruno@clisp.org>
76878         * lib/relocatable.h (relocate): State whether result is freshly
76879         allocated or not.
76880         * lib/relocatable.c (relocate): Return a freshly allocated string
76881         instead of a pointer to a privately held string.
76882         Reported by Sylvain Beucler <beuc@gnu.org>.
76884 2008-01-10  Colin Watson  <cjwatson@debian.org>
76886         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
76887         s/S_ISNLK/S_ISLNK/.
76889 2008-01-09  Bruno Haible  <bruno@clisp.org>
76891         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
76892         and other files.
76893         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
76894         if it's only a guess.
76895         * modules/memmem: Simplify by depending on memmem-simple.
76897 2008-01-09  Bruno Haible  <bruno@clisp.org>
76899         Work around OpenBSD 4.0 tdelete() bug.
76900         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
76901         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
76902         macros and don't redefine the enum values.
76903         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
76904         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
76905         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
76907 2008-01-09  Bruno Haible  <bruno@clisp.org>
76909         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
76910         (main): Don't perform the tests if setlocale did not install a UTF-8
76911         locale. Needed on OpenBSD 4.0.
76912         * modules/wcwidth-tests (Depends-on): Add localcharset.
76914 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
76916         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
76917         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
76918         * NEWS: announce this.
76919         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
76921 2008-01-09  Simon Josefsson  <simon@josefsson.org>
76922         and Eric Blake  <ebb9@byu.net>
76924         Add memmem-simple module.
76925         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
76926         (gl_FUNC_MEMMEM): Separate performance from presence checks.
76927         * modules/memmem-simple: New file.
76928         * modules/memmem (Description): Tweak.
76929         * MODULES.html.sh (string handling): Mention new module.
76930         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
76931         addressed by memmem-simple.
76932         * NEWS: Document the difference.
76934 2008-01-09  Eric Blake  <ebb9@byu.net>
76936         Give gcc some memmem optimization hints.
76937         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
76938         (strcasestr): Declare as pure.
76939         * modules/memmem (Maintainer): Claim my implementation.
76941 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76943         Support AIX 6.1 and higher.
76944         * build-aux/config.libpath: Likewise.
76945         * build-aux/config.rpath: Likewise.
76947 2008-01-08  Jim Meyering  <meyering@redhat.com>
76948             Bruno Haible  <bruno@clisp.org>
76950         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
76951         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
76952         Reported by Peter Fales in
76953         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
76955 2008-01-08  Bruno Haible  <bruno@clisp.org>
76957         * modules/unictype/category-of (Depends-on): Add
76958         unictype/category-none.
76959         * modules/unictype/category-and-tests (Depends-on): Add
76960         unictype/category-{L,N,Lu,Nd}.
76961         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
76962         * modules/unictype/category-or-tests (Depends-on): Add
76963         unictype/category-{L,N}.
76964         * modules/unictype/category-name-tests (Depends-on): Add
76965         unictype/category-{Z,Nl}.
76966         Reported by Simon Josefsson.
76968 2008-01-08  Bruno Haible  <bruno@clisp.org>
76970         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
76971         convention better.
76972         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
76973         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
76974         Reported by Peter Miller <millerp@canb.auug.org.au>.
76976 2008-01-08  Eric Blake  <ebb9@byu.net>
76978         Rewrite memmem to guarantee linear complexity without malloc.
76979         * lib/memmem.c (memmem): Use Two-Way rather than
76980         Knuth-Morris-Pratt, to allow O(1) space usage.
76981         (critical_factorization, two_way_short_needle)
76982         (two_way_long_needle): New functions.
76983         (knuth_morris_pratt): Delete.
76984         * modules/memmem (Depends-on): No longer need malloca or stdbool.
76985         Add stdint.
76986         * tests/test-memmem.c (main): Add tests for periodic needle and
76987         sublinear performance.
76988         * doc/functions/memmem.texi (memmem): Document other deficiencies
76989         in cygwin and older glibc.
76991 2008-01-08  Bruno Haible  <bruno@clisp.org>
76993         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
76994         augmentation.
76996 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
76998         Add a configure time option: --disable-acl.
76999         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
77000         AC_ARG_ENABLE(acl).
77002 2008-01-06  Simon Josefsson  <simon@josefsson.org>
77004         * tests/test-localename.c: Don't include obsolete "setenv.h".
77006         * modules/localename-tests (Depends-on): Need unsetenv.
77008 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77010         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
77012 2008-01-06  Colin Watson  <cjwatson@debian.org>
77014         * users.txt: Add man-db.
77016 2008-01-07  Bruno Haible  <bruno@clisp.org>
77018         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
77019         previous section name.
77021 2008-01-07  Bruno Haible  <bruno@clisp.org>
77023         * lib/progname.c (set_program_name): Don't strip off a leading
77024         "lt-" prefix outside a .libs directory.
77025         Suggested by Paul Eggert.
77027 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
77028             Bruno Haible  <bruno@clisp.org>
77030         Improve memory cleanup in 'relocatable' module.
77031         * lib/relocatable.h (compute_curr_prefix): Change return type to
77032         'char *'.
77033         * lib/relocatable.c (compute_curr_prefix): Change return type to
77034         'char *'. Free curr_installdir after use.
77035         (relocate): Free curr_prefix_better after use.
77036         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
77038 2008-01-01  Bruno Haible  <bruno@clisp.org>
77040         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
77041         failure on older glibc systems.
77042         Reported by Peter Fales <psfales@alcatel-lucent.com>.
77044 2008-01-05  Eric Blake  <ebb9@byu.net>
77046         Avoid quadratic system memmem.
77047         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
77048         Reported by Ralf Wildenhues.
77050         Fix memmem test for mingw.
77051         * modules/memmem-tests (configure.ac): Check for alarm.
77052         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
77053         it.
77054         * doc/functions/memmem.texi: New file.
77055         * doc/gnulib.texi (Function Substitutes): Add memmem.
77056         Reported by Bruno Haible.
77058 2008-01-04  Bruno Haible  <bruno@clisp.org>
77060         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
77061         Require gl_HEADER_STRINGS_H_DEFAULTS, not
77062         gl_HEADER_STRING_H_DEFAULTS.
77064 2008-01-04  Eric Blake  <ebb9@byu.net>
77066         Shorten duration of memmem test.
77067         * tests/test-memmem.c (main): Use alarm to declare failure if test
77068         is taking too long.
77069         Reported by Ralf Wildenhues.
77071 2007-12-21  Simon Josefsson  <simon@josefsson.org>
77073         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
77074         string, needed by strerror.
77076 2008-01-03  Colin Watson  <cjwatson@debian.org>
77077             Bruno Haible  <bruno@clisp.org>
77079         * doc/gnulib-tool.texi (Localization): New section.
77081 2008-01-02  Bruno Haible  <bruno@clisp.org>
77083         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
77084         variables to 'unsigned char *' type.
77085         Reported by Paul Eggert.
77087 2008-01-02  Jim Meyering  <jim@meyering.net>
77089         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
77091 2007-12-31  Jim Meyering  <jim@meyering.net>
77093         Avoid use of private FTS type name.
77094         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
77096 2007-12-30  Karl Berry  <karl@gnu.org>
77098         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
77099         work around defect in Texinfo and/or the standalone Info browser.
77101 2007-12-30  Bruno Haible  <bruno@clisp.org>
77103         Unify 5 copies of the KMP code.
77104         * lib/str-kmp.h: New file.
77105         * lib/c-strcasestr.c: Include str-kmp.h.
77106         (knuth_morris_pratt): Remove function.
77107         (c_strcasestr): Update.
77108         * lib/c-strstr.c: Include str-kmp.h.
77109         (knuth_morris_pratt): Remove function.
77110         (c_strcasestr): Update.
77111         * lib/mbscasestr.c: Include str-kmp.h.
77112         (knuth_morris_pratt_unibyte): Remove function.
77113         * lib/mbsstr.c: Include str-kmp.h.
77114         (knuth_morris_pratt_unibyte): Remove function.
77115         * lib/strcasestr.c: Include str-kmp.h.
77116         (knuth_morris_pratt): Remove function.
77117         (strcasestr): Update.
77118         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
77119         * modules/c-strstr (Files): Likewise.
77120         * modules/mbscasestr (Files): Likewise.
77121         * modules/mbsstr (Files): Likewise.
77122         * modules/strcasestr (Files): Likewise.
77123         Suggested by Paul Eggert.
77125 2007-12-30  Bruno Haible  <bruno@clisp.org>
77127         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
77128         defined.
77130 2007-12-30  Bruno Haible  <bruno@clisp.org>
77132         * lib/xmalloca.h: Include xalloc.h.
77133         (xnmalloca): New macro.
77135 2007-12-30  Bruno Haible  <bruno@clisp.org>
77137         * lib/malloca.h (nmalloca): New macro.
77138         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
77139         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
77140         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
77141         knuth_morris_pratt_multibyte): Likewise.
77142         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
77143         knuth_morris_pratt_multibyte): Likewise.
77144         * lib/memmem.c (knuth_morris_pratt): Likewise.
77145         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
77147 2007-12-25  Bruno Haible  <bruno@clisp.org>
77149         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
77150         * lib/glob.c: Don't include openat.h.
77151         (link_exists2_p): Add back the code that deals with the
77152         !GLOB_ALTDIRFUNC case.
77153         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
77154         let it do the filename concatenation.
77155         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
77156         * modules/glob (Depends-on): Remove openat.
77158 2007-12-31  Bruno Haible  <bruno@clisp.org>
77160         * modules/dirfd (License): Change to LGPLv2+.
77161         Approved by Jim Meyering.
77163 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
77165         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
77166         when multiplying M by sizeof (size_t).
77168 2007-12-10  Martin Lambers  <marlam@marlam.de>
77170         Override getpagesize on mingw.
77171         * lib/getpagesize.c: New file.
77172         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
77173         * modules/getpagesize (Files): Add lib/getpagesize.c.
77174         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
77175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
77176         REPLACE_GETPAGESIZE.
77177         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
77179 2007-12-25  Bruno Haible  <bruno@clisp.org>
77181         * modules/localcharset (Notice): New field.
77182         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
77183         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
77185 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
77186             Bruno Haible  <bruno@clisp.org>
77188         Avoid using the syntax symbol() in formatted documentation.
77189         * MODULES.html.sh (func_module): When replacing symbol() with a
77190         hyperlink, remove the parentheses. Show an error if some remain.
77191         Recognize and render the '...' syntax.
77192         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
77193         Rework. Add paragraph about GCC's inlining.
77194         * doc/alloca.texi: Likewise.
77195         * doc/error.texi: Remove parentheses from symbol reference.
77196         * doc/gnulib-intro.texi: Likewise.
77197         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
77198         * modules/fnmatch (Description): Reword to say "the ... function".
77199         * modules/full-read (Description): Likewise.
77200         * modules/full-write (Description): Likewise.
77201         * modules/safe-read (Description): Likewise.
77202         * modules/safe-write (Description): Likewise.
77203         * modules/strchrnul (Description): Likewise.
77204         * modules/trim (Description): Likewise.
77205         * modules/error (Description): Remove parentheses from symbol
77206         references.
77207         * modules/verror (Description): Likewise.
77208         Reported by Karl Berry.
77210 2007-12-25  Bruno Haible  <bruno@clisp.org>
77212         Fixup after 2007-10-16 commit.
77213         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
77215 2007-12-24  Bruno Haible  <bruno@clisp.org>
77217         Make --enable-relocatable work with DESTDIR.
77218         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
77219         to compute installdir from destprog.
77220         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
77221         also set the RELOC_DESTDIR variable.
77222         Reported by Левашев Иван <octagram@bluebottle.com>.
77224 2007-12-24  Bruno Haible  <bruno@clisp.org>
77226         Fix link error due to xalloc_die().
77227         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
77228         of xreadlink.
77229         * lib/relocwrapper.c: Update comments.
77230         * build-aux/install-reloc: Remove xreadlink.c from file list.
77231         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
77232         xreadlink.c.
77233         Reported by Левашев Иван <octagram@bluebottle.com>.
77235 2007-12-24  Bruno Haible  <bruno@clisp.org>
77237         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
77238         * lib/setenv.h: Remove file.
77239         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
77240         lib/setenv.h.
77241         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
77242         (Depends-on): Add stdlib.
77243         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
77244         gl_FUNC_UNSETENV.
77245         (Include): Replace setenv.h with <stdlib.h>.
77246         * modules/unsetenv: New file.
77247         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
77248         * lib/unsetenv.c: Include <stdlib.h> first.
77249         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
77250         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
77251         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
77252         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
77253         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
77254         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
77255         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
77256         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
77257         * doc/functions/unsetenv.texi: Update.
77258         * modules/xsetenv (Depends-on): Add unsetenv.
77259         * modules/getdate (Depends-on): Likewise.
77260         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
77261         * lib/xsetenv.c: Don't include setenv.h.
77262         * lib/getdate.y: Likewise.
77263         * lib/relocwrapper.c: Likewise.
77264         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
77265         (Depends-on): Add stdlib.
77266         * NEWS: Mention the changes.
77267         Reported by Левашев Иван <octagram@bluebottle.com>.
77269 2007-12-23  Bruno Haible  <bruno@clisp.org>
77271         * lib/memmem.c (memmem): Use lowercase variable names. Tab
77272         indentation.
77274 2007-12-23  Bruno Haible  <bruno@clisp.org>
77276         * lib/c-strcasestr.c: Add more comments.
77277         * lib/c-strstr.c: Likewise.
77278         * lib/mbscasestr.c: Likewise.
77279         * lib/mbsstr.c: Likewise.
77280         * lib/strcasestr.c: Likewise.
77281         * lib/memmem.c: Likewise.
77283 2007-12-23  Bruno Haible  <bruno@clisp.org>
77285         * tests/test-memmem.c: Include <string.h> first.
77287 2007-12-22  Bruno Haible  <bruno@clisp.org>
77289         * gnulib-tool (func_create_testdir): Change $auxdir while generating
77290         the contents of $testsbase.
77291         Reported by Ralf Wildenhues.
77293 2007-12-22  Bruno Haible  <bruno@clisp.org>
77295         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
77296         two variables local_ldadd_before, local_ldadd_last.
77298 2007-12-20  Eric Blake  <ebb9@byu.net>
77300         Work around circular library issue when cross-compiling.
77301         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
77302         that progname.o does not need to pull in rpl_memcmp.
77304 2007-12-19  Eric Blake  <ebb9@byu.net>
77306         Fix memmem to avoid O(n^2) worst-case complexity.
77307         * lib/memmem.c (knuth_morris_pratt): New function.
77308         (memmem): Use it if first few naive iterations fail.
77309         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
77310         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
77311         * modules/memchr (License): Likewise.
77312         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
77313         malloca.
77314         * tests/test-memmem.c: Rewrite, borrowing ideas from
77315         test-mbsstr1.c; the old version wouldn't even compile!
77316         * modules/memmem-tests: New file.
77317         * lib/string.in.h (rpl_memmem): Add declaration.
77318         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
77319         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
77320         REPLACE_MEMMEM.
77322 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
77324         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
77325         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
77326         before any system include files, and undef after them all.  This
77327         should fix a problem on VMS reported by John E. Malmberg in
77328         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
77330 2007-12-17  Eric Blake  <ebb9@byu.net>
77332         Revert addition of verify, for BSD/OS.
77333         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
77334         can't handle large files, for the sake of obsolete platforms.
77335         * modules/fseeko (Depends-on): Remove verify.
77336         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
77337         * doc/functions/ftello.texi (ftello): Likewise.
77338         * doc/functions/fgetpos.texi (fgetpos): Likewise.
77339         Reported by Larry Jones.
77341 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
77343         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
77344         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
77346 2007-12-17  Jim Meyering  <meyering@redhat.com>
77348         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
77349         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
77350         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
77351         * modules/getcwd (Depends-on): Add openat.
77352         Reported by Petr Salinger.
77354 2007-12-17  Bruno Haible  <bruno@clisp.org>
77356         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
77357         avoid a segmentation fault of the configure test on x86_64 systems.
77359 2007-12-15  Jim Meyering  <meyering@redhat.com>
77361         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
77363 2007-12-13  Eric Blake  <ebb9@byu.net>
77365         Another fseek test.
77366         * tests/test-fseek.c (main): Also test ungetc handling.
77367         * tests/test-fseeko.c (main): Likewise.
77368         * modules/fseeko (Depends-on): Add verify.
77369         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
77370         large.
77371         Reported by Larry Jones.
77373         Fix fseeko on mingw.
77374         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
77375         seek.
77377         Beef up fseek tests.
77378         * tests/test-fseek.c (main): Also test eof handling.
77379         * tests/test-fseeko.c (main): Likewise.
77380         Reported by Larry Jones.
77382 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
77384         Fix fseeko on BSD-based platforms.
77385         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
77386         successful seek.
77388 2007-12-12  Eric Blake  <ebb9@byu.net>
77390         Allow circular dependency of separate libtests.a
77391         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
77392         when use_libtests.
77394 2007-12-11  Eric Blake  <ebb9@byu.net>
77396         Fix bug with -0.0L in previous patch.
77397         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
77398         * tests/test-isnan.c (main): Also test on zeroes.
77399         * tests/test-isnanf.c (main): Likewise.
77400         * tests/test-isnanl.h (main): Likewise.
77402         Detect pseudo-denormals on x86 even when cross-compiling.
77403         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
77404         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
77405         invalid bit patterns that happen to satisfy ==.
77407         Avoid link failures with separate libtests.a.
77408         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
77409         last, to satisfy circular dependencies.
77411 2007-12-11  Eric Blake  <ebb9@byu.net>
77412         and Bruno Haible  <bruno@clisp.org>
77414         Fix OpenBSD 4.0 <float.h> handling of long double.
77415         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
77416         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
77417         * doc/headers/float.texi (float.h): Document OpenBSD bug.
77419 2007-12-11  Jim Meyering  <meyering@redhat.com>
77421         * users.txt: Add libvirt.
77423         Support versions of autoconf prior to 2.59c.
77424         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
77425         if it is not already defined.
77427 2007-12-09  Bruno Haible  <bruno@clisp.org>
77429         Let 'gnulib-tool --import' collect sources needed for the tests in
77430         tests/ rather than in lib/.
77431         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
77432         argument. If true, add rules to generate libtests.a, and put libtests.a
77433         into $(LDADD). Consider source files in subdirectories and set
77434         uses_subdirs.
77435         (func_emit_initmacro_start, func_emit_initmacro_end,
77436         func_emit_initmacro_done): Pass all arguments explicitly.
77437         (func_import): Determine two module lists main_modules,
77438         testsrelated_modules. Determine use_libtests. Determine two variables
77439         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
77440         instead of just sed_transform_lib_file. Determine two variables
77441         main_files and testsrelated_files. Compute 'files' as the union of
77442         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
77443         func_add_or_update. In the generated gnulib-comp.m4, collect the
77444         object files for tests/ in different variables than those for lib/.
77445         Substitute LIBTESTS_LIBDEPS.
77446         (func_create_testdir): Combine the uses_subdirs results from
77447         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
77449 2007-12-09  Bruno Haible  <bruno@clisp.org>
77451         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
77452         the build-aux directory.
77454 2007-12-09  Bruno Haible  <bruno@clisp.org>
77456         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
77457         introduced on 2006-09-09.
77459 2007-12-07  Jim Meyering  <meyering@redhat.com>
77461         Let these macros work also with autoconf-2.59.
77462         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
77463         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
77464         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
77466 2007-12-06  Jim Meyering  <meyering@redhat.com>
77468         Avoid a configure-time syntax error in gl_FUNC_ACL.
77469         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
77470         function in each branch, before testing the cache variable.
77472 2007-12-04  Eric Blake  <ebb9@byu.net>
77474         Make scripts executable.
77475         * build-aux/config.guess: Add execute permissions.
77476         * build-aux/config.sub: Likewise.
77477         * build-aux/gendocs.sh: Likewise.
77479         Fix frexp on mingw.
77480         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
77481         cross-compiling.
77482         * doc/functions/frexp.texi (frexp): Document the bug.
77484         Make cygwin fseeko check more reliable.
77485         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
77486         version numbers, rather than unrelated feature check.
77487         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
77488         * doc/functions/ftello.texi (ftello): Likewise.
77489         Reported by Bruno Haible.
77491         * m4/strerror.m4: Bump version number.
77493 2007-12-03  Bruno Haible  <bruno@clisp.org>
77495         * doc/functions/mprotect.texi: Mention the mingw problem.
77497 2007-12-03  Eric Blake  <ebb9@byu.net>
77499         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
77500         REPLACE_STRERROR is initialized before this macro.
77502 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
77504         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
77505         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
77506         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
77507         put -lsec in even for programs other than 'ls'.  This fixes a problem
77508         for gettext reported by Bruno Haible in
77509         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
77510         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
77511         Add support for Solaris 10.  This isn't efficient, but should get the
77512         job done for now.
77514 2007-12-03  James Youngman  <jay@gnu.org>
77516         * doc/regexprops-generic.texi: change "an close-group" to "a
77517         close-group" and "illegal" to "not allowed".
77519 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77521         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
77522         pr_byname.h. Needed for the rare case when the maintainer has done
77523         "make maintainer-clean" in the source directory and then attempts a
77524         build outside the source directory.
77525         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
77526         scripts_byname.h.
77528 2007-12-02  Martin Lambers  <marlam@marlam.de>
77529             Bruno Haible  <bruno@clisp.org>
77531         * lib/getpagesize.h: Remove file.
77532         * lib/unistd.in.h: Include declaration of getpagesize here.
77533         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
77534         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
77535         HAVE_SYS_PARAM_H.
77536         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
77537         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
77538         * modules/getpagesize (Files): Remove lib/getpagesize.h.
77539         (Depends-on): Add unistd.
77540         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
77541         (Include): Use <unistd.h> instead of getpagesize.h.
77542         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
77543         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
77544         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
77545         gl_GETPAGESIZE invocation, already handled by module dependency.
77546         * lib/pagealign_alloc.c: Don't include getpagesize.h.
77548 2007-12-02  Bruno Haible  <bruno@clisp.org>
77550         * modules/strings-tests: New file.
77551         * tests/test-strings.c: New file.
77553         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
77554         * lib/strings.in.h: New file.
77555         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
77556         * m4/strings_h.m4: New file.
77557         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
77558         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
77559         * modules/strings: New file.
77560         * modules/string (Makefile.am): Update.
77561         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
77562         Reported by Karl Berry.
77564 2007-12-01  Eric Blake  <ebb9@byu.net>
77566         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
77567         accommodate fix in cygwin 1.5.25.
77569 2007-12-01  Jim Meyering  <meyering@redhat.com>
77571         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
77572         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
77573         that would inhibit utf8-optimization of a regexp containing line-
77574         or buffer-anchors, e.g., `^', `$'.
77576 2007-11-30  Bruno Haible  <bruno@clisp.org>
77578         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
77579         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
77580         glthread_recursive_lock_init.
77581         * lib/lock.c (glthread_recursive_lock_init)
77582         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
77583         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77585 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
77587         New function qset_acl, like set_acl but with syscall semantics.
77588         * lib/acl.h (qset_acl): New decl.
77589         * lib/acl.c (qset_acl): New function.
77590         (set_acl): Use new function.  Use more-consistent diagnostics.
77592 2007-11-28  Jim Meyering  <meyering@redhat.com>
77594         * modules/physmem (License): Change from GPL to LGPLv2+.
77596 2007-11-26  Bruno Haible  <bruno@clisp.org>
77598         * lib/vasnprintf.c (decode_long_double): Don't abort if the
77599         'long double' type has excess precision.
77600         Reported by Jim Meyering in
77601         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
77603 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77605         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
77606         Sync from <http://gnu.org/licenses>.
77607         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
77608         with license text from same location.
77609         * doc/maintain.texi, doc/standards.texi:  Sync from
77610         <http://savannah.gnu.org/projects/gnustandards>.
77612 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
77613         and Jim Meyering  <meyering@redhat.com>
77615         Adjust getdate' grammar to accept a slightly more regular language.
77616         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
77617         Before, the former was rejected.
77618         * lib/getdate.y (digits_to_date_time): New function, factored
77619         out of ...
77620         (number): ...here.  Just call digits_to_date_time.
77621         (hybrid): New non-terminal to handle an <unsigned number,
77622         signed relative offset> sequence consistently.
77624 2007-11-18  Jim Meyering  <meyering@redhat.com>
77626         Pull my changes from coreutils:
77627         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
77628         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
77629         use of $gnulib_tool_option_extras, so that it's separated from the
77630         preceding argument.
77632         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
77633         * build-aux/bootstrap (cp_mark_as_generated): Create any required
77634         parent destination directories before copying a file into place.
77636 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
77638         bootstrap: work also with 4-argument variant of AC_INIT
77639         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
77641 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77643         Port test-getaddrinfo to Solaris.
77644         Problem reported by Bruno Haible in
77645         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
77646         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
77647         explanation of setting 'hints'.
77648         Don't reject an implementation merely because it returns EAI_SERVICE.
77649         (EAI_SERVICE): Define to 0 if not defined.
77651 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
77653         The license of gnu-make and posix-shell is now "GPLed build tool".
77654         * modules/gnu-make (License): Likewise.
77655         * modules/posix-shell (License): Likewise.
77657         New module posix-shell, for determining a POSIX shell
77658         or perhaps something that is close enough to a POSIX shell.
77659         * m4/posix-shell.m4: New file.
77660         * modules/posix-shell: New file.
77662         * MODULES.html.sh: Mention new module.
77664         New module gnu-make, for determining whether we're using GNU Make.
77665         * m4/gnu-make.m4: New file.
77666         * modules/gnu-make: New file.
77667         * MODULES.html.sh: Mention new module.
77669 2007-11-14  Jim Meyering  <meyering@redhat.com>
77671         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
77672         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
77673         use this macro to create a function _definition_.
77674         Remove useless "#undef ARGMATCH_DIE".
77676 2007-11-14  Bruno Haible  <bruno@clisp.org>
77678         * lib/config.charset: Update for OpenBSD 4.1.
77679         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
77681 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
77683         Document 64-bit #if problems in stdint.texi.
77684         * doc/headers/stdint.texi (stdint.h): Mention problems with
77685         64-bit-#if, and how to work around them.
77687         Don't insist on 'long long int' support in the preprocessor.  It
77688         breaks too many things.  For example, PRIdMAX still uses a 'long
77689         long int' format with the latest Sun compiler, even though
77690         HAVE_LONG_LONG_INT isn't defined due to that compiler's
77691         preprocessor problem.  This causes the latest coreutils to dump
77692         core on Solaris 10 sparc with the Sun C compiler.
77693         Instead, fix the 2007-10-16 problem in a different way, by evaluating
77694         the troublesome expressions at configure-time, not at #if-time.
77695         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
77696         preprocessor.
77697         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
77698         compile-time C checks, done at 'configure'-time.
77699         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
77700         * modules/inttypes (Makefile): Substitute the new symbols that
77701         gl_INTTYPES_H now generates.
77702         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
77704 2007-11-12  Bruno Haible  <bruno@clisp.org>
77706         Tests for Unicode character classification functions.
77708         * modules/unictype/bidicategory-byname-tests: New file.
77709         * modules/unictype/bidicategory-name-tests: New file.
77710         * modules/unictype/bidicategory-of-tests: New file.
77711         * modules/unictype/bidicategory-test-tests: New file.
77712         * modules/unictype/block-list-tests: New file.
77713         * modules/unictype/block-of-tests: New file.
77714         * modules/unictype/block-test-tests: New file.
77715         * modules/unictype/category-C-tests: New file.
77716         * modules/unictype/category-Cc-tests: New file.
77717         * modules/unictype/category-Cf-tests: New file.
77718         * modules/unictype/category-Cn-tests: New file.
77719         * modules/unictype/category-Co-tests: New file.
77720         * modules/unictype/category-Cs-tests: New file.
77721         * modules/unictype/category-L-tests: New file.
77722         * modules/unictype/category-Ll-tests: New file.
77723         * modules/unictype/category-Lm-tests: New file.
77724         * modules/unictype/category-Lo-tests: New file.
77725         * modules/unictype/category-Lt-tests: New file.
77726         * modules/unictype/category-Lu-tests: New file.
77727         * modules/unictype/category-M-tests: New file.
77728         * modules/unictype/category-Mc-tests: New file.
77729         * modules/unictype/category-Me-tests: New file.
77730         * modules/unictype/category-Mn-tests: New file.
77731         * modules/unictype/category-N-tests: New file.
77732         * modules/unictype/category-Nd-tests: New file.
77733         * modules/unictype/category-Nl-tests: New file.
77734         * modules/unictype/category-No-tests: New file.
77735         * modules/unictype/category-P-tests: New file.
77736         * modules/unictype/category-Pc-tests: New file.
77737         * modules/unictype/category-Pd-tests: New file.
77738         * modules/unictype/category-Pe-tests: New file.
77739         * modules/unictype/category-Pf-tests: New file.
77740         * modules/unictype/category-Pi-tests: New file.
77741         * modules/unictype/category-Po-tests: New file.
77742         * modules/unictype/category-Ps-tests: New file.
77743         * modules/unictype/category-S-tests: New file.
77744         * modules/unictype/category-Sc-tests: New file.
77745         * modules/unictype/category-Sk-tests: New file.
77746         * modules/unictype/category-Sm-tests: New file.
77747         * modules/unictype/category-So-tests: New file.
77748         * modules/unictype/category-Z-tests: New file.
77749         * modules/unictype/category-Zl-tests: New file.
77750         * modules/unictype/category-Zp-tests: New file.
77751         * modules/unictype/category-Zs-tests: New file.
77752         * modules/unictype/category-and-not-tests: New file.
77753         * modules/unictype/category-and-tests: New file.
77754         * modules/unictype/category-byname-tests: New file.
77755         * modules/unictype/category-name-tests: New file.
77756         * modules/unictype/category-none-tests: New file.
77757         * modules/unictype/category-of-tests: New file.
77758         * modules/unictype/category-or-tests: New file.
77759         * modules/unictype/category-test-withtable-tests: New file.
77760         * modules/unictype/combining-class-tests: New file.
77761         * modules/unictype/ctype-alnum-tests: New file.
77762         * modules/unictype/ctype-alpha-tests: New file.
77763         * modules/unictype/ctype-blank-tests: New file.
77764         * modules/unictype/ctype-cntrl-tests: New file.
77765         * modules/unictype/ctype-digit-tests: New file.
77766         * modules/unictype/ctype-graph-tests: New file.
77767         * modules/unictype/ctype-lower-tests: New file.
77768         * modules/unictype/ctype-print-tests: New file.
77769         * modules/unictype/ctype-punct-tests: New file.
77770         * modules/unictype/ctype-space-tests: New file.
77771         * modules/unictype/ctype-upper-tests: New file.
77772         * modules/unictype/ctype-xdigit-tests: New file.
77773         * modules/unictype/decimal-digit-tests: New file.
77774         * modules/unictype/digit-tests: New file.
77775         * modules/unictype/mirror-tests: New file.
77776         * modules/unictype/numeric-tests: New file.
77777         * modules/unictype/property-alphabetic-tests: New file.
77778         * modules/unictype/property-ascii-hex-digit-tests: New file.
77779         * modules/unictype/property-bidi-arabic-digit-tests: New file.
77780         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
77781         * modules/unictype/property-bidi-block-separator-tests: New file.
77782         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
77783         * modules/unictype/property-bidi-common-separator-tests: New file.
77784         * modules/unictype/property-bidi-control-tests: New file.
77785         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
77786         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
77787         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
77788         * modules/unictype/property-bidi-european-digit-tests: New file.
77789         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
77790         * modules/unictype/property-bidi-left-to-right-tests: New file.
77791         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
77792         * modules/unictype/property-bidi-other-neutral-tests: New file.
77793         * modules/unictype/property-bidi-pdf-tests: New file.
77794         * modules/unictype/property-bidi-segment-separator-tests: New file.
77795         * modules/unictype/property-bidi-whitespace-tests: New file.
77796         * modules/unictype/property-byname-tests: New file.
77797         * modules/unictype/property-combining-tests: New file.
77798         * modules/unictype/property-composite-tests: New file.
77799         * modules/unictype/property-currency-symbol-tests: New file.
77800         * modules/unictype/property-dash-tests: New file.
77801         * modules/unictype/property-decimal-digit-tests: New file.
77802         * modules/unictype/property-default-ignorable-code-point-tests: New file.
77803         * modules/unictype/property-deprecated-tests: New file.
77804         * modules/unictype/property-diacritic-tests: New file.
77805         * modules/unictype/property-extender-tests: New file.
77806         * modules/unictype/property-format-control-tests: New file.
77807         * modules/unictype/property-grapheme-base-tests: New file.
77808         * modules/unictype/property-grapheme-extend-tests: New file.
77809         * modules/unictype/property-grapheme-link-tests: New file.
77810         * modules/unictype/property-hex-digit-tests: New file.
77811         * modules/unictype/property-hyphen-tests: New file.
77812         * modules/unictype/property-id-continue-tests: New file.
77813         * modules/unictype/property-id-start-tests: New file.
77814         * modules/unictype/property-ideographic-tests: New file.
77815         * modules/unictype/property-ids-binary-operator-tests: New file.
77816         * modules/unictype/property-ids-trinary-operator-tests: New file.
77817         * modules/unictype/property-ignorable-control-tests: New file.
77818         * modules/unictype/property-iso-control-tests: New file.
77819         * modules/unictype/property-join-control-tests: New file.
77820         * modules/unictype/property-left-of-pair-tests: New file.
77821         * modules/unictype/property-line-separator-tests: New file.
77822         * modules/unictype/property-logical-order-exception-tests: New file.
77823         * modules/unictype/property-lowercase-tests: New file.
77824         * modules/unictype/property-math-tests: New file.
77825         * modules/unictype/property-non-break-tests: New file.
77826         * modules/unictype/property-not-a-character-tests: New file.
77827         * modules/unictype/property-numeric-tests: New file.
77828         * modules/unictype/property-other-alphabetic-tests: New file.
77829         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
77830         * modules/unictype/property-other-grapheme-extend-tests: New file.
77831         * modules/unictype/property-other-id-continue-tests: New file.
77832         * modules/unictype/property-other-id-start-tests: New file.
77833         * modules/unictype/property-other-lowercase-tests: New file.
77834         * modules/unictype/property-other-math-tests: New file.
77835         * modules/unictype/property-other-uppercase-tests: New file.
77836         * modules/unictype/property-paired-punctuation-tests: New file.
77837         * modules/unictype/property-paragraph-separator-tests: New file.
77838         * modules/unictype/property-pattern-syntax-tests: New file.
77839         * modules/unictype/property-pattern-white-space-tests: New file.
77840         * modules/unictype/property-private-use-tests: New file.
77841         * modules/unictype/property-punctuation-tests: New file.
77842         * modules/unictype/property-quotation-mark-tests: New file.
77843         * modules/unictype/property-radical-tests: New file.
77844         * modules/unictype/property-sentence-terminal-tests: New file.
77845         * modules/unictype/property-soft-dotted-tests: New file.
77846         * modules/unictype/property-space-tests: New file.
77847         * modules/unictype/property-terminal-punctuation-tests: New file.
77848         * modules/unictype/property-test-tests: New file.
77849         * modules/unictype/property-titlecase-tests: New file.
77850         * modules/unictype/property-unassigned-code-value-tests: New file.
77851         * modules/unictype/property-unified-ideograph-tests: New file.
77852         * modules/unictype/property-uppercase-tests: New file.
77853         * modules/unictype/property-variation-selector-tests: New file.
77854         * modules/unictype/property-white-space-tests: New file.
77855         * modules/unictype/property-xid-continue-tests: New file.
77856         * modules/unictype/property-xid-start-tests: New file.
77857         * modules/unictype/property-zero-width-tests: New file.
77858         * modules/unictype/scripts-tests: New file.
77859         * modules/unictype/syntax-c-ident-tests: New file.
77860         * modules/unictype/syntax-c-whitespace-tests: New file.
77861         * modules/unictype/syntax-java-ident-tests: New file.
77862         * modules/unictype/syntax-java-whitespace-tests: New file.
77863         * tests/unictype/test-bidi_byname.c: New file.
77864         * tests/unictype/test-bidi_name.c: New file.
77865         * tests/unictype/test-bidi_of.c: New file.
77866         * tests/unictype/test-bidi_test.c: New file.
77867         * tests/unictype/test-block_list.c: New file.
77868         * tests/unictype/test-block_of.c: New file.
77869         * tests/unictype/test-block_test.c: New file.
77870         * tests/unictype/test-categ_and.c: New file.
77871         * tests/unictype/test-categ_and_not.c: New file.
77872         * tests/unictype/test-categ_byname.c: New file.
77873         * tests/unictype/test-categ_name.c: New file.
77874         * tests/unictype/test-categ_none.c: New file.
77875         * tests/unictype/test-categ_of.c: New file.
77876         * tests/unictype/test-categ_or.c: New file.
77877         * tests/unictype/test-categ_test_withtable.c: New file.
77878         * tests/unictype/test-combining.c: New file.
77879         * tests/unictype/test-decdigit.c: New file.
77880         * tests/unictype/test-digit.c: New file.
77881         * tests/unictype/test-mirror.c: New file.
77882         * tests/unictype/test-numeric.c: New file.
77883         * tests/unictype/test-pr_byname.c: New file.
77884         * tests/unictype/test-pr_test.c: New file.
77885         * tests/unictype/test-predicate-part1.h: New file.
77886         * tests/unictype/test-predicate-part2.h: New file.
77887         * tests/unictype/test-scripts.c: New file.
77888         * tests/unictype/test-sy_c_ident.c: New file.
77889         * tests/unictype/test-sy_java_ident.c: New file.
77891         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
77892         for Unicode 5.0.0.
77893         * tests/unictype/test-categ_Cc.c: Likewise.
77894         * tests/unictype/test-categ_Cf.c: Likewise.
77895         * tests/unictype/test-categ_Cn.c: Likewise.
77896         * tests/unictype/test-categ_Co.c: Likewise.
77897         * tests/unictype/test-categ_Cs.c: Likewise.
77898         * tests/unictype/test-categ_L.c: Likewise.
77899         * tests/unictype/test-categ_Ll.c: Likewise.
77900         * tests/unictype/test-categ_Lm.c: Likewise.
77901         * tests/unictype/test-categ_Lo.c: Likewise.
77902         * tests/unictype/test-categ_Lt.c: Likewise.
77903         * tests/unictype/test-categ_Lu.c: Likewise.
77904         * tests/unictype/test-categ_M.c: Likewise.
77905         * tests/unictype/test-categ_Mc.c: Likewise.
77906         * tests/unictype/test-categ_Me.c: Likewise.
77907         * tests/unictype/test-categ_Mn.c: Likewise.
77908         * tests/unictype/test-categ_N.c: Likewise.
77909         * tests/unictype/test-categ_Nd.c: Likewise.
77910         * tests/unictype/test-categ_Nl.c: Likewise.
77911         * tests/unictype/test-categ_No.c: Likewise.
77912         * tests/unictype/test-categ_P.c: Likewise.
77913         * tests/unictype/test-categ_Pc.c: Likewise.
77914         * tests/unictype/test-categ_Pd.c: Likewise.
77915         * tests/unictype/test-categ_Pe.c: Likewise.
77916         * tests/unictype/test-categ_Pf.c: Likewise.
77917         * tests/unictype/test-categ_Pi.c: Likewise.
77918         * tests/unictype/test-categ_Po.c: Likewise.
77919         * tests/unictype/test-categ_Ps.c: Likewise.
77920         * tests/unictype/test-categ_S.c: Likewise.
77921         * tests/unictype/test-categ_Sc.c: Likewise.
77922         * tests/unictype/test-categ_Sk.c: Likewise.
77923         * tests/unictype/test-categ_Sm.c: Likewise.
77924         * tests/unictype/test-categ_So.c: Likewise.
77925         * tests/unictype/test-categ_Z.c: Likewise.
77926         * tests/unictype/test-categ_Zl.c: Likewise.
77927         * tests/unictype/test-categ_Zp.c: Likewise.
77928         * tests/unictype/test-categ_Zs.c: Likewise.
77929         * tests/unictype/test-ctype_alnum.c: Likewise.
77930         * tests/unictype/test-ctype_alpha.c: Likewise.
77931         * tests/unictype/test-ctype_blank.c: Likewise.
77932         * tests/unictype/test-ctype_cntrl.c: Likewise.
77933         * tests/unictype/test-ctype_digit.c: Likewise.
77934         * tests/unictype/test-ctype_graph.c: Likewise.
77935         * tests/unictype/test-ctype_lower.c: Likewise.
77936         * tests/unictype/test-ctype_print.c: Likewise.
77937         * tests/unictype/test-ctype_punct.c: Likewise.
77938         * tests/unictype/test-ctype_space.c: Likewise.
77939         * tests/unictype/test-ctype_upper.c: Likewise.
77940         * tests/unictype/test-ctype_xdigit.c: Likewise.
77941         * tests/unictype/test-decdigit.h: Likewise.
77942         * tests/unictype/test-digit.h: Likewise.
77943         * tests/unictype/test-numeric.h: Likewise.
77944         * tests/unictype/test-pr_alphabetic.c: Likewise.
77945         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
77946         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
77947         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
77948         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
77949         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
77950         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
77951         * tests/unictype/test-pr_bidi_control.c: Likewise.
77952         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
77953         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
77954         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
77955         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
77956         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
77957         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
77958         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
77959         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
77960         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
77961         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
77962         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
77963         * tests/unictype/test-pr_combining.c: Likewise.
77964         * tests/unictype/test-pr_composite.c: Likewise.
77965         * tests/unictype/test-pr_currency_symbol.c: Likewise.
77966         * tests/unictype/test-pr_dash.c: Likewise.
77967         * tests/unictype/test-pr_decimal_digit.c: Likewise.
77968         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
77969         * tests/unictype/test-pr_deprecated.c: Likewise.
77970         * tests/unictype/test-pr_diacritic.c: Likewise.
77971         * tests/unictype/test-pr_extender.c: Likewise.
77972         * tests/unictype/test-pr_format_control.c: Likewise.
77973         * tests/unictype/test-pr_grapheme_base.c: Likewise.
77974         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
77975         * tests/unictype/test-pr_grapheme_link.c: Likewise.
77976         * tests/unictype/test-pr_hex_digit.c: Likewise.
77977         * tests/unictype/test-pr_hyphen.c: Likewise.
77978         * tests/unictype/test-pr_id_continue.c: Likewise.
77979         * tests/unictype/test-pr_id_start.c: Likewise.
77980         * tests/unictype/test-pr_ideographic.c: Likewise.
77981         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
77982         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
77983         * tests/unictype/test-pr_ignorable_control.c: Likewise.
77984         * tests/unictype/test-pr_iso_control.c: Likewise.
77985         * tests/unictype/test-pr_join_control.c: Likewise.
77986         * tests/unictype/test-pr_left_of_pair.c: Likewise.
77987         * tests/unictype/test-pr_line_separator.c: Likewise.
77988         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
77989         * tests/unictype/test-pr_lowercase.c: Likewise.
77990         * tests/unictype/test-pr_math.c: Likewise.
77991         * tests/unictype/test-pr_non_break.c: Likewise.
77992         * tests/unictype/test-pr_not_a_character.c: Likewise.
77993         * tests/unictype/test-pr_numeric.c: Likewise.
77994         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
77995         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
77996         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
77997         * tests/unictype/test-pr_other_id_continue.c: Likewise.
77998         * tests/unictype/test-pr_other_id_start.c: Likewise.
77999         * tests/unictype/test-pr_other_lowercase.c: Likewise.
78000         * tests/unictype/test-pr_other_math.c: Likewise.
78001         * tests/unictype/test-pr_other_uppercase.c: Likewise.
78002         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
78003         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
78004         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
78005         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
78006         * tests/unictype/test-pr_private_use.c: Likewise.
78007         * tests/unictype/test-pr_punctuation.c: Likewise.
78008         * tests/unictype/test-pr_quotation_mark.c: Likewise.
78009         * tests/unictype/test-pr_radical.c: Likewise.
78010         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
78011         * tests/unictype/test-pr_soft_dotted.c: Likewise.
78012         * tests/unictype/test-pr_space.c: Likewise.
78013         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
78014         * tests/unictype/test-pr_titlecase.c: Likewise.
78015         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
78016         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
78017         * tests/unictype/test-pr_uppercase.c: Likewise.
78018         * tests/unictype/test-pr_variation_selector.c: Likewise.
78019         * tests/unictype/test-pr_white_space.c: Likewise.
78020         * tests/unictype/test-pr_xid_continue.c: Likewise.
78021         * tests/unictype/test-pr_xid_start.c: Likewise.
78022         * tests/unictype/test-pr_zero_width.c: Likewise.
78023         * tests/unictype/test-sy_c_whitespace.c: Likewise.
78024         * tests/unictype/test-sy_java_whitespace.c: Likewise.
78026 2007-11-12  Bruno Haible  <bruno@clisp.org>
78028         Unicode character classification functions.
78029         * lib/unictype.h: New file.
78030         * modules/unictype/base: New file.
78031         * modules/unictype/category-L: New file.
78032         * modules/unictype/category-Lu: New file.
78033         * modules/unictype/category-Ll: New file.
78034         * modules/unictype/category-Lt: New file.
78035         * modules/unictype/category-Lm: New file.
78036         * modules/unictype/category-Lo: New file.
78037         * modules/unictype/category-M: New file.
78038         * modules/unictype/category-Mn: New file.
78039         * modules/unictype/category-Mc: New file.
78040         * modules/unictype/category-Me: New file.
78041         * modules/unictype/category-N: New file.
78042         * modules/unictype/category-Nd: New file.
78043         * modules/unictype/category-Nl: New file.
78044         * modules/unictype/category-No: New file.
78045         * modules/unictype/category-P: New file.
78046         * modules/unictype/category-Pc: New file.
78047         * modules/unictype/category-Pd: New file.
78048         * modules/unictype/category-Ps: New file.
78049         * modules/unictype/category-Pe: New file.
78050         * modules/unictype/category-Pi: New file.
78051         * modules/unictype/category-Pf: New file.
78052         * modules/unictype/category-Po: New file.
78053         * modules/unictype/category-S: New file.
78054         * modules/unictype/category-Sm: New file.
78055         * modules/unictype/category-Sc: New file.
78056         * modules/unictype/category-Sk: New file.
78057         * modules/unictype/category-So: New file.
78058         * modules/unictype/category-Z: New file.
78059         * modules/unictype/category-Zs: New file.
78060         * modules/unictype/category-Zl: New file.
78061         * modules/unictype/category-Zp: New file.
78062         * modules/unictype/category-C: New file.
78063         * modules/unictype/category-Cc: New file.
78064         * modules/unictype/category-Cf: New file.
78065         * modules/unictype/category-Cs: New file.
78066         * modules/unictype/category-Co: New file.
78067         * modules/unictype/category-Cn: New file.
78068         * modules/unictype/category-or: New file.
78069         * modules/unictype/category-of: New file.
78070         * modules/unictype/category-test: New file.
78071         * modules/unictype/category-test-withtable: New file.
78072         * modules/unictype/category-byname: New file.
78073         * modules/unictype/category-none: New file.
78074         * modules/unictype/category-and: New file.
78075         * modules/unictype/category-and-not: New file.
78076         * modules/unictype/category-name: New file.
78077         * modules/unictype/combining-class: New file.
78078         * modules/unictype/category-all: New file.
78079         * modules/unictype/bidicategory-all: New file.
78080         * modules/unictype/bidicategory-byname: New file.
78081         * modules/unictype/bidicategory-name: New file.
78082         * modules/unictype/bidicategory-of: New file.
78083         * modules/unictype/bidicategory-test: New file.
78084         * modules/unictype/decimal-digit: New file.
78085         * modules/unictype/digit: New file.
78086         * modules/unictype/numeric: New file.
78087         * modules/unictype/mirror: New file.
78088         * modules/unictype/property-white-space: New file.
78089         * modules/unictype/property-alphabetic: New file.
78090         * modules/unictype/property-other-alphabetic: New file.
78091         * modules/unictype/property-not-a-character: New file.
78092         * modules/unictype/property-default-ignorable-code-point: New file.
78093         * modules/unictype/property-other-default-ignorable-code-point: New
78094         file.
78095         * modules/unictype/property-deprecated: New file.
78096         * modules/unictype/property-logical-order-exception: New file.
78097         * modules/unictype/property-variation-selector: New file.
78098         * modules/unictype/property-private-use: New file.
78099         * modules/unictype/property-unassigned-code-value: New file.
78100         * modules/unictype/property-uppercase: New file.
78101         * modules/unictype/property-other-uppercase: New file.
78102         * modules/unictype/property-lowercase: New file.
78103         * modules/unictype/property-other-lowercase: New file.
78104         * modules/unictype/property-titlecase: New file.
78105         * modules/unictype/property-soft-dotted: New file.
78106         * modules/unictype/property-id-start: New file.
78107         * modules/unictype/property-other-id-start: New file.
78108         * modules/unictype/property-id-continue: New file.
78109         * modules/unictype/property-other-id-continue: New file.
78110         * modules/unictype/property-xid-start: New file.
78111         * modules/unictype/property-xid-continue: New file.
78112         * modules/unictype/property-pattern-white-space: New file.
78113         * modules/unictype/property-pattern-syntax: New file.
78114         * modules/unictype/property-join-control: New file.
78115         * modules/unictype/property-grapheme-base: New file.
78116         * modules/unictype/property-grapheme-extend: New file.
78117         * modules/unictype/property-other-grapheme-extend: New file.
78118         * modules/unictype/property-grapheme-link: New file.
78119         * modules/unictype/property-bidi-control: New file.
78120         * modules/unictype/property-bidi-left-to-right: New file.
78121         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
78122         * modules/unictype/property-bidi-arabic-right-to-left: New file.
78123         * modules/unictype/property-bidi-european-digit: New file.
78124         * modules/unictype/property-bidi-eur-num-separator: New file.
78125         * modules/unictype/property-bidi-eur-num-terminator: New file.
78126         * modules/unictype/property-bidi-arabic-digit: New file.
78127         * modules/unictype/property-bidi-common-separator: New file.
78128         * modules/unictype/property-bidi-block-separator: New file.
78129         * modules/unictype/property-bidi-segment-separator: New file.
78130         * modules/unictype/property-bidi-whitespace: New file.
78131         * modules/unictype/property-bidi-non-spacing-mark: New file.
78132         * modules/unictype/property-bidi-boundary-neutral: New file.
78133         * modules/unictype/property-bidi-pdf: New file.
78134         * modules/unictype/property-bidi-embedding-or-override: New file.
78135         * modules/unictype/property-bidi-other-neutral: New file.
78136         * modules/unictype/property-hex-digit: New file.
78137         * modules/unictype/property-ascii-hex-digit: New file.
78138         * modules/unictype/property-ideographic: New file.
78139         * modules/unictype/property-unified-ideograph: New file.
78140         * modules/unictype/property-radical: New file.
78141         * modules/unictype/property-ids-binary-operator: New file.
78142         * modules/unictype/property-ids-trinary-operator: New file.
78143         * modules/unictype/property-zero-width: New file.
78144         * modules/unictype/property-space: New file.
78145         * modules/unictype/property-non-break: New file.
78146         * modules/unictype/property-iso-control: New file.
78147         * modules/unictype/property-format-control: New file.
78148         * modules/unictype/property-dash: New file.
78149         * modules/unictype/property-hyphen: New file.
78150         * modules/unictype/property-punctuation: New file.
78151         * modules/unictype/property-line-separator: New file.
78152         * modules/unictype/property-paragraph-separator: New file.
78153         * modules/unictype/property-quotation-mark: New file.
78154         * modules/unictype/property-sentence-terminal: New file.
78155         * modules/unictype/property-terminal-punctuation: New file.
78156         * modules/unictype/property-currency-symbol: New file.
78157         * modules/unictype/property-math: New file.
78158         * modules/unictype/property-other-math: New file.
78159         * modules/unictype/property-paired-punctuation: New file.
78160         * modules/unictype/property-left-of-pair: New file.
78161         * modules/unictype/property-combining: New file.
78162         * modules/unictype/property-composite: New file.
78163         * modules/unictype/property-decimal-digit: New file.
78164         * modules/unictype/property-numeric: New file.
78165         * modules/unictype/property-diacritic: New file.
78166         * modules/unictype/property-extender: New file.
78167         * modules/unictype/property-ignorable-control: New file.
78168         * modules/unictype/property-test: New file.
78169         * modules/unictype/property-byname: New file.
78170         * modules/unictype/property-all: New file.
78171         * modules/unictype/scripts: New file.
78172         * modules/unictype/scripts-all: New file.
78173         * modules/unictype/block-of: New file.
78174         * modules/unictype/block-test: New file.
78175         * modules/unictype/block-list: New file.
78176         * modules/unictype/block-all: New file.
78177         * modules/unictype/syntax-c-whitespace: New file.
78178         * modules/unictype/syntax-java-whitespace: New file.
78179         * modules/unictype/syntax-c-ident: New file.
78180         * modules/unictype/syntax-java-ident: New file.
78181         * modules/unictype/ctype-alnum: New file.
78182         * modules/unictype/ctype-alpha: New file.
78183         * modules/unictype/ctype-cntrl: New file.
78184         * modules/unictype/ctype-digit: New file.
78185         * modules/unictype/ctype-graph: New file.
78186         * modules/unictype/ctype-lower: New file.
78187         * modules/unictype/ctype-print: New file.
78188         * modules/unictype/ctype-punct: New file.
78189         * modules/unictype/ctype-space: New file.
78190         * modules/unictype/ctype-upper: New file.
78191         * modules/unictype/ctype-xdigit: New file.
78192         * modules/unictype/ctype-blank: New file.
78193         * lib/unictype/bidi_byname.c: New file.
78194         * lib/unictype/bidi_name.c: New file.
78195         * lib/unictype/bidi_of.c: New file.
78196         * lib/unictype/bidi_test.c: New file.
78197         * lib/unictype/bitmap.h: New file.
78198         * lib/unictype/block_test.c: New file.
78199         * lib/unictype/blocks.c: New file.
78200         * lib/unictype/categ_C.c: New file.
78201         * lib/unictype/categ_Cc.c: New file.
78202         * lib/unictype/categ_Cf.c: New file.
78203         * lib/unictype/categ_Cn.c: New file.
78204         * lib/unictype/categ_Co.c: New file.
78205         * lib/unictype/categ_Cs.c: New file.
78206         * lib/unictype/categ_L.c: New file.
78207         * lib/unictype/categ_Ll.c: New file.
78208         * lib/unictype/categ_Lm.c: New file.
78209         * lib/unictype/categ_Lo.c: New file.
78210         * lib/unictype/categ_Lt.c: New file.
78211         * lib/unictype/categ_Lu.c: New file.
78212         * lib/unictype/categ_M.c: New file.
78213         * lib/unictype/categ_Mc.c: New file.
78214         * lib/unictype/categ_Me.c: New file.
78215         * lib/unictype/categ_Mn.c: New file.
78216         * lib/unictype/categ_N.c: New file.
78217         * lib/unictype/categ_Nd.c: New file.
78218         * lib/unictype/categ_Nl.c: New file.
78219         * lib/unictype/categ_No.c: New file.
78220         * lib/unictype/categ_P.c: New file.
78221         * lib/unictype/categ_Pc.c: New file.
78222         * lib/unictype/categ_Pd.c: New file.
78223         * lib/unictype/categ_Pe.c: New file.
78224         * lib/unictype/categ_Pf.c: New file.
78225         * lib/unictype/categ_Pi.c: New file.
78226         * lib/unictype/categ_Po.c: New file.
78227         * lib/unictype/categ_Ps.c: New file.
78228         * lib/unictype/categ_S.c: New file.
78229         * lib/unictype/categ_Sc.c: New file.
78230         * lib/unictype/categ_Sk.c: New file.
78231         * lib/unictype/categ_Sm.c: New file.
78232         * lib/unictype/categ_So.c: New file.
78233         * lib/unictype/categ_Z.c: New file.
78234         * lib/unictype/categ_Zl.c: New file.
78235         * lib/unictype/categ_Zp.c: New file.
78236         * lib/unictype/categ_Zs.c: New file.
78237         * lib/unictype/categ_and.c: New file.
78238         * lib/unictype/categ_and_not.c: New file.
78239         * lib/unictype/categ_byname.c: New file.
78240         * lib/unictype/categ_name.c: New file.
78241         * lib/unictype/categ_none.c: New file.
78242         * lib/unictype/categ_of.c: New file.
78243         * lib/unictype/categ_or.c: New file.
78244         * lib/unictype/categ_test.c: New file.
78245         * lib/unictype/combining.c: New file.
78246         * lib/unictype/ctype_alnum.c: New file.
78247         * lib/unictype/ctype_alpha.c: New file.
78248         * lib/unictype/ctype_blank.c: New file.
78249         * lib/unictype/ctype_cntrl.c: New file.
78250         * lib/unictype/ctype_digit.c: New file.
78251         * lib/unictype/ctype_graph.c: New file.
78252         * lib/unictype/ctype_lower.c: New file.
78253         * lib/unictype/ctype_print.c: New file.
78254         * lib/unictype/ctype_punct.c: New file.
78255         * lib/unictype/ctype_space.c: New file.
78256         * lib/unictype/ctype_upper.c: New file.
78257         * lib/unictype/ctype_xdigit.c: New file.
78258         * lib/unictype/decdigit.c: New file.
78259         * lib/unictype/digit.c: New file.
78260         * lib/unictype/identsyntaxmap.h: New file.
78261         * lib/unictype/mirror.c: New file.
78262         * lib/unictype/numeric.c: New file.
78263         * lib/unictype/pr_alphabetic.c: New file.
78264         * lib/unictype/pr_ascii_hex_digit.c: New file.
78265         * lib/unictype/pr_bidi_arabic_digit.c: New file.
78266         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
78267         * lib/unictype/pr_bidi_block_separator.c: New file.
78268         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
78269         * lib/unictype/pr_bidi_common_separator.c: New file.
78270         * lib/unictype/pr_bidi_control.c: New file.
78271         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
78272         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
78273         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
78274         * lib/unictype/pr_bidi_european_digit.c: New file.
78275         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
78276         * lib/unictype/pr_bidi_left_to_right.c: New file.
78277         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
78278         * lib/unictype/pr_bidi_other_neutral.c: New file.
78279         * lib/unictype/pr_bidi_pdf.c: New file.
78280         * lib/unictype/pr_bidi_segment_separator.c: New file.
78281         * lib/unictype/pr_bidi_whitespace.c: New file.
78282         * lib/unictype/pr_byname.c: New file.
78283         * lib/unictype/pr_byname.gperf: New file.
78284         * lib/unictype/pr_combining.c: New file.
78285         * lib/unictype/pr_composite.c: New file.
78286         * lib/unictype/pr_currency_symbol.c: New file.
78287         * lib/unictype/pr_dash.c: New file.
78288         * lib/unictype/pr_decimal_digit.c: New file.
78289         * lib/unictype/pr_default_ignorable_code_point.c: New file.
78290         * lib/unictype/pr_deprecated.c: New file.
78291         * lib/unictype/pr_diacritic.c: New file.
78292         * lib/unictype/pr_extender.c: New file.
78293         * lib/unictype/pr_format_control.c: New file.
78294         * lib/unictype/pr_grapheme_base.c: New file.
78295         * lib/unictype/pr_grapheme_extend.c: New file.
78296         * lib/unictype/pr_grapheme_link.c: New file.
78297         * lib/unictype/pr_hex_digit.c: New file.
78298         * lib/unictype/pr_hyphen.c: New file.
78299         * lib/unictype/pr_id_continue.c: New file.
78300         * lib/unictype/pr_id_start.c: New file.
78301         * lib/unictype/pr_ideographic.c: New file.
78302         * lib/unictype/pr_ids_binary_operator.c: New file.
78303         * lib/unictype/pr_ids_trinary_operator.c: New file.
78304         * lib/unictype/pr_ignorable_control.c: New file.
78305         * lib/unictype/pr_iso_control.c: New file.
78306         * lib/unictype/pr_join_control.c: New file.
78307         * lib/unictype/pr_left_of_pair.c: New file.
78308         * lib/unictype/pr_line_separator.c: New file.
78309         * lib/unictype/pr_logical_order_exception.c: New file.
78310         * lib/unictype/pr_lowercase.c: New file.
78311         * lib/unictype/pr_math.c: New file.
78312         * lib/unictype/pr_non_break.c: New file.
78313         * lib/unictype/pr_not_a_character.c: New file.
78314         * lib/unictype/pr_numeric.c: New file.
78315         * lib/unictype/pr_other_alphabetic.c: New file.
78316         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
78317         * lib/unictype/pr_other_grapheme_extend.c: New file.
78318         * lib/unictype/pr_other_id_continue.c: New file.
78319         * lib/unictype/pr_other_id_start.c: New file.
78320         * lib/unictype/pr_other_lowercase.c: New file.
78321         * lib/unictype/pr_other_math.c: New file.
78322         * lib/unictype/pr_other_uppercase.c: New file.
78323         * lib/unictype/pr_paired_punctuation.c: New file.
78324         * lib/unictype/pr_paragraph_separator.c: New file.
78325         * lib/unictype/pr_pattern_syntax.c: New file.
78326         * lib/unictype/pr_pattern_white_space.c: New file.
78327         * lib/unictype/pr_private_use.c: New file.
78328         * lib/unictype/pr_punctuation.c: New file.
78329         * lib/unictype/pr_quotation_mark.c: New file.
78330         * lib/unictype/pr_radical.c: New file.
78331         * lib/unictype/pr_sentence_terminal.c: New file.
78332         * lib/unictype/pr_soft_dotted.c: New file.
78333         * lib/unictype/pr_space.c: New file.
78334         * lib/unictype/pr_terminal_punctuation.c: New file.
78335         * lib/unictype/pr_test.c: New file.
78336         * lib/unictype/pr_titlecase.c: New file.
78337         * lib/unictype/pr_unassigned_code_value.c: New file.
78338         * lib/unictype/pr_unified_ideograph.c: New file.
78339         * lib/unictype/pr_uppercase.c: New file.
78340         * lib/unictype/pr_variation_selector.c: New file.
78341         * lib/unictype/pr_white_space.c: New file.
78342         * lib/unictype/pr_xid_continue.c: New file.
78343         * lib/unictype/pr_xid_start.c: New file.
78344         * lib/unictype/pr_zero_width.c: New file.
78345         * lib/unictype/scripts.c: New file.
78346         * lib/unictype/sy_c_ident.c: New file.
78347         * lib/unictype/sy_c_whitespace.c: New file.
78348         * lib/unictype/sy_java_ident.c: New file.
78349         * lib/unictype/sy_java_whitespace.c: New file.
78351         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
78352         Unicode 5.0.0.
78353         * lib/unictype/blocks.h: Likewise.
78354         * lib/unictype/categ_C.h: Likewise.
78355         * lib/unictype/categ_Cc.h: Likewise.
78356         * lib/unictype/categ_Cf.h: Likewise.
78357         * lib/unictype/categ_Cn.h: Likewise.
78358         * lib/unictype/categ_Co.h: Likewise.
78359         * lib/unictype/categ_Cs.h: Likewise.
78360         * lib/unictype/categ_L.h: Likewise.
78361         * lib/unictype/categ_Ll.h: Likewise.
78362         * lib/unictype/categ_Lm.h: Likewise.
78363         * lib/unictype/categ_Lo.h: Likewise.
78364         * lib/unictype/categ_Lt.h: Likewise.
78365         * lib/unictype/categ_Lu.h: Likewise.
78366         * lib/unictype/categ_M.h: Likewise.
78367         * lib/unictype/categ_Mc.h: Likewise.
78368         * lib/unictype/categ_Me.h: Likewise.
78369         * lib/unictype/categ_Mn.h: Likewise.
78370         * lib/unictype/categ_N.h: Likewise.
78371         * lib/unictype/categ_Nd.h: Likewise.
78372         * lib/unictype/categ_Nl.h: Likewise.
78373         * lib/unictype/categ_No.h: Likewise.
78374         * lib/unictype/categ_P.h: Likewise.
78375         * lib/unictype/categ_Pc.h: Likewise.
78376         * lib/unictype/categ_Pd.h: Likewise.
78377         * lib/unictype/categ_Pe.h: Likewise.
78378         * lib/unictype/categ_Pf.h: Likewise.
78379         * lib/unictype/categ_Pi.h: Likewise.
78380         * lib/unictype/categ_Po.h: Likewise.
78381         * lib/unictype/categ_Ps.h: Likewise.
78382         * lib/unictype/categ_S.h: Likewise.
78383         * lib/unictype/categ_Sc.h: Likewise.
78384         * lib/unictype/categ_Sk.h: Likewise.
78385         * lib/unictype/categ_Sm.h: Likewise.
78386         * lib/unictype/categ_So.h: Likewise.
78387         * lib/unictype/categ_Z.h: Likewise.
78388         * lib/unictype/categ_Zl.h: Likewise.
78389         * lib/unictype/categ_Zp.h: Likewise.
78390         * lib/unictype/categ_Zs.h: Likewise.
78391         * lib/unictype/categ_of.h: Likewise.
78392         * lib/unictype/combining.h: Likewise.
78393         * lib/unictype/ctype_alnum.h: Likewise.
78394         * lib/unictype/ctype_alpha.h: Likewise.
78395         * lib/unictype/ctype_blank.h: Likewise.
78396         * lib/unictype/ctype_cntrl.h: Likewise.
78397         * lib/unictype/ctype_digit.h: Likewise.
78398         * lib/unictype/ctype_graph.h: Likewise.
78399         * lib/unictype/ctype_lower.h: Likewise.
78400         * lib/unictype/ctype_print.h: Likewise.
78401         * lib/unictype/ctype_punct.h: Likewise.
78402         * lib/unictype/ctype_space.h: Likewise.
78403         * lib/unictype/ctype_upper.h: Likewise.
78404         * lib/unictype/ctype_xdigit.h: Likewise.
78405         * lib/unictype/decdigit.h: Likewise.
78406         * lib/unictype/digit.h: Likewise.
78407         * lib/unictype/mirror.h: Likewise.
78408         * lib/unictype/numeric.h: Likewise.
78409         * lib/unictype/pr_alphabetic.h: Likewise.
78410         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
78411         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
78412         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
78413         * lib/unictype/pr_bidi_block_separator.h: Likewise.
78414         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
78415         * lib/unictype/pr_bidi_common_separator.h: Likewise.
78416         * lib/unictype/pr_bidi_control.h: Likewise.
78417         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
78418         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
78419         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
78420         * lib/unictype/pr_bidi_european_digit.h: Likewise.
78421         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
78422         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
78423         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
78424         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
78425         * lib/unictype/pr_bidi_pdf.h: Likewise.
78426         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
78427         * lib/unictype/pr_bidi_whitespace.h: Likewise.
78428         * lib/unictype/pr_combining.h: Likewise.
78429         * lib/unictype/pr_composite.h: Likewise.
78430         * lib/unictype/pr_currency_symbol.h: Likewise.
78431         * lib/unictype/pr_dash.h: Likewise.
78432         * lib/unictype/pr_decimal_digit.h: Likewise.
78433         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
78434         * lib/unictype/pr_deprecated.h: Likewise.
78435         * lib/unictype/pr_diacritic.h: Likewise.
78436         * lib/unictype/pr_extender.h: Likewise.
78437         * lib/unictype/pr_format_control.h: Likewise.
78438         * lib/unictype/pr_grapheme_base.h: Likewise.
78439         * lib/unictype/pr_grapheme_extend.h: Likewise.
78440         * lib/unictype/pr_grapheme_link.h: Likewise.
78441         * lib/unictype/pr_hex_digit.h: Likewise.
78442         * lib/unictype/pr_hyphen.h: Likewise.
78443         * lib/unictype/pr_id_continue.h: Likewise.
78444         * lib/unictype/pr_id_start.h: Likewise.
78445         * lib/unictype/pr_ideographic.h: Likewise.
78446         * lib/unictype/pr_ids_binary_operator.h: Likewise.
78447         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
78448         * lib/unictype/pr_ignorable_control.h: Likewise.
78449         * lib/unictype/pr_iso_control.h: Likewise.
78450         * lib/unictype/pr_join_control.h: Likewise.
78451         * lib/unictype/pr_left_of_pair.h: Likewise.
78452         * lib/unictype/pr_line_separator.h: Likewise.
78453         * lib/unictype/pr_logical_order_exception.h: Likewise.
78454         * lib/unictype/pr_lowercase.h: Likewise.
78455         * lib/unictype/pr_math.h: Likewise.
78456         * lib/unictype/pr_non_break.h: Likewise.
78457         * lib/unictype/pr_not_a_character.h: Likewise.
78458         * lib/unictype/pr_numeric.h: Likewise.
78459         * lib/unictype/pr_other_alphabetic.h: Likewise.
78460         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
78461         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
78462         * lib/unictype/pr_other_id_continue.h: Likewise.
78463         * lib/unictype/pr_other_id_start.h: Likewise.
78464         * lib/unictype/pr_other_lowercase.h: Likewise.
78465         * lib/unictype/pr_other_math.h: Likewise.
78466         * lib/unictype/pr_other_uppercase.h: Likewise.
78467         * lib/unictype/pr_paired_punctuation.h: Likewise.
78468         * lib/unictype/pr_paragraph_separator.h: Likewise.
78469         * lib/unictype/pr_pattern_syntax.h: Likewise.
78470         * lib/unictype/pr_pattern_white_space.h: Likewise.
78471         * lib/unictype/pr_private_use.h: Likewise.
78472         * lib/unictype/pr_punctuation.h: Likewise.
78473         * lib/unictype/pr_quotation_mark.h: Likewise.
78474         * lib/unictype/pr_radical.h: Likewise.
78475         * lib/unictype/pr_sentence_terminal.h: Likewise.
78476         * lib/unictype/pr_soft_dotted.h: Likewise.
78477         * lib/unictype/pr_space.h: Likewise.
78478         * lib/unictype/pr_terminal_punctuation.h: Likewise.
78479         * lib/unictype/pr_titlecase.h: Likewise.
78480         * lib/unictype/pr_unassigned_code_value.h: Likewise.
78481         * lib/unictype/pr_unified_ideograph.h: Likewise.
78482         * lib/unictype/pr_uppercase.h: Likewise.
78483         * lib/unictype/pr_variation_selector.h: Likewise.
78484         * lib/unictype/pr_white_space.h: Likewise.
78485         * lib/unictype/pr_xid_continue.h: Likewise.
78486         * lib/unictype/pr_xid_start.h: Likewise.
78487         * lib/unictype/pr_zero_width.h: Likewise.
78488         * lib/unictype/scripts.h: Likewise.
78489         * lib/unictype/scripts_byname.gperf: Likewise.
78490         * lib/unictype/sy_c_ident.h: Likewise.
78491         * lib/unictype/sy_c_whitespace.h: Likewise.
78492         * lib/unictype/sy_java_ident.h: Likewise.
78493         * lib/unictype/sy_java_whitespace.h: Likewise.
78495         * lib/unictype/Makefile: New file.
78496         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
78497         glibc.
78498         * lib/unictype/3level.h: New file, copied from glibc.
78499         * lib/unictype/3levelbit.h: New file.
78501 2007-11-11  Bruno Haible  <bruno@clisp.org>
78503         * modules/gperf: New file.
78504         * modules/iconv_open (Depends-on): Add it.
78505         (Makefile.am): Remove the GPERF definition.
78507 2007-11-11  Bruno Haible  <bruno@clisp.org>
78509         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
78510         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
78512 2007-11-11  Bruno Haible  <bruno@clisp.org>
78514         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
78515         (usage): Remove function.
78517 2007-11-11  Bruno Haible  <bruno@clisp.org>
78519         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
78520         gl_FUNC_CEILF_LIBS.
78521         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
78522         gl_FUNC_CEIL_LIBS.
78523         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
78524         gl_FUNC_CEILL_LIBS.
78525         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
78526         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
78527         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
78529 2007-11-11  Bruno Haible  <bruno@clisp.org>
78531         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
78532         roundf were declared but do not exist on functions.
78533         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
78534         roundl were declared but do not exist on functions.
78535         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
78536         HAVE_FLOORL_AND_CEILL, respectively.
78537         Needed for Sun C on Solaris 10.
78539 2007-11-11  Bruno Haible  <bruno@clisp.org>
78541         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
78542         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
78543         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
78544         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
78545         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
78546         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
78547         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
78548         HAVE_DECL_ROUNDF.
78549         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
78550         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
78551         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
78552         of HAVE_DECL_ROUND*.
78553         * modules/math (Makefile.am): Update.
78555 2007-11-10  Bruno Haible  <bruno@clisp.org>
78557         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
78558         ptrdiff_t as m4/intl.m4.
78560 2007-11-10  Jim Meyering  <meyering@redhat.com>
78562         Avoid link failure for the argmatch test.
78563         * tests/test-argmatch.c (usage): Define function to avoid a link
78564         failure: argmatch_die requires a usage function.
78566 2007-11-09  Bruno Haible  <bruno@clisp.org>
78568         * doc/functions/snprintf.texi: Mention BeOS deficiency.
78569         * doc/functions/vsnprintf.texi: Likewise.
78570         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
78571         with a size argument < 2.
78573 2007-11-09  Bruno Haible  <bruno@clisp.org>
78575         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
78576         buffer. Fixes an inefficiency introduced on 2007-11-03.
78578 2007-11-09  Bruno Haible  <bruno@clisp.org>
78580         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
78581         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
78583 2007-11-08  Jim Meyering  <meyering@redhat.com>
78585         Change cache variable name prefix "jm_" to "gl_" everywhere.
78586         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
78587         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
78588         * m4/uptime.m4: s/gl_/jm_/
78590 2007-11-07  Bruno Haible  <bruno@clisp.org>
78592         Update to GNU gettext 0.17.
78593         * m4/intl.m4: Update to GNU gettext 0.17.
78594         * m4/po.m4: Likewise.
78595         * modules/gettext (Files): Remove m4/ulonglong.m4.
78596         (configure.ac): Require gettext infrastructure from version 0.17.
78598 2007-11-06  Bruno Haible  <bruno@clisp.org>
78600         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
78601         symbolic values are not defined in a public header.
78602         * lib/freadable.c (freadable) [QNX]: Likewise.
78603         * lib/freadahead.c (freadahead) [QNX]: Likewise.
78604         * lib/freading.c (freading) [QNX]: Likewise.
78605         * lib/fseterr.c (fseterr) [QNX]: Likewise.
78606         * lib/fwritable.c (fwritable) [QNX]: Likewise.
78607         * lib/fwriting.c (fwriting) [QNX]: Likewise.
78608         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
78609         Reported by Alain Magloire.
78611         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
78613 2007-11-05  Bruno Haible  <bruno@clisp.org>
78615         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
78616         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
78617         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
78618         Reported by Eric Blake.
78620 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78621             Bruno Haible  <bruno@clisp.org>
78623         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
78624         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
78625         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
78626         (malloc): Undefine also before including <stdlib.h>.
78627         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
78628         Needed on OSF/1 4.0.
78630 2007-11-05  Jim Meyering  <meyering@redhat.com>
78632         git-version-gen: sync from coreutils.
78633         * build-aux/git-version-gen: Add comments.
78634         Change the first '-' to '.' in the snapshot version string,
78635         e.g., 6.9-377-08144 -> 6.9.377-08144
78636         Remove first parameter.
78637         Don't declare a version "-dirty" merely because a time
78638         stamp has changed.
78640 2007-11-04  Bruno Haible  <bruno@clisp.org>
78642         * lib/lock.h: Protect all macro definitions containing an 'if'
78643         statement through a "do { ... } while (0)".
78644         * lib/tls.h: Likewise.
78646 2007-11-04  Bruno Haible  <bruno@clisp.org>
78648         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
78650 2007-11-04  Bruno Haible  <bruno@clisp.org>
78652         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
78653         * modules/fprintf-posix (Depends-on): Add nocrash.
78654         * modules/snprintf-posix (Depends-on): Likewise.
78655         * modules/sprintf-posix (Depends-on): Likewise.
78656         * modules/vasnprintf-posix (Depends-on): Likewise.
78657         * modules/vasprintf-posix (Depends-on): Likewise.
78658         * modules/vfprintf-posix (Depends-on): Likewise.
78659         * modules/vsnprintf-posix (Depends-on): Likewise.
78660         * modules/vsprintf-posix (Depends-on): Likewise.
78661         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
78662         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
78663         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
78664         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
78665         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
78666         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
78667         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
78669 2007-11-04  Bruno Haible  <bruno@clisp.org>
78671         * modules/nocrash: New file.
78672         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
78673         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
78675 2007-11-04  Bruno Haible  <bruno@clisp.org>
78677         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
78678         precision handling.
78679         * tests/test-vasprintf-posix.c (test_function): Likewise.
78680         * tests/test-snprintf-posix.h (test_function): Likewise.
78681         * tests/test-sprintf-posix.h (test_function): Likewise.
78683         Fix *printf behaviour for large precisions on mingw and BeOS.
78684         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
78685         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
78686         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
78687         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
78688         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
78689         gl_PRINTF_PRECISION and test its result. Invoke
78690         gl_PREREQ_VASNPRINTF_PRECISION.
78691         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
78692         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
78693         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
78694         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
78695         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
78696         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
78697         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
78698         * doc/functions/fprintf.texi: Update.
78699         * doc/functions/printf.texi: Update.
78700         * doc/functions/snprintf.texi: Update.
78701         * doc/functions/sprintf.texi: Update.
78702         * doc/functions/vfprintf.texi: Update.
78703         * doc/functions/vprintf.texi: Update.
78704         * doc/functions/vsnprintf.texi: Update.
78705         * doc/functions/vsprintf.texi: Update.
78707 2007-11-04  Bruno Haible  <bruno@clisp.org>
78709         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
78711 2007-11-04  Bruno Haible  <bruno@clisp.org>
78713         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
78714         Reported by Sylvain Beucler <beuc@gnu.org>.
78716 2007-11-03  Bruno Haible  <bruno@clisp.org>
78718         * tests/test-fprintf-posix2.sh: New file.
78719         * tests/test-fprintf-posix2.c: New file.
78720         * modules/fprintf-posix-tests (Files): Add them.
78721         (TESTS): Add test-fprintf-posix2.sh.
78722         (configure.ac): Check for getrlimit and setrlimit.
78723         (check_PROGRAMS): Add test-fprintf-posix2.
78725         * tests/test-printf-posix2.sh: New file.
78726         * tests/test-printf-posix2.c: New file.
78727         * modules/printf-posix-tests (Files): Add them.
78728         (TESTS): Add test-printf-posix2.sh.
78729         (configure.ac): Check for getrlimit and setrlimit.
78730         (check_PROGRAMS): Add test-printf-posix2.
78732         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
78733         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
78734         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
78735         (decode_double): New function, copied from decode_long_double.
78736         (scale10_round_decimal_decoded): New function, extracted from
78737         scale10_round_decimal_long_double.
78738         (scale10_round_decimal_long_double): Use it.
78739         (scale10_round_decimal_double): New function.
78740         (floorlog10): New function.
78741         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
78742         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
78743         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
78744         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
78745         gl_PRINTF_ENOMEM and test its result. Invoke
78746         gl_PREREQ_VASNPRINTF_ENOMEM.
78747         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
78748         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
78749         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
78750         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
78751         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
78752         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
78753         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
78754         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
78755         * modules/snprintf-posix (Depends-on): Likewise.
78756         * modules/sprintf-posix (Depends-on): Likewise.
78757         * modules/vasnprintf-posix (Depends-on): Likewise.
78758         * modules/vasprintf-posix (Depends-on): Likewise.
78759         * modules/vfprintf-posix (Depends-on): Likewise.
78760         * modules/vsnprintf-posix (Depends-on): Likewise.
78761         * modules/vsprintf-posix (Depends-on): Likewise.
78762         * doc/functions/fprintf.texi: Update.
78763         * doc/functions/printf.texi: Update.
78764         * doc/functions/snprintf.texi: Update.
78765         * doc/functions/sprintf.texi: Update.
78766         * doc/functions/vfprintf.texi: Update.
78767         * doc/functions/vprintf.texi: Update.
78768         * doc/functions/vsnprintf.texi: Update.
78769         * doc/functions/vsprintf.texi: Update.
78771 2007-11-03  Bruno Haible  <bruno@clisp.org>
78773         * modules/frexp-nolibm-tests: New file.
78775         * modules/frexp-nolibm: New file.
78776         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
78778 2007-11-03  Bruno Haible  <bruno@clisp.org>
78780         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
78781         value is C99 compliant.
78782         Needed for OSF/1 5.1.
78784 2007-11-03  Bruno Haible  <bruno@clisp.org>
78786         Fix out-of-memory handling of vasnprintf.
78787         * lib/printf-parse.c: Include <errno.h>.
78788         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
78789         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
78790         is already set.
78792 2007-11-02  Eric Blake  <ebb9@byu.net>
78794         Fix tests on cygwin.
78795         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
78797 2007-11-01  Bruno Haible  <bruno@clisp.org>
78799         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
78800         warning.
78801         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
78802         needed for POSIX compatibility.
78804 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
78806         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
78807         for compatibility with GNU.
78809 2007-11-01  Bruno Haible  <bruno@clisp.org>
78811         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
78812         (putenv): Renamed from rpl_putenv. Change argument type from
78813         'const char *' to 'char *'.
78814         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
78815         of defining putenv in config.h, just set REPLACE_PUTENV.
78816         * modules/putenv (Depends-on): Add stdlib.
78817         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
78818         (Include): Use <stdlib.h>.
78819         * lib/stdlib.in.h (putenv): New declaration.
78820         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
78821         REPLACE_PUTENV.
78822         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
78823         REPLACE_PUTENV.
78824         Needed for MacOS X 10.5.0.
78825         Reported by Peter O'Gorman <peter@pogma.com>.
78827 2007-11-01  Jim Meyering  <meyering@redhat.com>
78829         Treat an empty date string exactly like "0".
78830         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
78831         if the remaining date string (to be parsed) is empty, use "0".
78832         Reported by Mischa Molhoek and discussed in this thread:
78833         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
78835 2007-10-31  Bruno Haible  <bruno@clisp.org>
78837         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
78838         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
78839         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
78840         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
78841         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
78842         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
78844 2007-10-31  Bruno Haible  <bruno@clisp.org>
78846         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
78847         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
78848         (AC_TYPE_LONG_LONG_INT): Use it.
78849         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
78850         it as well.
78851         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
78852         to m4/longlong.m4.
78853         * modules/stdint (Files): Remove m4/ulonglong.m4.
78854         * modules/strtoull (Files): Use m4/longlong.m4 instead of
78855         m4/ulonglong.m4.
78856         * modules/strtoumax (Files): Likewise.
78858 2007-10-30  Bruno Haible  <bruno@clisp.org>
78860         * modules/xvasprintf-posix: New file.
78861         Suggested by Eric Blake.
78863 2007-10-30  Bruno Haible  <bruno@clisp.org>
78865         * modules/xprintf-posix-tests: New file.
78866         * tests/test-xprintf-posix.sh: New file.
78867         * tests/test-xprintf-posix.c: New file.
78868         * tests/test-xfprintf-posix.c: New file.
78870         * modules/xprintf-posix: New file.
78872 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78874         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
78875         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
78876         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
78878 2007-10-29  Bruno Haible  <bruno@clisp.org>
78880         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
78881         contain the special marker '_cv_'.
78882         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
78883         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
78884         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
78885         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
78886         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
78887         Reported by Ralf Wildenhues.
78889 2007-10-29  Bruno Haible  <bruno@clisp.org>
78891         * gnulib-tool (func_import): When --lgpl is not specified, set
78892         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
78893         GPLv3.
78894         Reported by Simon Josefsson.
78896 2007-10-28  Bruno Haible  <bruno@clisp.org>
78898         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
78899         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
78900         HAVE_DECL_ISFINITE.
78901         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
78902         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
78903         HAVE_DECL_ISFINITE.
78905 2007-10-28  Bruno Haible  <bruno@clisp.org>
78907         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
78908         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
78910 2007-10-28  Bruno Haible  <bruno@clisp.org>
78912         Fix link errors with Sun C 5.0 on Solaris 10.
78913         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
78914         function is declared but not present in the compiler's libm.
78915         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
78916         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
78917         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
78918         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
78919         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
78920         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
78921         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
78922         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
78923         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
78924         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
78925         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
78926         HAVE_DECL_FLOORL.
78928 2007-10-28  Bruno Haible  <bruno@clisp.org>
78930         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
78931         gl_FUNC_FLOORL. Cache the result.
78932         (gl_FUNC_FLOORL): Use it.
78933         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
78934         gl_FUNC_CEILL. Cache the result.
78935         (gl_FUNC_CEILL): Use it.
78937         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
78938         gl_FUNC_FLOOR. Cache the result.
78939         (gl_FUNC_FLOOR): Use it.
78940         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
78941         gl_FUNC_CEIL. Cache the result.
78942         (gl_FUNC_CEIL): Use it.
78944         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
78945         gl_FUNC_FLOORF. Cache the result.
78946         (gl_FUNC_FLOORF): Use it.
78947         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
78948         gl_FUNC_CEILF. Cache the result.
78949         (gl_FUNC_CEILF): Use it.
78951 2007-10-28  Bruno Haible  <bruno@clisp.org>
78953         * gnulib-tool: Allow specifying the LGPL version number through
78954         --lgpl=2 or --lgpl=3.
78955         (func_usage): Document --lgpl with argument.
78956         Handle --lgpl=... arguments.
78957         (func_import): Recognize also gl_LGPL calls with an argument. When
78958         --lgpl=2 is used and the module's license is just LGPL, report an
78959         error. Set sed_transform_lib_file according to the lgpl variable. In
78960         the generated files, use --lgpl or gl_LGPL invocations with argument,
78961         if necessary.
78962         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
78963         an LGPv2+ license.
78964         * doc/gnulib-tool.texi (Modified imports): Update explanation of
78965         gl_LGPL macro.
78967 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78968             Bruno Haible  <bruno@clisp.org>
78970         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
78971         (u16_uctomb_aux): Likewise.
78972         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
78973         !HAVE_INLINE.
78974         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
78976 2007-10-28  Bruno Haible  <bruno@clisp.org>
78978         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
78979         Invoke AM_GETTEXT_OPTION if it exists.
78980         * modules/vasprintf: Likewise.
78981         * modules/verror: Likewise.
78982         * modules/xprintf: Likewise.
78983         * modules/xvasprintf: Likewise.
78985 2007-10-27  Ben Pfaff  <blp@gnu.org>
78987         * lib/math.in.h: Define isfinite macro and prototypes for
78988         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
78989         implementations.
78990         * m4/math_h.m4: New substitutions for isfinite module.
78991         * lib/isfinite.c: New file.
78992         * m4/isfinite.m4: New file.
78993         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
78994         * modules/isfinite: New file.
78995         * modules/isfinite-tests: New file.
78996         * tests/tests-isfinite.c: New file.
78997         * doc/functions/isfinite.texi: Mention isfinite module.
78998         * MODULES.html.sh: Mention new module.
79000 2007-10-27  Ben Pfaff  <blp@gnu.org>
79002         Ralf Wildenhues reported that Tru64 4.0D declares the round
79003         functions but does not have definitions.
79004         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
79005         cannot be found in any library, set the output variable to
79006         "missing" instead of "".
79007         * m4/round.m4: Also use our substitute if we cannot find round in
79008         any library, even if it is declared.
79009         * m4/roundf.m4: Likewise for roundf.
79010         * m4/roundl.m4: Likewise for roundl.
79011         * lib/math.in.h: Undefine roundf, round, roundl before defining
79012         their replacements, to allow for hypothetical systems where these
79013         may be defined as macros but not available in libraries.
79015 2007-10-27  Bruno Haible  <bruno@clisp.org>
79017         * doc/gnulib.texi: Invoke @firstparagraphindent.
79018         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
79019         changes in gnulib.
79020         (Source changes): New section.
79022 2007-10-26  Bruno Haible  <bruno@clisp.org>
79024         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
79025         borrowed from autoconf.
79027 2007-10-26  Bruno Haible  <bruno@clisp.org>
79029         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
79030         strerror returned the empty string. Needed on HP-UX 11.00.
79032 2007-10-24  Micah Cowan  <micah@cowan.name>
79034         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
79035         * build-aux/bootstrap: Remove support for now-unnecessary option,
79036         --cvs-user, and envvars CVS_USER, CVS_RSH.
79038 2007-10-24  Jim Meyering  <meyering@redhat.com>
79040         Avoid diagnostics from sha1sum when there is no cached checksum.
79041         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
79042         if the po.s1 file hasn't been created yet.
79044         * build-aux/bootstrap: Sync from coreutils:
79045         2007-10-24  Jim Meyering  <meyering@redhat.com>
79046         Get gnulib from the git repository, not from an obsolete cvs one.
79047         * build-aux/bootstrap: Suggestion from Micah Cowan.
79048         2007-10-04  Jim Meyering  <jim@meyering.net>
79049         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
79050         (update_po_files): Work also when there are no .po files in po/.
79052 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79054         * README: Append ".git" to git and cg examples.
79055         Problem reported by Benoit Sigoure.
79057 2007-10-23  Micah Cowan  <micah@cowan.name>
79059         * users.txt: Add wget.
79061 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79063         Fix linking of some unistdio tests on FreeBSD.
79064         * modules/unistdio/u16-vsnprintf-tests
79065         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
79066         * modules/unistdio/u16-vsprintf-tests
79067         (test_u16_vsnprintf1_LDADD): Likewise.
79068         * modules/unistdio/u32-vsnprintf-tests
79069         (test_u32_vsnprintf1_LDADD): Likewise.
79070         * modules/unistdio/u32-vsprintf-tests
79071         (test_u32_vsprintf1_LDADD): Likewise.
79072         * modules/unistdio/u8-vsnprintf-tests
79073         (test_u8_vsnprintf1_LDADD): Likewise.
79074         * modules/unistdio/u8-vsprintf-tests
79075         (test_u8_vsprintf1_LDADD): Likewise.
79076         * modules/unistdio/ulc-vsnprintf-tests
79077         (test_ulc_vsnprintf1_LDADD): Likewise.
79078         * modules/unistdio/ulc-vsprintf-tests
79079         (test_ulc_vsprintf1_LDADD): Likewise.
79081         Fix linking of some uniconv tests on FreeBSD.
79082         * modules/uniconv/u16-conv-from-enc-tests
79083         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
79084         * modules/uniconv/u16-conv-to-enc-tests
79085         (test_u16_conv_to_enc_LDADD): Likewise.
79086         * modules/uniconv/u16-strconv-from-enc-tests
79087         (test_u16_strconv_from_enc_LDADD): Likewise.
79088         * modules/uniconv/u16-strconv-to-enc-tests
79089         (test_u16_strconv_to_enc_LDADD): Likewise.
79090         * modules/uniconv/u32-conv-from-enc-tests
79091         (test_u32_conv_from_enc_LDADD): Likewise.
79092         * modules/uniconv/u32-conv-to-enc-tests
79093         (test_u32_conv_to_enc_LDADD): Likewise.
79094         * modules/uniconv/u32-strconv-from-enc-tests
79095         (test_u32_strconv_from_enc_LDADD): Likewise.
79096         * modules/uniconv/u32-strconv-to-enc-tests
79097         (test_u32_strconv_to_enc_LDADD): Likewise.
79098         * modules/uniconv/u8-conv-from-enc-tests
79099         (test_u8_conv_from_enc_LDADD): Likewise.
79100         * modules/uniconv/u8-conv-to-enc-tests
79101         (test_u8_conv_to_enc_LDADD): Likewise.
79102         * modules/uniconv/u8-strconv-from-enc-tests
79103         (test_u8_strconv_from_enc_LDADD): Likewise.
79104         * modules/uniconv/u8-strconv-to-enc-tests
79105         (test_u8_strconv_to_enc_LDADD): Likewise.
79107 2007-10-22  Bruno Haible  <bruno@clisp.org>
79109         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
79110         size.
79112 2007-10-22  Eric Blake  <ebb9@byu.net>
79114         Tweak x*printf documentation.
79115         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
79116         variable name and comments.
79117         Suggested by Bruno Haible.
79119 2007-10-22  Bruno Haible  <bruno@clisp.org>
79121         * lib/acl.c (copy_acl): Fix file name in comment.
79123 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79125         Fix Tru64 problem with stdbool.h.
79126         * lib/stdbool.in.h (false, true):
79127         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
79128         Don't declare as an enum in this situation; it runs afoul of Tru64.
79129         Problem reported by Steven M. Schweda in
79130         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
79132 2007-10-22  Eric Blake  <ebb9@byu.net>
79134         Also wrap vf?printf.
79135         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
79136         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
79137         (xvprintf, xvfprintf): New functions.
79139 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79141         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
79142         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
79144         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
79145         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
79147 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79149         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
79150         by Bruno Haible.
79152 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79154         * lib/getloadavg.c
79155         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
79156         Undef `sys' after including sys/table.h, for Tru64 4.0D.
79158         * tests/test-i-ring.c: Work for C89.
79160 2007-10-22  Bruno Haible  <bruno@clisp.org>
79162         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
79163         -1u, in preprocessor expression, so that we don't test for the bug
79164         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
79165         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
79167 2007-10-22  Eric Blake  <ebb9@byu.net>
79169         * tests/test-yesno.sh: Silence stderr during test.
79171 2007-10-22  Simon Josefsson  <simon@josefsson.org>
79173         * modules/crypto/gc-camellia: New file.
79175         * m4/gc-camellia.m4: New file.
79177         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
79179         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
79181 2007-10-22  Simon Josefsson  <simon@josefsson.org>
79183         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
79184         --help to stdout.  Reported by sms@antinode.org (Steven
79185         M. Schweda).
79187 2007-10-22  Simon Josefsson  <simon@josefsson.org>
79189         * users.txt: Fix link to libksba.
79191 2007-10-21  Ben Pfaff  <blp@gnu.org>
79193         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
79194         round.c roundf implementation that depends on floorf and ceilf to
79195         be tested unconditionally.
79197 2007-10-21  Ben Pfaff  <blp@gnu.org>
79199         * m4/check-libm-func.m4: Removed.
79200         * m4/check-math-lib.m4: New file.
79201         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
79202         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
79203         definition and lack of AC_LIBOBJ([roundf]).
79204         * m4/roundl.m4: Ditto, and similarly for roundl.
79205         * modules/round: Reference new m4 file.
79206         * modules/roundf: Ditto.
79207         * modules/roundl: Ditto.
79208         * tests/test-round2.c (main): Use ROUND instead of round.
79209         Bug report from Bruno Haible.
79211 2007-10-21  Bruno Haible  <bruno@clisp.org>
79213         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
79214         context.
79216 2007-10-21  Bruno Haible  <bruno@clisp.org>
79218         * tests/test-wcwidth.c (main): Allow negative result for some control
79219         characters.
79221         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
79222         Needed on OSF/1 5.1.
79224 2007-10-21  Bruno Haible  <bruno@clisp.org>
79226         * tests/test-floorf1.c: Include isnanf.h.
79227         (main): Use isnanf() instead of isnan().
79228         * tests/test-ceilf1.c: Include isnanf.h.
79229         (main): Use isnanf() instead of isnan().
79230         * tests/test-truncf1.c: Include isnanf.h.
79231         (main): Use isnanf() instead of isnan().
79232         * tests/test-roundf1.c: Include isnanf.h.
79233         (main): Use isnanf() instead of isnan().
79235 2007-10-21  Eric Blake  <ebb9@byu.net>
79237         * users.txt: Update URL for m4.
79239 2007-10-21  Bruno Haible  <bruno@clisp.org>
79241         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
79243 2007-10-21  Bruno Haible  <bruno@clisp.org>
79245         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
79246         Git's management files if the CVS files are not present.
79248 2007-10-20  Bruno Haible  <bruno@clisp.org>
79250         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
79251         gcc-3.4.x.
79253 2007-10-20  Ben Pfaff  <blp@gnu.org>
79255         * lib/math.in.h: Declare round, roundf, roundl if we are providing
79256         implementations.
79257         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
79258         * lib/round.c: New file.
79259         * lib/roundf.c: New file.
79260         * lib/roundl.c: New file.
79261         * m4/round.m4: New file.
79262         * m4/roundf.m4: New file.
79263         * m4/roundl.m4: New file.
79264         * m4/check-libm-func-m4: New file.
79265         * modules/math: Replace round, roundf, roundl related @VARS@ in
79266         math.in.h.
79267         * modules/round: New file.
79268         * modules/round-tests: New file.
79269         * modules/roundf: New file.
79270         * modules/roundf-tests: New file.
79271         * modules/roundl: New file.
79272         * modules/roundl-tests: New file.
79273         * tests/test-round1.c: New file.
79274         * tests/test-round2.c: New file.
79275         * tests/test-roundf1.c: New file.
79276         * tests/test-roundf2.c: New file.
79277         * tests/test-roundl.c: New file.
79278         * doc/functions/round.texi: Mention round module.
79279         * doc/functions/roundf.texi: Mention roundf module.
79280         * doc/functions/roundl.texi: Mention roundl module.
79281         * MODULES.html.sh: Mention new modules.
79282         Thanks to Bruno Haible for suggestions.
79284 2007-10-20  Jim Meyering  <meyering@redhat.com>
79286         * lib/xprintf.c: Include <config.h> unconditionally.
79288         Change xprintf's license to GPL.
79289         * modules/xprintf (License): s/LGPL/GPL/, since this module
79290         depends on modules (exit and exitfail) which are GPL.
79291         Suggestion from Bruno Haible.
79293         xprintf fixes.
79294         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
79295         Use a clearer diagnostic.
79296         Patch from Bruno Haible.
79298 2007-10-20  Bruno Haible  <bruno@clisp.org>
79300         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
79301         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
79302         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79304 2007-10-20  Bruno Haible  <bruno@clisp.org>
79306         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
79307         precision in the comparison result > x - 1 or similar.
79308         * tests/test-ceilf2.c (correct_result_p): Likewise.
79309         * tests/test-truncf2.c (correct_result_p): Likewise.
79310         * tests/test-trunc2.c (correct_result_p): Likewise.
79311         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79313 2007-10-20  Bruno Haible  <bruno@clisp.org>
79315         * modules/ceil: New file.
79316         * m4/ceil.m4: New file.
79317         * doc/functions/ceil.texi: Mention the 'ceil' module.
79319 2007-10-20  Bruno Haible  <bruno@clisp.org>
79321         * modules/floor: New file.
79322         * m4/floor.m4: New file.
79323         * doc/functions/floor.texi: Mention the 'floor' module.
79325 2007-10-20  Bruno Haible  <bruno@clisp.org>
79327         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
79328         of %a.
79329         * modules/floorf-tests (Depends-on): Likewise.
79330         * modules/truncf-tests (Depends-on): Likewise.
79331         * modules/trunc-tests (Depends-on): Likewise.
79332         Reported by Ben Pfaff.
79334 2007-10-19  Jim Meyering  <meyering@redhat.com>
79336         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
79337         Don't bother testing specific errno values.  Just test ferror.
79339         New module: xprintf
79340         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
79342 2007-10-19  Bruno Haible  <bruno@clisp.org>
79344         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
79345         syntax.
79346         * modules/javaexec (Makefile.am): Likewise.
79347         * modules/relocatable-prog (Makefile.am): Likewise.
79348         Suggested by Jim Meyering.
79350 2007-10-18  Bruno Haible  <bruno@clisp.org>
79352         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
79353         Reported by Jim Meyering.
79355 2007-10-18  Eric Blake  <ebb9@byu.net>
79357         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
79359 2007-10-18  Bruno Haible  <bruno@clisp.org>
79361         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
79362         the format string into writable memory. Needed in Fortify conditions.
79364 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
79365             Bruno Haible  <bruno@clisp.org>
79367         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
79368         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
79369         * modules/trim (Depends-on): Add mbchar.
79370         (configure.ac): Add gl_FUNC_MBRTOWC.
79371         (Makefile.am): Augment lib_SOURCES.
79373 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79375         Modify glob.c to use fstatat and dirfd, to simplify it.
79376         Suggested by Eric Blake.
79377         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
79378         Don't include <stdbool.h>; not used.
79379         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
79380         (link_exists_p): Simplify implementation, since we can now assume
79381         dirfd and fstatat.
79382         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
79384 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79386         * gnulib-tool (func_get_dependencies): Fix sed script to
79387         match only tests.
79389 2007-10-17  Bruno Haible  <bruno@clisp.org>
79391         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
79392         allow locale names without encoding suffix.
79393         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
79394         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
79396 2007-10-16  Bruno Haible  <bruno@clisp.org>
79398         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
79399         * lib/getgroups.c (getgroups): Likewise.
79400         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
79402 2007-10-16  Bruno Haible  <bruno@clisp.org>
79404         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
79405         * modules/malloc-posix (License): Likewise.
79406         * modules/realloc-posix (License): Likewise.
79407         * modules/calloc-posix (License): Likewise.
79408         * modules/intprops (License): Change from GPL to LGPL, with
79409         Paul Eggert's approval.
79411 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
79413         Merge glibc changes into lib/glob.c.
79415         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
79416         2007-10-15 04:59:03 UTC.  Here are the changes:
79418         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
79420         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
79422         * lib/glob.c: Add some branch prediction throughout.
79424         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
79426         [BZ #5103]
79427         * lib/glob.c (glob): Recognize patterns starting \/.
79429         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
79431         [BZ #3996]
79432         * lib/glob.c (attribute_hidden): Define if not defined.
79433         (glob): Unescape dirname, filename or username when needed and not
79434         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
79435         is NULL.  Handle unescaped [ in pattern without closing ].
79436         Don't pass GLOB_CHECK down to recursive glob for directories.
79437         (__glob_pattern_type): New function.
79438         (__glob_pattern_p): Implement using __glob_pattern_type.
79439         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
79440         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
79441         Remove unreachable code.
79443         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
79445         * lib/glob.c (glob_in_dir): Add some comments and asserts to
79446         explain why there are no leaks.
79448         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
79450         [BZ #3253]
79451         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
79452         time, rather allocate increasingly bigger arrays of pointers, if
79453         possible with alloca, if too large with malloc.
79455 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
79457         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
79458         Problem reported by H.Merijn Brand in
79459         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
79460         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
79461         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
79463 2007-10-15  Bruno Haible  <bruno@clisp.org>
79465         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
79466         with explicit rpl_ prefix.
79467         * lib/fopen.c (fopen): Likewise.
79468         * lib/freopen.c (freopen): Likewise.
79469         * lib/iconv.c (iconv): Likewise.
79470         * lib/iconv_close.c (iconv_close): Likewise.
79472 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79474         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
79476 2007-10-15  Bruno Haible  <bruno@clisp.org>
79478         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
79479         <stddef.h> instead of <stdlib.h> since we only need NULL.
79480         Reported by Ben Pfaff <blp@cs.stanford.edu>.
79482 2007-10-15  Bruno Haible  <bruno@clisp.org>
79484         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
79485         Replace paragraph talking about LIBOBJS.
79486         Reported by Colin Watson <cjwatson@debian.org>.
79488 2007-10-15  Bruno Haible  <bruno@clisp.org>
79490         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
79491         <stdlib.h> before using NULL.
79493 2007-10-15  Simon Josefsson  <simon@josefsson.org>
79495         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
79496         Reported by Albert Chin <china@thewrittenword.com>.
79498 2007-10-14  Bruno Haible  <bruno@clisp.org>
79500         * modules/iconv_open-utf-tests: New file.
79501         * tests/test-iconv-utf.c: New file.
79503         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
79504         * modules/iconv_open-utf: New file.
79505         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
79506         (iconv, iconv_close): New declarations.
79507         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
79508         be defined.
79509         (iconv_open): Add special handling of conversion between UTF-8 and
79510         UTF-{16,32}{BE,LE}.
79511         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
79512         * lib/iconv_close.c: New file.
79513         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
79514         gl_FUNC_ICONV_OPEN.
79515         (gl_FUNC_ICONV_OPEN): Use it.
79516         (gl_FUNC_ICONV_OPEN_UTF): New macro.
79517         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
79518         and REPLACE_ICONV_UTF.
79519         * modules/iconv_open (Depends-on): Add c-strcase.
79520         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
79521         ICONV_CONST.
79522         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
79524 2007-10-13  Albert Chin  <china@thewrittenword.com>
79525             Bruno Haible  <bruno@clisp.org>
79527         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
79528         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
79530 2007-10-13  Bruno Haible  <bruno@clisp.org>
79532         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
79533         defined, use the ISO C99 inline semantics.
79534         * lib/argp.h (ARGP_EI): Likewise.
79536 2007-10-13  Bruno Haible  <bruno@clisp.org>
79538         Handle 'inline' change in gcc 4.3.0.
79539         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
79540         argp_fmtstream_write, argp_fmtstream_set_lmargin,
79541         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
79542         argp_fmtstream_point): Disable 'extern' declaration if the function
79543         definition is going to be provided inline.
79544         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
79545         semantics, not the ISO C99 inline semantics.
79546         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
79547         'extern' declaration if the function definition is going to be provided
79548         inline.
79549         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
79550         the GNU C inline semantics, not the ISO C99 inline semantics. With
79551         GCC 4.2, avoid a warning.
79553 2007-10-13  Bruno Haible  <bruno@clisp.org>
79555         * lib/freading.h (freading): Enable the use of __freading for
79556         glibc >= 2.7.
79557         * lib/freading.c (freading): Likewise.
79559 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
79561         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
79562         "warning: C99 inline functions are not supported; using GNU89".
79564 2007-10-12  Bruno Haible  <bruno@clisp.org>
79566         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
79567         of 2.
79568         * tests/test-ceilf2.c: New file.
79569         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
79571         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
79572         * modules/ceilf-tests: Update.
79574 2007-10-12  Bruno Haible  <bruno@clisp.org>
79576         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
79577         of 2.
79578         * tests/test-floorf2.c: New file.
79579         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
79581         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
79582         * modules/floorf-tests: Update.
79584 2007-10-12  Bruno Haible  <bruno@clisp.org>
79586         * tests/test-trunc2.c: New file.
79587         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
79589         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
79590         * modules/trunc-tests: Update.
79592 2007-10-12  Bruno Haible  <bruno@clisp.org>
79594         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
79595         of 2.
79596         * tests/test-truncf2.c: New file.
79597         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
79599         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
79600         * modules/truncf-tests: Update.
79602 2007-10-11  Eric Blake  <ebb9@byu.net>
79604         Don't claim strerror is broken on Interix.
79605         * doc/functions/strerror.texi (strerror): Known broken systems are
79606         now Solaris 8, and not Interix.
79607         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
79608         Interix on cross-compile.
79609         Reported by Martin Koeppe in
79610         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
79612 2007-10-11  Bruno Haible  <bruno@clisp.org>
79614         * modules/i-ring-tests: New file.
79615         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
79616         instead of assert.
79618 2007-10-11  Bruno Haible  <bruno@clisp.org>
79620         * modules/filenamecat-tests: New file.
79621         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
79622         * lib/filenamecat.c: Remove test code.
79624 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
79626         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
79628         * lib/strerror.c: Include <string.h> always, to test interface,
79629         and to remove the need for the dummy.
79630         Include intprops.h to compute width instead of doing it ourselves
79631         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
79632         (strerror): Define it to return NULL if there's no system strerror.
79633         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
79634         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
79635         ancient pre-strerror Unix systems well any more.  Saying "unknown
79636         system error" is enough.
79637         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
79638         simpler strerror.c implementation.
79639         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
79640         Simplify the tests to reflect the simpler strerror implementation.
79641         * modules/strerror (Depends-on): Add intprops.
79643 2007-10-09  Eric Blake  <ebb9@byu.net>
79645         Silence test-fpending.
79646         * modules/fpending-tests (Files): Add wrapper script.
79647         * tests/test-fpending.sh: New file.
79649 2007-10-09  Bruno Haible  <bruno@clisp.org>
79651         * MODULES.html.sh (func_module): Don't create a hyperlink for
79652         function names like 'printf_frexp'.
79653         (Misc): Add crc, memxor.
79654         (Characteristics of floating types): New section.
79655         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
79656         isnanf-nolibm, signbit, trunc, truncf, truncl.
79657         (Enhancements for ISO C 99 functions): New subsection Input/output.
79658         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
79659         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
79660         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
79661         (Compatibility checks for POSIX:2001 functions): Add clock-time.
79662         (Enhancements for POSIX:2001 functions): Add chdir-long.
79663         (File system functions): Add areadlink, chdir-safer, read-file.
79664         Remove cycle-check.
79665         (File system as inode set): New section.
79666         (Date and time): Add gethrxtime.
79667         (Multithreading): Add openmp.
79668         (Internationalization functions): Add localename.
79669         (Unicode string functions): Add unistr/u*-mbsnlen.
79670         (Support for maintaining and releasing projects): Add git-version-gen.
79671         (Lone files): Remove directories.
79673 2007-10-08  Ben Pfaff  <blp@gnu.org>
79675         * lib/xmalloca.h: Fix typo in comment.
79677 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
79679         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
79680         when avoiding problems with integer overflow.  Use a portable test
79681         instead.
79683 2007-10-08  Simon Josefsson  <simon@josefsson.org>
79685         * modules/dummy (License): Change to LGPLv2+.
79686         * modules/float (License): Likewise
79687         * modules/realloc (License): Likewise
79688         * modules/stdlib (License): Likewise
79690 2007-10-07  Bruno Haible  <bruno@clisp.org>
79692         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
79693         * floor.c (TWO_MANT_DIG): Likewise.
79694         * ceil.c (TWO_MANT_DIG): Likewise.
79695         Reported by Ben Pfaff.
79697 2007-10-07  Bruno Haible  <bruno@clisp.org>
79699         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
79700         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
79701         * lib/frexp.c (FUNC): Likewise.
79702         * lib/printf-frexp.h (printf_frexp): Likewise.
79703         * lib/printf-frexpl.h (printf_frexpl): Likewise.
79704         * lib/printf-frexp.c (FUNC): Likewise.
79705         Suggested by Jim Meyering.
79707 2007-10-07  Jim Meyering  <meyering@redhat.com>
79709         Make xnanosleep's integer overflow test more robust.
79710         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
79711         so that gcc-4.3.0 doesn't optimize away this test for overflow.
79713 2007-10-07  Bruno Haible  <bruno@clisp.org>
79715         * NEWS: Mention the license change.
79717         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
79718         abbreviations in the modules files.
79720         Change copyright notice from GPLv2+ to GPLv3+.
79721         * README: Change copyright notice.
79722         * MODULES.html.sh: Likewise.
79723         * build-aux/bootstrap.conf: Likewise.
79724         * build-aux/config.libpath: Likewise.
79725         * build-aux/csharpcomp.sh.in: Likewise.
79726         * build-aux/csharpexec.sh.in: Likewise.
79727         * build-aux/install-reloc: Likewise.
79728         * build-aux/javacomp.sh.in: Likewise.
79729         * build-aux/javaexec.sh.in: Likewise.
79730         * build-aux/ldd.sh.in: Likewise.
79731         * build-aux/reloc-ldflags: Likewise.
79732         * build-aux/relocatable.sh.in: Likewise.
79733         * build-aux/x-to-1.in: Likewise.
79734         * check-module: Likewise.
79735         * config/srclistvars.sh: Likewise.
79736         * gnulib-tool: Likewise.
79737         * lib/acl-internal.h: Likewise.
79738         * lib/acl.c: Likewise.
79739         * lib/acl.h: Likewise.
79740         * lib/acl_entries.c: Likewise.
79741         * lib/areadlink-with-size.c: Likewise.
79742         * lib/areadlink.c: Likewise.
79743         * lib/areadlink.h: Likewise.
79744         * lib/argmatch.c: Likewise.
79745         * lib/argmatch.h: Likewise.
79746         * lib/argp-ba.c: Likewise.
79747         * lib/argp-eexst.c: Likewise.
79748         * lib/argp-fmtstream.c: Likewise.
79749         * lib/argp-fmtstream.h: Likewise.
79750         * lib/argp-fs-xinl.c: Likewise.
79751         * lib/argp-help.c: Likewise.
79752         * lib/argp-namefrob.h: Likewise.
79753         * lib/argp-parse.c: Likewise.
79754         * lib/argp-pin.c: Likewise.
79755         * lib/argp-pv.c: Likewise.
79756         * lib/argp-pvh.c: Likewise.
79757         * lib/argp-xinl.c: Likewise.
79758         * lib/argp.h: Likewise.
79759         * lib/at-func.c: Likewise.
79760         * lib/atanl.c: Likewise.
79761         * lib/backupfile.c: Likewise.
79762         * lib/backupfile.h: Likewise.
79763         * lib/basename.c: Likewise.
79764         * lib/binary-io.h: Likewise.
79765         * lib/byteswap.in.h: Likewise.
79766         * lib/c-stack.c: Likewise.
79767         * lib/c-stack.h: Likewise.
79768         * lib/c-strcasestr.c: Likewise.
79769         * lib/c-strcasestr.h: Likewise.
79770         * lib/c-strstr.c: Likewise.
79771         * lib/c-strstr.h: Likewise.
79772         * lib/c-strtod.c: Likewise.
79773         * lib/calloc.c: Likewise.
79774         * lib/canon-host.c: Likewise.
79775         * lib/canon-host.h: Likewise.
79776         * lib/canonicalize-lgpl.c: Likewise.
79777         * lib/canonicalize.c: Likewise.
79778         * lib/canonicalize.h: Likewise.
79779         * lib/ceil.c: Likewise.
79780         * lib/ceilf.c: Likewise.
79781         * lib/ceill.c: Likewise.
79782         * lib/chdir-long.c: Likewise.
79783         * lib/chdir-long.h: Likewise.
79784         * lib/chdir-safer.c: Likewise.
79785         * lib/chdir-safer.h: Likewise.
79786         * lib/chown.c: Likewise.
79787         * lib/classpath.c: Likewise.
79788         * lib/classpath.h: Likewise.
79789         * lib/clean-temp.c: Likewise.
79790         * lib/clean-temp.h: Likewise.
79791         * lib/cloexec.c: Likewise.
79792         * lib/close-stream.c: Likewise.
79793         * lib/closein.c: Likewise.
79794         * lib/closein.h: Likewise.
79795         * lib/closeout.c: Likewise.
79796         * lib/closeout.h: Likewise.
79797         * lib/concat-filename.c: Likewise.
79798         * lib/copy-file.c: Likewise.
79799         * lib/copy-file.h: Likewise.
79800         * lib/count-one-bits.h: Likewise.
79801         * lib/crc.c: Likewise.
79802         * lib/crc.h: Likewise.
79803         * lib/creat-safer.c: Likewise.
79804         * lib/csharpcomp.c: Likewise.
79805         * lib/csharpcomp.h: Likewise.
79806         * lib/csharpexec.c: Likewise.
79807         * lib/csharpexec.h: Likewise.
79808         * lib/cycle-check.c: Likewise.
79809         * lib/cycle-check.h: Likewise.
79810         * lib/diacrit.c: Likewise.
79811         * lib/diacrit.h: Likewise.
79812         * lib/diffseq.h: Likewise.
79813         * lib/dirchownmod.c: Likewise.
79814         * lib/dirent.in.h: Likewise.
79815         * lib/dirfd.c: Likewise.
79816         * lib/dirfd.h: Likewise.
79817         * lib/dirname.c: Likewise.
79818         * lib/dirname.h: Likewise.
79819         * lib/dummy.c: Likewise.
79820         * lib/dup-safer.c: Likewise.
79821         * lib/dup2.c: Likewise.
79822         * lib/eealloc.h: Likewise.
79823         * lib/error.c: Likewise.
79824         * lib/error.h: Likewise.
79825         * lib/euidaccess.c: Likewise.
79826         * lib/exclude.c: Likewise.
79827         * lib/exclude.h: Likewise.
79828         * lib/execute.c: Likewise.
79829         * lib/execute.h: Likewise.
79830         * lib/exitfail.c: Likewise.
79831         * lib/exitfail.h: Likewise.
79832         * lib/expl.c: Likewise.
79833         * lib/fatal-signal.c: Likewise.
79834         * lib/fatal-signal.h: Likewise.
79835         * lib/fbufmode.c: Likewise.
79836         * lib/fbufmode.h: Likewise.
79837         * lib/fchdir.c: Likewise.
79838         * lib/fchmodat.c: Likewise.
79839         * lib/fchownat.c: Likewise.
79840         * lib/fcntl--.h: Likewise.
79841         * lib/fcntl-safer.h: Likewise.
79842         * lib/fcntl.in.h: Likewise.
79843         * lib/fd-safer.c: Likewise.
79844         * lib/fflush.c: Likewise.
79845         * lib/file-has-acl.c: Likewise.
79846         * lib/file-set.c: Likewise.
79847         * lib/file-type.c: Likewise.
79848         * lib/file-type.h: Likewise.
79849         * lib/fileblocks.c: Likewise.
79850         * lib/filemode.c: Likewise.
79851         * lib/filemode.h: Likewise.
79852         * lib/filename.h: Likewise.
79853         * lib/filenamecat.c: Likewise.
79854         * lib/filenamecat.h: Likewise.
79855         * lib/findprog.c: Likewise.
79856         * lib/findprog.h: Likewise.
79857         * lib/float.in.h: Likewise.
79858         * lib/floor.c: Likewise.
79859         * lib/floorf.c: Likewise.
79860         * lib/floorl.c: Likewise.
79861         * lib/fopen-safer.c: Likewise.
79862         * lib/fopen.c: Likewise.
79863         * lib/fpending.c: Likewise.
79864         * lib/fpending.h: Likewise.
79865         * lib/fprintf.c: Likewise.
79866         * lib/fprintftime.h: Likewise.
79867         * lib/fpucw.h: Likewise.
79868         * lib/fpurge.c: Likewise.
79869         * lib/fpurge.h: Likewise.
79870         * lib/freadable.c: Likewise.
79871         * lib/freadable.h: Likewise.
79872         * lib/freadahead.c: Likewise.
79873         * lib/freadahead.h: Likewise.
79874         * lib/freading.c: Likewise.
79875         * lib/freading.h: Likewise.
79876         * lib/free.c: Likewise.
79877         * lib/freopen.c: Likewise.
79878         * lib/frexp.c: Likewise.
79879         * lib/frexpl.c: Likewise.
79880         * lib/fseek.c: Likewise.
79881         * lib/fseterr.c: Likewise.
79882         * lib/fseterr.h: Likewise.
79883         * lib/fstatat.c: Likewise.
79884         * lib/fstrcmp.c: Likewise.
79885         * lib/fstrcmp.h: Likewise.
79886         * lib/fsusage.c: Likewise.
79887         * lib/fsusage.h: Likewise.
79888         * lib/ftell.c: Likewise.
79889         * lib/ftello.c: Likewise.
79890         * lib/fts-cycle.c: Likewise.
79891         * lib/fts.c: Likewise.
79892         * lib/fts_.h: Likewise.
79893         * lib/full-read.c: Likewise.
79894         * lib/full-read.h: Likewise.
79895         * lib/full-write.c: Likewise.
79896         * lib/full-write.h: Likewise.
79897         * lib/fwritable.c: Likewise.
79898         * lib/fwritable.h: Likewise.
79899         * lib/fwriteerror.c: Likewise.
79900         * lib/fwriteerror.h: Likewise.
79901         * lib/fwriting.c: Likewise.
79902         * lib/fwriting.h: Likewise.
79903         * lib/gcd.c: Likewise.
79904         * lib/gcd.h: Likewise.
79905         * lib/getcwd.c: Likewise.
79906         * lib/getdate.h: Likewise.
79907         * lib/getdate.y: Likewise.
79908         * lib/getdomainname.c: Likewise.
79909         * lib/getdomainname.h: Likewise.
79910         * lib/getgroups.c: Likewise.
79911         * lib/gethostname.c: Likewise.
79912         * lib/gethrxtime.c: Likewise.
79913         * lib/gethrxtime.h: Likewise.
79914         * lib/getloadavg.c: Likewise.
79915         * lib/getndelim2.c: Likewise.
79916         * lib/getndelim2.h: Likewise.
79917         * lib/getnline.c: Likewise.
79918         * lib/getnline.h: Likewise.
79919         * lib/getopt.c: Likewise.
79920         * lib/getopt.in.h: Likewise.
79921         * lib/getopt1.c: Likewise.
79922         * lib/getopt_int.h: Likewise.
79923         * lib/getpagesize.h: Likewise.
79924         * lib/getsubopt.c: Likewise.
79925         * lib/gettime.c: Likewise.
79926         * lib/getugroups.c: Likewise.
79927         * lib/getugroups.h: Likewise.
79928         * lib/getusershell.c: Likewise.
79929         * lib/gl_anyavltree_list1.h: Likewise.
79930         * lib/gl_anyavltree_list2.h: Likewise.
79931         * lib/gl_anyhash_list1.h: Likewise.
79932         * lib/gl_anyhash_list2.h: Likewise.
79933         * lib/gl_anylinked_list1.h: Likewise.
79934         * lib/gl_anylinked_list2.h: Likewise.
79935         * lib/gl_anyrbtree_list1.h: Likewise.
79936         * lib/gl_anyrbtree_list2.h: Likewise.
79937         * lib/gl_anytree_list1.h: Likewise.
79938         * lib/gl_anytree_list2.h: Likewise.
79939         * lib/gl_anytree_oset.h: Likewise.
79940         * lib/gl_anytreehash_list1.h: Likewise.
79941         * lib/gl_anytreehash_list2.h: Likewise.
79942         * lib/gl_array_list.c: Likewise.
79943         * lib/gl_array_list.h: Likewise.
79944         * lib/gl_array_oset.c: Likewise.
79945         * lib/gl_array_oset.h: Likewise.
79946         * lib/gl_avltree_list.c: Likewise.
79947         * lib/gl_avltree_list.h: Likewise.
79948         * lib/gl_avltree_oset.c: Likewise.
79949         * lib/gl_avltree_oset.h: Likewise.
79950         * lib/gl_avltreehash_list.c: Likewise.
79951         * lib/gl_avltreehash_list.h: Likewise.
79952         * lib/gl_carray_list.c: Likewise.
79953         * lib/gl_carray_list.h: Likewise.
79954         * lib/gl_linked_list.c: Likewise.
79955         * lib/gl_linked_list.h: Likewise.
79956         * lib/gl_linkedhash_list.c: Likewise.
79957         * lib/gl_linkedhash_list.h: Likewise.
79958         * lib/gl_list.c: Likewise.
79959         * lib/gl_list.h: Likewise.
79960         * lib/gl_oset.c: Likewise.
79961         * lib/gl_oset.h: Likewise.
79962         * lib/gl_rbtree_list.c: Likewise.
79963         * lib/gl_rbtree_list.h: Likewise.
79964         * lib/gl_rbtree_oset.c: Likewise.
79965         * lib/gl_rbtree_oset.h: Likewise.
79966         * lib/gl_rbtreehash_list.c: Likewise.
79967         * lib/gl_rbtreehash_list.h: Likewise.
79968         * lib/gl_sublist.c: Likewise.
79969         * lib/gl_sublist.h: Likewise.
79970         * lib/group-member.c: Likewise.
79971         * lib/group-member.h: Likewise.
79972         * lib/hard-locale.c: Likewise.
79973         * lib/hard-locale.h: Likewise.
79974         * lib/hash-pjw.c: Likewise.
79975         * lib/hash-pjw.h: Likewise.
79976         * lib/hash-triple.c: Likewise.
79977         * lib/hash.c: Likewise.
79978         * lib/hash.h: Likewise.
79979         * lib/human.c: Likewise.
79980         * lib/human.h: Likewise.
79981         * lib/i-ring.c: Likewise.
79982         * lib/i-ring.h: Likewise.
79983         * lib/idcache.c: Likewise.
79984         * lib/imaxabs.c: Likewise.
79985         * lib/imaxdiv.c: Likewise.
79986         * lib/inet_pton.c: Likewise.
79987         * lib/inet_pton.h: Likewise.
79988         * lib/intprops.h: Likewise.
79989         * lib/inttostr.c: Likewise.
79990         * lib/inttostr.h: Likewise.
79991         * lib/inttypes.in.h: Likewise.
79992         * lib/isapipe.c: Likewise.
79993         * lib/isdir.c: Likewise.
79994         * lib/isnan.c: Likewise.
79995         * lib/isnan.h: Likewise.
79996         * lib/isnanf.c: Likewise.
79997         * lib/isnanf.h: Likewise.
79998         * lib/isnanl-nolibm.h: Likewise.
79999         * lib/isnanl.c: Likewise.
80000         * lib/isnanl.h: Likewise.
80001         * lib/javacomp.c: Likewise.
80002         * lib/javacomp.h: Likewise.
80003         * lib/javaexec.c: Likewise.
80004         * lib/javaexec.h: Likewise.
80005         * lib/javaversion.c: Likewise.
80006         * lib/javaversion.h: Likewise.
80007         * lib/javaversion.java: Likewise.
80008         * lib/lbrkprop.h: Likewise.
80009         * lib/lchmod.h: Likewise.
80010         * lib/lchown.c: Likewise.
80011         * lib/ldexpl.c: Likewise.
80012         * lib/linebreak.c: Likewise.
80013         * lib/linebreak.h: Likewise.
80014         * lib/linebuffer.c: Likewise.
80015         * lib/linebuffer.h: Likewise.
80016         * lib/locale.in.h: Likewise.
80017         * lib/logl.c: Likewise.
80018         * lib/long-options.c: Likewise.
80019         * lib/long-options.h: Likewise.
80020         * lib/lstat.c: Likewise.
80021         * lib/lstat.h: Likewise.
80022         * lib/math.in.h: Likewise.
80023         * lib/mbchar.c: Likewise.
80024         * lib/mbchar.h: Likewise.
80025         * lib/mbfile.h: Likewise.
80026         * lib/mbiter.h: Likewise.
80027         * lib/mbscasecmp.c: Likewise.
80028         * lib/mbscasestr.c: Likewise.
80029         * lib/mbschr.c: Likewise.
80030         * lib/mbscspn.c: Likewise.
80031         * lib/mbslen.c: Likewise.
80032         * lib/mbsncasecmp.c: Likewise.
80033         * lib/mbsnlen.c: Likewise.
80034         * lib/mbspbrk.c: Likewise.
80035         * lib/mbspcasecmp.c: Likewise.
80036         * lib/mbsrchr.c: Likewise.
80037         * lib/mbssep.c: Likewise.
80038         * lib/mbsspn.c: Likewise.
80039         * lib/mbsstr.c: Likewise.
80040         * lib/mbstok_r.c: Likewise.
80041         * lib/mbswidth.c: Likewise.
80042         * lib/mbswidth.h: Likewise.
80043         * lib/mbuiter.h: Likewise.
80044         * lib/memcasecmp.c: Likewise.
80045         * lib/memcasecmp.h: Likewise.
80046         * lib/memchr.c: Likewise.
80047         * lib/memcmp.c: Likewise.
80048         * lib/memcoll.c: Likewise.
80049         * lib/memcoll.h: Likewise.
80050         * lib/memcpy.c: Likewise.
80051         * lib/memrchr.c: Likewise.
80052         * lib/mkancesdirs.c: Likewise.
80053         * lib/mkdir-p.c: Likewise.
80054         * lib/mkdir-p.h: Likewise.
80055         * lib/mkdir.c: Likewise.
80056         * lib/mkdirat.c: Likewise.
80057         * lib/mkdtemp.c: Likewise.
80058         * lib/mkstemp-safer.c: Likewise.
80059         * lib/mkstemp.c: Likewise.
80060         * lib/modechange.c: Likewise.
80061         * lib/modechange.h: Likewise.
80062         * lib/mountlist.c: Likewise.
80063         * lib/mountlist.h: Likewise.
80064         * lib/mpsort.c: Likewise.
80065         * lib/nanosleep.c: Likewise.
80066         * lib/obstack.c: Likewise.
80067         * lib/obstack.h: Likewise.
80068         * lib/open-safer.c: Likewise.
80069         * lib/open.c: Likewise.
80070         * lib/openat-die.c: Likewise.
80071         * lib/openat-priv.h: Likewise.
80072         * lib/openat-proc.c: Likewise.
80073         * lib/openat.c: Likewise.
80074         * lib/openat.h: Likewise.
80075         * lib/pagealign_alloc.c: Likewise.
80076         * lib/pagealign_alloc.h: Likewise.
80077         * lib/physmem.c: Likewise.
80078         * lib/physmem.h: Likewise.
80079         * lib/pipe-safer.c: Likewise.
80080         * lib/pipe.c: Likewise.
80081         * lib/pipe.h: Likewise.
80082         * lib/posixtm.c: Likewise.
80083         * lib/posixtm.h: Likewise.
80084         * lib/posixver.c: Likewise.
80085         * lib/printf-frexp.c: Likewise.
80086         * lib/printf-frexp.h: Likewise.
80087         * lib/printf-frexpl.c: Likewise.
80088         * lib/printf-frexpl.h: Likewise.
80089         * lib/printf.c: Likewise.
80090         * lib/progname.c: Likewise.
80091         * lib/progname.h: Likewise.
80092         * lib/progreloc.c: Likewise.
80093         * lib/putenv.c: Likewise.
80094         * lib/quote.c: Likewise.
80095         * lib/quote.h: Likewise.
80096         * lib/quotearg.c: Likewise.
80097         * lib/quotearg.h: Likewise.
80098         * lib/raise.c: Likewise.
80099         * lib/readline.c: Likewise.
80100         * lib/readline.h: Likewise.
80101         * lib/readlink.c: Likewise.
80102         * lib/readtokens.c: Likewise.
80103         * lib/readtokens.h: Likewise.
80104         * lib/readtokens0.c: Likewise.
80105         * lib/readtokens0.h: Likewise.
80106         * lib/readutmp.c: Likewise.
80107         * lib/readutmp.h: Likewise.
80108         * lib/realloc.c: Likewise.
80109         * lib/relocwrapper.c: Likewise.
80110         * lib/rename-dest-slash.c: Likewise.
80111         * lib/rename.c: Likewise.
80112         * lib/rmdir.c: Likewise.
80113         * lib/rpmatch.c: Likewise.
80114         * lib/safe-read.c: Likewise.
80115         * lib/safe-read.h: Likewise.
80116         * lib/safe-write.c: Likewise.
80117         * lib/safe-write.h: Likewise.
80118         * lib/same-inode.h: Likewise.
80119         * lib/same.c: Likewise.
80120         * lib/same.h: Likewise.
80121         * lib/save-cwd.c: Likewise.
80122         * lib/save-cwd.h: Likewise.
80123         * lib/savedir.c: Likewise.
80124         * lib/savedir.h: Likewise.
80125         * lib/savewd.c: Likewise.
80126         * lib/savewd.h: Likewise.
80127         * lib/search.in.h: Likewise.
80128         * lib/setenv.c: Likewise.
80129         * lib/setenv.h: Likewise.
80130         * lib/settime.c: Likewise.
80131         * lib/sh-quote.c: Likewise.
80132         * lib/sh-quote.h: Likewise.
80133         * lib/sig2str.c: Likewise.
80134         * lib/sig2str.h: Likewise.
80135         * lib/signal.in.h: Likewise.
80136         * lib/signbitd.c: Likewise.
80137         * lib/signbitf.c: Likewise.
80138         * lib/signbitl.c: Likewise.
80139         * lib/sigprocmask.c: Likewise.
80140         * lib/sincosl.c: Likewise.
80141         * lib/sleep.c: Likewise.
80142         * lib/sprintf.c: Likewise.
80143         * lib/sqrtl.c: Likewise.
80144         * lib/stat-time.h: Likewise.
80145         * lib/stdio--.h: Likewise.
80146         * lib/stdio-safer.h: Likewise.
80147         * lib/stdlib--.h: Likewise.
80148         * lib/stdlib-safer.h: Likewise.
80149         * lib/stdlib.in.h: Likewise.
80150         * lib/stpcpy.c: Likewise.
80151         * lib/stpncpy.c: Likewise.
80152         * lib/strchrnul.c: Likewise.
80153         * lib/strcspn.c: Likewise.
80154         * lib/strerror.c: Likewise.
80155         * lib/strftime.c: Likewise.
80156         * lib/strftime.h: Likewise.
80157         * lib/striconveh.c: Likewise.
80158         * lib/striconveh.h: Likewise.
80159         * lib/striconveha.c: Likewise.
80160         * lib/striconveha.h: Likewise.
80161         * lib/stripslash.c: Likewise.
80162         * lib/strnlen1.c: Likewise.
80163         * lib/strnlen1.h: Likewise.
80164         * lib/strtod.c: Likewise.
80165         * lib/strtoimax.c: Likewise.
80166         * lib/strtok_r.c: Likewise.
80167         * lib/strtol.c: Likewise.
80168         * lib/strtoll.c: Likewise.
80169         * lib/strtoul.c: Likewise.
80170         * lib/strtoull.c: Likewise.
80171         * lib/sysexits.in.h: Likewise.
80172         * lib/tempname.c: Likewise.
80173         * lib/tempname.h: Likewise.
80174         * lib/timespec.h: Likewise.
80175         * lib/tls.c: Likewise.
80176         * lib/tls.h: Likewise.
80177         * lib/tmpdir.c: Likewise.
80178         * lib/tmpdir.h: Likewise.
80179         * lib/tmpfile-safer.c: Likewise.
80180         * lib/tmpfile.c: Likewise.
80181         * lib/trigl.c: Likewise.
80182         * lib/trigl.h: Likewise.
80183         * lib/trim.c: Likewise.
80184         * lib/trim.h: Likewise.
80185         * lib/trunc.c: Likewise.
80186         * lib/truncf.c: Likewise.
80187         * lib/truncl.c: Likewise.
80188         * lib/tsearch.c: Likewise.
80189         * lib/unicodeio.c: Likewise.
80190         * lib/unicodeio.h: Likewise.
80191         * lib/unistd--.h: Likewise.
80192         * lib/unistd-safer.h: Likewise.
80193         * lib/unistdio/ulc-fprintf.c: Likewise.
80194         * lib/unistdio/ulc-vfprintf.c: Likewise.
80195         * lib/unlinkdir.c: Likewise.
80196         * lib/unlinkdir.h: Likewise.
80197         * lib/unlocked-io.h: Likewise.
80198         * lib/unsetenv.c: Likewise.
80199         * lib/userspec.c: Likewise.
80200         * lib/utime.c: Likewise.
80201         * lib/utimecmp.c: Likewise.
80202         * lib/utimecmp.h: Likewise.
80203         * lib/utimens.c: Likewise.
80204         * lib/verify.h: Likewise.
80205         * lib/verror.c: Likewise.
80206         * lib/verror.h: Likewise.
80207         * lib/version-etc-fsf.c: Likewise.
80208         * lib/version-etc.c: Likewise.
80209         * lib/version-etc.h: Likewise.
80210         * lib/vfprintf.c: Likewise.
80211         * lib/vprintf.c: Likewise.
80212         * lib/vsprintf.c: Likewise.
80213         * lib/w32spawn.h: Likewise.
80214         * lib/wait-process.c: Likewise.
80215         * lib/wait-process.h: Likewise.
80216         * lib/wcwidth.c: Likewise.
80217         * lib/write-any-file.c: Likewise.
80218         * lib/xalloc-die.c: Likewise.
80219         * lib/xalloc.h: Likewise.
80220         * lib/xasprintf.c: Likewise.
80221         * lib/xgetcwd.c: Likewise.
80222         * lib/xgetcwd.h: Likewise.
80223         * lib/xgetdomainname.c: Likewise.
80224         * lib/xgetdomainname.h: Likewise.
80225         * lib/xgethostname.c: Likewise.
80226         * lib/xmalloc.c: Likewise.
80227         * lib/xmalloca.c: Likewise.
80228         * lib/xmalloca.h: Likewise.
80229         * lib/xmemcoll.c: Likewise.
80230         * lib/xnanosleep.c: Likewise.
80231         * lib/xreadlink.c: Likewise.
80232         * lib/xreadlink.h: Likewise.
80233         * lib/xsetenv.c: Likewise.
80234         * lib/xsetenv.h: Likewise.
80235         * lib/xstriconv.c: Likewise.
80236         * lib/xstriconv.h: Likewise.
80237         * lib/xstrndup.c: Likewise.
80238         * lib/xstrndup.h: Likewise.
80239         * lib/xstrtod.c: Likewise.
80240         * lib/xstrtod.h: Likewise.
80241         * lib/xstrtol-error.c: Likewise.
80242         * lib/xstrtol.c: Likewise.
80243         * lib/xstrtol.h: Likewise.
80244         * lib/xtime.h: Likewise.
80245         * lib/xvasprintf.c: Likewise.
80246         * lib/xvasprintf.h: Likewise.
80247         * lib/yesno.c: Likewise.
80248         * lib/yesno.h: Likewise.
80249         * posix-modules: Likewise.
80250         * tests/test-alloca-opt.c: Likewise.
80251         * tests/test-arcfour.c: Likewise.
80252         * tests/test-arctwo.c: Likewise.
80253         * tests/test-argmatch.c: Likewise.
80254         * tests/test-argp-2.sh: Likewise.
80255         * tests/test-argp.c: Likewise.
80256         * tests/test-arpa_inet.c: Likewise.
80257         * tests/test-array_list.c: Likewise.
80258         * tests/test-array_oset.c: Likewise.
80259         * tests/test-atexit.c: Likewise.
80260         * tests/test-avltree_list.c: Likewise.
80261         * tests/test-avltree_oset.c: Likewise.
80262         * tests/test-avltreehash_list.c: Likewise.
80263         * tests/test-base64.c: Likewise.
80264         * tests/test-binary-io.c: Likewise.
80265         * tests/test-byteswap.c: Likewise.
80266         * tests/test-c-ctype.c: Likewise.
80267         * tests/test-c-strcasecmp.c: Likewise.
80268         * tests/test-c-strcasestr.c: Likewise.
80269         * tests/test-c-strncasecmp.c: Likewise.
80270         * tests/test-c-strstr.c: Likewise.
80271         * tests/test-canonicalize-lgpl.c: Likewise.
80272         * tests/test-canonicalize.c: Likewise.
80273         * tests/test-carray_list.c: Likewise.
80274         * tests/test-ceilf.c: Likewise.
80275         * tests/test-ceill.c: Likewise.
80276         * tests/test-count-one-bits.c: Likewise.
80277         * tests/test-crc.c: Likewise.
80278         * tests/test-dirname.c: Likewise.
80279         * tests/test-fbufmode.c: Likewise.
80280         * tests/test-fcntl.c: Likewise.
80281         * tests/test-fflush.c: Likewise.
80282         * tests/test-floorf.c: Likewise.
80283         * tests/test-floorl.c: Likewise.
80284         * tests/test-fopen.c: Likewise.
80285         * tests/test-fprintf-posix.c: Likewise.
80286         * tests/test-fprintf-posix.h: Likewise.
80287         * tests/test-fpurge.c: Likewise.
80288         * tests/test-freadable.c: Likewise.
80289         * tests/test-freadahead.c: Likewise.
80290         * tests/test-freading.c: Likewise.
80291         * tests/test-freopen.c: Likewise.
80292         * tests/test-frexp.c: Likewise.
80293         * tests/test-frexpl.c: Likewise.
80294         * tests/test-fseek.c: Likewise.
80295         * tests/test-fseeko.c: Likewise.
80296         * tests/test-fseterr.c: Likewise.
80297         * tests/test-fstrcmp.c: Likewise.
80298         * tests/test-ftell.c: Likewise.
80299         * tests/test-ftello.c: Likewise.
80300         * tests/test-fwritable.c: Likewise.
80301         * tests/test-fwriting.c: Likewise.
80302         * tests/test-getaddrinfo.c: Likewise.
80303         * tests/test-getpass.c: Likewise.
80304         * tests/test-gettimeofday.c: Likewise.
80305         * tests/test-hmac-md5.c: Likewise.
80306         * tests/test-hmac-sha1.c: Likewise.
80307         * tests/test-iconv.c: Likewise.
80308         * tests/test-iconvme.c: Likewise.
80309         * tests/test-inttypes.c: Likewise.
80310         * tests/test-isnan.c: Likewise.
80311         * tests/test-isnanf.c: Likewise.
80312         * tests/test-isnanl-nolibm.c: Likewise.
80313         * tests/test-isnanl.c: Likewise.
80314         * tests/test-isnanl.h: Likewise.
80315         * tests/test-ldexpl.c: Likewise.
80316         * tests/test-linked_list.c: Likewise.
80317         * tests/test-linkedhash_list.c: Likewise.
80318         * tests/test-locale.c: Likewise.
80319         * tests/test-localename.c: Likewise.
80320         * tests/test-lock.c: Likewise.
80321         * tests/test-lseek.c: Likewise.
80322         * tests/test-malloca.c: Likewise.
80323         * tests/test-math.c: Likewise.
80324         * tests/test-mbscasecmp.c: Likewise.
80325         * tests/test-mbscasestr1.c: Likewise.
80326         * tests/test-mbscasestr2.c: Likewise.
80327         * tests/test-mbscasestr3.c: Likewise.
80328         * tests/test-mbscasestr4.c: Likewise.
80329         * tests/test-mbschr.c: Likewise.
80330         * tests/test-mbscspn.c: Likewise.
80331         * tests/test-mbsncasecmp.c: Likewise.
80332         * tests/test-mbspbrk.c: Likewise.
80333         * tests/test-mbspcasecmp.c: Likewise.
80334         * tests/test-mbsrchr.c: Likewise.
80335         * tests/test-mbsspn.c: Likewise.
80336         * tests/test-mbsstr1.c: Likewise.
80337         * tests/test-mbsstr2.c: Likewise.
80338         * tests/test-mbsstr3.c: Likewise.
80339         * tests/test-md5.c: Likewise.
80340         * tests/test-memmem.c: Likewise.
80341         * tests/test-netinet_in.c: Likewise.
80342         * tests/test-open.c: Likewise.
80343         * tests/test-printf-frexp.c: Likewise.
80344         * tests/test-printf-frexpl.c: Likewise.
80345         * tests/test-printf-posix.c: Likewise.
80346         * tests/test-printf-posix.h: Likewise.
80347         * tests/test-rbtree_list.c: Likewise.
80348         * tests/test-rbtree_oset.c: Likewise.
80349         * tests/test-rbtreehash_list.c: Likewise.
80350         * tests/test-read-file.c: Likewise.
80351         * tests/test-rijndael.c: Likewise.
80352         * tests/test-search.c: Likewise.
80353         * tests/test-signbit.c: Likewise.
80354         * tests/test-sleep.c: Likewise.
80355         * tests/test-snprintf-posix.c: Likewise.
80356         * tests/test-snprintf-posix.h: Likewise.
80357         * tests/test-snprintf.c: Likewise.
80358         * tests/test-sprintf-posix.c: Likewise.
80359         * tests/test-sprintf-posix.h: Likewise.
80360         * tests/test-stat-time.c: Likewise.
80361         * tests/test-stdbool.c: Likewise.
80362         * tests/test-stdint.c: Likewise.
80363         * tests/test-stdio.c: Likewise.
80364         * tests/test-stdlib.c: Likewise.
80365         * tests/test-stpncpy.c: Likewise.
80366         * tests/test-strcasestr.c: Likewise.
80367         * tests/test-striconv.c: Likewise.
80368         * tests/test-striconveh.c: Likewise.
80369         * tests/test-striconveha.c: Likewise.
80370         * tests/test-string.c: Likewise.
80371         * tests/test-sys_select.c: Likewise.
80372         * tests/test-sys_socket.c: Likewise.
80373         * tests/test-sys_stat.c: Likewise.
80374         * tests/test-sys_time.c: Likewise.
80375         * tests/test-sysexits.c: Likewise.
80376         * tests/test-time.c: Likewise.
80377         * tests/test-tls.c: Likewise.
80378         * tests/test-trunc.c: Likewise.
80379         * tests/test-truncf.c: Likewise.
80380         * tests/test-truncl.c: Likewise.
80381         * tests/test-unistd.c: Likewise.
80382         * tests/test-vasnprintf-posix.c: Likewise.
80383         * tests/test-vasnprintf-posix2.c: Likewise.
80384         * tests/test-vasnprintf.c: Likewise.
80385         * tests/test-vasprintf-posix.c: Likewise.
80386         * tests/test-vasprintf.c: Likewise.
80387         * tests/test-verify.c: Likewise.
80388         * tests/test-vfprintf-posix.c: Likewise.
80389         * tests/test-vprintf-posix.c: Likewise.
80390         * tests/test-vsnprintf-posix.c: Likewise.
80391         * tests/test-vsnprintf.c: Likewise.
80392         * tests/test-vsprintf-posix.c: Likewise.
80393         * tests/test-wchar.c: Likewise.
80394         * tests/test-wctype.c: Likewise.
80395         * tests/test-wcwidth.c: Likewise.
80396         * tests/test-xstrtol.c: Likewise.
80397         * tests/test-xvasprintf.c: Likewise.
80398         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
80399         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
80400         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
80401         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
80402         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
80403         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
80404         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
80405         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
80406         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
80407         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
80408         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
80409         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
80410         * tests/uniname/test-uninames.c: Likewise.
80411         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
80412         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
80413         * tests/unistdio/test-u16-printf1.h: Likewise.
80414         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
80415         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
80416         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
80417         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
80418         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
80419         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
80420         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
80421         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
80422         * tests/unistdio/test-u32-printf1.h: Likewise.
80423         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
80424         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
80425         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
80426         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
80427         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
80428         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
80429         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
80430         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
80431         * tests/unistdio/test-u8-printf1.h: Likewise.
80432         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
80433         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
80434         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
80435         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
80436         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
80437         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
80438         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
80439         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
80440         * tests/unistdio/test-ulc-printf1.h: Likewise.
80441         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
80442         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
80443         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
80444         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
80445         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
80446         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
80447         * tests/uniwidth/test-u16-strwidth.c: Likewise.
80448         * tests/uniwidth/test-u16-width.c: Likewise.
80449         * tests/uniwidth/test-u32-strwidth.c: Likewise.
80450         * tests/uniwidth/test-u32-width.c: Likewise.
80451         * tests/uniwidth/test-u8-strwidth.c: Likewise.
80452         * tests/uniwidth/test-u8-width.c: Likewise.
80453         * tests/uniwidth/test-uc_width.c: Likewise.
80454         * config/srclist-update: Likewise.
80455         (fixlicense): Update to GPLv3+.
80457         Change copyright notice from LGPLv2.1+ to LGPLv3+.
80458         * tests/test-tsearch.c: Change copyright notice.
80460         Change copyright notice from LGPLv2.0+ to LGPLv3+.
80461         * lib/c-strcaseeq.h: Change copyright notice.
80462         * lib/streq.h: Likewise.
80463         * lib/uniconv.h: Likewise.
80464         * lib/uniconv/u-conv-from-enc.h: Likewise.
80465         * lib/uniconv/u-conv-to-enc.h: Likewise.
80466         * lib/uniconv/u-strconv-from-enc.h: Likewise.
80467         * lib/uniconv/u-strconv-to-enc.h: Likewise.
80468         * lib/uniconv/u16-conv-from-enc.c: Likewise.
80469         * lib/uniconv/u16-conv-to-enc.c: Likewise.
80470         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
80471         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
80472         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
80473         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
80474         * lib/uniconv/u32-conv-from-enc.c: Likewise.
80475         * lib/uniconv/u32-conv-to-enc.c: Likewise.
80476         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
80477         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
80478         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
80479         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
80480         * lib/uniconv/u8-conv-from-enc.c: Likewise.
80481         * lib/uniconv/u8-conv-to-enc.c: Likewise.
80482         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
80483         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
80484         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
80485         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
80486         * lib/uniname.h: Likewise.
80487         * lib/uniname/uniname.c: Likewise.
80488         * lib/unistdio.h: Likewise.
80489         * lib/unistdio/u-asnprintf.h: Likewise.
80490         * lib/unistdio/u-asprintf.h: Likewise.
80491         * lib/unistdio/u-printf-args.c: Likewise.
80492         * lib/unistdio/u-printf-args.h: Likewise.
80493         * lib/unistdio/u-printf-parse.h: Likewise.
80494         * lib/unistdio/u-snprintf.h: Likewise.
80495         * lib/unistdio/u-sprintf.h: Likewise.
80496         * lib/unistdio/u-vasprintf.h: Likewise.
80497         * lib/unistdio/u-vsnprintf.h: Likewise.
80498         * lib/unistdio/u-vsprintf.h: Likewise.
80499         * lib/unistdio/u16-asnprintf.c: Likewise.
80500         * lib/unistdio/u16-asprintf.c: Likewise.
80501         * lib/unistdio/u16-printf-parse.c: Likewise.
80502         * lib/unistdio/u16-snprintf.c: Likewise.
80503         * lib/unistdio/u16-sprintf.c: Likewise.
80504         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
80505         * lib/unistdio/u16-u16-asprintf.c: Likewise.
80506         * lib/unistdio/u16-u16-snprintf.c: Likewise.
80507         * lib/unistdio/u16-u16-sprintf.c: Likewise.
80508         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
80509         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
80510         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
80511         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
80512         * lib/unistdio/u16-vasnprintf.c: Likewise.
80513         * lib/unistdio/u16-vasprintf.c: Likewise.
80514         * lib/unistdio/u16-vsnprintf.c: Likewise.
80515         * lib/unistdio/u16-vsprintf.c: Likewise.
80516         * lib/unistdio/u32-asnprintf.c: Likewise.
80517         * lib/unistdio/u32-asprintf.c: Likewise.
80518         * lib/unistdio/u32-printf-parse.c: Likewise.
80519         * lib/unistdio/u32-snprintf.c: Likewise.
80520         * lib/unistdio/u32-sprintf.c: Likewise.
80521         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
80522         * lib/unistdio/u32-u32-asprintf.c: Likewise.
80523         * lib/unistdio/u32-u32-snprintf.c: Likewise.
80524         * lib/unistdio/u32-u32-sprintf.c: Likewise.
80525         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
80526         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
80527         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
80528         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
80529         * lib/unistdio/u32-vasnprintf.c: Likewise.
80530         * lib/unistdio/u32-vasprintf.c: Likewise.
80531         * lib/unistdio/u32-vsnprintf.c: Likewise.
80532         * lib/unistdio/u32-vsprintf.c: Likewise.
80533         * lib/unistdio/u8-asnprintf.c: Likewise.
80534         * lib/unistdio/u8-asprintf.c: Likewise.
80535         * lib/unistdio/u8-printf-parse.c: Likewise.
80536         * lib/unistdio/u8-snprintf.c: Likewise.
80537         * lib/unistdio/u8-sprintf.c: Likewise.
80538         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
80539         * lib/unistdio/u8-u8-asprintf.c: Likewise.
80540         * lib/unistdio/u8-u8-snprintf.c: Likewise.
80541         * lib/unistdio/u8-u8-sprintf.c: Likewise.
80542         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
80543         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
80544         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
80545         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
80546         * lib/unistdio/u8-vasnprintf.c: Likewise.
80547         * lib/unistdio/u8-vasprintf.c: Likewise.
80548         * lib/unistdio/u8-vsnprintf.c: Likewise.
80549         * lib/unistdio/u8-vsprintf.c: Likewise.
80550         * lib/unistdio/ulc-asnprintf.c: Likewise.
80551         * lib/unistdio/ulc-asprintf.c: Likewise.
80552         * lib/unistdio/ulc-printf-parse.c: Likewise.
80553         * lib/unistdio/ulc-snprintf.c: Likewise.
80554         * lib/unistdio/ulc-sprintf.c: Likewise.
80555         * lib/unistdio/ulc-vasnprintf.c: Likewise.
80556         * lib/unistdio/ulc-vasprintf.c: Likewise.
80557         * lib/unistdio/ulc-vsnprintf.c: Likewise.
80558         * lib/unistdio/ulc-vsprintf.c: Likewise.
80559         * lib/unistr.h: Likewise.
80560         * lib/unistr/u-cpy-alloc.h: Likewise.
80561         * lib/unistr/u-cpy.h: Likewise.
80562         * lib/unistr/u-endswith.h: Likewise.
80563         * lib/unistr/u-move.h: Likewise.
80564         * lib/unistr/u-set.h: Likewise.
80565         * lib/unistr/u-startswith.h: Likewise.
80566         * lib/unistr/u-stpcpy.h: Likewise.
80567         * lib/unistr/u-stpncpy.h: Likewise.
80568         * lib/unistr/u-strcat.h: Likewise.
80569         * lib/unistr/u-strcpy.h: Likewise.
80570         * lib/unistr/u-strcspn.h: Likewise.
80571         * lib/unistr/u-strdup.h: Likewise.
80572         * lib/unistr/u-strlen.h: Likewise.
80573         * lib/unistr/u-strncat.h: Likewise.
80574         * lib/unistr/u-strncpy.h: Likewise.
80575         * lib/unistr/u-strnlen.h: Likewise.
80576         * lib/unistr/u-strpbrk.h: Likewise.
80577         * lib/unistr/u-strspn.h: Likewise.
80578         * lib/unistr/u-strstr.h: Likewise.
80579         * lib/unistr/u-strtok.h: Likewise.
80580         * lib/unistr/u16-check.c: Likewise.
80581         * lib/unistr/u16-chr.c: Likewise.
80582         * lib/unistr/u16-cmp.c: Likewise.
80583         * lib/unistr/u16-cpy-alloc.c: Likewise.
80584         * lib/unistr/u16-cpy.c: Likewise.
80585         * lib/unistr/u16-endswith.c: Likewise.
80586         * lib/unistr/u16-mblen.c: Likewise.
80587         * lib/unistr/u16-mbsnlen.c: Likewise.
80588         * lib/unistr/u16-mbtouc-aux.c: Likewise.
80589         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
80590         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
80591         * lib/unistr/u16-mbtouc.c: Likewise.
80592         * lib/unistr/u16-mbtoucr.c: Likewise.
80593         * lib/unistr/u16-move.c: Likewise.
80594         * lib/unistr/u16-next.c: Likewise.
80595         * lib/unistr/u16-prev.c: Likewise.
80596         * lib/unistr/u16-set.c: Likewise.
80597         * lib/unistr/u16-startswith.c: Likewise.
80598         * lib/unistr/u16-stpcpy.c: Likewise.
80599         * lib/unistr/u16-stpncpy.c: Likewise.
80600         * lib/unistr/u16-strcat.c: Likewise.
80601         * lib/unistr/u16-strchr.c: Likewise.
80602         * lib/unistr/u16-strcmp.c: Likewise.
80603         * lib/unistr/u16-strcpy.c: Likewise.
80604         * lib/unistr/u16-strcspn.c: Likewise.
80605         * lib/unistr/u16-strdup.c: Likewise.
80606         * lib/unistr/u16-strlen.c: Likewise.
80607         * lib/unistr/u16-strmblen.c: Likewise.
80608         * lib/unistr/u16-strmbtouc.c: Likewise.
80609         * lib/unistr/u16-strncat.c: Likewise.
80610         * lib/unistr/u16-strncmp.c: Likewise.
80611         * lib/unistr/u16-strncpy.c: Likewise.
80612         * lib/unistr/u16-strnlen.c: Likewise.
80613         * lib/unistr/u16-strpbrk.c: Likewise.
80614         * lib/unistr/u16-strrchr.c: Likewise.
80615         * lib/unistr/u16-strspn.c: Likewise.
80616         * lib/unistr/u16-strstr.c: Likewise.
80617         * lib/unistr/u16-strtok.c: Likewise.
80618         * lib/unistr/u16-to-u32.c: Likewise.
80619         * lib/unistr/u16-to-u8.c: Likewise.
80620         * lib/unistr/u16-uctomb-aux.c: Likewise.
80621         * lib/unistr/u16-uctomb.c: Likewise.
80622         * lib/unistr/u32-check.c: Likewise.
80623         * lib/unistr/u32-chr.c: Likewise.
80624         * lib/unistr/u32-cmp.c: Likewise.
80625         * lib/unistr/u32-cpy-alloc.c: Likewise.
80626         * lib/unistr/u32-cpy.c: Likewise.
80627         * lib/unistr/u32-endswith.c: Likewise.
80628         * lib/unistr/u32-mblen.c: Likewise.
80629         * lib/unistr/u32-mbsnlen.c: Likewise.
80630         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
80631         * lib/unistr/u32-mbtouc.c: Likewise.
80632         * lib/unistr/u32-mbtoucr.c: Likewise.
80633         * lib/unistr/u32-move.c: Likewise.
80634         * lib/unistr/u32-next.c: Likewise.
80635         * lib/unistr/u32-prev.c: Likewise.
80636         * lib/unistr/u32-set.c: Likewise.
80637         * lib/unistr/u32-startswith.c: Likewise.
80638         * lib/unistr/u32-stpcpy.c: Likewise.
80639         * lib/unistr/u32-stpncpy.c: Likewise.
80640         * lib/unistr/u32-strcat.c: Likewise.
80641         * lib/unistr/u32-strchr.c: Likewise.
80642         * lib/unistr/u32-strcmp.c: Likewise.
80643         * lib/unistr/u32-strcpy.c: Likewise.
80644         * lib/unistr/u32-strcspn.c: Likewise.
80645         * lib/unistr/u32-strdup.c: Likewise.
80646         * lib/unistr/u32-strlen.c: Likewise.
80647         * lib/unistr/u32-strmblen.c: Likewise.
80648         * lib/unistr/u32-strmbtouc.c: Likewise.
80649         * lib/unistr/u32-strncat.c: Likewise.
80650         * lib/unistr/u32-strncmp.c: Likewise.
80651         * lib/unistr/u32-strncpy.c: Likewise.
80652         * lib/unistr/u32-strnlen.c: Likewise.
80653         * lib/unistr/u32-strpbrk.c: Likewise.
80654         * lib/unistr/u32-strrchr.c: Likewise.
80655         * lib/unistr/u32-strspn.c: Likewise.
80656         * lib/unistr/u32-strstr.c: Likewise.
80657         * lib/unistr/u32-strtok.c: Likewise.
80658         * lib/unistr/u32-to-u16.c: Likewise.
80659         * lib/unistr/u32-to-u8.c: Likewise.
80660         * lib/unistr/u32-uctomb.c: Likewise.
80661         * lib/unistr/u8-check.c: Likewise.
80662         * lib/unistr/u8-chr.c: Likewise.
80663         * lib/unistr/u8-cmp.c: Likewise.
80664         * lib/unistr/u8-cpy-alloc.c: Likewise.
80665         * lib/unistr/u8-cpy.c: Likewise.
80666         * lib/unistr/u8-endswith.c: Likewise.
80667         * lib/unistr/u8-mblen.c: Likewise.
80668         * lib/unistr/u8-mbsnlen.c: Likewise.
80669         * lib/unistr/u8-mbtouc-aux.c: Likewise.
80670         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
80671         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
80672         * lib/unistr/u8-mbtouc.c: Likewise.
80673         * lib/unistr/u8-mbtoucr.c: Likewise.
80674         * lib/unistr/u8-move.c: Likewise.
80675         * lib/unistr/u8-next.c: Likewise.
80676         * lib/unistr/u8-prev.c: Likewise.
80677         * lib/unistr/u8-set.c: Likewise.
80678         * lib/unistr/u8-startswith.c: Likewise.
80679         * lib/unistr/u8-stpcpy.c: Likewise.
80680         * lib/unistr/u8-stpncpy.c: Likewise.
80681         * lib/unistr/u8-strcat.c: Likewise.
80682         * lib/unistr/u8-strchr.c: Likewise.
80683         * lib/unistr/u8-strcmp.c: Likewise.
80684         * lib/unistr/u8-strcpy.c: Likewise.
80685         * lib/unistr/u8-strcspn.c: Likewise.
80686         * lib/unistr/u8-strdup.c: Likewise.
80687         * lib/unistr/u8-strlen.c: Likewise.
80688         * lib/unistr/u8-strmblen.c: Likewise.
80689         * lib/unistr/u8-strmbtouc.c: Likewise.
80690         * lib/unistr/u8-strncat.c: Likewise.
80691         * lib/unistr/u8-strncmp.c: Likewise.
80692         * lib/unistr/u8-strncpy.c: Likewise.
80693         * lib/unistr/u8-strnlen.c: Likewise.
80694         * lib/unistr/u8-strpbrk.c: Likewise.
80695         * lib/unistr/u8-strrchr.c: Likewise.
80696         * lib/unistr/u8-strspn.c: Likewise.
80697         * lib/unistr/u8-strstr.c: Likewise.
80698         * lib/unistr/u8-strtok.c: Likewise.
80699         * lib/unistr/u8-to-u16.c: Likewise.
80700         * lib/unistr/u8-to-u32.c: Likewise.
80701         * lib/unistr/u8-uctomb-aux.c: Likewise.
80702         * lib/unistr/u8-uctomb.c: Likewise.
80703         * lib/unitypes.h: Likewise.
80704         * lib/uniwidth.h: Likewise.
80705         * lib/uniwidth/cjk.h: Likewise.
80706         * lib/uniwidth/u16-strwidth.c: Likewise.
80707         * lib/uniwidth/u16-width.c: Likewise.
80708         * lib/uniwidth/u32-strwidth.c: Likewise.
80709         * lib/uniwidth/u32-width.c: Likewise.
80710         * lib/uniwidth/u8-strwidth.c: Likewise.
80711         * lib/uniwidth/u8-width.c: Likewise.
80712         * lib/uniwidth/width.c: Likewise.
80714 2007-10-07  Bruno Haible  <bruno@clisp.org>
80716         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
80717         The file is still under LGPL (see modules/inttypes).
80719 2007-10-06  Bruno Haible  <bruno@clisp.org>
80721         * modules/trunc (Dependencies): Add 'extensions'.
80722         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
80723         Reported by Ben Pfaff <blp@gnu.org>.
80725 2007-10-06  Bruno Haible  <bruno@clisp.org>
80727         * modules/freopen-tests: New file.
80728         * tests/test-freopen.c: New file.
80730         * modules/fopen-tests: New file.
80731         * tests/test-fopen.c: New file.
80733         * modules/fopen: New file.
80734         * lib/fopen.c: New file.
80735         * m4/fopen.m4: New file.
80736         * modules/freopen: New file.
80737         * lib/freopen.c: New file.
80738         * m4/freopen.m4: New file.
80739         * lib/stdio.in.h (fopen, freopen): New declarations.
80740         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
80741         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
80742         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
80743         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
80744         * doc/functions/fopen.texi: Mention the 'fopen' module.
80745         * doc/functions/freopen.texi: Mention the 'freopen' module.
80747 2007-10-06  Bruno Haible  <bruno@clisp.org>
80749         * modules/open-tests: New file.
80750         * tests/test-open.c: New file.
80752         * modules/open: New file.
80753         * lib/open.c: New file.
80754         * m4/open.m4: New file.
80755         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
80756         lib/open.c does.
80757         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
80758         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
80759         macros.
80760         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
80761         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
80762         REPLACE_OPEN.
80763         * doc/functions/open.texi: Mention the 'open' module.
80765 2007-10-04  Bruno Haible  <bruno@clisp.org>
80767         * modules/ceill-tests: New file.
80768         * tests/test-ceill.c: New file.
80770         * modules/ceill: New file.
80771         * lib/ceill.c: Replace entire file.
80772         * m4/ceill.m4: New file.
80773         * lib/math.in.h (ceill): Replace declaration.
80774         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
80775         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
80776         * doc/functions/ceill.texi: Mention the 'ceill' module.
80777         * modules/mathl (Files): Remove lib/ceill.c.
80778         (Depends-on): Add ceill.
80780 2007-10-04  Bruno Haible  <bruno@clisp.org>
80782         * modules/ceilf-tests: New file.
80783         * tests/test-ceilf.c: New file.
80785         * modules/ceilf: New file.
80786         * lib/ceil.c: New file.
80787         * lib/ceilf.c: New file.
80788         * m4/ceilf.m4: New file.
80789         * lib/math.in.h (ceilf): New declaration.
80790         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
80791         HAVE_DECL_CEILF.
80792         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
80793         HAVE_DECL_CEILF.
80794         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
80796 2007-10-04  Bruno Haible  <bruno@clisp.org>
80798         * modules/floorl-tests: New file.
80799         * tests/test-floorl.c: New file.
80801         * modules/floorl: New file.
80802         * lib/floorl.c: Replace entire file.
80803         * m4/floorl.m4: New file.
80804         * lib/math.in.h (floorl): Replace declaration.
80805         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
80806         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
80807         * doc/functions/floorl.texi: Mention the 'floorl' module.
80808         * modules/mathl (Files): Remove lib/floorl.c.
80809         (Depends-on): Add floorl.
80811 2007-10-04  Bruno Haible  <bruno@clisp.org>
80813         * modules/floorf-tests: New file.
80814         * tests/test-floorf.c: New file.
80816         * modules/floorf: New file.
80817         * lib/floor.c: New file.
80818         * lib/floorf.c: New file.
80819         * m4/floorf.m4: New file.
80820         * lib/math.in.h (floorf): New declaration.
80821         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
80822         HAVE_DECL_FLOORF.
80823         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
80824         HAVE_DECL_FLOORF.
80825         * doc/functions/floorf.texi: Mention the 'floorf' module.
80827 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
80828             Bruno Haible  <bruno@clisp.org>
80830         Advertise for the Git server instead of the CVS server.
80831         * doc/gnulib-intro.texi (Steady Development): Mention the Git
80832         repository instead of the CVS one.
80833         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
80834         about all VCS systems generically.
80835         * doc/gnulib.texi (Introduction): Capitalize `Git'.
80837 2007-10-04  Bruno Haible  <bruno@clisp.org>
80839         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
80840         means.
80841         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
80843 2007-10-04  Bruno Haible  <bruno@clisp.org>
80845         * modules/truncl-tests: New file.
80846         * tests/test-truncl.c: New file.
80848         * modules/truncl: New file.
80849         * lib/truncl.c: New file.
80850         * m4/truncl.m4: New file.
80851         * lib/math.in.h (truncl): New declaration.
80852         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
80853         HAVE_DECL_TRUNCL.
80854         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
80855         HAVE_DECL_TRUNCL.
80856         * doc/functions/truncl.texi: Mention the 'truncl' module.
80858 2007-10-04  Bruno Haible  <bruno@clisp.org>
80860         * modules/truncf-tests: New file.
80861         * tests/test-truncf.c: New file.
80863         * modules/truncf: New file.
80864         * lib/trunc.c: Make paramerizable through USE_* macros.
80865         * lib/truncf.c: New file.
80866         * m4/truncf.m4: New file.
80867         * lib/math.in.h (truncf): New declaration.
80868         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
80869         HAVE_DECL_TRUNCF.
80870         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
80871         HAVE_DECL_TRUNCF.
80872         * doc/functions/truncf.texi: Mention the 'truncf' module.
80874 2007-10-03  Bruno Haible  <bruno@clisp.org>
80876         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
80877         augmentation also for tests modules.
80878         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
80879         * modules/atexit-tests (Makefile.am): Likewise.
80880         * modules/binary-io-tests (Makefile.am): Likewise.
80881         * modules/c-strcase-tests (Makefile.am): Likewise.
80882         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
80883         * modules/canonicalize-tests (Makefile.am): Likewise.
80884         * modules/closein-tests (Makefile.am): Likewise.
80885         * modules/fprintf-posix-tests (Makefile.am): Likewise.
80886         * modules/freadahead-tests (Makefile.am): Likewise.
80887         * modules/fseek-tests (Makefile.am): Likewise.
80888         * modules/fseeko-tests (Makefile.am): Likewise.
80889         * modules/ftell-tests (Makefile.am): Likewise.
80890         * modules/ftello-tests (Makefile.am): Likewise.
80891         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
80892         * modules/isnanl-tests (Makefile.am): Likewise.
80893         * modules/lseek-tests (Makefile.am): Likewise.
80894         * modules/mbscasecmp-tests (Makefile.am): Likewise.
80895         * modules/mbscasestr-tests (Makefile.am): Likewise.
80896         * modules/mbschr-tests (Makefile.am): Likewise.
80897         * modules/mbscspn-tests (Makefile.am): Likewise.
80898         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
80899         * modules/mbspbrk-tests (Makefile.am): Likewise.
80900         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
80901         * modules/mbsrchr-tests (Makefile.am): Likewise.
80902         * modules/mbsspn-tests (Makefile.am): Likewise.
80903         * modules/mbsstr-tests (Makefile.am): Likewise.
80904         * modules/printf-posix-tests (Makefile.am): Likewise.
80905         * modules/snprintf-posix-tests (Makefile.am): Likewise.
80906         * modules/sprintf-posix-tests (Makefile.am): Likewise.
80907         * modules/tsearch-tests (Makefile.am): Likewise.
80908         * modules/uniname/uniname-tests (Makefile.am): Likewise.
80909         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
80910         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
80911         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
80912         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
80913         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
80914         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
80915         * modules/vprintf-posix-tests (Makefile.am): Likewise.
80916         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
80917         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
80918         * modules/xstrtoimax-tests (Makefile.am): Likewise.
80919         * modules/xstrtol-tests (Makefile.am): Likewise.
80920         * modules/xstrtoumax-tests (Makefile.am): Likewise.
80921         * modules/yesno-tests (Makefile.am): Likewise.
80923 2007-10-03  Bruno Haible  <bruno@clisp.org>
80925         * modules/trunc-tests: New file.
80926         * tests/test-trunc.c: New file.
80928         * modules/trunc: New file.
80929         * lib/trunc.c: New file.
80930         * m4/trunc.m4: New file.
80931         * lib/math.in.h (trunc): New declaration.
80932         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
80933         HAVE_DECL_TRUNC.
80934         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
80935         HAVE_DECL_TRUNC.
80936         * doc/functions/trunc.texi: Mention the 'trunc' module.
80938 2007-10-03  Bruno Haible  <bruno@clisp.org>
80940         * tests/test-fpending.c: New file, mostly copied
80941         from coreutils/lib/t-fpending.c.
80942         * modules/fpending-tests: New file.
80944 2007-10-03  Bruno Haible  <bruno@clisp.org>
80946         Port the stdio extensions to QNX (untested).
80947         * lib/fseterr.c (fseterr): Add support for QNX.
80948         * lib/fbufmode.c (fbufmode): Likewise.
80949         * lib/freadable.c (freadable): Likewise.
80950         * lib/fwritable.c (fwritable): Likewise.
80951         * lib/freading.c (freading): Likewise.
80952         * lib/fwriting.c (fwriting): Likewise.
80953         * lib/freadahead.c (freadahed): Likewise.
80954         * lib/fpurge.c (fpurge): Likewise.
80955         * lib/fseeko.c (rpl_fseeko): Likewise.
80957 2007-10-03  Bruno Haible  <bruno@clisp.org>
80958             Jim Meyering  <jim@meyering.net>
80959             Eric Blake  <ebb9@byu.net>
80961         * doc/relocatable.texi: Use @command instead of @program.
80963 2007-10-02  Jim Meyering  <jim@meyering.net>
80965         Perform one more "_.h" -> ".in.h" substitution.
80966         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
80967         instead of unistd_.h here, too.
80969 2007-10-01  Bruno Haible  <bruno@clisp.org>
80971         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
80972         Needed for the alloca-opt module.
80974 2007-09-30  Bruno Haible  <bruno@clisp.org>
80976         * lib/alloca.in.h: Renamed from lib/alloca_.h.
80977         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
80978         alloca_.h.
80979         * lib/argz.in.h: Renamed from lib/argz_.h.
80980         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
80981         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
80982         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
80983         byteswap_.h.
80984         * lib/dirent.in.h: Renamed from lib/dirent_.h.
80985         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
80986         dirent_.h.
80987         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
80988         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
80989         fcntl_.h.
80990         * lib/float.in.h: Renamed from lib/float_.h.
80991         * modules/float (Files, Makefile.am): Use float.in.h instead of
80992         float_.h.
80993         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
80994         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
80995         fnmatch_.h.
80996         * lib/getopt.in.h: Renamed from lib/getopt_.h.
80997         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
80998         getopt_.h.
80999         * lib/glob.in.h: Renamed from lib/glob_.h.
81000         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
81001         * lib/iconv.in.h: Renamed from lib/iconv_.h.
81002         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
81003         iconv_.h.
81004         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
81005         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
81006         inttypes_.h.
81007         * lib/locale.in.h: Renamed from lib/locale_.h.
81008         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
81009         locale_.h.
81010         * lib/math.in.h: Renamed from lib/math_.h.
81011         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
81012         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
81013         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
81014         of netinet_in_.h. Add dependency.
81015         * lib/poll.in.h: Renamed from lib/poll_.h.
81016         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
81017         * lib/search.in.h: Renamed from lib/search_.h.
81018         * modules/search (Files, Makefile.am): Use search.in.h instead of
81019         search_.h.
81020         * lib/signal.in.h: Renamed from lib/signal_.h.
81021         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
81022         _signal.h.
81023         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
81024         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
81025         stdbool_.h.
81026         * lib/stdint.in.h: Renamed from lib/stdint_.h.
81027         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
81028         stdint_.h.
81029         * lib/stdio.in.h: Renamed from lib/stdio_.h.
81030         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
81031         stdio_.h.
81032         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
81033         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
81034         stdlib_.h.
81035         * lib/string.in.h: Renamed from lib/string_.h.
81036         * modules/string (Files, Makefile.am): Use string.in.h instead of
81037         string_.h.
81038         * doc/gnulib-tool.texi (Initial import): Update.
81039         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
81040         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
81041         of sys_select_.h. Add dependency.
81042         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
81043         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
81044         of sys_socket_.h.
81045         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
81046         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
81047         sys_stat_.h.
81048         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
81049         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
81050         sys_time_.h.
81051         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
81052         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
81053         sysexits_.h.
81054         * lib/time.in.h: Renamed from lib/time_.h.
81055         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
81056         * lib/unistd.in.h: Renamed from lib/unistd_.h.
81057         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
81058         unistd_.h.
81059         * lib/wchar.in.h: Renamed from lib/wchar_.h.
81060         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
81061         wchar_.h.
81062         * lib/wctype.in.h: Renamed from lib/wctype_.h.
81063         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
81064         wctype_.h.
81065         * build-aux/bootstrap (slurp): Update.
81066         * lib/.cppi-disable: Update.
81068 2007-09-30  Bruno Haible  <bruno@clisp.org>
81070         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
81071         Needed on BeOS.
81073 2007-09-30  Bruno Haible  <bruno@clisp.org>
81075         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
81077 2007-09-29  Bruno Haible  <bruno@clisp.org>
81079         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
81081 2007-09-29  Bruno Haible  <bruno@clisp.org>
81083         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
81084         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
81085         * build-aux/install-reloc: Compile also areadlink.c.
81086         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
81088 2007-09-29  Bruno Haible  <bruno@clisp.org>
81090         * gnulib-tool (func_emit_initmacro_done): Indentation.
81092 2007-09-29  Bruno Haible  <bruno@clisp.org>
81094         * README: Add CVS checkout update instructions.
81095         Info from Bob Proulx <bob@proulx.com>.
81097 2007-09-28  Eric Blake  <ebb9@byu.net>
81099         Provide move-if-change.
81100         * build-aux/move-if-change: New file, based on best practice
81101         rather than any canonical upstream location.
81103 2007-09-28  Jim Meyering  <jim@meyering.net>
81105         Fix canonicalize loop-detection corner case.
81106         Do not attempt to stat the symlink values stored via seen_triple.
81107         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
81108         on linux-2.6.18, (but not 2.6.22).
81109         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
81110         triple_compare.  The former compares dev,ino,filename, while the latter
81111         would actually stat dirname(filename) when dev and ino were equal.
81112         * lib/hash-triple.c: Install <string.h>.
81113         (STREQ): Define.
81114         (triple_compare_ino_str): New function.
81115         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
81117 2007-09-28  Eric Blake  <ebb9@byu.net>
81119         Enforce that AC_REPLACE_FUNCS files exist.
81120         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
81121         override check for typos.
81123         Fix test-closein on Solaris 10.
81124         * tests/test-closein.c (main): Don't assume stdin can be inherited
81125         closed on all systems.
81126         * tests/test-closein.sh: Likewise.
81127         Reported by Piotr Tarnowski.
81129 2007-09-28  Jim Meyering  <jim@meyering.net>
81131         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
81133 2007-09-27  Jim Meyering  <jim@meyering.net>
81135         canonicalize: Avoid a false-positive cycle failure.
81136         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
81137         Sort.  Remove cycle-check.
81138         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
81139         not cycle-check.h.
81140         (seen_triple): New function.
81141         (canonicalize_filename_mode): Use it instead of cycle-check.
81142         * tests/test-canonicalize.c: Add a test for this bug.
81143         * tests/test-canonicalize.sh: Set up and run the test.
81145         New module, file-set, from coreutils.
81146         * modules/file-set: Define it.
81147         * lib/file-set.c, lib/file-set.h: Implement.
81149         New module, hash-triple, from coreutils.
81150         * modules/hash-triple: Define it.
81151         * lib/hash-triple.c, lib/hash-triple.h: Implement.
81153 2007-09-25  Eric Blake  <ebb9@byu.net>
81155         Fix strerror on Interix.
81156         * lib/string_.h (strerror): Declare replacement.
81157         * doc/functions/strerror.texi (strerror): Document the Interix
81158         shortcoming.
81159         * modules/string (Makefile.am): Support new hooks.
81160         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
81161         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
81162         gl_FUNC_STRERROR_SEPARATE.
81163         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
81164         * lib/strerror.c (rpl_strerror): Provide replacement.
81165         * modules/strerror (Depends-on): Add string.
81166         (configure.ac): Detect use of module.
81167         * tests/test-strerror.c: New file.
81168         * modules/strerror-tests: New test module.
81169         * modules/argp (Depends-on): Add strerror.
81170         * modules/error (Depends-on): Likewise.
81171         Reported by Martin Koeppe.
81173 2007-09-24  Bruno Haible  <bruno@clisp.org>
81175         * README: Update git instructions.
81177 2007-09-24  Eric Blake  <ebb9@byu.net>
81179         Revert fpending breakage from 2007-09-08.
81180         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
81181         __fpending.c.
81183 2007-09-24  Jim Meyering  <jim@meyering.net>
81185         filenamecat.c: Add a test.
81186         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
81187         showing how the function works when DIR is the empty string.
81189 2007-09-21  Simon Josefsson  <simon@josefsson.org>
81191         * tests/test-canonicalize.sh: Turn on executable bit.
81193 2007-09-19  Eric Blake  <ebb9@byu.net>
81195         * README: Update CVS instructions.
81197 2007-09-18  Bruno Haible  <bruno@clisp.org>
81199         * modules/areadlink: New file.
81200         * lib/areadlink.h (areadlink): New declaration.
81201         * lib/areadlink.c: New file, based on lib/xreadlink.c.
81203 2007-09-17  Jim Meyering  <jim@meyering.net>
81205         * lib/savewd.c (ESTALE) [!defined]: Define.
81206         Reported to be required on Interix by Martin Koeppe.
81208 2007-09-17  Bruno Haible  <bruno@clisp.org>
81210         * gnulib-tool (func_version): Use $version.
81212 2007-09-16  Bruno Haible  <bruno@clisp.org>
81214         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
81215         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
81216         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
81217         Reported by Greg Schafer <gschafer@zip.com.au>.
81219 2007-09-15  Bruno Haible  <bruno@clisp.org>
81221         * gnulib-tool (sed): Try a little harder to make bash understand the
81222         alias.
81223         Reported by Bruce Korb <bruce.korb@gmail.com>.
81225 2007-09-13  Eric Blake  <ebb9@byu.net>
81227         * ChangeLog: Remove conflict markers.
81229 2007-09-13  Simon Josefsson  <simon@josefsson.org>
81231         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
81232         Reported by Bruno Haible <bruno@clisp.org>.
81234 2007-09-12  Bruno Haible  <bruno@clisp.org>
81236         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
81237         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
81238         is not defined.
81240 2007-09-12  Eric Blake  <ebb9@byu.net>
81242         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
81243         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
81244         Autoconf definition.
81245         * modules/euidaccess (Depends-on): Add extensions, for
81246         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
81247         * modules/fnmatch (Depends-on): Likewise.
81248         * modules/getaddrinfo (Depends-on): Likewise.
81249         * modules/getdelim (Depends-on): Likewise.
81250         * modules/getline (Depends-on): Likewise.
81251         * modules/getsubopt (Depends-on): Likewise.
81252         * modules/gettext (Depends-on): Likewise.
81253         * modules/group-member (Depends-on): Likewise.
81254         * modules/mbchar (Depends-on): Likewise.
81255         * modules/memmem (Depends-on): Likewise.
81256         * modules/mempcpy (Depends-on): Likewise.
81257         * modules/memrchr (Depends-on): Likewise.
81258         * modules/pagealign_alloc (Depends-on): Likewise.
81259         * modules/readutmp (Depends-on): Likewise.
81260         * modules/stpcpy (Depends-on): Likewise.
81261         * modules/stpncpy (Depends-on): Likewise.
81262         * modules/strchrnul (Depends-on): Likewise.
81263         * modules/strndup (Depends-on): Likewise.
81264         * modules/strsep (Depends-on): Likewise.
81265         * modules/strverscmp (Depends-on): Likewise.
81266         * modules/vasprintf (Depends-on): Likewise.
81267         * modules/wcwidth (Depends-on): Likewise.
81268         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
81269         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
81270         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
81271         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
81272         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
81273         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
81274         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
81275         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
81276         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
81277         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
81278         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
81279         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
81280         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
81281         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
81282         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
81283         * m4/readutmp.m4 (gl_READUTMP): Likewise.
81284         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
81285         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
81286         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
81287         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
81288         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
81289         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
81290         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
81291         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
81292         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
81293         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
81294         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
81295         so that lock.m4 can be used in gettext without extensions module.
81297 2007-09-11  Bruno Haible  <bruno@clisp.org>
81299         * m4/isc-posix.m4: Remove file.
81300         Suggested by Eric Blake.
81302 2007-09-11  Eric Blake  <ebb9@byu.net>
81304         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
81306 2007-09-10  Bruno Haible  <bruno@clisp.org>
81308         * posix-modules: Fix typo in error message.
81309         Reported by Matt <mkraai@beckman.com>.
81311 2007-09-09  Bruno Haible  <bruno@clisp.org>
81313         * doc/functions/getdelim.texi: Update list of platforms lacking the
81314         function.
81315         * doc/functions/getline.texi: Likewise.
81317 2007-09-09  Jim Meyering  <jim@meyering.net>
81319         * lib/hash.c (hash_initialize): Detect calloc failure.
81320         Reported by Bruno Haible.
81322 2007-09-09  Bruno Haible  <bruno@clisp.org>
81324         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
81325         malloc or realloc fails.
81327 2007-09-09  Bruno Haible  <bruno@clisp.org>
81329         * modules/getcwd (Depends-on): Add malloc-posix.
81330         * modules/glob (Depends-on): Likewise.
81331         * modules/putenv (Depends-on): Likewise.
81332         * modules/strdup (Depends-on): Likewise.
81333         * modules/getdelim (Depends-on): Add realloc-posix.
81334         * modules/read-file (Depends-on): Likewise.
81336 2007-09-09  Bruno Haible  <bruno@clisp.org>
81338         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
81339         (gl_FUNC_MALLOC_POSIX): Require it.
81340         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
81341         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
81342         * modules/realloc (Files): Add m4/malloc.m4.
81343         * modules/calloc (Files): Likewise.
81345 2007-09-09  Bruno Haible  <bruno@clisp.org>
81347         * modules/malloc-posix: New file.
81348         * modules/malloc (Depends-on): Add malloc-posix.
81349         * lib/malloc.c: Include errno.h.
81350         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
81351         and a POSIX-compatible malloc into a single function. Set ENOMEM
81352         when returning NULL.
81353         * m4/malloc.m4: New file.
81354         * doc/functions/malloc.texi: Mention the malloc-posix module.
81355         * lib/stdlib_.h (malloc): New declaration.
81356         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
81357         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
81358         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
81359         and HAVE_MALLOC_POSIX.
81361 2007-09-09  Bruno Haible  <bruno@clisp.org>
81363         * modules/realloc-posix: New file.
81364         * modules/realloc (Depends-on): Add realloc-posix.
81365         * lib/realloc.c: Include errno.h.
81366         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
81367         and a POSIX-compatible realloc into a single function. Set ENOMEM
81368         when returning NULL.
81369         * m4/realloc.m4: New file.
81370         * doc/functions/realloc.texi: Mention the realloc-posix module.
81371         * lib/stdlib_.h (realloc): New declaration.
81372         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
81373         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
81374         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
81375         and HAVE_REALLOC_POSIX.
81377 2007-09-09  Bruno Haible  <bruno@clisp.org>
81379         * modules/calloc-posix: New file.
81380         * modules/calloc (Depends-on): Add calloc-posix.
81381         * lib/calloc.c: Include errno.h.
81382         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
81383         and a POSIX-compatible calloc into a single function. Set ENOMEM
81384         when returning NULL.
81385         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
81386         * doc/functions/calloc.texi: Mention the calloc-posix module.
81387         * lib/stdlib_.h (calloc): New declaration.
81388         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
81389         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
81390         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
81391         and HAVE_CALLOC_POSIX.
81393 2007-09-09  Bruno Haible  <bruno@clisp.org>
81395         Allow for modules to show an arbitrary notice.
81396         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
81397         * gnulib-tool: New option --extract-notice.
81398         (func_usage): Document it.
81399         (sed_extract_prog): Update.
81400         (func_get_notice): New function.
81401         (func_modules_notice): New function.
81402         (func_import, func_create_testdir): Invoke it.
81403         Suggested by Jim Meyering.
81405 2007-09-09  Bruno Haible  <bruno@clisp.org>
81407         * gnulib-tool: New options --verbose, --quiet.
81408         (func_usage): Document them.
81409         (verbose): New variable.
81410         (func_execute_command): New function.
81411         (func_import): Don't show the module list and the file list if
81412         $verbose < 0.
81413         (func_create_testdir): Likewise. Use func_execute_command.
81414         (func_create_megatestdir): Use func_execute_command.
81416 2007-09-08  Bruno Haible  <bruno@clisp.org>
81418         * gnulib-tool (func_import): Prefer rsync over wget when available,
81419         for fetching the PO files.
81421 2007-09-08  Bruno Haible  <bruno@clisp.org>
81423         * posix-modules: New file. Portions copied from gnulib-tool.
81424         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
81426 2007-09-08  Jim Meyering  <jim@meyering.net>
81428         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
81429         * lib/fpending.h: Rename from __fpending.h.
81430         * lib/fpending.c: Rename from __fpending.c.
81431         Include "fpending.h", not "__fpending.h".
81432         * lib/__fpending.h, lib/__fpending.c: Remove files.
81433         * modules/fpending (Files): Reflect new file names.
81434         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
81436 2007-09-08  Bruno Haible  <bruno@clisp.org>
81438         * m4/inttypes-h.m4: Remove stub file.
81440 2007-09-07  Simon Josefsson  <simon@josefsson.org>
81442         * doc/headers/stdint.texi: Discuss #include_next issue.
81444 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81446         * build-aux/bootstrap: Remove obsolete comment about wget --help.
81448 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81450         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
81451         in variable name.
81453 2007-09-03  Jim Meyering  <jim@meyering.net>
81455         New module: git-version-gen.
81456         * modules/git-version-gen: New file.
81458         Import changes from coreutils for bootstrap script.
81460         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
81462         bootstrap: uses rsync to download the .po files
81463         * build-aux/bootstrap (po_download_command_format): New global.
81464         (download_po_files): Use rsync.
81465         (update_po_files): Don't remove .po files after download,
81466         so future rsync runs can take advantage of the copies.
81468         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
81470         Solve the unnecessary-.po-file-regeneration problem once and for all.
81471         * build-aux/bootstrap (download_po_files): New function, renamed from
81472         get_translations.  Now, downloads, but doesn't update LINGUAS.
81473         (update_po_files): New function.
81475         bootstrap: Ignore more.
81476         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
81477         uniwidth to e.g., lib/.gitignore.
81478         (slurp): Handle the sys_stat_.h -> sys mapping, too.
81480         * build-aux/bootstrap: New setting: vc_ignore.
81481         (insert_sorted_if_absent): Create $file if absent.
81482         Adapt to new, possibly empty, list: $vc_ignore.
81484         bootstrap: generate more ignorable names
81485         * build-aux/bootstrap (slurp): When generating ignorable names,
81486         also map .sin to .sed, .gperf to .c, and .y to .c.
81488 2007-09-03  Jim Meyering  <jim@meyering.net>
81490         * build-aux/git-version-gen: New file, from coreutils.  For details, see
81491         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
81493 2007-09-02  Bruno Haible  <bruno@clisp.org>
81495         Fix mis-recognition of 'mcs' on QNX 6.
81496         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
81497         output contains the string "Mono".
81498         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
81499         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
81501 2007-09-01  Bruno Haible  <bruno@clisp.org>
81503         Fix collision between uniwidth/* and linebreak modules.
81504         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
81505         u32_width): Remove declarations.
81506         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
81507         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
81508         streq3, streq2, streq1, streq0): Remove functions.
81509         (STREQ): Remove macro.
81510         (is_cjk_encoding): Remove function.
81511         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
81512         (uc_width, u8_width, u16_width, u32_width): Remove functions.
81513         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
81514         * NEWS: Document the change.
81516 2007-09-01  Bruno Haible  <bruno@clisp.org>
81518         * lib/streq.h: Add double-inclusion guard.
81520 2007-09-01  Karl Berry  <karl@gnu.org>
81522         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
81524 2007-08-28  Jim Meyering  <jim@meyering.net>
81526         Rename mreadlink_with_size to areadlink_with_size.
81527         * NEWS: Document the change.
81528         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
81529         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
81530         * lib/mreadlink.h: Rename this to...
81531         * lib/areadlink.h: ...this.
81532         * modules/mreadlink-with-size: Rename this to...
81533         * modules/areadlink-with-size: ...this.
81534         * lib/canonicalize.c: Reflect the renaming.
81535         * modules/canonicalize: Likewise.
81537 2007-08-26  Bruno Haible  <bruno@clisp.org>
81539         * gnulib-tool (func_import): When deciding which files to remove,
81540         consider also dangling symbolic links.
81541         Reported by Eric Blake.
81543 2007-08-26  Bruno Haible  <bruno@clisp.org>
81545         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
81547 2007-08-23  Simon Josefsson  <simon@josefsson.org>
81549         * lib/readline.c: Don't include getline.h, the prototype is now
81550         found in stdio.h.
81552 2007-08-23  Jim Meyering  <jim@meyering.net>
81554         Getdelim touchup.
81555         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
81556         around the funlockfile call, since funlockfile never sets errno.
81557         Don't set errno upon failed realloc.
81559 2007-08-22  Eric Blake  <ebb9@byu.net>
81561         Getline touchups.
81562         * lib/getdelim.c (getdelim): Revert regression that required *n to
81563         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
81564         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
81565         getdelim, rather than whether implementation is missing.
81566         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
81567         * lib/stdio_.h (getline): Also declare if replacement is
81568         required.
81569         * doc/functions/getdelim.texi: New file.
81570         * doc/functions/getline.texi: Likewise.
81571         * doc/gnulib.texi (Function Substitutes): Add new files.
81572         Reported by Bruno Haible.
81574 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
81576         * users.txt: Add Guile.
81578 2007-08-22  Eric Blake  <ebb9@byu.net>
81580         * tests/test-getdelim.c (main): Use remove, not unlink.
81581         * tests/test-getline.c (main): Likewise.
81583         Move getline and getdelim into stdio.h, per POSIX 200x.
81584         * modules/getline (Files): Remove getline.h.
81585         (Depends-on): Add stdio.
81586         (configure.ac): Add module indicator.
81587         * modules/getdelim (Files): Remove getdelim.h.
81588         (Depends-on): Add stdio.
81589         (configure.ac): Add module indicator.
81590         * modules/stdio (Makefile.am): Work with new indicators.
81591         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
81592         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
81593         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
81594         * lib/getdelim.h: Delete.
81595         * lib/getline.h: Delete.
81596         * lib/stdio_.h (getdelim, getline): Declare.
81597         * modules/getdelim-tests: New module.
81598         * modules/getline-tests: Likewise.
81599         * tests/test-getdelim.c: New file.
81600         * tests/test-getline.c: Likewise.
81601         * NEWS: Document the change.
81602         * lib/getline.c: Update choice of header.
81603         * lib/csharpcomp.c: Likewise.
81604         * lib/getpass.c: Likewise.
81605         * lib/javacomp.c: Likewise.
81606         * lib/javaversion.c: Likewise.
81607         * lib/yesno.c: Likewise.
81608         * lib/getdelim.c: Likewise.
81609         (getdelim): Set errno on failure, and avoid memory leak.
81611 2007-08-19  Bruno Haible  <bruno@clisp.org>
81613         * modules/closein (Depends-on): Add freadahead.
81614         * lib/closein.c: Include freadahead.h.
81615         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
81616         is zero.
81618 2007-08-19  Bruno Haible  <bruno@clisp.org>
81620         * modules/freadahead-tests: New file.
81621         * tests/test-freadahead.sh: New file.
81622         * tests/test-freadahead.c: New file.
81624         * modules/freadahead: New file.
81625         * lib/freadahead.h: New file.
81626         * lib/freadahead.c: New file.
81627         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
81628         fbufmode, fpurge, freadable, fwritable.
81630 2007-08-19  Eric Blake  <ebb9@byu.net>
81632         Test yesno in combination with closein.
81633         * lib/yesno.c (yesno): Document use of stdin.
81634         * modules/yesno-tests (Files): New module.
81635         * tests/test-yesno.c (main): New file.
81636         * tests/test-yesno.sh: Likewise.
81638 2007-08-19  Bruno Haible  <bruno@clisp.org>
81640         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
81641         * lib/fseeko.c (rpl_fseeko): Likewise.
81642         * lib/fseterr.c (fseterr): Likewise.
81644 2007-08-19  Bruno Haible  <bruno@clisp.org>
81646         * tests/test-lseek.c (main): Disable a test for BeOS.
81647         * doc/functions/lseek.texi: Document the BeOS bug.
81649 2007-08-19  Bruno Haible  <bruno@clisp.org>
81650             Eric Blake  <ebb9@byu.net>
81652         * lib/lseek.c: Include <sys/stat.h>.
81653         (rpl_lseek): Add workaround code also for Unix platforms.
81654         Needed for BeOS.
81655         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
81656         * doc/functions/lseek.texi: Document BeOS definiency.
81658 2007-08-18  Bruno Haible  <bruno@clisp.org>
81660         * modules/fstrcmp-tests: New file.
81661         * tests/test-fstrcmp.c: New file.
81663 2007-08-18  Bruno Haible  <bruno@clisp.org>
81665         * modules/fstrcmp: New file, from GNU gettext with modifications.
81666         * lib/fstrcmp.h: New file, from GNU gettext.
81667         * lib/fstrcmp.c: New file, from GNU gettext.
81668         * MODULES.html.sh (String handling): Add fstrcmp.
81670 2007-08-18  Bruno Haible  <bruno@clisp.org>
81672         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
81673         'bool'.
81674         (diag, compareseq): Remove const from the ctxt argument.
81675         (USE_HEURISTIC): Undefine at the end.
81677 2007-08-18  Jim Meyering  <jim@meyering.net>
81679         New file: lib/idcache.h
81680         * NEWS: Mention the addition.
81681         * modules/idcache (Files): Add lib/idcache.h
81682         * lib/idcache.c: Include "idcache.h".
81683         Don't include <sys/types.h>.
81684         Add a FIXME comment.
81685         Move file-scoped "static" declarations to the top.
81686         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
81688 2007-08-17  Bruno Haible  <bruno@clisp.org>
81689         and Paul Eggert  <eggert@cs.ucla.edu>
81691         * MODULES.html.sh: Add diffseq.
81692         * modules/diffseq: New file.
81693         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
81694         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
81696 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
81698         Import changes from coreutils for bootstrap script.
81700         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
81702         * build-aux/bootstrap (slurp): Work even in environments where
81703         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
81704         current code does not slurp files whose names start with ".", and
81705         this looks like it might be a troublesome area.
81707         2007-07-11  Jim Meyering  <jim@meyering.net>
81709         If there's a GPL vN copyright comment, require that N == 3.
81711         2007-07-08  Jim Meyering  <jim@meyering.net>
81713         Run the coreutils-specific code only if tests/Makefile.am.in exists.
81714         * build-aux/bootstrap (mam_template): Move definition out of loop.
81716         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
81718         * build-aux/bootstrap (symlink_to_dir): Rename function from
81719         symlink_to_gnulib.  Add a directory parameter.  Update all
81720         callers.
81721         (cp_mark_as_generated): Also check for -- and link to -- files in
81722         gl/.
81724         2007-07-08  Jim Meyering  <jim@meyering.net>
81726         Adapt to deeper hierarchy in gnulib.
81727         * build-aux/bootstrap (symlink_to_dir): If the destination
81728         directory doesn't exist, create it. This is required at least for
81729         "lib/uniwidth/cjk.h".
81731         2007-05-15  Jim Meyering  <jim@meyering.net>
81733         * build-aux/bootstrap: Now that generated Makefile.am files
81734         are no longer under version control, they must be created at
81735         bootstrap time.
81737 2007-08-14  Ben Pfaff  <blp@gnu.org>
81739         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
81741 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
81743         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
81744         given the changes below.
81745         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
81746         even on hosts that have padding bits beyond the supported 64.
81748 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
81750         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
81751         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
81752         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
81753         depends on it.
81754         (xstrtol_error): Remove.
81755         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
81756         but with a different signature.
81757         (ATTRIBUTE_NORETURN, __attribute__): New macros.
81758         * lib/xstrtol-error.c: Include exitfail.h.
81759         (xstrtol_fatal): New function, with a different signature from the
81760         old xstrtol_error, so that the caller need not worry about passing
81761         in an exit status, or about storage management of the option argument.
81762         (xstrtol_error): Now a static function.  Redo signature to
81763         implement xstrtol_fatal.  Output the correct number of hyphens in
81764         front of the option so that the caller need not worry about
81765         storage management.
81766         (N_): New macro.
81767         (_): Remove; not used now.
81768         * modules/xstrtol: Depend on getopt.
81769         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
81770         of old STRTOL_FATAL_ERROR macro.
81771         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
81772         of test program.
81773         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
81774         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
81776 2007-08-08  Eric Blake  <ebb9@byu.net>
81778         * lib/xstrtol-error.c: Add missing include.
81780         Move xstrtol messages into gnulib domain, when --pobase is used.
81781         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
81782         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
81783         * modules/xstrtol (Files): Distribute new file.
81784         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
81785         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
81786         * tests/test-xstrtol.c: ...into new file.
81787         * tests/test-xstrtoul.c: Also test xstrtoul.
81788         * tests/test-xstrtoimax.c: Also test xstrtoimax.
81789         * tests/test-xstrtoumax.c: Also test xstrtoumax.
81790         * tests/test-xstrtol.sh: Drive the tests.
81791         * tests/test-xstrtoimax.sh: Likewise.
81792         * tests/test-xstrtoumax.sh: Likewise.
81793         * modules/xstrtol-tests: New module.
81794         * modules/xstrtoimax-tests: Likewise.
81795         * modules/xstrtoumax-tests: Likewise.
81797 2007-08-08  Jim Meyering  <jim@meyering.net>
81799         New function: mfile_name_concat.
81800         * lib/filenamecat.c (mfile_name_concat): New function, just like
81801         file_name_concat, but return NULL upon failure rather than exiting
81802         with a diagnostic.
81803         * lib/filenamecat.h: Declare it.
81805 2007-08-07  Bruno Haible  <bruno@clisp.org>
81807         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
81808         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
81809         warning from gcc.
81810         Reported by Eric Blake.
81812 2007-08-07  Simon Josefsson  <simon@josefsson.org>
81814         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
81815         * modules/crypto/arcfour (License): Likewise.
81816         * modules/crypto/des-tests (License): Likewise.
81817         * modules/crypto/gc-arctwo-tests (License): Likewise.
81818         * modules/crypto/gc-des-tests (License): Likewise.
81819         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
81820         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
81821         * modules/crypto/gc-md2-tests (License): Likewise.
81822         * modules/crypto/gc-md4-tests (License): Likewise.
81823         * modules/crypto/gc-md5-tests (License): Likewise.
81824         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
81825         * modules/crypto/gc-rijndael-tests (License): Likewise.
81826         * modules/crypto/gc-sha1-tests (License): Likewise.
81827         * modules/crypto/gc-tests (License): Likewise.
81828         * modules/crypto/hmac-md5 (License): Likewise.
81829         * modules/crypto/hmac-sha1 (License): Likewise.
81830         * modules/crypto/md2-tests (License): Likewise.
81831         * modules/crypto/md4-tests (License): Likewise.
81832         * modules/crypto/md5 (License): Likewise.
81833         * modules/crypto/rijndael (License): Likewise.
81834         * modules/crypto/sha1 (License): Likewise.
81835         * modules/memxor (License): Likewise.
81837 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81838         and Bruno Haible  <bruno@clisp.org>
81840         * NEWS: Describe interface changes to human, xstrtol.
81841         * lib/human.h: Include <xstrtol.h>.
81842         (human_options): Return enum strtol_error, not int.  Remove
81843         bool arg; take int * instead.
81844         * lib/human.c: Don't include "gettext.h".
81845         (_): Remove; no longer used.
81846         Don't include <xstrtol.h>, since human.h does it.
81847         (human_options): Adjust to abovementioned interface changes.
81848         Do not report error to stderr; that's now the caller's
81849         responsibility.
81850         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
81851         interface change.
81852         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
81853         Str, Argument_type_string.  All uses changed.  Put " argument"
81854         in diagnostics to make them clearer.  Change wording of suffix
81855         message for clarity.
81856         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
81857         Argument_type_string.
81858         (STRTOL_FATAL_WARN): Remove; no longer used.
81859         * modules/human (Depends-on): Remove gettext-h.
81861 2007-08-06  Simon Josefsson  <simon@josefsson.org>
81863         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
81865 2007-07-31  Bruno Haible  <bruno@clisp.org>
81867         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
81868         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
81869         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
81871 2007-07-31  Bruno Haible  <bruno@clisp.org>
81873         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
81874         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
81876 2007-07-30  Bruno Haible  <bruno@clisp.org>
81878         * modules/base64 (License): Use the synonymous term "LGPLv2+".
81879         * modules/c-ctype (License): Likewise.
81880         * modules/c-strcase (License): Likewise.
81881         * modules/check-version (License): Likewise.
81882         * modules/iconv (License): Likewise.
81883         * modules/iconv_open (License): Likewise.
81884         * modules/read-file (License): Likewise.
81885         * modules/striconv (License): Likewise.
81886         * modules/strverscmp (License): Likewise.
81887         * modules/vasprintf (License): Likewise.
81888         * modules/crypto/des (License): Likewise.
81889         * modules/crypto/gc (License): Likewise.
81890         * modules/crypto/gc-arcfour (License): Likewise.
81891         * modules/crypto/gc-arctwo (License): Likewise.
81892         * modules/crypto/gc-des (License): Likewise.
81893         * modules/crypto/gc-hmac-md5 (License): Likewise.
81894         * modules/crypto/gc-hmac-sha1 (License): Likewise.
81895         * modules/crypto/gc-md2 (License): Likewise.
81896         * modules/crypto/gc-md4 (License): Likewise.
81897         * modules/crypto/gc-md5 (License): Likewise.
81898         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
81899         * modules/crypto/gc-random (License): Likewise.
81900         * modules/crypto/gc-rijndael (License): Likewise.
81901         * modules/crypto/gc-sha1 (License): Likewise.
81902         * modules/crypto/md2 (License): Likewise.
81903         * modules/crypto/md4 (License): Likewise.
81905 2007-07-30  Jim Meyering  <jim@meyering.net>
81907         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
81908         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
81909         it has valid stat data.  This bug would cause du not to count the
81910         sizes of inaccessible directories.
81911         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
81912         in <http://bugzilla.redhat.com/250077>.
81914 2007-07-25  Peter O'Gorman  <peter@pogma.com>
81915             Bruno Haible  <bruno@clisp.org>
81917         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
81918         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
81919         #include_next, gives a diagnostic about it, but reports no error in
81920         the exit code.
81921         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
81923 2007-07-24  Ben Pfaff  <blp@gnu.org>
81925         Improve name: "count-one-bits" is better than "popcount".
81926         * MODULES.html.sh: Update name.
81927         * lib/popcount.h: Renamed lib/count-one-bits.h.
81928         (popcount): Renamed count_one_bits.
81929         (popcountl): Renamed count_one_bits_l.
81930         (popcountll): Renamed count_one_bits_ll.
81931         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
81932         * modules/popcount: Renamed module/count-one-bits.
81933         * modules/popcount-tests: Renamed module/count-one-bits-tests.
81934         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
81936 2007-07-23  Ben Pfaff  <blp@gnu.org>
81938         * lib/popcount.h (popcount32): Reduce size of constants, to allow
81939         better code generation, and add U to large constants to avoid
81940         warnings, in non-GCC case.
81941         Suggested by Bruno Haible.
81943 2007-07-23  Ben Pfaff  <blp@gnu.org>
81945         * lib/popcount.h: Use verify_true instead of if...abort.
81946         * modules/popcount: Depend on verify module.
81947         Suggested by Jim Meyering.
81949 2007-07-23  Bruno Haible  <bruno@clisp.org>
81951         * gnulib-tool (func_import): Create a .cvsignore file also when the
81952         directory is not yet in CVS but the toplevel directory is. When
81953         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
81954         Reported by Karl Berry.
81956 2007-07-22  Ben Pfaff  <blp@gnu.org>
81958         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
81959         case.
81960         Suggested by Eric Blake.
81962 2007-07-22  Ben Pfaff  <blp@gnu.org>
81964         New module: popcount.
81965         * MODULES.html.sh: Add popcount.
81966         * modules/popcount: New file.
81967         * modules/popcount-tests: New file.
81968         * tests/test-popcount.c: New file.
81969         * lib/popcount.h: New file.
81970         * m4/popcount.m4: New file.
81972 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81974         * build-aux/announce-gen: Update to GPLv3.
81976         * build-aux/config.guess: Update from config.
81978 2007-07-21  Bruno Haible  <bruno@clisp.org>
81980         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
81981         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
81983 2007-07-20  Jim Meyering  <jim@meyering.net>
81985         * check-module: Diagnose a self-dependency.
81987 2007-07-19  Bruno Haible  <bruno@clisp.org>
81989         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
81990         empty.
81991         Reported by Eric Blake.
81993 2007-07-18  Bruno Haible  <bruno@clisp.org>
81995         * gnulib-tool: New options --po-base, --po-domain.
81996         (func_usage): Document them.
81997         (pobase, po_domain): New variables.
81998         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
81999         DEFAULT_TEXT_DOMAIN.
82000         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
82001         (func_import): Consider pobase and po_domain. Create a po/ directory.
82002         (func_create_testdir): Set pobase and po_domain to empty.
82003         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
82004         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
82006 2007-07-18  Bruno Haible  <bruno@clisp.org>
82008         * gnulib-tool (func_get_automake_snippet): Synthesize also an
82009         EXTRA_DIST augmentation for files in build-aux/.
82011 2007-07-16  Bruno Haible  <bruno@clisp.org>
82013         * modules/lseek (License): Use the synonymous term "LGPLv2+".
82014         * modules/getdelim (License): Likewise.
82016 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82018         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
82019         * modules/d-type (License): Likewise.
82020         * modules/extensions (License): Likewise.
82021         * modules/fnmatch (License): Likewise.
82022         * modules/fseeko (License): Likewise.
82023         * modules/getaddrinfo (License): Likewise.
82024         * modules/getline (License): Likewise.
82025         * modules/getlogin_r (License): Likewise.
82026         * modules/getpass (License): Likewise.
82027         * modules/gettimeofday (License): Likewise.
82028         * modules/glob (License): Likewise.
82029         * modules/inet_ntop (License): Likewise.
82030         * modules/malloc (License): Likewise.
82031         * modules/malloca (License): Likewise.
82032         * modules/memmem (License): Likewise.
82033         * modules/mempcpy (License): Likewise.
82034         * modules/memset (License): Likewise.
82035         * modules/minmax (License): Likewise.
82036         * modules/mktime (License): Likewise.
82037         * modules/netinet_in (License): Likewise.
82038         * modules/pathmax (License): Likewise.
82039         * modules/poll (License): Likewise.
82040         * modules/regex (License): Likewise.
82041         * modules/snprintf (License): Likewise.
82042         * modules/stdbool (License): Likewise.
82043         * modules/stdint (License): Likewise.
82044         * modules/stdio (License): Likewise.
82045         * modules/strcase (License): Likewise.
82046         * modules/strcasestr (License): Likewise.
82047         * modules/strdup (License): Likewise.
82048         * modules/string (License): Likewise.
82049         * modules/strndup (License): Likewise.
82050         * modules/strnlen (License): Likewise.
82051         * modules/strpbrk (License): Likewise.
82052         * modules/strptime (License): Likewise.
82053         * modules/strsep (License): Likewise.
82054         * modules/sys_select (License): Likewise.
82055         * modules/sys_socket (License): Likewise.
82056         * modules/sys_stat (License): Likewise.
82057         * modules/sys_time (License): Likewise.
82058         * modules/time (License): Likewise.
82059         * modules/time_r (License): Likewise.
82060         * modules/timegm (License): Likewise.
82061         * modules/unistd (License): Likewise.
82062         * modules/vsnprintf (License): Likewise.
82063         * modules/wctype (License): Likewise.
82065 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82067         * modules/argz (License): LGPLv2+.
82069 2007-07-15  Karl Berry  <karl@gnu.org>
82071         * doc/gnulib.texi: revise node structure per new fdl.texi.
82073 2007-07-14  Bruno Haible  <bruno@clisp.org>
82075         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
82076         the output file.
82077         * lib/uniname/uninames.h: Regenerated.
82079 2007-07-14  Karl Berry  <karl@gnu.org>
82081         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
82082         omitting sectioning and index commands.
82084 2007-07-13  Bruno Haible  <bruno@clisp.org>
82086         New gnulib-tool option --more-symlinks.
82087         * gnulib-tool (func_usage): Document --more-symlinks.
82088         (do_copyrights): New variable.
82089         Recognize option --more-symlinks.
82090         (func_import): Don't add a copyright notice transform to
82091         sed_transform_lib_file if do_copyrights is empty.
82093 2007-07-13  Bruno Haible  <bruno@clisp.org>
82095         * lib/vasnprintf.c (decimal_point_char): Define also if
82096         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
82097         && !NEED_PRINTF_DIRECTIVE_A.
82098         Reported by Clemens Koller <clemens.koller@anagramm.de> via
82099         Gary V. Vaughan <gary@gnu.org>.
82101 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
82103         * lib/inttypes_.h: Undo previous change, since it was fixed
82104         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
82106 2007-07-13  Bruno Haible  <bruno@clisp.org>
82108         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
82109         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
82111 2007-07-13  Jim Meyering  <jim@meyering.net>
82113         df: Don't fail for Tru64's "file-on-file mount".
82114         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
82115         so we fall through and use statfs instead.  Details here:
82116         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
82117         Reported by Albert Chin.
82119 2007-07-13  Bruno Haible  <bruno@clisp.org>
82121         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
82122         * modules/configmake (License): Likewise.
82123         * modules/gettext (License): Likewise.
82124         * modules/gettext-h (License): Likewise.
82125         * modules/include_next (License): Likewise.
82126         * modules/link-warning (License): Likewise.
82127         * modules/localcharset (License): Likewise.
82128         * modules/localename (License): Likewise.
82129         * modules/lock (License): Likewise.
82130         * modules/relocatable-lib-lgpl (License): Likewise.
82131         * modules/size_max (License): Likewise.
82132         * modules/vasnprintf (License): Likewise.
82133         * modules/wchar (License): Likewise.
82134         * modules/xsize (License): Likewise.
82136 2007-07-13  Bruno Haible  <bruno@clisp.org>
82138         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
82139         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
82141 2007-07-12  Bruno Haible  <bruno@clisp.org>
82143         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
82144         in the modules files.
82146 2007-07-11  Karl Berry  <karl@gnu.org>
82148         * MODULES.html.sh (func_module): use
82149          sed -e '\|^'"${includefile}"'$|d'
82150          instead of /.../d, to avoid errors on $includefile's containing /.
82152 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82154         * gnulib-tool (func_import): Avoid duplication of --avoid
82155         statements
82156         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
82157         names to `_' in variable names.
82159 2007-07-10  Eric Blake  <ebb9@byu.net>
82161         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
82162         * NEWS: Document this change.
82164 2007-07-08  Bruno Haible  <bruno@clisp.org>
82166         Update to Unicode 5.0.
82167         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
82168         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
82169         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
82170         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
82171         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
82172         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
82173         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
82174         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
82175         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
82176         U+10A3F, U+1D242..U+1D244.
82177         (nonspacing_table_ind): Update.
82178         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
82179         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
82181 2007-07-08  Bruno Haible  <bruno@clisp.org>
82183         Update to Unicode 5.0.
82184         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
82185         code transform. Extend the name index field of unicode_name_to_code and
82186         unicode_code_to_name from 16 to 24 bits.
82187         * lib/uniname/uniname.c (unicode_character_name,
82188         unicode_name_character): Add the range 0x12xxx to the code transform.
82189         * lib/uniname/uninames.h: Regenerated.
82190         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
82192 2007-07-07  Bruno Haible  <bruno@clisp.org>
82194         * modules/wcwidth-tests: New file.
82195         * tests/test-wcwidth.c: New file.
82197         Work around MacOS X wcwidth() bug.
82198         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
82199         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
82200         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
82201         original wcwidth in non-UTF-8 locales.
82202         * modules/wcwidth (Depends-on): Add localcharset, streq,
82203         uniwidth/width.
82204         * doc/functions/wcwidth.texi: Update.
82206 2007-07-07  Bruno Haible  <bruno@clisp.org>
82208         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
82209         (wcwidth): New declaration.
82210         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
82211         macros.
82212         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
82213         here. Prepare for creating <wchar.h> unconditionally.
82214         * modules/wchar (Depends-on): Add link-warning.
82215         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
82216         REPLACE_WCWIDTH, and GL_LINK_WARNING.
82217         * lib/wcwidth.h: Remove file.
82218         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
82219         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
82220         * modules/wcwidth (Files): Remove lib/wcwidth.h.
82221         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
82222         (Include): Replace wcwidth.h with <wchar.h>.
82223         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
82224         * lib/mbchar.h: Don't include wcwidth.h.
82225         * lib/mbswidth.c: Likewise.
82226         * NEWS: Mention the change.
82228 2007-07-07  Bruno Haible  <bruno@clisp.org>
82230         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
82231         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
82232         definition with an external declaration.
82233         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
82234         defined as a function. Remove AC_C_INLINE requirement.
82235         * modules/wcwidth (Files): Add lib/wcwidth.c.
82236         (Makefile.am): Remove redundant statement.
82238 2007-07-07  Bruno Haible  <bruno@clisp.org>
82240         * MODULES.html.sh (Unicode string functions): Add the new modules.
82242         * tests/uniwidth/test-u32-strwidth.c: New file.
82243         * modules/uniwidth/u32-strwidth-tests: New file.
82245         * lib/uniwidth/u32-strwidth.c: New file.
82246         * modules/uniwidth/u32-strwidth: New file.
82248         * tests/uniwidth/test-u16-strwidth.c: New file.
82249         * modules/uniwidth/u16-strwidth-tests: New file.
82251         * lib/uniwidth/u16-strwidth.c: New file.
82252         * modules/uniwidth/u16-strwidth: New file.
82254         * tests/uniwidth/test-u8-strwidth.c: New file.
82255         * modules/uniwidth/u8-strwidth-tests: New file.
82257         * lib/uniwidth/u8-strwidth.c: New file.
82258         * modules/uniwidth/u8-strwidth: New file.
82260         * tests/uniwidth/test-u32-width.c: New file.
82261         * modules/uniwidth/u32-width-tests: New file.
82263         * lib/uniwidth/u32-width.c: New file.
82264         * modules/uniwidth/u32-width: New file.
82266         * tests/uniwidth/test-u16-width.c: New file.
82267         * modules/uniwidth/u16-width-tests: New file.
82269         * lib/uniwidth/u16-width.c: New file.
82270         * modules/uniwidth/u16-width: New file.
82272         * tests/uniwidth/test-u8-width.c: New file.
82273         * modules/uniwidth/u8-width-tests: New file.
82275         * lib/uniwidth/u8-width.c: New file.
82276         * modules/uniwidth/u8-width: New file.
82278         * tests/uniwidth/test-uc_width.c: New file.
82279         * modules/uniwidth/width-tests: New file.
82281         * lib/uniwidth/width.c: New file, from GNU libiconv.
82282         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
82283         * modules/uniwidth/width: New file.
82285         * lib/uniwidth.h: New file, from GNU libiconv.
82286         * modules/uniwidth/base: New file.
82288 2007-07-07  Bruno Haible  <bruno@clisp.org>
82290         * lib/uniname.h: New file, from GNU gettext.
82291         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
82292         * lib/uniname/uninames.h: New file, from GNU gettext.
82293         * lib/uniname/uniname.c: New file, from GNU gettext.
82294         * tests/uniname/test-uninames.sh: New file.
82295         * tests/uniname/test-uninames.c: New file, from GNU gettext.
82296         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
82297         * modules/uniname/base: New file.
82298         * modules/uniname/uniname: New file.
82299         * modules/uniname/uniname-tests: New file.
82300         * MODULES.html.sh (Unicode string functions): Add the new modules.
82302 2007-07-06  Bruno Haible  <bruno@clisp.org>
82304         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
82306 2007-07-06  Bruno Haible  <bruno@clisp.org>
82308         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
82309         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
82310         includes <cygwin/sys_time.h> which includes <sys/select.h> which
82311         include <sys/time.h>.
82312         Reported by Eric Blake.
82314 2007-07-06  Eric Blake  <ebb9@byu.net>
82316         Fix testing canonicalize on cygwin.
82317         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
82318         Revert patch from 2007-06-19.
82319         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
82320         canonicalize module is also in use.
82321         * tests/test-canonicalize.c: New file.
82322         * tests/test-canonicalize.sh: Likewise.
82323         * modules/canonicalize-tests: Likewise.
82325 2007-07-06  Jim Meyering  <jim@meyering.net>
82327         * lib/getugroups.c (getugroups): Detect getgrent failure.
82328         Adjust comment to reflect reality: this function may return -1.
82330 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
82332         * build-aux/bootstrap (TP_URL,get_translations): Update to use
82333         the new TP address.
82334         (usage): Fix typo
82335         (gnulib_mk): New variable.
82337 2007-07-05  Jim Meyering  <jim@meyering.net>
82339         Don't let endgrent clobber errno, no matter how improbable.
82340         * lib/getugroups.c (getugroups): Save and restore errno around
82341         endgrent call.
82343         Close the group DB even when failing with 2^31 or more members.
82344         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
82346 2007-07-04  Jim Meyering  <jim@meyering.net>
82348         * lib/getugroups.h: New file.
82349         * lib/getugroups.c: Include "getugroups.h".
82350         Remove uses of "register" keyword.
82351         Move local variable, "cp", down into scope where used.
82352         Give "username" parameter the "const" attribute.
82353         * modules/getugroups (Files): Add lib/getugroups.h
82355 2007-07-04  Karl Berry  <karl@gnu.org>
82357         * MODULES.html.sh (func_all_modules): Complete rename of
82358         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
82360 2007-07-02  Bruno Haible  <bruno@clisp.org>
82362         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
82363         mode, when inttypes.h comes from gnulib.
82364         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
82366 2007-07-02  Simon Josefsson  <simon@josefsson.org>
82368         * NEWS: Mention lgpl module name change.
82370         * modules/lgpl-2.1: Renamed from lgpl.
82372         * NEWS: Mention gpl module name change.
82374         * modules/gpl-3.0: New file, based on gpl-2.0.
82376         * modules/gpl-2.0: Renamed from gpl.
82378         * modules/gpl: Fix filename, doc/gpl.texi is now found at
82379         doc/gpl-2.0.texi.
82381 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
82383         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
82384         #define __STDC_LIMIT_MACROS temporarily while including
82385         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
82386         Problem reported by Joel E. Denny in
82387         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
82389 2007-07-01  Bruno Haible  <bruno@clisp.org>
82391         * lib/unistdio.h: New file.
82392         * lib/unistdio/u-asnprintf.h: New file.
82393         * lib/unistdio/u-asprintf.h: New file.
82394         * lib/unistdio/u-printf-args.c: New file.
82395         * lib/unistdio/u-printf-args.h: New file.
82396         * lib/unistdio/u-printf-parse.h: New file.
82397         * lib/unistdio/u-snprintf.h: New file.
82398         * lib/unistdio/u-sprintf.h: New file.
82399         * lib/unistdio/u-vasprintf.h: New file.
82400         * lib/unistdio/u-vsnprintf.h: New file.
82401         * lib/unistdio/u-vsprintf.h: New file.
82402         * lib/unistdio/ulc-asnprintf.c: New file.
82403         * lib/unistdio/ulc-asprintf.c: New file.
82404         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
82405         * lib/unistdio/ulc-printf-parse.c: New file.
82406         * lib/unistdio/ulc-snprintf.c: New file.
82407         * lib/unistdio/ulc-sprintf.c: New file.
82408         * lib/unistdio/ulc-vasnprintf.c: New file.
82409         * lib/unistdio/ulc-vasprintf.c: New file.
82410         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
82411         * lib/unistdio/ulc-vsnprintf.c: New file.
82412         * lib/unistdio/ulc-vsprintf.c: New file.
82413         * lib/unistdio/u8-asnprintf.c: New file.
82414         * lib/unistdio/u8-asprintf.c: New file.
82415         * lib/unistdio/u8-printf-parse.c: New file.
82416         * lib/unistdio/u8-snprintf.c: New file.
82417         * lib/unistdio/u8-sprintf.c: New file.
82418         * lib/unistdio/u8-vasnprintf.c: New file.
82419         * lib/unistdio/u8-vasprintf.c: New file.
82420         * lib/unistdio/u8-vsnprintf.c: New file.
82421         * lib/unistdio/u8-vsprintf.c: New file.
82422         * lib/unistdio/u8-u8-asnprintf.c: New file.
82423         * lib/unistdio/u8-u8-asprintf.c: New file.
82424         * lib/unistdio/u8-u8-snprintf.c: New file.
82425         * lib/unistdio/u8-u8-sprintf.c: New file.
82426         * lib/unistdio/u8-u8-vasnprintf.c: New file.
82427         * lib/unistdio/u8-u8-vasprintf.c: New file.
82428         * lib/unistdio/u8-u8-vsnprintf.c: New file.
82429         * lib/unistdio/u8-u8-vsprintf.c: New file.
82430         * lib/unistdio/u16-asnprintf.c: New file.
82431         * lib/unistdio/u16-asprintf.c: New file.
82432         * lib/unistdio/u16-printf-parse.c: New file.
82433         * lib/unistdio/u16-snprintf.c: New file.
82434         * lib/unistdio/u16-sprintf.c: New file.
82435         * lib/unistdio/u16-vasnprintf.c: New file.
82436         * lib/unistdio/u16-vasprintf.c: New file.
82437         * lib/unistdio/u16-vsnprintf.c: New file.
82438         * lib/unistdio/u16-vsprintf.c: New file.
82439         * lib/unistdio/u16-u16-asnprintf.c: New file.
82440         * lib/unistdio/u16-u16-asprintf.c: New file.
82441         * lib/unistdio/u16-u16-snprintf.c: New file.
82442         * lib/unistdio/u16-u16-sprintf.c: New file.
82443         * lib/unistdio/u16-u16-vasnprintf.c: New file.
82444         * lib/unistdio/u16-u16-vasprintf.c: New file.
82445         * lib/unistdio/u16-u16-vsnprintf.c: New file.
82446         * lib/unistdio/u16-u16-vsprintf.c: New file.
82447         * lib/unistdio/u32-asnprintf.c: New file.
82448         * lib/unistdio/u32-asprintf.c: New file.
82449         * lib/unistdio/u32-printf-parse.c: New file.
82450         * lib/unistdio/u32-snprintf.c: New file.
82451         * lib/unistdio/u32-sprintf.c: New file.
82452         * lib/unistdio/u32-vasnprintf.c: New file.
82453         * lib/unistdio/u32-vasprintf.c: New file.
82454         * lib/unistdio/u32-vsnprintf.c: New file.
82455         * lib/unistdio/u32-vsprintf.c: New file.
82456         * lib/unistdio/u32-u32-asnprintf.c: New file.
82457         * lib/unistdio/u32-u32-asprintf.c: New file.
82458         * lib/unistdio/u32-u32-snprintf.c: New file.
82459         * lib/unistdio/u32-u32-sprintf.c: New file.
82460         * lib/unistdio/u32-u32-vasnprintf.c: New file.
82461         * lib/unistdio/u32-u32-vasprintf.c: New file.
82462         * lib/unistdio/u32-u32-vsnprintf.c: New file.
82463         * lib/unistdio/u32-u32-vsprintf.c: New file.
82464         * tests/unistdio/test-ulc-asnprintf1.c: New file.
82465         * tests/unistdio/test-ulc-asnprintf1.h: New file.
82466         * tests/unistdio/test-ulc-printf1.h: New file.
82467         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
82468         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
82469         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
82470         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
82471         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
82472         * tests/unistdio/test-ulc-vasprintf1.c: New file.
82473         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
82474         * tests/unistdio/test-ulc-vsprintf1.c: New file.
82475         * tests/unistdio/test-u8-asnprintf1.c: New file.
82476         * tests/unistdio/test-u8-asnprintf1.h: New file.
82477         * tests/unistdio/test-u8-printf1.h: New file.
82478         * tests/unistdio/test-u8-vasnprintf1.c: New file.
82479         * tests/unistdio/test-u8-vasnprintf2.c: New file.
82480         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
82481         * tests/unistdio/test-u8-vasnprintf3.c: New file.
82482         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
82483         * tests/unistdio/test-u8-vasprintf1.c: New file.
82484         * tests/unistdio/test-u8-vsnprintf1.c: New file.
82485         * tests/unistdio/test-u8-vsprintf1.c: New file.
82486         * tests/unistdio/test-u16-asnprintf1.c: New file.
82487         * tests/unistdio/test-u16-asnprintf1.h: New file.
82488         * tests/unistdio/test-u16-printf1.h: New file.
82489         * tests/unistdio/test-u16-vasnprintf1.c: New file.
82490         * tests/unistdio/test-u16-vasnprintf2.c: New file.
82491         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
82492         * tests/unistdio/test-u16-vasnprintf3.c: New file.
82493         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
82494         * tests/unistdio/test-u16-vasprintf1.c: New file.
82495         * tests/unistdio/test-u16-vsnprintf1.c: New file.
82496         * tests/unistdio/test-u16-vsprintf1.c: New file.
82497         * tests/unistdio/test-u32-asnprintf1.c: New file.
82498         * tests/unistdio/test-u32-asnprintf1.h: New file.
82499         * tests/unistdio/test-u32-printf1.h: New file.
82500         * tests/unistdio/test-u32-vasnprintf1.c: New file.
82501         * tests/unistdio/test-u32-vasnprintf2.c: New file.
82502         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
82503         * tests/unistdio/test-u32-vasnprintf3.c: New file.
82504         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
82505         * tests/unistdio/test-u32-vasprintf1.c: New file.
82506         * tests/unistdio/test-u32-vsnprintf1.c: New file.
82507         * tests/unistdio/test-u32-vsprintf1.c: New file.
82508         * modules/unistdio/base: New file.
82509         * modules/unistdio/u-printf-args: New file.
82510         * modules/unistdio/ulc-asnprintf: New file.
82511         * modules/unistdio/ulc-asprintf: New file.
82512         * modules/unistdio/ulc-fprintf: New file.
82513         * modules/unistdio/ulc-printf-parse: New file.
82514         * modules/unistdio/ulc-snprintf: New file.
82515         * modules/unistdio/ulc-sprintf: New file.
82516         * modules/unistdio/ulc-vasnprintf: New file.
82517         * modules/unistdio/ulc-vasprintf: New file.
82518         * modules/unistdio/ulc-vfprintf: New file.
82519         * modules/unistdio/ulc-vsnprintf: New file.
82520         * modules/unistdio/ulc-vsprintf: New file.
82521         * modules/unistdio/u8-asnprintf: New file.
82522         * modules/unistdio/u8-asprintf: New file.
82523         * modules/unistdio/u8-printf-parse: New file.
82524         * modules/unistdio/u8-snprintf: New file.
82525         * modules/unistdio/u8-sprintf: New file.
82526         * modules/unistdio/u8-vasnprintf: New file.
82527         * modules/unistdio/u8-vasprintf: New file.
82528         * modules/unistdio/u8-vsnprintf: New file.
82529         * modules/unistdio/u8-vsprintf: New file.
82530         * modules/unistdio/u8-u8-asnprintf: New file.
82531         * modules/unistdio/u8-u8-asprintf: New file.
82532         * modules/unistdio/u8-u8-snprintf: New file.
82533         * modules/unistdio/u8-u8-sprintf: New file.
82534         * modules/unistdio/u8-u8-vasnprintf: New file.
82535         * modules/unistdio/u8-u8-vasprintf: New file.
82536         * modules/unistdio/u8-u8-vsnprintf: New file.
82537         * modules/unistdio/u8-u8-vsprintf: New file.
82538         * modules/unistdio/u16-asnprintf: New file.
82539         * modules/unistdio/u16-asprintf: New file.
82540         * modules/unistdio/u16-printf-parse: New file.
82541         * modules/unistdio/u16-snprintf: New file.
82542         * modules/unistdio/u16-sprintf: New file.
82543         * modules/unistdio/u16-vasnprintf: New file.
82544         * modules/unistdio/u16-vasprintf: New file.
82545         * modules/unistdio/u16-vsnprintf: New file.
82546         * modules/unistdio/u16-vsprintf: New file.
82547         * modules/unistdio/u16-u16-asnprintf: New file.
82548         * modules/unistdio/u16-u16-asprintf: New file.
82549         * modules/unistdio/u16-u16-snprintf: New file.
82550         * modules/unistdio/u16-u16-sprintf: New file.
82551         * modules/unistdio/u16-u16-vasnprintf: New file.
82552         * modules/unistdio/u16-u16-vasprintf: New file.
82553         * modules/unistdio/u16-u16-vsnprintf: New file.
82554         * modules/unistdio/u16-u16-vsprintf: New file.
82555         * modules/unistdio/u32-asnprintf: New file.
82556         * modules/unistdio/u32-asprintf: New file.
82557         * modules/unistdio/u32-printf-parse: New file.
82558         * modules/unistdio/u32-snprintf: New file.
82559         * modules/unistdio/u32-sprintf: New file.
82560         * modules/unistdio/u32-vasnprintf: New file.
82561         * modules/unistdio/u32-vasprintf: New file.
82562         * modules/unistdio/u32-vsnprintf: New file.
82563         * modules/unistdio/u32-vsprintf: New file.
82564         * modules/unistdio/u32-u32-asnprintf: New file.
82565         * modules/unistdio/u32-u32-asprintf: New file.
82566         * modules/unistdio/u32-u32-snprintf: New file.
82567         * modules/unistdio/u32-u32-sprintf: New file.
82568         * modules/unistdio/u32-u32-vasnprintf: New file.
82569         * modules/unistdio/u32-u32-vasprintf: New file.
82570         * modules/unistdio/u32-u32-vsnprintf: New file.
82571         * modules/unistdio/u32-u32-vsprintf: New file.
82572         * modules/unistdio/ulc-asnprintf-tests: New file.
82573         * modules/unistdio/ulc-vasnprintf-tests: New file.
82574         * modules/unistdio/ulc-vasprintf-tests: New file.
82575         * modules/unistdio/ulc-vsnprintf-tests: New file.
82576         * modules/unistdio/ulc-vsprintf-tests: New file.
82577         * modules/unistdio/u8-asnprintf-tests: New file.
82578         * modules/unistdio/u8-vasnprintf-tests: New file.
82579         * modules/unistdio/u8-vasprintf-tests: New file.
82580         * modules/unistdio/u8-vsnprintf-tests: New file.
82581         * modules/unistdio/u8-vsprintf-tests: New file.
82582         * modules/unistdio/u16-asnprintf-tests: New file.
82583         * modules/unistdio/u16-vasnprintf-tests: New file.
82584         * modules/unistdio/u16-vasprintf-tests: New file.
82585         * modules/unistdio/u16-vsnprintf-tests: New file.
82586         * modules/unistdio/u16-vsprintf-tests: New file.
82587         * modules/unistdio/u32-asnprintf-tests: New file.
82588         * modules/unistdio/u32-vasnprintf-tests: New file.
82589         * modules/unistdio/u32-vasprintf-tests: New file.
82590         * modules/unistdio/u32-vsnprintf-tests: New file.
82591         * modules/unistdio/u32-vsprintf-tests: New file.
82592         * MODULES.html.sh (Unicode string functions): Add the new modules.
82594 2007-07-01  Bruno Haible  <bruno@clisp.org>
82596         * lib/sprintf.c (sprintf): Limit the available length estimation,
82597         to avoid address wraparound.
82598         * lib/vsprintf.c (vsprintf): Likewise.
82599         * modules/sprintf-posix (Dependencies): Add stdint.
82600         * modules/vsprintf-posix (Dependencies): Likewise.
82602 2007-07-01  Bruno Haible  <bruno@clisp.org>
82604         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
82605         Windows PATH as well. Conservative double-quoting. Comments.
82607 2007-07-01  Bruno Haible  <bruno@clisp.org>
82608             Eric Blake  <ebb9@byu.net>
82609             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82611         * gnulib-tool (self_abspathname): Fix algorithm to cope with
82612         empty components in $PATH, denoting '.'.
82614 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82616         * gnulib-tool: Fix indentation.
82617         (func_create_megatestdir): Likewise.
82618         Report by Bruno Haible.
82620 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82622         Sync from Automake.
82623         * build-aux/gnupload: Fix shell portability issues with for loops.
82624         Report by Karl Berry.
82626 2007-06-29  Simon Josefsson  <simon@josefsson.org>
82628         * build-aux/maint.mk (POURL): Use translationproject.org.
82630 2007-06-27  Simon Josefsson  <simon@josefsson.org>
82631             Bruno Haible  <bruno@clisp.org>
82633         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
82634         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
82635         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
82636         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
82637         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
82639 2007-06-27  Bruno Haible  <bruno@clisp.org>
82641         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
82642         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
82644 2007-06-26  Karl Berry  <karl@gnu.org>
82646         * MODULES.html.sh: remove xreadlink-with-size.
82648 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82650         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
82651         method that I hope also handles the double-include problem noted
82652         by Bruno Haible in
82653         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
82655 2007-06-23  Bruno Haible  <bruno@clisp.org>
82657         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
82658         Don't let the 'mostlyclean' target fail if the last subdirectory could
82659         not be removed.
82660         Reported by Karl Berry.
82662 2007-06-23  Bruno Haible  <bruno@clisp.org>
82664         * gnulib-tool (echo): Add a speedier workaround for ksh.
82665         * tests/test-echo.sh: Likewise.
82667 2007-06-23  Bruno Haible  <bruno@clisp.org>
82669         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
82670         * tests/test-echo.sh: Likewise.
82672 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82674         * gnulib-tool (IFS): Initialize early, so we don't set it to
82675         empty later.
82676         (self_abspathname): Rewrite algorithm to set it, reindent.
82677         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
82678         (func_create_megatestdir): Merge some sed scripts.
82680 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82682         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
82683         exposed by Sun Studio 11 cc on Solaris 8.
82685 2007-06-22  Bruno Haible  <bruno@clisp.org>
82687         * gnulib-tool (echo): Ensure the echo primitive does not interpret
82688         backslashes.
82689         * tests/test-echo.sh: New file.
82691 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82693         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
82694         simplify `sed_replace_build_aux' scripts, they are portable but
82695         echoing them with `echo' is not.
82696         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
82698 2007-06-21  Karl Berry  <karl@gnu.org>
82700         * config/srclist.txt: guess we can't handle the licenses via
82701         srclist at the moment.
82703 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
82705         * MODULES.html.sh: Add include_next.
82706         * modules/include_next: New file.
82708 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
82710         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
82711         INCLUDE_NEXT.
82712         (gl_CHECK_NEXT_HEADERS): New macro.
82713         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
82714         the obsolescent gl_ABSOLUTE_HEADER.
82715         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
82716         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
82717         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
82718         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
82719         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
82720         * m4/math_h.m4 (gl_MATH_H): Likewise.
82721         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
82722         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
82723         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
82724         * m4/stdint.m4 (gl_STDINT_H): Likewise.
82725         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
82726         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
82727         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
82728         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
82729         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
82730         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
82731         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
82732         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
82733         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
82734         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
82735         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
82736         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
82737         * m4/inttypes.m4 (gl_INTTYPES_H): Define
82738         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
82739         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
82740         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
82741         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
82742         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
82743         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
82744         * lib/float_.h: Likewise.
82745         * lib/inttypes_.h: Likewise.
82746         * lib/math_.h: Likewise.
82747         * lib/search_.h: Likewise.
82748         * lib/signal_.h: Likewise.
82749         * lib/stdint_.h: Likewise.
82750         * lib/stdio_.h: Likewise.
82751         * lib/stdlib_.h: Likewise.
82752         * lib/string_.h: Likewise.
82753         * lib/sys_stat_.h: Likewise.
82754         * lib/sys_time_.h: Likewise.
82755         * lib/time_.h: Likewise.
82756         * lib/unistd_.h: Likewise.
82757         * lib/wchar_.h: Likewise.
82758         * lib/wctype_.h: Likewise.
82759         * lib/dirent_.h: Likewise.
82760         * lib/iconv_.h: Likewise.
82761         * lib/locale_.h: Likewise.
82762         * lib/netinet_in_.h: Likewise.
82763         * lib/sys_select_.h: Likewise.
82764         * lib/sys_socket_.h: Likewise.
82765         * lib/sysexits_.h: Likewise.
82766         * modules/fcntl (Depends-on): Depend on include_next, not
82767         absolute_header.
82768         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
82769         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
82770         * modules/fchdir: Likewise.
82771         * modules/float: Likewise.
82772         * modules/iconv_open: Likewise.
82773         * modules/inttypes: Likewise.
82774         * modules/locale: Likewise.
82775         * modules/math: Likewise.
82776         * modules/netinet_in: Likewise.
82777         * modules/search: Likewise.
82778         * modules/signal: Likewise.
82779         * modules/stdint: Likewise.
82780         * modules/stdio: Likewise.
82781         * modules/stdlib: Likewise.
82782         * modules/string: Likewise.
82783         * modules/sys_select: Likewise.
82784         * modules/sys_socket: Likewise.
82785         * modules/sys_stat: Likewise.
82786         * modules/sys_time: Likewise.
82787         * modules/sysexits: Likewise.
82788         * modules/time: Likewise.
82789         * modules/unistd: Likewise.
82790         * modules/wchar: Likewise.
82791         * modules/wctype: Likewise.
82792         * modules/sys_stat: Change maintainer to "all".
82793         * modules/unistd: Likewise.
82795 2007-06-20  Karl Berry  <karl@gnu.org>
82797         * config/srclist.txt: track www changes in license files.
82799 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
82801         * build-aux/bootstrap: Remove stray dot.
82802         Make sure build_aux settings are honored when linking
82803         gnulib_extra_files.
82805 2007-06-19  Eric Blake  <ebb9@byu.net>
82807         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
82808         Allow compilation on cygwin.
82810 2007-06-19  Jim Meyering  <jim@meyering.net>
82812         xreadlink-with-size: Remove module.  No longer used.
82813         Ex-callers now use xreadlink or mreadlink-with-size.
82814         * modules/xreadlink-with-size: Remove module.
82815         * lib/xreadlink-with-size.c: Remove file.
82816         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
82817         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
82818         just before the function definition *is* accurate.
82820         Eliminate one way canonicalize_filename_mode could exit.
82821         * lib/canonicalize.c (canonicalize_filename_mode):
82822         Use mreadlink_with_size, not xreadlink_with_size.
82824 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
82826         Detect porting problems to FreeBSD/arm, which has time_t wider than
82827         long int.  Original problem reported for GNU diff by Xin Li in
82828         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
82829         * modules/getdate (Depends-on): Add intprops, verify.
82830         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
82831         is an integer type no wider than long int.
82833 2007-06-18  Jim Meyering  <jim@meyering.net>
82835         New module: mreadlink-with-size.
82836         * MODULES.html.sh: Add mreadlink-with-size.
82837         * modules/mreadlink-with-size: New module
82838         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
82839         not xreadlink-with-size.
82840         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
82842 2007-06-16  Bruno Haible  <bruno@clisp.org>
82844         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
82845         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
82846         Reported by Gary V. Vaughan <gary@gnu.org>.
82848 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
82850         Revamp lchown so that it lives in unistd.h where it belongs.
82851         * lib/lchown.h: Remove.
82852         * lib/dirchownmod.c: Don't include lib/lchown.h.
82853         * lib/fchownat.c: Likewise.
82854         * lib/openat.c: Likewise.
82855         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
82856         does not follow symlinks.
82857         (EOPNOTSUPP): Define if not defined.
82858         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
82859         is defined to 0.
82860         (lchown): New decl.
82861         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
82862         Do not check for lchown decl.
82863         Set REPLACE_LCHOWN.
82864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
82865         REPLACE_LCHOWN.
82866         * modules/chown: Make it clear it follows symlinks.
82867         * modules/lchown: Make it clear it doesn't follow symlinks.
82868         (Files): Remove lib/lchown.h
82869         (Depends-on): Add unistd.
82870         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
82871         (Include): Include <unistd.h>, not "lchown.h".
82872         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
82873         REPLACE_LCHOWN.
82875 2007-06-15  Jim Meyering  <jim@meyering.net>
82877         Change license (GPL to LGPL) of fsusage and dependents.
82878         * modules/fsusage (License): Change to LGPL.
82879         * modules/full-read (License): Likewise.
82880         * modules/full-write (License): Likewise.
82881         * modules/safe-read (License): Likewise.
82882         * modules/safe-write (License): Likewise.
82884 2007-06-14  Ben Pfaff  <blp@gnu.org>
82886         Missing part of allocsa -> malloca transition.
82887         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
82888         gl_MALLOCA.
82890 2007-06-12  Bruno Haible  <bruno@clisp.org>
82892         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
82893         to ia64, x86_64, i386.
82894         Reported by Eric Blake.
82896 2007-06-12  Bruno Haible  <bruno@clisp.org>
82898         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
82899         cross-compiling to x86_64.
82901 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
82903         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
82904         glitch reported by Ralf Wildenhues in
82905         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
82907         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
82908         Vin Shelton.
82910 2007-06-11  Bruno Haible  <bruno@clisp.org>
82912         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
82913         replacement string.
82914         Reported by Eric Blake.
82916 2007-06-10  Bruno Haible  <bruno@clisp.org>
82918         Prepare vasnprintf code for use with Unicode strings.
82919         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
82920         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
82921         TYPE_U32_STRING.
82922         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
82923         a_u32_string variants.
82924         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
82925         * lib/printf-args.c: Don't include config.h and the specification
82926         header if PRINTF_FETCHARGS is already defined.
82927         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
82928         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
82929         TYPE_U16_STRING, TYPE_U32_STRING.
82930         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
82931         u16_directive, u16_directives, u32_directive, u32_directives): New
82932         types.
82933         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
82934         New declarations.
82935         * lib/printf-parse.c: Don't include config.h and the specification
82936         header if PRINTF_PARSE is already defined. Eliminate the set of
82937         parameters for WIDE_CHAR_VERSION; the user of this file must provide
82938         them now. Include c-ctype.h.
82939         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
82940         directive and CHAR_T_ONLY_ASCII.
82941         * lib/vasnprintf.c: Don't include config.h and the specification header
82942         if VASNPRINTF is already defined.
82943         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
82944         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
82945         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
82946         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
82947         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
82948         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
82949         code accordingly.
82950         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
82951         pad_ourselves also in this case, with the 'c' and 's' directives, and
82952         with a different notion of "width".
82953         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
82955 2007-06-10  Bruno Haible  <bruno@clisp.org>
82957         * modules/unistr/u32-mbsnlen: New file.
82958         * lib/unistr/u32-mbsnlen.c: New file.
82960         * modules/unistr/u16-mbsnlen: New file.
82961         * lib/unistr/u16-mbsnlen.c: New file.
82963         * modules/unistr/u8-mbsnlen: New file.
82964         * lib/unistr/u8-mbsnlen.c: New file.
82966         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
82967         declarations.
82969 2007-06-10  Bruno Haible  <bruno@clisp.org>
82971         * lib/string_.h (mbsnlen): New declaration.
82972         * lib/mbsnlen.c: New file.
82973         * m4/mbsnlen.m4: New file.
82974         * modules/mbsnlen: New file.
82975         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
82976         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
82977         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
82979 2007-06-10  Bruno Haible  <bruno@clisp.org>
82981         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
82983 2007-06-10  Bruno Haible  <bruno@clisp.org>
82985         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
82986         * lib/mbuiter.h: Likewise.
82988 2007-06-10  Bruno Haible  <bruno@clisp.org>
82990         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
82991         declaration.
82993 2007-06-10  Karl Berry  <karl@gnu.org>
82995         * config/srclist.txt: remove gettext entries, Bruno prefers
82996         to update individually.
82998 2007-06-10  Bruno Haible  <bruno@clisp.org>
83000         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
83001         'maxlen'. Ensure only length + width bytes are allocated, not
83002         length + 1 + width.
83004 2007-06-09  Bruno Haible  <bruno@clisp.org>
83006         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
83007         (CHAR_T): Remove macro.
83008         (VASNPRINTF): Update.
83010 2007-06-09  Bruno Haible  <bruno@clisp.org>
83012         * MODULES.html.sh (Unicode string functions): Add the new modules.
83014         * modules/uniconv/u32-conv-to-enc: New file.
83015         * lib/uniconv/u32-conv-to-enc.c: New file.
83016         * modules/uniconv/u32-conv-to-enc-tests: New file.
83017         * tests/uniconv/test-u32-conv-to-enc.c: New file.
83019         * modules/uniconv/u16-conv-to-enc: New file.
83020         * lib/uniconv/u16-conv-to-enc.c: New file.
83021         * lib/uniconv/u-conv-to-enc.h: New file.
83022         * modules/uniconv/u16-conv-to-enc-tests: New file.
83023         * tests/uniconv/test-u16-conv-to-enc.c: New file.
83025         * modules/uniconv/u8-conv-to-enc: New file.
83026         * lib/uniconv/u8-conv-to-enc.c: New file.
83027         * modules/uniconv/u8-conv-to-enc-tests: New file.
83028         * tests/uniconv/test-u8-conv-to-enc.c: New file.
83030         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
83031         u32_conv_to_encoding): New declarations.
83033 2007-06-09  Bruno Haible  <bruno@clisp.org>
83035         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
83037 2007-06-09  Bruno Haible  <bruno@clisp.org>
83039         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
83040         * modules/malloca: Renamed from modules/allocsa, updated.
83041         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
83042         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
83043         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
83044         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
83045         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
83046         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
83047         * modules/xmalloca: Renamed from modules/xallocsa, updated.
83048         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
83049         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
83050         * modules/c-strcasestr (Depends-on): Update.
83051         * lib/c-strcasestr.c: Update.
83052         * modules/c-strstr (Depends-on): Update.
83053         * lib/c-strstr.c: Update.
83054         * modules/canonicalize-lgpl (Depends-on): Update.
83055         * lib/canonicalize-lgpl.c: Update.
83056         * modules/clean-temp (Depends-on): Update.
83057         * lib/clean-temp.c: Update.
83058         * modules/csharpcomp (Depends-on): Update.
83059         * lib/csharpcomp.c: Update.
83060         * modules/csharpexec (Depends-on): Update.
83061         * lib/csharpexec.c: Update.
83062         * modules/javacomp (Depends-on): Update.
83063         * lib/javacomp.c: Update.
83064         * modules/javaexec (Depends-on): Update.
83065         * lib/javaexec.c: Update.
83066         * modules/mbscasestr (Depends-on): Update.
83067         * lib/mbscasestr.c: Update.
83068         * modules/mbsstr (Depends-on): Update.
83069         * lib/mbsstr.c: Update.
83070         * modules/setenv (Depends-on): Update.
83071         * lib/setenv.c: Update.
83072         * modules/strcasestr (Depends-on): Update.
83073         * lib/strcasestr.c: Update.
83074         * modules/striconveha (Depends-on): Update.
83075         * lib/striconveha.c: Update.
83076         * modules/relocatable-prog-wrapper (Files): Update.
83077         * lib/relocwrapper.c: Update.
83078         * build-aux/install-reloc: Update.
83079         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
83081 2007-06-08  Bruno Haible  <bruno@clisp.org>
83083         Port to uClibc.
83084         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
83085         * lib/fpurge.c (fpurge): Likewise.
83086         * lib/freading.c (freading): Likewise.
83087         * lib/fseeko.c (rpl_fseeko): Likewise.
83088         * lib/fseterr.c (fseterr): Likewise.
83089         * lib/fwriting.c (fwriting): Likewise.
83090         * tests/test-fflush.c (main): Avoid a failure on uClibc.
83092 2007-06-08  Bruno Haible  <bruno@clisp.org>
83094         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
83095         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
83096         * modules/gettext (Files): Add m4/intlmacosx.m4.
83098 2007-06-07  Bruno Haible  <bruno@clisp.org>
83100         * modules/localename-tests: New file.
83101         * tests/test-localename.c: New file.
83103         New module 'localename'.
83104         * lib/localename.h: New file.
83105         * lib/localename.c: New file, from GNU gettext.
83106         * m4/localename.m4: New file.
83107         * modules/localename: New file.
83109 2007-06-07  Bruno Haible  <bruno@clisp.org>
83111         Work around the lack of <wchar.h> on some builds of uClibc.
83112         * doc/headers/wchar.texi: Update.
83113         * lib/wchar_.h: Include <wchar.h> only if it exists.
83114         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
83115         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
83116         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
83117         doesn't exist.
83118         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
83119         * modules/mbfile (Depends-on): Add wchar.
83120         * modules/mbiter (Depends-on): Likewise.
83121         * modules/mbuiter (Depends-on): Likewise.
83122         Reported by Simon Josefsson.
83124 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
83126         Work around problem reported by Steven M. Schweda in
83127         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
83128         Tru64 5.1B with the Compaq compiler environment installed declares
83129         an 'isblank' function but does not define it in the C library.
83130         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
83131         * lib/regex_internal.h (isblank): Likewise.
83132         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
83133         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
83135 2007-06-05  Bruno Haible  <bruno@clisp.org>
83137         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
83138         ia64.
83139         * modules/printf-safe: New file.
83140         * modules/fprintf-posix (Depends-on): Add printf-safe.
83141         * modules/printf-posix (Depends-on): Likewise.
83142         * modules/snprintf-posix (Depends-on): Likewise.
83143         * modules/sprintf-posix (Depends-on): Likewise.
83144         * modules/vasnprintf-posix (Depends-on): Likewise.
83145         * modules/vasprintf-posix (Depends-on): Likewise.
83146         * modules/vfprintf-posix (Depends-on): Likewise.
83147         * modules/vprintf-posix (Depends-on): Likewise.
83148         * modules/vsnprintf-posix (Depends-on): Likewise.
83149         * modules/vsprintf-posix (Depends-on): Likewise.
83150         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
83151         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
83152         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
83153         "no" on i386, x86_64, ia64.
83154         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
83155         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
83156         on i386, x86_64, ia64.
83157         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
83158         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
83159         on i386, x86_64, ia64.
83160         * tests/test-vasnprintf-posix.c: Include float.h.
83161         (LDBL80_WORDS): New macro.
83162         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
83163         on i386, x86_64, ia64.
83164         * tests/test-vasprintf-posix.c: Include float.h.
83165         (LDBL80_WORDS): New macro.
83166         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
83167         on i386, x86_64, ia64.
83168         * tests/test-snprintf-posix.c: Include float.h.
83169         * tests/test-sprintf-posix.c: Likewise.
83170         * tests/test-vsnprintf-posix.c: Likewise.
83171         * tests/test-vsprintf-posix.c: Likewise.
83173 2007-06-05  Bruno Haible  <bruno@clisp.org>
83175         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
83176         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
83177         non-IEEE numbers on i386, x86_64, ia64.
83178         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
83179         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
83180         * tests/test-isnanl.h: Include float.h.
83181         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
83183 2007-06-05  Bruno Haible  <bruno@clisp.org>
83185         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
83186         also the %a / %A. Handle the %a / %A code before this extra handling.
83188 2007-06-05  Bruno Haible  <bruno@clisp.org>
83190         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
83191         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
83193 2007-06-05  Bruno Haible  <bruno@clisp.org>
83195         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
83196         typo in variable name.
83198 2007-06-05  Eric Blake  <ebb9@byu.net>
83200         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
83201         Reported by Simon Josefsson.
83203 2007-06-04  Bruno Haible  <bruno@clisp.org>
83205         Avoid test failures on some PowerPC platforms.
83206         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
83207         Define differently for PowerPC.
83208         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
83209         Reported by Gary V. Vaughan <gary@gnu.org>.
83211 2007-06-02  Bruno Haible  <bruno@clisp.org>
83213         Fix test-stdint failure on FreeBSD/ia64.
83214         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
83215         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
83216         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
83217         * doc/headers/stdint.texi: Update.
83219 2007-06-01  Bruno Haible  <bruno@clisp.org>
83221         * tests/test-binary-io.c (main): Pass a third argument to open().
83222         Reported by Gary V. Vaughan <gary@gnu.org>.
83224 2007-06-01  Bruno Haible  <bruno@clisp.org>
83226         * doc/functions/frexpl.texi: Update for mingw.
83228 2007-06-01  Bruno Haible  <bruno@clisp.org>
83230         * tests/test-lseek.c (main): Disable test of errno for invalid third
83231         argument.
83232         * doc/functions/lseek.texi: Update.
83233         Reported by Gary V. Vaughan <gary@gnu.org>.
83235 2007-05-28  Bruno Haible  <bruno@clisp.org>
83237         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
83239 2007-05-31  Eric Blake  <ebb9@byu.net>
83241         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
83242         cross compiling.
83244 2007-05-30  Eric Blake  <ebb9@byu.net>
83245         and Bruno Haible  <bruno@clisp.org>
83247         Work around mingw test failures exposed by m4-1.4.9b.
83248         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
83249         * tests/test-unistd.c: Disable uid_t and git_t tests for the
83250         moment.
83252 2007-05-30  Bruno Haible  <bruno@clisp.org>
83254         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
83255         assuming that they are closed. Needed on HP-UX 11.
83257 2007-05-29  Bruno Haible  <bruno@clisp.org>
83259         Fix a problem with #include_next.
83260         * lib/dirent_.h: Split the double-inclusion guard.
83261         * lib/fcntl_.h: Likewise.
83262         * lib/float_.h: Likewise.
83263         * lib/iconv_.h: Likewise.
83264         * lib/inttypes_.h: Likewise.
83265         * lib/locale_.h: Likewise.
83266         * lib/math_.h: Likewise.
83267         * lib/netinet_in_.h: Likewise.
83268         * lib/search_.h: Likewise.
83269         * lib/signal_.h: Likewise.
83270         * lib/stdint_.h: Likewise.
83271         * lib/stdio_.h: Likewise.
83272         * lib/stdlib_.h: Likewise.
83273         * lib/string_.h: Likewise.
83274         * lib/sys_select_.h: Likewise.
83275         * lib/sys_socket_.h: Likewise.
83276         * lib/sys_stat_.h: Likewise.
83277         * lib/sys_time_.h: Likewise.
83278         * lib/sysexits_.h: Likewise.
83279         * lib/time_.h: Likewise.
83280         * lib/unistd_.h: Likewise.
83281         * lib/wchar_.h: Likewise.
83282         * lib/wctype_.h: Likewise.
83284 2007-05-29  Bruno Haible  <bruno@clisp.org>
83286         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
83287         for the moment.
83289 2007-05-29  Bruno Haible  <bruno@clisp.org>
83291         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
83292         invocation.
83293         Reported by Eric Blake.
83295 2007-05-29  Bruno Haible  <bruno@clisp.org>
83297         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
83298         compiling case.
83300 2007-05-29  Eric Blake  <ebb9@byu.net>
83301             Bruno Haible  <bruno@clisp.org>
83303         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
83304         cross compiles.
83306 2007-05-28  Eric Blake  <ebb9@byu.net>
83308         * modules/closein-tests (test_closein_LDADD): Support test on
83309         cygwin with libtool.
83311 2007-05-28  Bruno Haible  <bruno@clisp.org>
83313         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
83314         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
83315         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
83316         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
83317         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
83318         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
83319         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
83320         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
83321         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
83323 2007-05-28  Eric Blake  <ebb9@byu.net>
83325         Unconditionally include <config.h> in unit tests.
83326         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
83327         * tests/test-allocsa.c, tests/test-arcfour.c,
83328         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
83329         tests/test-array_list.c, tests/test-array_oset.c,
83330         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
83331         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
83332         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
83333         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
83334         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
83335         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
83336         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
83337         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
83338         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
83339         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
83340         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
83341         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
83342         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
83343         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
83344         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
83345         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
83346         test-md5.c, test-memmem.c, test-printf-posix.c,
83347         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
83348         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
83349         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
83350         test-strcasestr.c, test-striconv.c, test-striconveh.c,
83351         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
83352         test-vasnprintf-posix2.c, test-vasnprintf.c,
83353         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
83354         test-vfprintf-posix.c, test-vprintf-posix.c,
83355         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
83356         test-xvasprintf.c: Likewise.
83358 2007-05-28  Bruno Haible  <bruno@clisp.org>
83360         * gnulib-tool (func_import): Remember the --with-tests command-line
83361         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
83362         Reported by Eric Blake.
83364 2007-05-28  Bruno Haible  <bruno@clisp.org>
83366         * modules/ftell-tests: New file.
83367         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
83368         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
83370         * lib/ftell.c: New file.
83371         * modules/ftell: New file.
83372         * m4/ftell.m4: New file.
83373         * doc/functions/ftell.texi: Update.
83374         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
83375         REPLACE_FTELL.
83376         * lib/stdio_.h (rpl_ftell): New declaration.
83377         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
83378         REPLACE_FTELL.
83380 2007-05-28  Eric Blake  <ebb9@byu.net>
83382         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
83384 2007-05-28  Bruno Haible  <bruno@clisp.org>
83386         * modules/fseek-tests: New file.
83387         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
83388         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
83390         * lib/fseek.c: New file.
83391         * modules/fseek: New file.
83392         * m4/fseek.m4: New file.
83393         * doc/functions/fseek.texi: Update.
83394         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
83395         REPLACE_FSEEK.
83396         * lib/stdio_.h (rpl_fseek): New declaration.
83397         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
83398         REPLACE_FSEEK.
83400 2007-05-28  Bruno Haible  <bruno@clisp.org>
83402         * lib/stdio_.h (fflush): More comments.
83404 2007-05-28  Bruno Haible  <bruno@clisp.org>
83406         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
83407         runtime test.
83409 2007-05-28  Eric Blake  <ebb9@byu.net>
83411         Improve lseek module.
83412         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
83413         * lib/unistd_.h (lseek): Scale back link warning message.
83414         * tests/test-lseek.c: Beef up test.
83415         * tests/test-lseek.sh: Exercise more facets of lseek.
83416         Reported by Bruno Haible.
83418 2007-05-28  Bruno Haible  <bruno@clisp.org>
83420         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
83421         to define.
83423 2007-05-27  Bruno Haible  <bruno@clisp.org>
83425         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
83427 2007-05-27  Bruno Haible  <bruno@clisp.org>
83429         * modules/openmp: New file.
83430         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
83431         Noah Misch.
83433 2007-05-26  Bruno Haible  <bruno@clisp.org>
83435         * modules/chdir-long (Depends-on): Add fchdir.
83436         * modules/chdir-safer (Depends-on): Likewise.
83437         * modules/fts (Depends-on): Likewise.
83438         * modules/fts-lgpl (Depends-on): Likewise.
83439         * modules/openat (Depends-on): Likewise.
83440         * modules/savewd (Depends-on): Likewise.
83442 2007-05-24  Eric Blake  <ebb9@byu.net>
83444         Fix lseek on mingw.
83445         * modules/lseek: New module.
83446         * m4/lseek.m4: New file.
83447         * lib/lseek.c: New file.
83448         * modules/lseek-tests: New file.
83449         * tests/test-lseek.c: New file.
83450         * tests/test-lseek.sh: New file.
83451         * MODULES.html.sh: Document lseek module.
83452         * modules/fflush (Depends-on): Add lseek, fseeko.
83453         * modules/fseeko (Depends-on): Likewise.
83454         * modules/ftello (Depends-on): Likewise.
83455         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
83456         broken.
83457         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
83458         broken.
83459         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
83460         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
83461         * lib/ftello.c (rpl_ftello): Likewise.
83462         * tests/test-fseeko.c (main): Test this.
83463         * tests/test-fseeko.sh: Likewise.
83464         * tests/test-ftello.c (main): Likewise.
83465         * tests/test-ftello.sh: Likewise.
83466         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
83467         implies replacing fseek.
83468         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
83469         HAVE_FTELLO.
83470         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
83471         * modules/unistd (Makefile.am): Likewise.
83472         * lib/unistd_.h (lseek): Declare a replacement.
83473         * doc/functions/lseek.texi (lseek): Document this fix.
83474         * doc/functions/fseek.texi (fseek): Likewise.
83475         * doc/functions/ftell.texi (ftell): Likewise.
83477 2007-05-24  Bruno Haible  <bruno@clisp.org>
83479         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
83480         in the printed representation of a NaN.
83481         * tests/test-vasprintf-posix.c (test_function): Likewise.
83482         * tests/test-snprintf-posix.h (test_function): Likewise.
83483         * tests/test-sprintf-posix.h (test_function): Likewise.
83484         Reported by Eric Blake.
83486 2007-05-23  Eric Blake  <ebb9@byu.net>
83488         Fix fseeko/ftello on cygwin 1.5.24.
83489         * doc/functions/fseeko.texi (fseeko): Document the fix.
83490         * doc/functions/ftello.texi (ftello): Document the fix.
83491         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
83492         * doc/functions/stdout.text (stdout): New file.
83493         * doc/functions/stderr.text (stderr): New file.
83494         * doc/gnulib.texi (Function Substitutes): Use new files.
83495         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
83496         prior to 1.7.0.
83497         * tests/test-ftello.c (main): Likewise for ftello.
83498         * tests/test-fseeko.sh: New file.
83499         * tests/test-ftello.sh: New file.
83500         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
83501         with seekable stdin.
83502         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
83503         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
83504         (gl_REPLACE_FSEEKO): New macro.
83505         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
83506         * modules/fseeko (Files): Distribute fseeko.c.
83507         * modules/ftello (Files): Distribute ftello.c.
83508         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
83509         mode.
83510         * lib/ftello.c (rpl_ftello): New file.
83511         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
83512         fseeko, ftello.
83513         (gl_STDIN_LARGE_OFFSET): New macro.
83514         * modules/stdio (Makefile.am): Perform the replacement.
83515         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
83517 2007-05-23  Bruno Haible  <bruno@clisp.org>
83519         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
83520         GNULIB_POSIXCHECK is defined.
83522 2007-05-21  Bruno Haible  <bruno@clisp.org>
83524         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
83525         Check also the output for NaN arguments. When cross-compiling, guess
83526         no on IRIX.
83527         * lib/vasnprintf.c: Update comments.
83528         * tests/test-vasnprintf-posix.c (strisnan): New function.
83529         (test_function): Use it.
83530         * tests/test-vasprintf-posix.c (strisnan): New function.
83531         (test_function): Use it.
83532         * tests/test-snprintf-posix.h (strisnan): New function.
83533         (test_function): Use it.
83534         * tests/test-sprintf-posix.h (strisnan): New function.
83535         (test_function): Use it.
83536         Reported by Eric Blake.
83538 2007-05-20  Bruno Haible  <bruno@clisp.org>
83540         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
83541         numbers that fails on BeOS.
83542         * doc/functions/frexpl.texi: Update.
83544 2007-05-20  Jim Meyering  <jim@meyering.net>
83546         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
83547         forced upon us by glibc-2.6.
83549 2007-05-20  Bruno Haible  <bruno@clisp.org>
83551         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
83552         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
83553         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
83554         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
83555         NEED_PRINTF_INFINITE.
83556         (is_infinitel): New function.
83557         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
83558         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
83559         gl_PREREQ_VASNPRINTF_INFINITE.
83560         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
83561         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83562         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
83563         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
83564         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
83565         gl_PREREQ_VASNPRINTF_INFINITE.
83566         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
83567         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83568         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83569         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83570         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83571         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83572         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83573         * doc/functions/fprintf.texi: Update.
83574         * doc/functions/printf.texi: Update.
83575         * doc/functions/snprintf.texi: Update.
83576         * doc/functions/sprintf.texi: Update.
83577         * doc/functions/vfprintf.texi: Update.
83578         * doc/functions/vprintf.texi: Update.
83579         * doc/functions/vsnprintf.texi: Update.
83580         * doc/functions/vsprintf.texi: Update.
83582 2007-05-20  Bruno Haible  <bruno@clisp.org>
83584         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
83585         was not found in libc.
83586         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
83588 2007-05-20  Bruno Haible  <bruno@clisp.org>
83590         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
83591         printed as "-nan" instead of "nan".
83592         * tests/test-vasprintf-posix.c (test_function): Likewise.
83593         * tests/test-snprintf-posix.h (test_function): Likewise.
83594         * tests/test-sprintf-posix.h (test_function): Likewise.
83595         Needed for HP-UX 11.
83597 2007-05-20  Jim Meyering  <jim@meyering.net>
83599         Fix buggy test for the fchownat-deref bug.
83600         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
83601         symlink required for the run-test.  Without it, this test would
83602         always declare that fchownat doesn't work, and client code would
83603         unnecessarily use the replacement function with fixed libc.
83604         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
83605         Reported by Greg Schafer.
83607 2007-05-19  Bruno Haible  <bruno@clisp.org>
83609         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
83610         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
83611         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
83612         Needed for IRIX 6.5 and Solaris 2.5.1.
83614 2007-05-19  Bruno Haible  <bruno@clisp.org>
83616         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
83617         (test_function): Skip tests involving -0.0 on platforms where
83618         -0.0 = 0.0.
83619         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
83620         (test_function): Skip tests involving -0.0 on platforms where
83621         -0.0 = 0.0.
83622         * tests/test-snprintf-posix.h (have_minus_zero): New function.
83623         (test_function): Skip tests involving -0.0 on platforms where
83624         -0.0 = 0.0.
83625         * tests/test-sprintf-posix.h (have_minus_zero): New function.
83626         (test_function): Skip tests involving -0.0 on platforms where
83627         -0.0 = 0.0.
83628         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
83629         tests.
83630         * tests/test-printf-posix.h (test_function): Likewise.
83631         * tests/test-printf-posix.output: Remove all -0.0 related results.
83632         Needed for IRIX 6.5.
83634 2007-05-19  Bruno Haible  <bruno@clisp.org>
83636         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
83637         printed as "nan0x7fffffff" instead of "nan".
83638         * tests/test-vasprintf-posix.c (test_function): Likewise.
83639         * tests/test-snprintf-posix.h (test_function): Likewise.
83640         * tests/test-sprintf-posix.h (test_function): Likewise.
83641         * tests/test-fprintf-posix.h (NaN): Remove macro.
83642         (test_function): Remove all NaN related tests.
83643         * tests/test-printf-posix.h (NaN): Remove macro.
83644         (test_function): Remove all NaN related tests.
83645         * tests/test-printf-posix.output: Remove all NaN related results.
83646         Needed for IRIX 6.5.
83648 2007-05-19  Bruno Haible  <bruno@clisp.org>
83650         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
83651         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
83653 2007-05-19  Bruno Haible  <bruno@clisp.org>
83655         * lib/float_.h: New file.
83656         * m4/float_h.m4: New file.
83657         * modules/float: New file.
83658         * modules/isnanl (Dependencies): Add float.
83659         * modules/isnanl-nolibm (Dependencies): Likewise.
83660         * modules/mathl (Dependencies): Likewise.
83661         * modules/printf-frexpl (Dependencies): Likewise.
83662         * modules/signbit (Dependencies): Likewise.
83663         * modules/vasnprintf (Dependencies): Likewise.
83664         * doc/headers/float.texi: Update.
83666 2007-05-19  Jim Meyering  <jim@meyering.net>
83668         * lib/utimens.c (gl_futimens): Rename from futimens,
83669         now that glibc-2.6 declares futimens.
83670         * lib/utimens.h: Likewise.
83672 2007-05-19  Bruno Haible  <bruno@clisp.org>
83674         Avoid test failures on mingw.
83675         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
83676         * tests/test-printf-posix.sh: Likewise.
83677         * tests/test-vfprintf-posix.sh: Likewise.
83678         * tests/test-vprintf-posix.sh: Likewise.
83680 2007-05-19  Bruno Haible  <bruno@clisp.org>
83682         Fix *printf result for NaN, Inf, -0.0 on mingw.
83683         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
83684         * lib/vasnprintf.c: Include math.h and isnan.h.
83685         (is_infinite_or_zero): New function.
83686         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
83687         values in the %f, %F, %e, %E, %g, %G directives.
83688         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
83689         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83690         gl_PRINTF_INFINITE and test its result. Invoke
83691         gl_PREREQ_VASNPRINTF_INFINITE.
83692         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
83693         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83694         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83695         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83696         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83697         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83698         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83699         * doc/functions/fprintf.texi: Update.
83700         * doc/functions/printf.texi: Update.
83701         * doc/functions/snprintf.texi: Update.
83702         * doc/functions/sprintf.texi: Update.
83703         * doc/functions/vfprintf.texi: Update.
83704         * doc/functions/vprintf.texi: Update.
83705         * doc/functions/vsnprintf.texi: Update.
83706         * doc/functions/vsprintf.texi: Update.
83708 2007-05-19  Bruno Haible  <bruno@clisp.org>
83710         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
83711         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
83712         Instead of multiplying with 10^k, set extra_zeroes to k.
83713         (scale10_round_long_double): Remove function.
83715 2007-05-18  Bruno Haible  <bruno@clisp.org>
83717         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
83718         introduced on 2007-05-06.
83720 2007-05-18  Bruno Haible  <bruno@clisp.org>
83722         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
83723         %g directives.
83724         * tests/test-vasprintf-posix.c (test_function): Likewise.
83725         * tests/test-snprintf-posix.h (test_function): Likewise.
83726         * tests/test-sprintf-posix.h (test_function): Likewise.
83728 2007-05-18  Bruno Haible  <bruno@clisp.org>
83730         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
83731         (strmatch): New function.
83732         (test_function): Test the %f directive on numbers of various exponents.
83733         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
83734         (strmatch): New function.
83735         (test_function): Test the %f directive on numbers of various exponents.
83736         * tests/test-snprintf-posix.h (strmatch): New function.
83737         (test_function): Test the %f directive on numbers of various exponents.
83738         * tests/test-sprintf-posix.h (strmatch): New function.
83739         (test_function): Test the %f directive on numbers of various exponents.
83740         * tests/test-snprintf-posix.c (SIZEOF): New macro.
83741         * tests/test-sprintf-posix.c (SIZEOF): New macro.
83742         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
83743         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
83745 2007-05-18  Bruno Haible  <bruno@clisp.org>
83747         Add support for 'long double' number output.
83748         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
83749         * lib/vasnprintf.c: Include math.h and float+.h.
83750         (mp_limb_t): New type.
83751         (GMP_LIMB_BITS): New macro.
83752         (mp_twolimb_t): New type.
83753         (GMP_TWOLIMB_BITS): New macro.
83754         (mpn_t): New type.
83755         (multiply, divide, convert_to_decimal, decode_long_double,
83756         scale10_round_long_double, scale10_round_decimal_long_double,
83757         floorlog10l): New functions.
83758         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
83759         for the %f, %F, %e, %E, %g, %G directives.
83760         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
83761         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83762         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
83763         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
83764         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
83765         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83766         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83767         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83768         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83769         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83770         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83771         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
83772         * modules/snprintf-posix (Depends-on): Likewise.
83773         * modules/sprintf-posix (Depends-on): Likewise.
83774         * modules/vasnprintf-posix (Depends-on): Likewise.
83775         * modules/vasprintf-posix (Depends-on): Likewise.
83776         * modules/vfprintf-posix (Depends-on): Likewise.
83777         * modules/vsnprintf-posix (Depends-on): Likewise.
83778         * modules/vsprintf-posix (Depends-on): Likewise.
83779         * modules/vasnprintf (Files): Add lib/float+.h.
83780         * doc/functions/fprintf.texi: Update.
83781         * doc/functions/printf.texi: Update.
83782         * doc/functions/snprintf.texi: Update.
83783         * doc/functions/sprintf.texi: Update.
83784         * doc/functions/vfprintf.texi: Update.
83785         * doc/functions/vprintf.texi: Update.
83786         * doc/functions/vsnprintf.texi: Update.
83787         * doc/functions/vsprintf.texi: Update.
83789 2007-05-18  Bruno Haible  <bruno@clisp.org>
83791         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
83793 2007-05-18  Bruno Haible  <bruno@clisp.org>
83795         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
83796         for printing 64-bit integers. Needed for mingw.
83798 2007-05-18  Bruno Haible  <bruno@clisp.org>
83800         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
83801         gl_FUNC_FREXPL_WORKS.
83802         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
83804 2007-05-18  Bruno Haible  <bruno@clisp.org>
83806         * modules/frexpl-nolibm-tests: New file.
83808         * modules/frexpl-nolibm: New file.
83809         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
83811 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
83813         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
83814         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
83815         GCC 4.2, which otherwise issues a lot of warnings.
83816         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
83817         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
83818         Likewise.
83819         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
83820         * modules/iconv_open (iconv.h): Likewise.
83821         * modules/locale (locale.h): Likewise.
83822         * modules/netinet_in (netinet/in.h): Likewise.
83823         * modules/sys_select (sys_select.h): Likewise.
83824         * modules/sys_socket (sys/socket.h): Likewise.
83825         * modules/sys_stat (sys/stat.h): Likewise.
83826         * modules/sysexits (sysexits.h): Likewise.
83827         * modules/unistd (unistd.h): Likewise.
83829 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83831         * modules/closein-tests (Makefile.am): Distribute
83832         `test-closein.sh'.
83834 2007-05-17  Bruno Haible  <bruno@clisp.org>
83836         * tests/test-printf-posix.output: Renamed from
83837         tests/test-fprintf-posix.out.
83838         * modules/fprintf-posix-tests: Update.
83839         * modules/printf-posix-tests: Update.
83840         * modules/vfprintf-posix-tests: Update.
83841         * modules/vprintf-posix-tests: Update.
83842         * tests/test-fprintf-posix.sh: Update.
83843         * tests/test-printf-posix.sh: Update.
83844         * tests/test-vfprintf-posix.sh: Update.
83845         * tests/test-vprintf-posix.sh: Update.
83846         Reported by Ralf Wildenhues.
83848 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
83850         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
83851         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
83852         GCC 4.2, which otherwise issues a lot of warnings.
83853         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
83854         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
83855         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
83856         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
83857         it should no longer be needed.
83858         * lib/string_.h: Likewise.
83859         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
83860         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
83861         * modules/inttypes (inttypes.h): Likewise.
83862         * modules/math (math.h): Likewise.
83863         * modules/search (search.h): Likewise.
83864         * modules/signal (signal.h): Likewise.
83865         * modules/stdint (stdint.h): Likewise.
83866         * modules/stdio (stdio.h): Likewise.
83867         * modules/stdlib (stdlib.h): Likewise.
83868         * modules/string (string.h): Likewise.
83869         * modules/sys_time (sys/time.h): Likewise.
83870         * modules/time (time.h): Likewise.
83871         * modules/wchar (wchar.h): Likewise.
83872         * modules/wctype (wtype.h): Likewise.
83874 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
83876         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
83878 2007-05-13  Bruno Haible  <bruno@clisp.org>
83880         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
83881         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
83882         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
83883         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
83884         (gl_PREREQ_STRTOK_R): Don't require it here.
83886 2007-05-13  Bruno Haible  <bruno@clisp.org>
83888         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
83889         when used in C++ mode.
83891 2007-05-12  Bruno Haible  <bruno@clisp.org>
83893         * lib/linebuffer.h: Tweak doc.
83894         * lib/linebuffer.c: Likewise.
83896 2007-05-12  James Youngman  <jay@gnu.org>
83898         * lib/linebuffer.c (readlinebuffer_delim): New function,
83899         like readlinebuffer, but use a caller-specified delimiter.
83900         (readlinebuffer): Just call readlinebuffer_delim with '\n'
83901         as the delimiter.
83902         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
83904 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
83906         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
83907         * modules/openat (Files): Remove openat-die.c.
83908         (Depends-on): Add openat-die.
83909         * modules/openat-die: New module.
83911 2007-05-06  Bruno Haible  <bruno@clisp.org>
83913         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
83914         Update with info about Cygwin.
83915         * doc/functions/fprintf.texi: Update.
83916         * doc/functions/printf.texi: Update.
83917         * doc/functions/snprintf.texi: Update.
83918         * doc/functions/sprintf.texi: Update.
83919         * doc/functions/vfprintf.texi: Update.
83920         * doc/functions/vprintf.texi: Update.
83921         * doc/functions/vsnprintf.texi: Update.
83922         * doc/functions/vsprintf.texi: Update.
83923         Reported by Eric Blake.
83925 2007-05-06  Bruno Haible  <bruno@clisp.org>
83927         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
83928         padding ourselves for the floating-point directives.
83929         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
83930         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
83931         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
83932         gl_PRINTF_FLAG_ZERO and test its result. Invoke
83933         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
83934         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83935         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
83936         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83937         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83938         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83939         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83940         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83941         * tests/test-snprintf-posix.h (test_function): Also check the width
83942         and some flags in the %f directive.
83943         * tests/test-sprintf-posix.h (test_function): Likewise.
83944         * tests/test-vasnprintf-posix.c (test_function): Likewise.
83945         * tests/test-vasprintf-posix.c (test_function): Likewise.
83946         * doc/functions/fprintf.texi: Update.
83947         * doc/functions/printf.texi: Update.
83948         * doc/functions/snprintf.texi: Update.
83949         * doc/functions/sprintf.texi: Update.
83950         * doc/functions/vfprintf.texi: Update.
83951         * doc/functions/vprintf.texi: Update.
83952         * doc/functions/vsnprintf.texi: Update.
83953         * doc/functions/vsprintf.texi: Update.
83955 2007-05-06  Bruno Haible  <bruno@clisp.org>
83957         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
83958         pass the ' flag character to sprintf or snprintf.
83959         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
83960         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
83961         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
83962         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
83963         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
83964         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83965         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
83966         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83967         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83968         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83969         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83970         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83971         * tests/test-snprintf-posix.h (test_function): Also check the grouping
83972         flag.
83973         * tests/test-sprintf-posix.h (test_function): Likewise.
83974         * tests/test-vasnprintf-posix.c (test_function): Likewise.
83975         * tests/test-vasprintf-posix.c (test_function): Likewise.
83976         * doc/functions/fprintf.texi: Update.
83977         * doc/functions/printf.texi: Update.
83978         * doc/functions/snprintf.texi: Update.
83979         * doc/functions/sprintf.texi: Update.
83980         * doc/functions/vfprintf.texi: Update.
83981         * doc/functions/vprintf.texi: Update.
83982         * doc/functions/vsnprintf.texi: Update.
83983         * doc/functions/vsprintf.texi: Update.
83985 2007-05-01  Bruno Haible  <bruno@clisp.org>
83987         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
83989 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
83991         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
83992         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
83994 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
83996         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
83997         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
83998         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
84000 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
84002         * lib/argp-help.c (struct hol_entry): New member `ord'.
84003         (HOL_ENTRY_PTRCMP): Use ord for comparison
84004         (hol_sort): Initialize ord.
84006 2007-05-01  Bruno Haible  <bruno@clisp.org>
84008         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
84009         Reported by Eric Blake.
84010         * doc/gnulib.texi (Function Substitutes): Update.
84012 2007-05-01  Bruno Haible  <bruno@clisp.org>
84014         * doc/functions.texi: Remove file, now redundant through
84015         doc/functions/*.texi.
84017 2007-05-01  Bruno Haible  <bruno@clisp.org>
84019         * modules/argp (Depends-on): Add sleep.
84021 2007-05-01  Bruno Haible  <bruno@clisp.org>
84023         * modules/sleep-tests: New file.
84024         * tests/test-sleep.c: New file.
84026         * modules/sleep: New file.
84027         * lib/sleep.c: New file.
84028         * m4/sleep.m4: New file.
84029         * lib/unistd_.h (sleep): New declaration.
84030         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
84031         HAVE_SLEEP.
84032         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
84033         * doc/functions/sleep.texi: Document the sleep module.
84035 2007-05-01  Bruno Haible  <bruno@clisp.org>
84037         * lib/sigprocmask.h: Remove file.
84038         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
84039         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
84040         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
84041         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
84042         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
84043         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
84044         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
84045         HAVE_SIGSET_T as a shell variable.
84046         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
84047         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
84048         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
84049         (Depends-on): Add signal. Remove verify.
84050         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
84051         (Include): Mention <signal.h> instead of sigprocmask.h.
84052         * NEWS: Mention the change.
84053         * lib/fatal-signal.c: Don't include sigprocmask.h.
84055 2007-05-01  Bruno Haible  <bruno@clisp.org>
84057         * modules/signal: New file.
84058         * lib/signal_.h: New file.
84059         * m4/signal_h.m4: New file.
84061 2007-05-01  Bruno Haible  <bruno@clisp.org>
84063         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
84064         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
84065         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
84066         HAVE_WCTYPE_CTMP_BUG into wctype.h.
84068 2007-05-01  Bruno Haible  <bruno@clisp.org>
84070         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
84071         configure time.
84072         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
84073         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
84074         * modules/sys_stat (Makefile.am): Substitute their values into
84075         sys/stat.h.
84077 2007-05-01  Bruno Haible  <bruno@clisp.org>
84079         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
84080         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
84081         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
84083 2007-05-01  Bruno Haible  <bruno@clisp.org>
84085         * doc/header/assert.texi: Undo last change: don't mention the gnulib
84086         'assert' module here.
84088 2007-05-01  Bruno Haible  <bruno@clisp.org>
84090         * doc/functions/*.texi: New files.
84091         * doc/functions/google-ranking.txt: New file.
84092         * doc/gnulib.texi (Function Substitutes): New chapter.
84093         (ctime, inet_ntoa): Remove sections.
84094         * doc/ctime.texi: Remove file.
84095         * doc/inet_ntoa.texi: Remove file.
84096         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
84097         dependencies.
84098         (%.info): New rule, specifying a --reference-limit.
84100 2007-05-01  Bruno Haible  <bruno@clisp.org>
84102         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
84104 2007-05-01  Bruno Haible  <bruno@clisp.org>
84106         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
84107         the portability of 'mkdir' to mingw systems.
84109 2007-05-01  Bruno Haible  <bruno@clisp.org>
84111         * doc/headers/google-ranking.txt: New file.
84113 2007-04-30  Eric Blake  <ebb9@byu.net>
84115         Prefer fseeko to fseek.
84116         * modules/getpass (Depends-on): Add fseeko.
84117         * lib/getpass.c (getpass): Use fseeko, not fseek.
84119 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
84121         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
84122         assumes the sorting is stable, while most qsort implementations
84123         are not.  Use argument addresses to ensure they never compare as
84124         equal.
84126         * tests/test-argp-2.sh (usage-indent test): Fix output
84127         (func_compare): Restore diff options
84128         * tests/test-argp.c: Restore #include "progname.h"
84130 2007-04-29  Bruno Haible  <bruno@clisp.org>
84132         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
84133         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
84134         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
84135         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
84136         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
84137         (configure.ac): Define CHECK_SNPRINTF_POSIX.
84138         (TESTS, check_PROGRAMS): Add test-snprintf.
84139         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
84140         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
84141         (TESTS, check_PROGRAMS): Add test-vsnprintf.
84142         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
84143         assertions that fail on HP-UX, OSF/1, or IRIX.
84144         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
84146 2007-04-29  Bruno Haible  <bruno@clisp.org>
84148         * MODULES.html.sh (posix_functions): Remove 'contents'.
84150 2007-04-29  Karl Berry  <karl@gnu.org>
84152         * config/srclist.txt (gendocs_template_min): new entry.
84154 2007-04-29  Bruno Haible  <bruno@clisp.org>
84156         Work around fpurge bug on BSD systems.
84157         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
84158         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
84159         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
84160         fpurge to rpl_fpurge if the system already has this function.
84161         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
84162         the case where the system already has this function. Correct invariants
84163         on BSD systems.
84164         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
84165         BSD systems.
84167 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
84169         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
84170         proposed by Sven Verdoolaege.
84172         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
84173         options.
84174         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
84175         (usage and help tests): Update
84177 2007-04-29  Bruno Haible  <bruno@clisp.org>
84179         * tests/test-fflush.c (main): Use a file of size 17, not 10.
84180         Print more information in case of failure. Disable a test on BeOS.
84182 2007-04-29  Bruno Haible  <bruno@clisp.org>
84184         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
84185         This helps debugging on systems on which no gdb is available.
84187 2007-04-29  Bruno Haible  <bruno@clisp.org>
84189         * lib/freading.h: Improve comments.
84190         * lib/fwriting.h: Likewise.
84191         * tests/test-freading.c (main): Don't check freading immediately after
84192         repositioning. Needed for glibc.
84194 2007-04-29  Bruno Haible  <bruno@clisp.org>
84196         * lib/freading.c (freading): Trivial simplification.
84198 2007-04-28  Bruno Haible  <bruno@clisp.org>
84200         * tests/test-fwriting.c (main): Also test the interaction between
84201         fflush and fwriting.
84202         * modules/fwriting-tests (Depends-on): Add fflush.
84204         * tests/test-freading.c (main): Also test the interaction between
84205         fflush and freading.
84206         * modules/freading-tests (Depends-on): Add fflush.
84208 2007-04-28  Bruno Haible  <bruno@clisp.org>
84210         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
84211         fseeko and ftello.
84212         Suggested by Eric Blake.
84214 2007-04-28  Jim Meyering  <jim@meyering.net>
84216         Avoid false-negative in gl_STDINT_H's C99 conformance test.
84217         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
84218         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
84220 2007-04-27  Eric Blake  <ebb9@byu.net>
84222         * doc/headers/assert.texi (assert.h): Document assert module use.
84224 2007-04-27  Bruno Haible  <bruno@clisp.org>
84226         * doc/headers/*.texi: New files.
84227         * doc/gnulib.texi (Header File Substitutes): New chapter.
84228         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
84229         dependencies.
84230         (standards.info ,standards.html, standards.dvi): Update dependencies.
84231         (mostlyclean, clean): New targets.
84233 2007-04-27  Bruno Haible  <bruno@clisp.org>
84235         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
84236         * modules/sysexits (Files, Makefile.am): Update.
84238         * lib/sys_socket_.h: Renamed from lib/socket_.h.
84239         * modules/sys_socket (Files, Makefile.am): Update.
84241         * lib/sys_stat_.h: Renamed from lib/stat_.h.
84242         * modules/sys_stat (Files, Makefile.am): Update.
84244 2007-04-27  Eric Blake  <ebb9@byu.net>
84246         * lib/freading.h: Improve comments.
84247         * lib/fwriting.h: Likewise.
84248         * lib/fflush.c: Likewise.
84250         Fix closein for mingw.
84251         * modules/closein-tests: Add tests for closein.
84252         * tests/test-closein.c: New file.
84253         * tests/test-closein.sh: Likewise.
84254         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
84255         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
84257 2007-04-27  Bruno Haible  <bruno@clisp.org>
84259         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
84260         version is < 6.
84261         * lib/math_.h [__DECC]: Likewise.
84262         * lib/stdio_.h [__DECC]: Likewise.
84263         * lib/stdlib_.h [__DECC]: Likewise.
84264         * lib/string_.h [__DECC]: Likewise.
84265         * lib/time_.h [__DECC]: Likewise.
84266         * lib/wchar_.h [__DECC]: Likewise.
84267         * lib/wctype_.h [__DECC]: Likewise.
84269 2007-04-27  Bruno Haible  <bruno@clisp.org>
84271         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
84273 2007-04-27  Bruno Haible  <bruno@clisp.org>
84275         * lib/fflush.c: Add comments.
84276         * modules/fpurge-tests (Depends-on): Add fflush.
84277         * modules/freadable-tests (Depends-on): Likewise.
84278         * modules/fwritable-tests (Depends-on): Likewise.
84280 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
84282         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
84283         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
84284         Report by Bruno Haible <bruno@clisp.org>.
84286 2007-04-26  Eric Blake  <ebb9@byu.net>
84288         Fix fflush on mingw.
84289         * modules/fflush (Depends-on): Add freading.
84290         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
84291         but unread data.
84293 2007-04-26  Eric Blake  <ebb9@byu.net>
84294         and Bruno Haible  <bruno@clisp.org>
84296         Implement freading and fwriting.
84297         * lib/freading.c: New file.
84298         * lib/freading.h: Likewise.
84299         * m4/freading.m4: Likewise.
84300         * modules/freading: Likewise.
84301         * modules/freading-tests: Likewise.
84302         * tests/test-freading.c: Likewise.
84303         * lib/fwriting.c: New file.
84304         * lib/fwriting.h: Likewise.
84305         * m4/fwriting.m4: Likewise.
84306         * modules/fwriting: Likewise.
84307         * modules/fwriting-tests: Likewise.
84308         * tests/test-fwriting.c: Likewise.
84309         * MODULES.html.sh (File stream based Input/Output): Mention them.
84311 2007-04-26  Bruno Haible  <bruno@clisp.org>
84313         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
84314         'long' when we assume it.
84315         Suggested by Eric Blake.
84317 2007-04-26  Bruno Haible  <bruno@clisp.org>
84319         Ensure fseeko, ftello are declared on glibc systems.
84320         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
84321         * modules/fseeko (configure.ac-early): Likewise.
84322         * modules/ftello (configure.ac-early): Likewise.
84323         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
84324         AC_FUNC_FSEEKO for this.
84325         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
84326         (gl_CHECK_FSEEKO): Remove macro.
84328 2007-04-26  Bruno Haible  <bruno@clisp.org>
84330         * tests/test-fflush.c (main): Also check the ftell result after
84331         fflush and fseek/fseeko.
84332         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
84333         file descriptor position cache in the stream.
84334         * lib/fseeko.c (rpl_fseeko): Likewise.
84336 2007-04-26  Bruno Haible  <bruno@clisp.org>
84338         * modules/fflush-tests (Depends-on): Add fseeko.
84340 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
84341             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84343         * lib/argz_.h: ensure error_t definition is obtained in same
84344         mechanism system argz.h would have.
84345         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
84346         argz facilities are known bad.  Err on the side of caution if
84347         cross-compiling.
84349 2007-04-25  Eric Blake  <ebb9@byu.net>
84351         * lib/fpurge.c (includes): Use stdlib.h for free.
84352         * tests/test-fflush.c (main): Also test fflush-fseeko.
84354 2007-04-25  Bruno Haible  <bruno@clisp.org>
84356         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
84357         * lib/fseeko.c: New file.
84358         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
84359         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
84360         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
84361         gl_FUNC_FSEEKO.
84362         (gl_FUNC_FSEEKO): Invoke it.
84363         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
84364         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
84365         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
84367 2007-04-25  Bruno Haible  <bruno@clisp.org>
84369         * modules/fflush (Depends-on): Add ftello.
84371 2007-04-25  Bruno Haible  <bruno@clisp.org>
84373         * modules/ftello-tests: New file.
84374         * tests/test-ftello.c: New file.
84376         * modules/ftello: New file.
84377         * m4/ftello.m4: New file.
84378         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
84379         HAVE_FTELLO.
84380         * lib/stdio_.h (ftello): New declaration.
84381         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
84382         HAVE_FTELLO.
84384 2007-04-25  Bruno Haible  <bruno@clisp.org>
84386         * modules/fseeko-tests: New file.
84387         * tests/test-fseeko.c: New file.
84389         * modules/fseeko: New file.
84390         * m4/fseeko.m4: New file.
84391         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
84392         HAVE_FSEEKO.
84393         * lib/stdio_.h (fseeko): New declaration.
84394         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
84395         HAVE_FSEEKO.
84397 2007-04-25  Bruno Haible  <bruno@clisp.org>
84399         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
84401 2007-04-25  Bruno Haible  <bruno@clisp.org>
84403         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
84404         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
84405         * tests/test-unistd.c: Likewise.
84406         * tests/test-fcntl.c: Likewise.
84408 2007-04-23  Eric Blake  <ebb9@byu.net>
84410         * lib/fflush.c: Fix missing include.
84411         Reported by Bruno Haible.
84413 2007-04-23  Bruno Haible  <bruno@clisp.org>
84415         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
84416         Reported by Eric Blake.
84418 2007-04-23  Bruno Haible  <bruno@clisp.org>
84420         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
84422 2007-04-23  Bruno Haible  <bruno@clisp.org>
84424         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
84426 2007-04-23  Bruno Haible  <bruno@clisp.org>
84428         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
84429         Needed on HP-UX 11.
84431 2007-04-16  Eric Blake  <ebb9@byu.net>
84433         Make fflush rely on fpurge.
84434         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
84435         open coding all variants.
84436         * modules/fflush (Depends-on): Add fpurge and unistd.
84437         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
84438         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
84440         Fix --with-tests compilation on cygwin.
84441         * modules/argmatch-tests (Makefile.am): List gnulib library first
84442         in LDADD.
84443         * modules/argp-tests (Makefile.am): Likewise.
84444         * modules/array-list-tests (Makefile.am): Likewise.
84445         * modules/array-oset-tests (Makefile.am): Likewise.
84446         * modules/avltree-list-tests (Makefile.am): Likewise.
84447         * modules/avltree-oset-tests (Makefile.am): Likewise.
84448         * modules/avltreehash-list-tests (Makefile.am): Likewise.
84449         * modules/carray-list-tests (Makefile.am): Likewise.
84450         * modules/dirname-tests (Makefile.am): Likewise.
84451         * modules/frexp-tests (Makefile.am): Likewise.
84452         * modules/isnanl-tests (Makefile.am): Likewise.
84453         * modules/linked-list-tests (Makefile.am): Likewise.
84454         * modules/linkedhash-list-tests (Makefile.am): Likewise.
84455         * modules/lock-tests (Makefile.am): Likewise.
84456         * modules/rbtree-list-tests (Makefile.am): Likewise.
84457         * modules/rbtree-oset-tests (Makefile.am): Likewise.
84458         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
84459         * modules/tls-tests (Makefile.am): Likewise.
84460         * modules/tsearch-tests (Makefile.am): Likewise.
84461         * modules/xvasprintf-tests (Makefile.am): Likewise.
84463         Fix fpurge for cygwin.
84464         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
84465         value.
84466         * modules/fpurge-tests (Depends-on): Clean up trash.
84468 2007-04-16  Simon Josefsson  <simon@josefsson.org>
84470         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
84472         * m4/autobuild.m4: Re-indent.
84474 2007-04-13  Bruno Haible  <bruno@clisp.org>
84476         * modules/fpurge-tests: New file.
84477         * tests/test-fpurge.c: New file.
84479         * modules/fpurge: New file.
84480         * lib/fpurge.h: New file.
84481         * lib/fpurge.c: New file.
84482         * m4/fpurge.m4: New file.
84484 2007-04-13  Bruno Haible  <bruno@clisp.org>
84486         * modules/fbufmode-tests: New file.
84487         * tests/test-fbufmode.c: New file.
84489         * modules/fbufmode: New file.
84490         * lib/fbufmode.h: New file.
84491         * lib/fbufmode.c: New file.
84492         * m4/fbufmode.m4: New file.
84494 2007-04-13  Bruno Haible  <bruno@clisp.org>
84496         * modules/fwritable-tests: New file.
84497         * tests/test-fwritable.c: New file.
84499         * modules/fwritable: New file.
84500         * lib/fwritable.h: New file.
84501         * lib/fwritable.c: New file.
84502         * m4/fwritable.m4: New file.
84504 2007-04-13  Bruno Haible  <bruno@clisp.org>
84506         * modules/freadable-tests: New file.
84507         * tests/test-freadable.c: New file.
84509         * modules/freadable: New file.
84510         * lib/freadable.h: New file.
84511         * lib/freadable.c: New file.
84512         * m4/freadable.m4: New file.
84514 2007-04-13  Bruno Haible  <bruno@clisp.org>
84516         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
84517         MOSTLYCLEANFILES.
84519 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
84521         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
84522         gzip bootstrap.conf to avoid dragging in i18n machinery.
84523         (gnulib_tool_option): Use it.
84525 2007-04-13  Bruno Haible  <bruno@clisp.org>
84527         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
84528         %F directives.
84529         * tests/test-vasprintf-posix.c (test_function): Likewise.
84530         * tests/test-snprintf-posix.h (test_function): Likewise.
84531         * tests/test-sprintf-posix.h (test_function): Likewise.
84532         * tests/test-fprintf-posix.h (test_function): Likewise.
84533         * tests/test-printf-posix.h (test_function): Likewise.
84534         * tests/test-fprintf-posix.out: Likewise.
84536 2007-04-13  Bruno Haible  <bruno@clisp.org>
84538         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
84539         * modules/tls-tests (configure.ac): Likewise.
84540         Reported by Arto C. Nirkko <anirkko@insel.ch>.
84542 2007-04-13  Bruno Haible  <bruno@clisp.org>
84544         * lib/tls.c (glthread_tls_get): Fix return type.
84545         Patch by Arto C. Nirkko <anirkko@insel.ch>.
84547 2007-04-12  Eric Blake  <ebb9@byu.net>
84549         * modules/gettime (Depends-on): Remove gettime.
84550         Reported by Dmitry V. Levin.
84552 2007-04-12  Bruno Haible  <bruno@clisp.org>
84554         * modules/fflush (Include): Mention <stdio.h>.
84555         * modules/strtoimax (Include): Mention <inttypes.h>.
84556         * modules/strtoumax (Include): Likewise.
84558 2007-04-12  Eric Blake  <ebb9@byu.net>
84560         * .cvsignore: New file.
84561         * .gitignore: Likewise.
84563 2007-04-12  Bruno Haible  <bruno@clisp.org>
84565         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
84566         not before, since $(LDADD) often contains libgnu.a.
84567         * modules/striconv-tests (test_striconv_LDADD): Likewise.
84568         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
84569         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
84570         Needed on Cygwin.
84572 2007-04-12  Eric Blake  <ebb9@byu.net>
84574         Work around glibc's failure to flush stdin on fclose.
84575         * lib/closein.c (close_stdin): Flush stdin before closing.
84577         Work around glibc's failure to reset seekable stdin on exit.
84578         * modules/closein: New module.
84579         * lib/closein.c: New file.
84580         * lib/closein.h: Likewise.
84581         * m4/closein.m4: Likewise.
84582         * MODULES.html.sh (File stream based Input/Output): Document it.
84584 2007-04-12  Simon Josefsson  <simon@josefsson.org>
84586         * gnulib-tool: Rename generated 'autobuild' script to
84587         'do-autobuild' in --create-megatestdir output.
84589         * doc/gnulib.texi (Build robot for gnulib): Fix.
84591 2007-04-12  Simon Josefsson  <simon@josefsson.org>
84593         * modules/sysexits (Depends-on): Add absolute-header.
84595 2007-04-12  Eric Blake  <ebb9@byu.net>
84597         No need to preserve errno on success.
84598         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
84599         Reported by Bruno Haible.
84601 2007-04-12  Simon Josefsson  <simon@josefsson.org>
84603         * MODULES.html.sh (Support for maintaining and releasing
84604         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
84606 2007-04-12  Simon Josefsson  <simon@josefsson.org>
84608         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
84610 2007-04-12  Simon Josefsson  <simon@josefsson.org>
84612         * modules/autobuild: New module.
84614         * m4/autobuild.m4: New file.
84616 2007-04-11  Bruno Haible  <bruno@clisp.org>
84618         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
84619         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
84620         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
84621         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
84622         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
84623         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
84624         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
84625         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
84626         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
84627         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
84628         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
84629         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
84630         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
84631         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
84632         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
84633         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
84634         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
84635         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
84636         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
84637         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
84638         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
84639         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
84640         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
84641         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
84642         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
84643         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
84644         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
84645         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
84646         Reported by Eric Blake.
84648 2007-04-11  Bruno Haible  <bruno@clisp.org>
84650         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
84652 2007-04-10  Bruno Haible  <bruno@clisp.org>
84654         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
84655         for NaN and Infinity. Needed on FreeBSD 6.1.
84656         * tests/test-vasnprintf-posix.c (test_function): Undo last change
84657         regarding results for "%010a" of Infinity and NaN.
84658         * tests/test-vasprintf-posix.c (test_function): Likewise.
84659         * tests/test-snprintf-posix.h (test_function): Likewise.
84660         * tests/test-sprintf-posix.h (test_function): Likewise.
84661         * tests/test-fprintf-posix.h (test_function): Likewise.
84662         * tests/test-printf-posix.h (test_function): Likewise.
84663         * tests/test-fprintf-posix.out: Likewise.
84665 2007-04-10  Bruno Haible  <bruno@clisp.org>
84667         * modules/locale-tests: New file.
84668         * tests/test-locale.c: New file.
84670         * modules/locale: New file.
84671         * lib/locale_.h: New file.
84672         * m4/locale_h.m4: New file.
84674 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
84675             Bruno Haible  <bruno@clisp.org>
84677         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
84678         be determined, test for availability of the copysignf, copysign,
84679         copysignl functions.
84680         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
84681         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
84682         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
84684 2007-04-09  Eric Blake  <ebb9@byu.net>
84686         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
84687         * modules/stdio (Makefile.am): Support fflush.
84688         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
84689         * modules/fflush: New file.
84690         * lib/fflush.c: Likewise.
84691         * m4/fflush.m4: Likewise.
84692         * modules/fflush-tests: New test.
84693         * tests/test-fflush.c: Likewise.
84694         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
84696 2007-04-06  Bruno Haible  <bruno@clisp.org>
84698         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
84699         (VASNPRINTF): Use signbit for faster determination whether to print a
84700         minus sign.
84701         * modules/vasnprintf (Files): Remove lib/float+.h.
84702         * modules/fprintf-posix (Depends-on): Add signbit.
84703         * modules/snprintf-posix (Depends-on): Likewise.
84704         * modules/sprintf-posix (Depends-on): Likewise.
84705         * modules/vasnprintf-posix (Depends-on): Likewise.
84706         * modules/vasprintf-posix (Depends-on): Likewise.
84707         * modules/vfprintf-posix (Depends-on): Likewise.
84708         * modules/vsnprintf-posix (Depends-on): Likewise.
84709         * modules/vsprintf-posix (Depends-on): Likewise.
84711 2007-04-06  Bruno Haible  <bruno@clisp.org>
84713         * tests/test-frexp.c (main): Test also the sign bit of zero results.
84714         * tests/test-frexpl.c (main): Likewise.
84715         * tests/test-ldexpl.c (main): Likewise.
84716         * modules/frexp-tests (Depends-on): Add signbit.
84717         * modules/frexpl-tests (Depdends-on): Likewise.
84718         * modules/ldexpl-tests (Depdends-on): Likewise.
84720 2007-04-06  Bruno Haible  <bruno@clisp.org>
84722         * modules/signbit-tests: New file.
84723         * tests/test-signbit.c: New file.
84725         * modules/signbit: New file.
84726         * lib/signbitf.c: New file.
84727         * lib/signbitd.c: New file.
84728         * lib/signbitl.c: New file.
84729         * m4/signbit.m4: New file.
84730         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
84731         (signbit): New macro.
84732         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
84733         REPLACE_SIGNBIT.
84734         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
84735         REPLACE_FREXPL into math.h.
84737 2007-04-06  Bruno Haible  <bruno@clisp.org>
84739         * modules/isnanf-nolibm-tests: New file.
84740         * tests/test-isnanf.c: New file.
84742         * modules/isnanf-nolibm: New file.
84743         * lib/isnanf.h: New file.
84744         * lib/isnanf.c: New file.
84745         * lib/isnan.c: Consider the USE_FLOAT macro.
84746         * m4/isnanf.m4: New file.
84748 2007-04-06  Bruno Haible  <bruno@clisp.org>
84750         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
84751         (Link): New section.
84753         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
84755 2007-04-06  Bruno Haible  <bruno@clisp.org>
84757         Assume the 'long double' type.
84758         * m4/longdouble.m4: Remove file.
84759         * config/srclist.txt: Don't mention longdouble.m4.
84760         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
84761         * lib/float+.h: Likewise.
84762         * lib/frexp.c: Likewise.
84763         * lib/printf-args.h: Likewise.
84764         * lib/printf-args.c: Likewise.
84765         * lib/printf-frexp.c: Likewise.
84766         * lib/printf-parse.c: Likewise.
84767         * lib/vasnprintf.c: Likewise.
84768         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
84769         * m4/intl.m4: Likewise.
84770         * m4/isnanl.m4: Likewise.
84771         * m4/printf.m4: Likewise.
84772         * m4/printf-frexpl.m4: Likewise.
84773         * m4/vasnprintf.m4: Likewise.
84774         * modules/allocsa (Files): Remove m4/longdouble.m4.
84775         * modules/gettext (Files): Likewise.
84776         * modules/relocatable-prog-wrapper (Files): Likewise.
84777         * modules/vasnprintf (Files): Likewise.
84778         * modules/isnanl (Files): Likewise.
84779         (Include): Simplify.
84780         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
84781         (Include): Simplify.
84782         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
84783         (Include): Simplify.
84784         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
84785         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
84786         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
84787         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
84788         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
84789         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
84790         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
84791         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
84792         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
84793         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
84794         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
84795         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
84796         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
84797         * tests/test-isnanl.c: Likewise.
84798         * tests/test-snprintf-posix.h: Likewise.
84799         * tests/test-sprintf-posix.h: Likewise.
84800         * tests/test-vasnprintf-posix.c: Likewise.
84801         * tests/test-vasnprintf-posix2.c: Likewise.
84802         * tests/test-vasprintf-posix.c: Likewise.
84804 2007-04-06  Bruno Haible  <bruno@clisp.org>
84806         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
84807         * lib/math_.h [__DECC]: Include the overridden include file through
84808         #include_next, outside the double-inclusion guard.
84809         * lib/stdio_.h [__DECC]: Likewise.
84810         * lib/stdlib_.h [__DECC]: Likewise.
84811         * lib/string_.h [__DECC]: Likewise.
84812         * lib/time_.h [__DECC]: Likewise.
84813         * lib/wchar_.h [__DECC]: Likewise.
84814         * lib/wctype_.h [__DECC]: Likewise.
84815         * lib/inttypes_.h [__DECC]: Likewise.
84816         Reported by Albert Chin <china@thewrittenword.com> in
84817         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
84819 2007-04-04  Eric Blake  <ebb9@byu.net>
84821         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
84822         1.5.x.
84824 2007-04-04  Bruno Haible  <bruno@clisp.org>
84826         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
84827         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
84829 2007-04-04  Bruno Haible  <bruno@clisp.org>
84831         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
84832         results for "%010a" of Infinity and NaN.
84833         * tests/test-vasprintf-posix.c (test_function): Likewise.
84834         * tests/test-snprintf-posix.h (test_function): Likewise.
84835         * tests/test-sprintf-posix.h (test_function): Likewise.
84836         * tests/test-fprintf-posix.h (test_function): Remove these tests.
84837         * tests/test-printf-posix.h (test_function): Likewise.
84838         * tests/test-fprintf-posix.out: Update.
84839         Needed for FreeBSD 6.1.
84841 2007-04-04  Bruno Haible  <bruno@clisp.org>
84843         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
84844         directly used by the gnulib modules nor by gnulib-tool.
84846 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
84848         * DEPENDENCIES: Give overall description of version dependency
84849         desirability.  Use more-typical names for apps.
84850         Add shell, coreutils, diffutils, grep, tar, gzip.
84852 2007-04-04  Simon Josefsson  <simon@josefsson.org>
84854         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
84856 2007-04-04  Karl Berry  <karl@gnu.org>
84858         * MODULES.html.sh (func_module): missing '.
84860 2007-04-03  Bruno Haible  <bruno@clisp.org>
84862         * modules/argmatch-tests (Makefile.am): New variable
84863         test_argmatch_LDADD.
84864         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
84865         * modules/array-list-tests (Makefile.am): New variable
84866         test_array_list_LDADD.
84867         * modules/array-oset-tests (Makefile.am): New variable
84868         test_array_oset_LDADD.
84869         * modules/avltree-list-tests (Makefile.am): New variable
84870         test_avltree_list_LDADD.
84871         * modules/avltree-oset-tests (Makefile.am): New variable
84872         test_avltree_oset_LDADD.
84873         * modules/avltreehash-list-tests (Makefile.am): New variable
84874         test_avltreehash_list_LDADD.
84875         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
84876         test_canonicalize_lgpl_LDADD.
84877         * modules/carray-list-tests (Makefile.am): New variable
84878         test_carray_list_LDADD.
84879         * modules/dirname-tests (Makefile.am): New variable
84880         test_dirname_LDADD.
84881         * modules/linked-list-tests (Makefile.am): New variable
84882         test_linked_list_LDADD.
84883         * modules/linkedhash-list-tests (Makefile.am): New variable
84884         test_linkedhash_list_LDADD.
84885         * modules/rbtree-list-tests (Makefile.am): New variable
84886         test_rbtree_list_LDADD.
84887         * modules/rbtree-oset-tests (Makefile.am): New variable
84888         test_rbtree_oset_LDADD.
84889         * modules/rbtreehash-list-tests (Makefile.am): New variable
84890         test_rbtreehash_list_LDADD.
84891         * modules/xvasprintf-tests (Makefile.am): New variable
84892         test_xvasprintf_LDADD.
84893         Reported by Eric Blake.
84895 2007-04-03  Eric Blake  <ebb9@byu.net>
84897         * DEPENDENCIES: Weaken m4 requirements.
84899 2007-04-03  Bruno Haible  <bruno@clisp.org>
84901         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
84902         * modules/isnanl-tests (configure.ac): Likewise.
84904 2007-04-03  Ben Pfaff  <blp@gnu.org>
84906         * modules/iconv_open: Add $(srcdir)/ to source directory
84907         references in Makefile fragments that call gperf, to fix VPATH
84908         builds.
84910 2007-04-03  Bruno Haible  <bruno@clisp.org>
84912         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
84913         * lib/ldexpl.c: Undo last change.
84915 2007-04-03  Bruno Haible  <bruno@clisp.org>
84917         * modules/printf-frexpl (Depends-on): Undo last change.
84918         (Files): Add m4/ldexpl.m4.
84920 2007-04-03  Bruno Haible  <bruno@clisp.org>
84922         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
84923         * modules/isnanl (Link): New section.
84925         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
84926         * modules/frexp (Link): New section.
84928         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
84929         * modules/frexpl (Link): New section.
84931         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
84932         * modules/ldexpl (Link): New section.
84934 2007-04-03  Bruno Haible  <bruno@clisp.org>
84936         * modules/TEMPLATE-EXTENDED: New file.
84937         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
84939 2007-04-03  Bruno Haible  <bruno@clisp.org>
84941         * DEPENDENCIES: New file.
84942         Suggested by Simon Josefsson.
84944 2007-04-03  Bruno Haible  <bruno@clisp.org>
84946         * doc/gnulib.texi: Escape @.
84948 2007-04-03  James Youngman  <jay@gnu.org>
84949         and Paul Eggert  <eggert@cs.ucla.edu>
84951         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
84952         birthtime on all systems that have birthtime, not just those which
84953         use st_birthtimensec rather than st_birthtim.  Putting zero in
84954         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
84955         that the birth time is not available for files on an NFS mount.
84957 2007-04-03  Simon Josefsson  <simon@josefsson.org>
84959         * modules/memxor: Move back from crypto/, suggested by Bruno.
84960         * modules/crypto/hmac-sha1: Fix memxor dependency.
84962         * modules/crypto/gc: Moved from ../.
84964 2007-04-02  Eric Blake  <ebb9@byu.net>
84966         * lib/ldexpl.c (includes): Avoid libm.
84968         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
84970 2007-04-02  Bruno Haible  <bruno@clisp.org>
84972         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
84973         on IRIX.
84975 2007-04-02  Bruno Haible  <bruno@clisp.org>
84977         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
84978         x86 or x86_64 platforms running MacOS X.
84979         Reported by Ryan Schmidt <@ryandesign.com>.
84981 2007-04-02  Bruno Haible  <bruno@clisp.org>
84983         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
84984         i386.
84986 2007-04-01  Simon Josefsson  <simon@josefsson.org>
84988         * modules/crypto/arcfour: Moved from ../.
84989         * modules/crypto/arcfour-tests: Moved from ../.
84990         * modules/crypto/arctwo: Moved from ../.
84991         * modules/crypto/arctwo-tests: Moved from ../.
84992         * modules/crypto/des: Moved from ../.
84993         * modules/crypto/des-tests: Moved from ../.
84994         * modules/crypto/gc-arcfour: Moved from ../.
84995         * modules/crypto/gc-arcfour-tests: Moved from ../.
84996         * modules/crypto/gc-arctwo: Moved from ../.
84997         * modules/crypto/gc-arctwo-tests: Moved from ../.
84998         * modules/crypto/gc-des: Moved from ../.
84999         * modules/crypto/gc-des-tests: Moved from ../.
85000         * modules/crypto/gc-hmac-md5: Moved from ../.
85001         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
85002         * modules/crypto/gc-hmac-sha1: Moved from ../.
85003         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
85004         * modules/crypto/gc-md2: Moved from ../.
85005         * modules/crypto/gc-md2-tests: Moved from ../.
85006         * modules/crypto/gc-md4: Moved from ../.
85007         * modules/crypto/gc-md4-tests: Moved from ../.
85008         * modules/crypto/gc-md5: Moved from ../.
85009         * modules/crypto/gc-md5-tests: Moved from ../.
85010         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
85011         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
85012         * modules/crypto/gc-random: Moved from ../.
85013         * modules/crypto/gc-rijndael: Moved from ../.
85014         * modules/crypto/gc-rijndael-tests: Moved from ../.
85015         * modules/crypto/gc-sha1: Moved from ../.
85016         * modules/crypto/gc-sha1-tests: Moved from ../.
85017         * modules/crypto/gc-tests: Moved from ../.
85018         * modules/crypto/hmac-md5: Moved from ../.
85019         * modules/crypto/hmac-md5-tests: Moved from ../.
85020         * modules/crypto/hmac-sha1: Moved from ../.
85021         * modules/crypto/hmac-sha1-tests: Moved from ../.
85022         * modules/crypto/md2: Moved from ../.
85023         * modules/crypto/md2-tests: Moved from ../.
85024         * modules/crypto/md4: Moved from ../.
85025         * modules/crypto/md4-tests: Moved from ../.
85026         * modules/crypto/md5: Moved from ../.
85027         * modules/crypto/md5-tests: Moved from ../.
85028         * modules/crypto/memxor: Moved from ../.
85029         * modules/crypto/rijndael: Moved from ../.
85030         * modules/crypto/rijndael-tests: Moved from ../.
85031         * modules/crypto/sha1: Moved from ../.
85033 2007-03-30  James Youngman  <jay@gnu.org>
85035         * tests/test-stat-time.c (prepare_test): use chmod() rather than
85036         rename() to change the ctime of a file (because ctime is unaffected
85037         by rename on jfs2 on AIX 5.1).
85038         (main): Start by doing cleanup, in case a previous run failed leaving
85039         test files behind.
85041 2007-03-31  Bruno Haible  <bruno@clisp.org>
85043         Support old proprietary implementations of iconv.
85044         * modules/iconv_open: New file.
85045         * lib/iconv_.h: New file.
85046         * m4/iconv_h.m4: New file.
85047         * lib/iconv_open.c: New file.
85048         * lib/iconv_open-aix.gperf: New file.
85049         * lib/iconv_open-hpux.gperf: New file.
85050         * lib/iconv_open-irix.gperf: New file.
85051         * lib/iconv_open-osf.gperf: New file.
85052         * m4/iconv_open.m4: New file.
85053         * modules/linebreak (Depends-on): Add iconv_open.
85054         * modules/striconv (Depends-on): Likewise.
85055         * modules/striconveh (Depends-on): Likewise.
85056         * modules/unicodeio (Depends-on): Likewise.
85057         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
85058         (iconv_t)(-1).
85059         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
85060         conversion if cd is (iconv_t)(-1).
85061         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
85062         is not possible.
85064 2007-03-31  Bruno Haible  <bruno@clisp.org>
85066         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
85067         work on Solaris either. Protect also second use of "autodetect_jp".
85069 2007-03-31  Bruno Haible  <bruno@clisp.org>
85071         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
85072         the function is not present.
85074 2007-03-31  Bruno Haible  <bruno@clisp.org>
85076         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
85077         the function is not present.
85079 2007-03-31  Bruno Haible  <bruno@clisp.org>
85081         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
85082         a bug in HP-UX iconv_open().
85084 2007-03-31  Bruno Haible  <bruno@clisp.org>
85086         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
85087         (Mathematics <math.h>): New section, add fpieee.
85088         (Input/output <stdio.h>): Add fseterr.
85089         (Mathematics <math.h>): New section, add printf-frexp.
85090         (Container data structures): Add sublist.
85091         (Core language properties): Add fpucw, inline.
85092         (Functions for greatest-width integer types <inttypes.h>): Add
85093         imaxabs, imaxdiv, inttypes.
85094         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
85095         isnanl-nolibm, ldexp.
85096         (Mathematics <math.h>): New section, add printf-frexpl.
85097         (Support for systems lacking POSIX:2001): Add fprintf-posix,
85098         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
85099         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
85100         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
85101         (Unicode string functions): Add unistr/u*-mbtoucr.
85102         (Java): Add javacomp-script, javaexec-script.
85103         (C#): Add csharpcomp-script, csharpexec-script.
85104         (Support for building libraries and executables): Add havelib,
85105         relocatable-*.
85106         (Support for maintaining and releasing projects): Renamed from
85107         'Support for maintaining and release projects'. Add announce-gen.
85109 2007-03-31  Bruno Haible  <bruno@clisp.org>
85111         * README: Talk primarily about git.
85112         (git and CVS): Renamed from CVS.
85113         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
85114         gnulib is available through git.
85115         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
85117 2007-03-30  Bruno Haible  <bruno@clisp.org>
85119         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
85120         * lib/poll_.h: Likewise.
85121         * lib/stat_.h: Likewise.
85122         * lib/sys_time_.h: Likewise.
85123         * lib/sysexit_.h: Likewise.
85124         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
85125         * lib/stdbool_.h: Likewise.
85126         * lib/byteswap_.h: Add double-inclusion guard.
85128 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
85130         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
85132 2007-03-30  Karl Berry  <karl@gnu.org>
85134         * config/srclist-update: double space after USA in the license
85135         substitution, since that's how it's usually (?) written.
85137 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
85139         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
85140         reported by Bruno Haible.
85142 2007-03-29  Bruno Haible  <bruno@clisp.org>
85144         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
85145         a bug in AIX iconv().
85147 2007-03-29  Bruno Haible  <bruno@clisp.org>
85149         * modules/ldexpl-tests: New file.
85150         * tests/test-ldexpl.c: New file.
85152 2007-03-29  Bruno Haible  <bruno@clisp.org>
85154         * lib/ldexpl.c: Include fpucw.h.
85155         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
85156         multiplication.
85157         * modules/ldexpl (Depends-on): Add fpucw.
85159 2007-03-29  Bruno Haible  <bruno@clisp.org>
85161         * modules/ldexpl: New file.
85162         * m4/ldexpl.m4: New file.
85163         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
85164         set.
85165         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
85166         REPLACE_LDEXPL.
85167         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
85168         REPLACE_LDEXPL.
85169         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
85170         gl_FUNC_LDEXPL_WORKS.
85171         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
85172         * modules/mathl (Files): Remove lib/ldexpl.c.
85173         (Depends-on): Add ldexpl.
85175 2007-03-29  Bruno Haible  <bruno@clisp.org>
85177         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
85179 2007-03-29  Bruno Haible  <bruno@clisp.org>
85181         * tests/test-striconveh.c (main): Don't assume that a direct conversion
85182         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
85183         and possibly also HP-UX.
85184         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
85185         work on AIX, IRIX, HP-UX, OSF/1.
85186         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
85187         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
85188         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
85189         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
85190         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
85191         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
85193 2007-03-29  Bruno Haible  <bruno@clisp.org>
85195         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
85197 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
85199         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
85200         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
85202 2007-03-29  Eric Blake  <ebb9@byu.net>
85204         * lib/acl-internal.h: Remove redundant include.
85205         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
85206         Cygwin when a file is locked.
85208 2007-03-29  Bruno Haible  <bruno@clisp.org>
85210         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
85211         file.
85212         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
85214 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
85216         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
85217         try to remove a parent directory if the child couldn't be removed
85218         (except for the first rmdir, which could fail because the child
85219         doesn't exist).  Problem reported by Jeff Blaine in
85220         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
85222 2007-03-28  Bruno Haible  <bruno@clisp.org>
85224         * lib/striconveh.c (utf8conv_carefully): New function.
85225         (mem_cd_iconveh_internal): Invoke it.
85227 2007-03-28  Bruno Haible  <bruno@clisp.org>
85229         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
85230         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
85231         input.
85232         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
85233         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
85234         unistr/u8-uctomb.
85236 2007-03-28  Bruno Haible  <bruno@clisp.org>
85238         * modules/unistr/u8-mbtoucr: New file.
85239         * lib/unistr/u8-mbtoucr.c: New file.
85240         * modules/unistr/u16-mbtoucr: New file.
85241         * lib/unistr/u16-mbtoucr.c: New file.
85242         * modules/unistr/u16-mbtoucr: New file.
85243         * lib/unistr/u16-mbtoucr.c: New file.
85244         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
85246 2007-03-27  Simon Josefsson  <simon@josefsson.org>
85247             Bruno Haible  <bruno@clisp.org>
85249         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
85250         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
85251         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
85253         * m4/stdio_h.m4: Add stubs for vasprintf too.
85255         * modules/stdio: Support vasprintf in sed command.
85257         * modules/vasprintf: Depend on stdio for prototypes.  Remove
85258         vasprintf.h.  Add stdio module indicator.
85260         * lib/stdio_.h: Declare asprintf and vasprintf, based on
85261         vasprintf.h.
85263         * lib/vasprintf.h: File removed.
85265         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
85266         * lib/vasprintf.c: Ditto.
85267         * lib/xvasprintf.c: Ditto.
85268         * tests/test-vasprintf-posix.c: Ditto.
85269         * tests/test-vasprintf.c: Ditto.
85271 2007-03-27  Bruno Haible  <bruno@clisp.org>
85273         Make vasnprintf multithread-safe.
85274         * lib/vasnprintf.c (decimal_point_char): New function.
85275         (VASNPRINTF): Use it.
85276         Suggested by Simon Josefsson.
85278 2007-03-27  Eric Blake  <ebb9@byu.net>
85280         Support sub-second birthtime on cygwin.
85281         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
85282         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
85283         (get_stat_birthtime): Also work with st_birthtim.
85285 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
85287         * lib/stat-time.h (USE_BIRTHTIME): Remove.
85288         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
85289         (get_stat_birthtime_ns): Do not try to use "spare" fields.
85290         (get_stat_birthtime_ns): Simplify compile-time tests.
85291         (get_stat_birthtime): Change the API to look like
85292         get_stat_mtime etc., except return a negative tv_nsec on error.
85293         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
85294         Don't check for "spare" fields.
85295         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
85296         or for struct stat.st_birthtime, as these tests aren't used.
85297         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
85299 2007-03-27  Bruno Haible  <bruno@clisp.org>
85301         * lib/stat-time.h: Include <sys/stat.h>.
85303 2007-03-27  James Youngman  <jay@gnu.org>
85305         * lib/stat-time.h (get_stat_birthtime): New function for
85306           retrieving st_birthtime as provided by UFS2 (hence *BSD).
85307         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
85308           and its variants.
85309         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
85310         * modules/stat-time-test: New file.
85311         * tests/test-stat-time.c: New test, devised by Bruno Haible.
85313 2007-03-26  Bruno Haible  <bruno@clisp.org>
85315         Better support of signalling NaNs.
85316         * lib/atanl.c: Include isnanl.h.
85317         (atanl): Perform test for NaN at the beginning of the function and
85318         through a call to isnanl.
85319         * lib/cosl.c: Include isnanl.h.
85320         (cosl): Perform test for NaN at the beginning of the function and
85321         through a call to isnanl.
85322         * lib/ldexpl.c: Include isnanl.h.
85323         (ldexpl): Perform test for NaN through a call to isnanl.
85324         * lib/logl.c: Include isnanl.h.
85325         (logl): Perform test for NaN at the beginning of the function and
85326         through a call to isnanl.
85327         * lib/sinl.c: Include isnanl.h.
85328         (sinl): Perform test for NaN at the beginning of the function and
85329         through a call to isnanl.
85330         * lib/sqrtl.c: Include isnanl.h.
85331         (sqrtl): Perform test for NaN at the beginning of the function and
85332         through a call to isnanl.
85333         * lib/tanl.c: Include isnanl.h.
85334         (tanl): Perform test for NaN at the beginning of the function and
85335         through a call to isnanl.
85336         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
85337         * modules/mathl (Depends-on): Add isnanl.
85339 2007-03-26  Eric Blake  <ebb9@byu.net>
85341         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
85342         regression in logic sense of previous patch.
85344 2007-03-26  Bruno Haible  <bruno@clisp.org>
85346         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
85347         unportable shell command "if ! ...".
85348         Reported by Ralf Wildenhues.
85350 2007-03-25  Bruno Haible  <bruno@clisp.org>
85352         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
85353         <sysexits.h> file, and only add EX_CONFIG.
85354         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
85355         absolute file name and whether it is sufficient. Substitute also
85356         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
85357         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
85358         ABSOLUTE_SYSEXITS_H into sysexits.h.
85360 2007-03-25  Bruno Haible  <bruno@clisp.org>
85362         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
85363         hints is NULL.
85365 2007-03-25  Bruno Haible  <bruno@clisp.org>
85367         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
85368         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
85370 2007-03-25  Bruno Haible  <bruno@clisp.org>
85372         * lib/vasnprintf.c: Include langinfo.h.
85373         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
85374         multithread-safe.
85375         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
85376         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
85377         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
85378         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85379         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85380         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85381         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85382         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
85383         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85384         Reported by Simon Josefsson.
85386 2007-03-25  Bruno Haible  <bruno@clisp.org>
85388         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
85389         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
85390         * modules/vasnprintf (Depends-on): Add stdint.
85392 2007-03-25  Bruno Haible  <bruno@clisp.org>
85394         * modules/fpieee: New file.
85395         * m4/fpieee.m4: New file.
85396         * modules/isnan-nolibm (Depends-on): Add fpieee.
85397         * modules/isnanl-nolibm (Depends-on): Add fpieee.
85398         * modules/isnanl (Depends-on): Add fpieee.
85400 2007-03-25  Bruno Haible  <bruno@clisp.org>
85402         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
85404 2007-03-25  Bruno Haible  <bruno@clisp.org>
85406         Avoid test failures on IRIX 6.5.
85407         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
85408         (main): Use it.
85409         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
85410         macros.
85411         (main): Use them.
85413 2007-03-25  Bruno Haible  <bruno@clisp.org>
85415         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
85416         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
85417         exists but doesn't work.
85418         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
85419         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
85420         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
85421         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
85422         math.h.
85424 2007-03-25  Bruno Haible  <bruno@clisp.org>
85426         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
85427         returns inf. Needed on IRIX 6.5.
85429 2007-03-25  Bruno Haible  <bruno@clisp.org>
85431         * tests/test-frexpl.c: Include isnanl-nolibm.h.
85432         (main): Use isnanl instead of x != x idiom.
85433         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
85435         * tests/test-frexp.c: Include isnan.h.
85436         (main): Use isnan instead of x != x idiom.
85437         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
85439 2007-03-25  Bruno Haible  <bruno@clisp.org>
85441         * tests/test-frexp.c (NaN): New function/macro.
85442         (main): Use it instead of 0.0 / 0.0.
85443         * tests/test-isnan.c (NaN): New function/macro.
85444         (main): Use it instead of 0.0 / 0.0.
85445         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
85446         (test_function): Use it instead of 0.0 / 0.0.
85447         * tests/test-vasprintf-posix.c (NaN): New function/macro.
85448         (test_function): Use it instead of 0.0 / 0.0.
85449         * tests/test-snprintf-posix.h (NaN): New function/macro.
85450         (test_function): Use it instead of 0.0 / 0.0.
85451         * tests/test-sprintf-posix.h (NaN): New function/macro.
85452         (test_function): Use it instead of 0.0 / 0.0.
85453         * tests/test-fprintf-posix.h (NaN): New function/macro.
85454         (test_function): Use it instead of 0.0 / 0.0.
85455         * tests/test-printf-posix.h (NaN): New function/macro.
85456         (test_function): Use it instead of 0.0 / 0.0.
85458         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
85460 2007-03-25  Bruno Haible  <bruno@clisp.org>
85462         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
85464 2007-03-25  Bruno Haible  <bruno@clisp.org>
85466         * lib/regexec.c (merge_state_with_log): Make static.
85468 2007-03-25  Bruno Haible  <bruno@clisp.org>
85470         * lib/trigl.c (kernel_rem_pio2): Make static.
85472 2007-03-25  Bruno Haible  <bruno@clisp.org>
85474         * lib/sincosl.c (sincosl_table): Make static.
85476 2007-03-25  Bruno Haible  <bruno@clisp.org>
85478         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
85479         if the compiler does not support C99.
85481 2007-03-25  Bruno Haible  <bruno@clisp.org>
85483         * modules/time (Makefile.am): Ensure all rule action lines start with a
85484         tab.
85486 2007-03-24  Bruno Haible  <bruno@clisp.org>
85488         * modules/tsearch-tests: New file.
85489         * tests/test-tsearch.sh: New file.
85490         * tests/test-tsearch.c: New file, mostly copied from glibc.
85492         * modules/search-tests: New file.
85493         * tests/test-search.c: New file.
85495         * modules/search: New file.
85496         * lib/search_.h: New file, incorporating lib/tsearch.h.
85497         * m4/search_h.m4: New file.
85498         * lib/tsearch.h: Remove file.
85499         * lib/tsearch.c: Include search.h instead of tsearch.h.
85500         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
85501         HAVE_TSEARCH.
85502         * modules/tsearch (Files): Remove lib/tsearch.h.
85503         (Depends-on): Add search.
85504         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
85505         (Include): Change tsearch.h into search.h.
85507 2007-03-24  Bruno Haible  <bruno@clisp.org>
85509         * modules/fpucw: New file.
85510         * lib/fpucw.h: New file.
85511         * lib/frexp.c: Include fpucw.h.
85512         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
85513         (FUNC): Use them.
85514         * lib/printf-frexp.c: Include fpucw.h.
85515         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
85516         (FUNC): Use them.
85517         * lib/vasnprintf.c: Include fpucw.h.
85518         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
85519         'long double' calculations.
85520         * tests/test-frexpl.c: Include fpucw.h.
85521         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
85522         * tests/test-printf-frexpl.c: Include fpucw.h.
85523         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
85524         * modules/frexpl (Depends-on): Add fpucw.
85525         * modules/printf-frexpl (Depends-on): Likewise.
85526         * modules/fprintf-posix (Depends-on): Likewise.
85527         * modules/snprintf-posix (Depends-on): Likewise.
85528         * modules/sprintf-posix (Depends-on): Likewise.
85529         * modules/vasnprintf-posix (Depends-on): Likewise.
85530         * modules/vasprintf-posix (Depends-on): Likewise.
85531         * modules/vfprintf-posix (Depends-on): Likewise.
85532         * modules/vsnprintf-posix (Depends-on): Likewise.
85533         * modules/vsprintf-posix (Depends-on): Likewise.
85534         * modules/frexpl-tests (Depends-on): Likewise.
85535         * modules/printf-frexpl-tests (Depends-on): Likewise.
85537 2007-03-24  Bruno Haible  <bruno@clisp.org>
85539         * lib/float+.h: New file.
85540         * lib/isnan.c: Include float+.h.
85541         (SIZE): New macro.
85542         (FUNC): Compare only SIZE bytes of the value.
85543         * lib/vasnprintf.c: Include float+.h.
85544         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
85545         SIZEOF_LDBL or SIZEOF_DBL bytes.
85546         * modules/isnan-nolibm (Files): Add lib/float+.h.
85547         * modules/isnanl-nolibm (Files): Add lib/float+.h.
85548         * modules/isnanl (Files): Add lib/float+.h.
85549         * modules/vasnprintf (Files): Add lib/float+.h.
85551 2007-03-24  Bruno Haible  <bruno@clisp.org>
85553         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
85554         include isnanl-nolibm.h.
85556 2007-03-24  Bruno Haible  <bruno@clisp.org>
85558         * tests/test-read-file.c (main): Don't produce spurious output for
85559         expected situations. Make the test fail if it encountered unexpected
85560         results.
85562 2007-03-24  Bruno Haible  <bruno@clisp.org>
85564         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
85565         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
85567 2007-03-24  Bruno Haible  <bruno@clisp.org>
85569         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
85571 2007-03-24  Bruno Haible  <bruno@clisp.org>
85573         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
85574         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
85576         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
85577         * modules/utf8-ucs4: Turn into a symbolic link to module
85578         unistr/u8-mbtouc.
85580         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
85581         utf8-ucs4-unsafe.
85582         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
85583         unistr/u8-mbtouc-unsafe.
85585         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
85586         * modules/utf16-ucs4: Turn into a symbolic link to module
85587         unistr/u16-mbtouc.
85589         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
85590         utf16-ucs4-unsafe.
85591         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
85592         unistr/u16-mbtouc-unsafe.
85594         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
85595         * modules/ucs4-utf8: Turn into a symbolic link to module
85596         unistr/u8-ubtomb.
85598         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
85599         * modules/ucs4-utf16: Turn into a symbolic link to module
85600         unistr/u16-ubtomb.
85602 2007-03-24  Bruno Haible  <bruno@clisp.org>
85604         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
85605         Enable the function only if HAVE_INLINE.
85606         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
85607         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
85608         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
85609         Enable the function only if HAVE_INLINE.
85610         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
85611         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
85612         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
85613         Enable the function only if HAVE_INLINE.
85614         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
85615         Enable the function only if HAVE_INLINE.
85616         * modules/utf8-ucs4: Update.
85617         * modules/utf8-ucs4-unsafe: Update.
85618         * modules/utf16-ucs4: Update.
85619         * modules/utf16-ucs4-unsafe: Update.
85620         * modules/ucs4-utf8: Update.
85621         * modules/ucs4-utf16: Update.
85623 2007-03-24  Bruno Haible  <bruno@clisp.org>
85625         * lib/utf8-ucs4.h: Remove file.
85626         * lib/utf8-ucs4-unsafe.h: Remove file.
85627         * lib/utf16-ucs4.h: Remove file.
85628         * lib/utf16-ucs4-unsafe.h: Remove file.
85629         * lib/ucs4-utf8.h: Remove file.
85630         * lib/ucs4-utf16.h: Remove file.
85631         * lib/unistr.h: Include their previous contents.
85632         * m4/utf-ucs4.m4: Remove file.
85633         * m4/ucs4-utf.m4: Remove file.
85634         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
85635         (Depends-on): Add unistr/base.
85636         (configure.ac): Remove gl_UTF_UCS4.
85637         (Makefile.am): Update.
85638         (Include): Change to unistr.h.
85639         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
85640         (Depends-on): Add unistr/base.
85641         (configure.ac): Remove gl_UTF_UCS4.
85642         (Makefile.am): Update.
85643         (Include): Change to unistr.h.
85644         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
85645         (Depends-on): Add unistr/base.
85646         (configure.ac): Remove gl_UTF_UCS4.
85647         (Makefile.am): Update.
85648         (Include): Change to unistr.h.
85649         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
85650         (Depends-on): Add unistr/base.
85651         (configure.ac): Remove gl_UTF_UCS4.
85652         (Makefile.am): Update.
85653         (Include): Change to unistr.h.
85654         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
85655         (Depends-on): Add unistr/base.
85656         (configure.ac): Remove gl_UCS4_UTF.
85657         (Makefile.am): Update.
85658         (Include): Change to unistr.h.
85659         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
85660         (Depends-on): Add unistr/base.
85661         (configure.ac): Remove gl_UCS4_UTF.
85662         (Makefile.am): Update.
85663         (Include): Change to unistr.h.
85664         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
85665         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
85666         utf8-ucs4-unsafe.h.
85667         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
85668         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
85669         utf16-ucs4-unsafe.h.
85670         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
85671         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
85672         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
85673         * lib/unistr/u8-strchr.c: Likewise.
85674         * lib/unistr/u8-strrchr.c: Likewise.
85675         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
85676         * lib/unistr/u16-strchr.c: Likewise.
85677         * lib/unistr/u16-strrchr.c: Likewise.
85678         * lib/striconveh.c: Update.
85679         * lib/linebreak.c: Update.
85681 2007-03-24  Bruno Haible  <bruno@clisp.org>
85683         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
85684         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
85686 2007-03-22  Bruno Haible  <bruno@clisp.org>
85688         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
85690 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
85692         * MODULES.html.sh (File system functions): New module write-any-file.
85693         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
85694         * m4/write-any-file.m4: New files.
85696 2007-03-23  Eric Blake  <ebb9@byu.net>
85698         * gnulib-tool: Rearrange space-tab sequences, since some editors
85699         like to eat them.
85701 2007-03-23  Eric Blake  <ebb9@byu.net>
85703         * lib/version-etc.c (version_etc_va): Update license wording to
85704         be more concise.  Recommended by Richard Stallman.
85706 2007-03-22  Bruno Haible  <bruno@clisp.org>
85708         * lib/poll.c (MSG_PEEK): New fallback definition.
85710 2007-03-22  Bruno Haible  <bruno@clisp.org>
85712         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
85713         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
85714         (main): Update.
85715         Fixes a compilation error on BeOS.
85717 2007-03-22  Bruno Haible  <bruno@clisp.org>
85719         * modules/frexpl-tests: New file.
85720         * tests/test-frexpl.c: New file.
85722         * modules/frexpl: New file.
85723         * m4/frexpl.m4: New file.
85724         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
85725         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
85726         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
85727         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
85728         (Depends-on): Add frexpl. Remove isnanl-nolibm.
85729         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
85731 2007-03-22  Bruno Haible  <bruno@clisp.org>
85733         * lib/frexpl.c: Share code with lib/frexp.c.
85734         * modules/mathl (Files): Add lib/frexp.c.
85735         (Depends-on): Add isnanl-nolibm.
85737 2007-03-22  Bruno Haible  <bruno@clisp.org>
85739         * modules/printf-frexp (Files): Add m4/frexp.m4.
85740         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
85741         only if the found frexp function actually works.
85743 2007-03-22  Bruno Haible  <bruno@clisp.org>
85745         * lib/frexp.c: Remove older implementation that uses divisions.
85747 2007-03-21  Bruno Haible  <bruno@clisp.org>
85749         * modules/frexp-tests: New file.
85750         * tests/test-frexp.c: New file.
85752         * modules/frexp: New file.
85753         * lib/frexp.c: New file.
85754         * m4/frexp.m4: New file.
85755         * lib/math_.h (frexp): New declaration.
85756         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
85757         REPLACE_FREXP.
85758         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
85760 2007-03-21  Bruno Haible  <bruno@clisp.org>
85762         * modules/isnanl-tests: New file.
85763         * tests/test-isnanl.c: New file.
85765         * modules/isnanl: New file.
85766         * lib/isnanl.h: New file.
85767         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
85768         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
85769         gl_FUNC_ISNANL_WORKS.
85770         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
85771         New macros.
85773 2007-03-21  Bruno Haible  <bruno@clisp.org>
85775         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
85776         lib/isnanl.h.
85777         (Include): Update.
85778         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
85779         * lib/vasnprintf.c: Update.
85780         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
85781         tests/test-isnanl.h, remove tests/test-isnanl.c.
85782         (Makefile.am): Update.
85783         * tests/test-isnanl-nolibm.c: New file.
85784         * tests/test-isnanl.h: New file.
85785         * tests/test-isnanl.c: Remove file.
85787 2007-03-21  Jim Meyering  <jim@meyering.net>
85789         When trying to open ".", treat ESTALE like EACCES.
85790         * lib/savewd.c (savewd_save): Resort to forking not just upon
85791         failure with EACCES, but also when errno is ESTALE.
85793 2007-03-20  Bruno Haible  <bruno@clisp.org>
85795         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
85796         Needed on AIX 5.1. Reported by Matthew Woehlke.
85798 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
85800         Suggestions by Bruno Haible:
85801         * lib/acl-internal.h: Include "gettext.h" rather than rolling
85802         our own.
85803         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
85804         * modules/acl (Depends-on): Add gettext.
85806 2007-03-19  Bruno Haible  <bruno@clisp.org>
85808         * modules/iconvme: Remove file.
85809         * lib/iconvme.h: Remove file.
85810         * lib/iconvme.c: Remove file.
85811         * m4/iconvme.m4: Remove file.
85813 2007-03-19  Bruno Haible  <bruno@clisp.org>
85815         * doc/relocatable-maint.texi: Break long shell script line.
85816         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
85818 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
85820         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
85821         handle file_has_acl.
85822         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
85823         * lib/acl.c: Move header inclusions and related macro defns into
85824         lib/acl-internal.h.
85825         (S_ISLNK): Remove defn, since that's now done for us.
85826         (file_has_acl): Move to lib/file-has-acl.c.
85827         Call acl_trivial if available.  This is the crucial part of the fix.
85828         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
85829         shared within the library.  Rewrite a bit, partly to make it compatible
85830         with the GNU coding style.
85831         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
85832         Remove unnecessary double-quotes.
85833         Don't test for acl_to_text; the build will catch that.
85834         Replace acl_entries if it doesn't exist and it is needed.
85835         Check for -lsec and acl_trivial (as used on Solaris 10).
85836         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
85837         lib/file-has-acl.c.
85838         (Depends-on): Add sys_stat, for S_ISLNK.
85840 2007-03-19  Ben Pfaff  <blp@gnu.org>
85842         * doc/gnulib.texi: Fix typos.
85843         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
85845 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
85847         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
85848         If size is zero here, buf must be zero.
85850 2007-03-19  Simon Josefsson  <simon@josefsson.org>
85852         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
85853         <bruno@clisp.org>.
85855 2007-03-18  Bruno Haible  <bruno@clisp.org>
85857         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
85858         Suggested by Eric Blake.
85860 2007-03-18  Ben Pfaff  <blp@gnu.org>
85862         * doc/relocatable.texi: Recommend using as prefix a directory
85863         that does not exist and will never be created.  Based on
85864         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
85865         and others.
85867 2007-03-17  Bruno Haible  <bruno@clisp.org>
85869         * lib/fchownat.c: Include lchown.h.
85871 2007-03-17  Bruno Haible  <bruno@clisp.org>
85873         Fix endless loop when the given allocated size was > INT_MAX.
85874         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
85875         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
85876         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
85877         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
85878         * lib/sprintf.c (sprintf): Likewise.
85880 2007-03-17  Bruno Haible  <bruno@clisp.org>
85882         * tests/test-argp-2.sh (func_compare): Output a context diff.
85884 2007-03-17  Bruno Haible  <bruno@clisp.org>
85886         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
85887         locale's decimal-point character.
85889 2007-03-17  Bruno Haible  <bruno@clisp.org>
85891         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
85892         before comparing it. Needed because on some platforms (e.g. x86) a
85893         'long double' occupies less bytes than sizeof (long double).
85895 2007-03-17  Bruno Haible  <bruno@clisp.org>
85897         * tests/test-crc.c (main): Make printf statements 64-bit clean.
85898         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
85899         * tests/test-getaddrinfo.c (simple): Likewise.
85900         * tests/test-read-file.c (main): Likewise.
85902 2007-03-17  Bruno Haible  <bruno@clisp.org>
85904         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
85906 2007-03-17  Bruno Haible  <bruno@clisp.org>
85908         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
85909         unused variable.
85911 2007-03-17  Bruno Haible  <bruno@clisp.org>
85913         * tests/test-c-strcasecmp.c: Include c-strcase.h.
85914         * tests/test-c-strncasecmp.c: Likewise.
85916 2007-03-17  Bruno Haible  <bruno@clisp.org>
85918         * modules/stdlib (Depends-on): Add unistd.
85919         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
85920         Needed for MacOS X 10.3.
85922 2007-03-17  Bruno Haible  <bruno@clisp.org>
85924         * lib/unistr/u-strdup.h: Include <stdlib.h>.
85926 2007-03-17  Bruno Haible  <bruno@clisp.org>
85928         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
85930 2007-03-17  Bruno Haible  <bruno@clisp.org>
85932         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
85933         to reflect files copied from gnulib (with or without modifications).
85934         Suggested by Jim Meyering.
85936 2007-03-17  Eric Blake  <ebb9@byu.net>
85938         * NEWS: Document stdlib change from 2007-02-18.
85940 2007-03-17  Jim Meyering  <jim@meyering.net>
85942         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
85943         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
85944         someone uses a name containing shell meta-characters.
85945         Reported by Alfred M. Szmidt.
85947         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
85949 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
85951         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
85952         and copy gettext configuration files only if configure.ac contains
85953         a use of AM_GNU_GETTEXT_VERSION.
85955 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
85957         * build-aux/bootstrap (gnulib_name): New variable.
85958         (gnulib_tool_options): Use it.
85960 2007-03-13  Simon Josefsson  <simon@josefsson.org>
85962         * tests/test-des.c: Use new namespace.
85964 2007-03-15  Bruno Haible  <bruno@clisp.org>
85966         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
85967         Reported by James Youngman <jay@gnu.org>.
85969 2007-03-15  Bruno Haible  <bruno@clisp.org>
85971         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
85972         declared prototype. Needed with cc on OSF/1 5.1.
85974 2007-03-15  Bruno Haible  <bruno@clisp.org>
85976         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
85977         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
85978         (struct gl_list_implementation): Add dispose_fn argument to the
85979         'create_empty', 'create' methods.
85980         (struct gl_list_impl_base): Add field 'dispose_fn'.
85981         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
85982         argument.
85983         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
85984         dispose_fn argument.
85985         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
85986         dispose_fn on the dropped values.
85987         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
85988         dispose_fn argument.
85989         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
85990         dropped values.
85991         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
85992         (gl_tree_remove_node): Call dispose_fn on the dropped value.
85993         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
85994         (gl_tree_remove_node): Call dispose_fn on the dropped value.
85995         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
85996         argument.
85997         (gl_tree_list_free): Call dispose_fn on the dropped values.
85998         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
85999         the dropped values.
86000         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
86001         Add dispose_fn argument.
86002         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
86003         Call dispose_fn on the dropped values.
86004         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
86005         Add dispose_fn argument.
86006         (gl_sublist_create): Initialize the 'dispose_fn' field.
86007         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
86008         * tests/test-array_list.c (main): Update.
86009         * tests/test-carray_list.c (main): Update.
86010         * tests/test-avltree_list.c (main): Update.
86011         * tests/test-rbtree_list.c (main): Update.
86012         * tests/test-avltreehash_list.c (main): Update.
86013         * tests/test-rbtreehash_list.c (main): Update.
86014         * tests/test-linked_list.c (main): Update.
86015         * tests/test-linkedhash_list.c (main): Update.
86016         * tests/test-array_oset.c (main): Update.
86018 2007-03-15  Bruno Haible  <bruno@clisp.org>
86020         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
86021         (gl_oset_create_empty): Add dispose_fn argument.
86022         (struct gl_oset_implementation): Add dispose_fn argument to
86023         'create_empty' method.
86024         (struct gl_oset_impl_base): Add dispose_fn field.
86025         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
86026         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
86027         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
86028         values.
86029         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
86030         (gl_tree_oset_free): Call dispose_fn on the dropped values.
86031         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
86032         dropped value.
86033         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
86034         dropped value.
86035         * tests/test-array_oset.c (main): Update.
86036         * tests/test-avltree_oset.c (main): Update.
86037         * tests/test-rbtree_oset.c (main): Update.
86038         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
86040 2007-03-13  Bruno Haible  <bruno@clisp.org>
86042         * tests/test-stdbool.c (i): Update after last patch.
86044 2007-03-12  Bruno Haible  <bruno@clisp.org>
86046         * lib/quotearg.c: Include <wctype.h> early, before the definition of
86047         the iswprint macro. Needed on Solaris 2.5.1.
86049 2007-03-12  Bruno Haible  <bruno@clisp.org>
86051         * tests/test-printf-frexp.c (main): Declare x as volatile.
86053 2007-03-12  Simon Josefsson  <simon@josefsson.org>
86055         * doc/gnulib.texi (Build robot for gnulib): New section.
86057 2007-03-12  Jim Meyering  <jim@meyering.net>
86059         * build-aux/bootstrap: New file.
86060         * build-aux/bootstrap.conf: New file, from coreutils.
86062 2007-03-11  Bruno Haible  <bruno@clisp.org>
86064         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
86066 2007-03-12  Simon Josefsson  <simon@josefsson.org>
86068         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
86069         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
86070         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
86072 2007-03-11  Bruno Haible  <bruno@clisp.org>
86074         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
86075         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
86077 2007-03-11  Bruno Haible  <bruno@clisp.org>
86079         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
86080         formula. Needed for SunPRO C 5.0.
86082 2007-03-11  Bruno Haible  <bruno@clisp.org>
86084         * modules/long-options (Depends-on): Add getopt.
86086 2007-03-11  Bruno Haible  <bruno@clisp.org>
86088         * modules/modechange (Depends-on): Add stdbool.
86090 2007-03-11  Bruno Haible  <bruno@clisp.org>
86092         * modules/i-ring (Depends-on): Add stdbool.
86094 2007-03-11  Bruno Haible  <bruno@clisp.org>
86096         * modules/gc-des (Depends-on): Add stdbool.
86098 2007-03-11  Bruno Haible  <bruno@clisp.org>
86100         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
86102 2007-03-11  Bruno Haible  <bruno@clisp.org>
86104         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
86106 2007-03-11  Bruno Haible  <bruno@clisp.org>
86108         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
86110 2007-03-11  Bruno Haible  <bruno@clisp.org>
86112         * lib/vasnprintf.c (sprintf): Undefine.
86114 2007-03-11  Bruno Haible  <bruno@clisp.org>
86116         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
86117         initializers in SunPRO C and Compaq C compilers.
86119 2007-03-11  Bruno Haible  <bruno@clisp.org>
86121         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
86122         decrementing code ANSI C compliant.
86124 2007-03-11  Bruno Haible  <bruno@clisp.org>
86126         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
86127         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
86129 2007-03-11  Bruno Haible  <bruno@clisp.org>
86131         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
86132         <stdbool.h> substitute doesn't pass.
86134 2007-03-11  Bruno Haible  <bruno@clisp.org>
86136         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
86138 2007-03-11  Bruno Haible  <bruno@clisp.org>
86140         * gnulib-tool (func_create_megatestdir): Create also an autobuild
86141         script, for submission to autobuild.josefsson.org.
86143 2007-03-10  Bruno Haible  <bruno@clisp.org>
86145         * modules/canonicalize-lgpl-tests: New file.
86146         * tests/test-canonicalize-lgpl.sh: New file.
86147         * tests/test-canonicalize-lgpl.c: New file.
86149         * modules/c-strcase-tests: New file.
86150         * tests/test-c-strcase.sh: New file.
86151         * tests/test-c-strcasecmp.c: New file.
86152         * tests/test-c-strncasecmp.c: New file.
86154         * modules/atexit-tests: New file.
86155         * tests/test-atexit.sh: New file.
86156         * tests/test-atexit.c: New file.
86158 2007-03-10  Bruno Haible  <bruno@clisp.org>
86160         * tests/test-binary-io.sh: Use temporary filenames that are not so
86161         likely to clash with those of other tests (in a parallel make).
86162         * tests/test-binary-io.c: Likewise.
86164 2007-03-10  Bruno Haible  <bruno@clisp.org>
86166         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
86167         fallback; use #error instead.
86168         Suggested by Simon Josefsson.
86170 2007-03-10  Bruno Haible  <bruno@clisp.org>
86172         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
86173         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
86174         first and the last.
86176 2007-03-10  Bruno Haible  <bruno@clisp.org>
86178         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
86180 2007-03-10  Bruno Haible  <bruno@clisp.org>
86182         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
86183         "make distcheck".
86184         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
86185         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
86186         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
86188 2007-03-10  Bruno Haible  <bruno@clisp.org>
86190         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
86191         variable.
86192         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
86193         variable.
86195 2007-03-09  Eric Blake  <ebb9@byu.net>
86196         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
86198         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
86199         types are not being provided by gnulib.
86200         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
86201         types are supported.
86203 2007-03-10  Bruno Haible  <bruno@clisp.org>
86205         * lib/stdio_.h (__attribute__): New macro.
86206         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
86207         vsprintf): Specify __attribute__ __format__ for GCC.
86208         Suggested by Eric Blake.
86210 2007-03-09  Bruno Haible  <bruno@clisp.org>
86212         * modules/printf-posix-tests: New file.
86213         * tests/test-printf-posix.sh: New file.
86214         * tests/test-printf-posix.c: New file.
86216         * modules/printf-posix: New file.
86217         * lib/printf.c: New file.
86218         * m4/printf-posix-rpl.m4: New file.
86219         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
86220         REPLACE_PRINTF.
86221         * lib/stdio_.h (printf): New declaration.
86222         (format, __format__, ____printf____, ____scanf____, ____strftime____,
86223         ____strfmon____): New macros.
86224         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
86225         REPLACE_PRINTF.
86227 2007-03-09  Bruno Haible  <bruno@clisp.org>
86229         * tests/test-vasnprintf-posix2.sh: New file.
86230         * tests/test-vasnprintf-posix2.c: New file.
86231         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
86232         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
86233         (Makefile.am): Activate test-vasnprintf-posix2.sh.
86235         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
86236         a locale dependent decimal point, rather than always '.'.
86238 2007-03-09  Eric Blake  <ebb9@byu.net>
86240         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
86241         spite of platforms like Tandem/NSK that define it to -1.
86243 2007-03-08  Bruno Haible  <bruno@clisp.org>
86245         * modules/vprintf-posix-tests: New file.
86246         * tests/test-vprintf-posix.sh: New file.
86247         * tests/test-vprintf-posix.c: New file.
86248         * tests/test-printf-posix.h: New file.
86250         * modules/vprintf-posix: New file.
86251         * lib/vprintf.c: New file.
86252         * m4/vprintf-posix.m4: New file.
86253         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
86254         REPLACE_VPRINTF.
86255         * lib/stdio_.h (vprintf): New declaration.
86256         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
86257         REPLACE_VPRINTF.
86259 2007-03-08  Bruno Haible  <bruno@clisp.org>
86261         * modules/fprintf-posix-tests: New file.
86262         * tests/test-fprintf-posix.sh: New file.
86263         * tests/test-fprintf-posix.c: New file.
86265         * modules/fprintf-posix: New file.
86266         * lib/fprintf.c: New file.
86267         * m4/fprintf-posix.m4: New file.
86268         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
86269         REPLACE_FPRINTF.
86270         * lib/stdio_.h (fprintf): New declaration.
86271         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
86272         REPLACE_FPRINTF.
86274 2007-03-08  Bruno Haible  <bruno@clisp.org>
86276         * modules/vfprintf-posix-tests: New file.
86277         * tests/test-vfprintf-posix.sh: New file.
86278         * tests/test-vfprintf-posix.c: New file.
86279         * tests/test-fprintf-posix.h: New file.
86280         * tests/test-fprintf-posix.out: New file.
86282         * modules/vfprintf-posix: New file.
86283         * lib/vfprintf.c: New file.
86284         * m4/vfprintf-posix.m4: New file.
86285         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
86286         REPLACE_VFPRINTF.
86287         * lib/stdio_.h (vfprintf): New declaration.
86288         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
86289         REPLACE_VFPRINTF.
86291 2007-03-08  Bruno Haible  <bruno@clisp.org>
86293         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
86295 2007-03-08  Bruno Haible  <bruno@clisp.org>
86297         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
86298         instead of 'expr' invocations.
86299         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
86300         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
86301         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
86302         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
86303         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
86304         Suggested by Paul Eggert.
86306 2007-03-08  Bruno Haible  <bruno@clisp.org>
86308         * modules/fseterr-tests: New file.
86309         * tests/test-fseterr.c: New file.
86311         * modules/fseterr: New file.
86312         * lib/fseterr.h: New file.
86313         * lib/fseterr.c: New file.
86315 2007-03-08  Bruno Haible  <bruno@clisp.org>
86317         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
86318         * lib/getopt_.h: Likewise.
86319         * lib/mbswidth.h: Likewise.
86320         * lib/setenv.h: Likewise.
86321         * lib/vasnprintf.h: Likewise.
86322         * lib/vasprintf.h: Likewise.
86323         * lib/verror.h: Likewise.
86324         * lib/xsetenv.h: Likewise.
86325         * lib/xvasprintf.h: Likewise.
86327 2007-03-08  Jim Meyering  <jim@meyering.net>
86329         * users.txt: Add parted.
86331         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
86333 2007-03-07  Bruno Haible  <bruno@clisp.org>
86335         * m4/printf.m4: Make the shell script snippets copy&pastable.
86337 2007-03-02  Bruno Haible  <bruno@clisp.org>
86339         * lib/netinet_in_.h: New file.
86340         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
86341         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
86342         * modules/netinet_in (Files): Add lib/netinet_in_.h.
86343         (Depends-on): Add absolute-header.
86344         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
86345         into netinet/in.h.
86347 2007-03-03  Bruno Haible  <bruno@clisp.org>
86349         * lib/sys_select_.h: New file.
86350         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
86351         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
86352         * modules/sys_select (Files): Add lib/sys_select_.h.
86353         (Depends-on): Add absolute-header.
86354         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
86355         into sys/select.h.
86357 2007-03-02  Bruno Haible  <bruno@clisp.org>
86359         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
86360         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
86361         values.
86362         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
86363         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
86364         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
86365         * modules/sys_socket (Depends-on): Add absolute-header.
86366         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
86367         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
86368         (Include): Remove requirement of inclusion of <sys/types.h>.
86370 2007-03-02  Bruno Haible  <bruno@clisp.org>
86372         * lib/byteswap_.h (bswap_32): Fix formula.
86374 2007-03-06  Bruno Haible  <bruno@clisp.org>
86376         * modules/sprintf-posix-tests: New file.
86377         * tests/test-sprintf-posix.c: New file.
86379         * modules/sprintf-posix: New file.
86380         * lib/sprintf.c: New file.
86381         * m4/sprintf-posix.m4: New file.
86382         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
86383         REPLACE_SPRINTF.
86384         * lib/stdio_.h (sprintf): New declaration.
86385         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
86386         REPLACE_SPRINTF.
86388 2007-03-06  Bruno Haible  <bruno@clisp.org>
86390         * modules/vsprintf-posix-tests: New file.
86391         * tests/test-vsprintf-posix.c: New file.
86392         * tests/test-sprintf-posix.h: New file.
86394         * modules/vsprintf-posix: New file.
86395         * lib/vsprintf.c: New file.
86396         * m4/vsprintf-posix.m4: New file.
86397         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
86398         REPLACE_VSPRINTF.
86399         * lib/stdio_.h (vsprintf): New declaration.
86400         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
86401         REPLACE_VSPRINTF.
86403 2007-03-06  Bruno Haible  <bruno@clisp.org>
86405         * modules/vsnprintf (Depend-on): Remove minmax.
86407 2007-03-06  Bruno Haible  <bruno@clisp.org>
86409         * modules/snprintf-posix-tests: New file.
86410         * tests/test-snprintf-posix.c: New file.
86412         * modules/snprintf-posix: New file.
86413         * m4/snprintf-posix.m4: New file.
86414         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
86415         gl_FUNC_SNPRINTF.
86416         (gl_FUNC_SNPRINTF): Invoke it.
86417         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
86418         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
86419         is set.
86420         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
86422 2007-03-06  Bruno Haible  <bruno@clisp.org>
86424         * modules/vsnprintf-posix-tests: New file.
86425         * tests/test-vsnprintf-posix.c: New file.
86426         * tests/test-snprintf-posix.h: New file.
86428         * modules/vsnprintf-posix: New file.
86429         * m4/vsnprintf-posix.m4: New file.
86430         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
86431         gl_FUNC_VSNPRINTF.
86432         (gl_FUNC_VSNPRINTF): Invoke it.
86433         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
86434         * lib/stdio_.h (vsnprintf): Define as a replacement if
86435         REPLACE_VSNPRINTF is set.
86436         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
86438 2007-03-06  Bruno Haible  <bruno@clisp.org>
86440         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
86441         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
86443 2007-03-06  Bruno Haible  <bruno@clisp.org>
86445         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
86446         (asinl): Declare also if HAVE_DECL_ASINL is set.
86447         (atanl): Declare also if HAVE_DECL_ATANL is set.
86448         (ceill): Declare also if HAVE_DECL_CEILL is set.
86449         (cosl): Declare also if HAVE_DECL_COSL is set.
86450         (expl): Declare also if HAVE_DECL_EXPL is set.
86451         (floorl): Declare also if HAVE_DECL_FLOORL is set.
86452         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
86453         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
86454         (logl): Declare also if HAVE_DECL_LOGL is set.
86455         (sinl): Declare also if HAVE_DECL_SINL is set.
86456         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
86457         (tanl): Declare also if HAVE_DECL_TANL is set.
86458         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
86459         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
86460         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
86461         declaration of frexpl, ldexpl.
86462         * modules/printf-frexpl (Depends-on): Add math.
86463         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
86465 2007-03-05  Bruno Haible  <bruno@clisp.org>
86467         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
86468         frexpl and ldexpl are declared.
86469         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
86471 2007-03-05  Bruno Haible  <bruno@clisp.org>
86473         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
86474         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
86476 2007-03-05  Bruno Haible  <bruno@clisp.org>
86478         * lib/stdio_.h: Include <stddef.h>.
86480 2007-03-05  Bruno Haible  <bruno@clisp.org>
86482         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
86484 2007-03-05  Bruno Haible  <bruno@clisp.org>
86486         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
86487         NetBSD 4, from Ralf Wildenhues.
86489 2007-03-04  Bruno Haible  <bruno@clisp.org>
86491         * lib/vasprintf.h: Update #if logic for the case when the functions
86492         exist but are overridden.
86494 2007-03-04  Bruno Haible  <bruno@clisp.org>
86496         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
86497         implementations: glibc-2.4 and MacOS X 10.3.
86498         * tests/test-vasnprintf-posix.c (test_function): Test also the case
86499         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
86500         * tests/test-vasprintf-posix.c (test_function): Likewise.
86502 2007-03-04  Bruno Haible  <bruno@clisp.org>
86504         * modules/vasprintf-posix-tests: New file.
86505         * tests/test-vasprintf-posix.c: New file.
86507         * modules/vasprintf-posix: New file.
86508         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
86509         defined.
86510         * m4/vasprintf-posix.m4: New file.
86511         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
86512         gl_FUNC_VASPRINTF.
86513         (gl_FUNC_VASPRINTF): Invoke it.
86514         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
86515         here.
86516         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
86518 2007-03-04  Bruno Haible  <bruno@clisp.org>
86520         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
86521         REPLACE_GETTIMEOFDAY.
86522         * modules/sys_time (Makefile.am): Likewise.
86523         * m4/sys_time_h.m4: Likewise.
86524         * m4/gettimeofday.m4: Likewise.
86526 2007-03-04  Bruno Haible  <bruno@clisp.org>
86528         * modules/vasnprintf-posix-tests: New file.
86529         * tests/test-vasnprintf-posix.c: New file.
86531         * modules/vasnprintf-posix: New file.
86532         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
86533         printf-frexpl.h.
86534         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
86535         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
86536         REPLACE_VASNPRINTF is defined.
86537         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
86538         gl_FUNC_VASNPRINTF.
86539         (gl_FUNC_VASNPRINTF): Invoke it.
86540         * m4/vasnprintf-posix.m4: New file.
86541         * m4/printf.m4: New file.
86543 2007-03-04  Bruno Haible  <bruno@clisp.org>
86545         Compile progreloc.c only if --enable-relocatable is specified.
86546         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
86547         if --enable-relocatable was specified.
86548         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
86549         lib_SOURCES.
86551 2007-03-04  Jim Meyering  <jim@meyering.net>
86553         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
86554         Use it consistently, rather than enumerating errno constants.
86556 2007-03-04  Bruno Haible  <bruno@clisp.org>
86558         * modules/xvasprintf-tests: New file.
86559         * tests/test-xvasprintf.c: New file.
86561         * modules/vasprintf-tests: New file.
86562         * tests/test-vasprintf.c: New file.
86564         * modules/vasnprintf-tests: New file.
86565         * tests/test-vasnprintf.c: New file.
86567         * modules/vsnprintf-tests: New file.
86568         * tests/test-vsnprintf.c: New file.
86570         * modules/snprintf-tests: New file.
86571         * tests/test-snprintf.c: New file.
86573 2007-03-04  Bruno Haible  <bruno@clisp.org>
86575         Compile relocatable.c only if --enable-relocatable is specified.
86576         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
86577         gl_RELOCATABLE_LIBRARY.
86578         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
86579         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
86580         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
86581         gl_RELOCATABLE_LIBRARY.
86582         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
86583         (Makefile.am): Remove lib_SOURCES.
86584         * modules/relocatable-lib-lgpl (configure.ac): Invoke
86585         gl_RELOCATABLE_LIBRARY.
86586         (Makefile.am): Remove lib_SOURCES.
86587         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
86588         always.
86589         * modules/relocatable-prog-wrapper (configure.ac): Invoke
86590         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
86592 2007-03-04  Bruno Haible  <bruno@clisp.org>
86594         * modules/argmatch-tests: New file.
86595         * tests/test-argmatch.c: New file.
86597         * tests/test-allocsa.c (main): Halve the number of loop runs.
86599         * modules/alloca-opt-tests: New file.
86600         * tests/test-alloca-opt.c: New file.
86602 2007-03-04  Jim Meyering  <jim@meyering.net>
86604         Work around difference between Linux ACLs and Solaris 10 ZFS.
86605         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
86606         for EINVAL.
86608 2007-03-03  Bruno Haible  <bruno@clisp.org>
86610         * modules/relocatable-prog (Depends-on): Add back progreloc's
86611         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
86613 2007-03-03  Bruno Haible  <bruno@clisp.org>
86615         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
86616         * modules/relocatable-lib: New file.
86618 2007-03-03  Bruno Haible  <bruno@clisp.org>
86620         * modules/relocatable-prog: Renamed from modules/relocatable.
86621         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
86623 2007-03-03  Bruno Haible  <bruno@clisp.org>
86625         * modules/relocatable-script (Files): Add doc/relocatable.texi,
86626         m4/relocatable-lib.m4.
86627         (Depends-on): Remove 'relocatable'.
86628         (configure.ac): Add gl_RELOCATABLE_NOP.
86630 2007-03-03  Bruno Haible  <bruno@clisp.org>
86632         * modules/relocatable-prog-wrapper: New file.
86633         * modules/relocatable (Depends-on): Add it. Remove all other
86634         dependencies except progname.
86635         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
86637         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
86638         (gl_FUNC_STRERROR): Nop.
86639         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
86641         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
86642         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
86644         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
86645         (gl_FUNC_READLINK): Update.
86647         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
86649 2007-03-03  Bruno Haible  <bruno@clisp.org>
86651         * lib/xreadlink.c: Include <unistd.h> unconditionally.
86652         * modules/xreadlink (Depends-on): Add unistd.
86653         * modules/xreadlink-with-size (Depends-on): Likewise.
86655 2007-03-03  Bruno Haible  <bruno@clisp.org>
86657         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
86658         extracted from gt_FUNC_SETENV.
86659         (gt_FUNC_SETENV): Remove macro.
86660         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
86661         remove gt_FUNC_SETENV.
86663 2007-03-03  Bruno Haible  <bruno@clisp.org>
86665         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
86666         ENABLE_RELOCATABLE here.
86667         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
86669 2007-03-03  Bruno Haible  <bruno@clisp.org>
86671         * modules/rbtreehash-list-tests (Depends-on): Add progname.
86672         * tests/test-rbtreehash_list.c: Include progname.h.
86673         (main): Call set_program_name.
86675         * modules/rbtree-oset-tests (Depends-on): Add progname.
86676         * tests/test-rbtree_oset.c: Include progname.h.
86677         (main): Call set_program_name.
86679         * modules/rbtree-list-tests (Depends-on): Add progname.
86680         * tests/test-rbtree_list.c: Include progname.h.
86681         (main): Call set_program_name.
86683         * modules/linked-list-tests (Depends-on): Add progname.
86684         * tests/test-linked_list.c: Include progname.h.
86685         (main): Call set_program_name.
86687 2007-03-03  Bruno Haible  <bruno@clisp.org>
86689         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
86690         All uses of __restrict changed to _Restrict_.
86691         * lib/glob_.h (__restrict): Remove macro.
86693 2007-03-02  Bruno Haible  <bruno@clisp.org>
86695         * modules/gettext (configure.ac): Require gettext infrastructure
86696         from version 0.16.1.
86698 2007-03-02  Bruno Haible  <bruno@clisp.org>
86700         * modules/linkedhash-list-tests (Depends-on): Add progname.
86701         * tests/test-linkedhash_list.c: Include progname.h.
86702         (main): Call set_program_name.
86704         * modules/carray-list-tests (Depends-on): Add progname.
86705         * tests/test-carray_list.c: Include progname.h.
86706         (main): Call set_program_name.
86708         * modules/avltreehash-list-tests (Depends-on): Add progname.
86709         * tests/test-avltreehash_list.c: Include progname.h.
86710         (main): Call set_program_name.
86712         * modules/avltree-oset-tests (Depends-on): Add progname.
86713         * tests/test-avltree_oset.c: Include progname.h.
86714         (main): Call set_program_name.
86716         * modules/avltree-list-tests (Depends-on): Add progname.
86717         * tests/test-avltree_list.c: Include progname.h.
86718         (main): Call set_program_name.
86720         * modules/array-oset-tests (Depends-on): Add progname.
86721         * tests/test-array_oset.c: Include progname.h.
86722         (main): Call set_program_name.
86724         * modules/array-list-tests (Depends-on): Add progname.
86725         * tests/test-array_list.c: Include progname.h.
86726         (main): Call set_program_name.
86728         * modules/argp-tests (Depends-on): Add progname.
86729         * tests/test-argp.c: Include argp.h first. Include progname.h.
86730         (main): Call set_program_name.
86732 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
86734         * doc/gnulib-tool.texi (Initial import): Reword description of
86735         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
86736         limited effect even if defined after the first system include.
86738 2007-03-01  Bruno Haible  <bruno@clisp.org>
86740         * build-aux/config.libpath: Update to libtool-1.5.22.
86741         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
86743 2007-03-01  Bruno Haible  <bruno@clisp.org>
86745         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
86746         foo_CFLAGS.
86747         Reported by Ralf Wildenhues.
86749 2007-03-01  Bruno Haible  <bruno@clisp.org>
86751         * build-aux/install-reloc: Remove object files left over by some
86752         compilers.
86753         Reported by Ralf Wildenhues.
86755 2007-03-01  Bruno Haible  <bruno@clisp.org>
86757         * build-aux/install-reloc: Break long lines.
86759 2007-03-01  Bruno Haible  <bruno@clisp.org>
86761         * doc/relocatable.texi: Document that it may not work on OpenBSD.
86762         Reported by Ralf Wildenhues.
86764 2007-03-01  Bruno Haible  <bruno@clisp.org>
86766         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
86767         include ordering constraints.
86769 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86771         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
86772         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
86773         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
86774         as another example.
86775         * lib/time_.h: Fix misspelling.
86776         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
86777         Require gl_HEADER_TIME_H_DEFAULTS.
86778         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
86779         * m4/time_r.m4 (gl_TIME_R): Likewise.
86780         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
86782 2007-03-01  Bruno Haible  <bruno@clisp.org>
86784         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
86785         * m4/utimens.m4 (gl_UTIMENS): Likewise.
86787 2007-03-01  Jim Meyering  <jim@meyering.net>
86789         * modules/xreadlink (Maintainer): Add my name.
86790         * modules/xreadlink-with-size (Depends-on): Alphabetize.
86792 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
86793             Bruno Haible  <bruno@clisp.org>
86795         * build-aux/install-reloc: Compile also c-ctype.c.
86796         * build-aux/relocatable.sh.in: New file.
86797         * doc/relocatable.texi: New file.
86798         * doc/relocatable-maint.texi: New file.
86799         * doc/gnulib.texi: Include relocatable-maint.texi.
86800         * lib/progreloc.c: Include unistd.h unconditionally.
86801         * lib/relocwrapper.c: Include unistd.h unconditionally.
86802         Include c-ctype.h.
86803         (add_dotbin): Use c_tolower.
86804         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
86805         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
86806         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
86807         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
86808         to m4/relocatable-lib.m4.
86809         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
86810         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
86811         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
86812         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
86813         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
86814         * modules/relocatable: New file.
86815         * modules/relocatable-lib: New file.
86816         * modules/relocatable-script: New file.
86818 2007-02-28  Bruno Haible  <bruno@clisp.org>
86820         Import --enable-relocatable infrastructure.
86821         * build-aux/config.libpath: New file, from GNU gettext.
86822         * build-aux/install-reloc: New file, from GNU gettext.
86823         * build-aux/reloc-ldflags: New file, from GNU gettext.
86824         * lib/relocatable.h: New file, from GNU gettext.
86825         * lib/relocatable.c: New file, from GNU gettext.
86826         * lib/relocwrapper.c: New file, from GNU gettext.
86827         * m4/relocatable.m4: New file, from GNU gettext.
86829 2007-02-28  Bruno Haible  <bruno@clisp.org>
86831         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
86833         * modules/xreadlink: New file, from GNU gettext with modifications.
86834         * lib/xreadlink.c: New file, from GNU gettext.
86835         * lib/xreadlink.h: Add comments.
86836         (xreadlink): New declaration.
86838         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
86839         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
86840         lib/xreadlink-with-size.c.
86841         (configure.ac): Remove gl_XREADLINK invocation.
86842         (Makefile.am): Augment lib_SOURCES.
86843         * m4/xreadlink.m4: Remove file.
86844         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
86845         (xreadlink_with_size): Renamed from xreadink.
86846         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
86847         * modules/canonicalize (Depends-on): Replace xreadlink with
86848         xreadlink-with-size.
86849         * lib/canonicalize.c (canonicalize_filename_mode): Update.
86851 2007-02-25  Jim Meyering  <jim@meyering.net>
86853         * build-aux/announce-gen: When complaining about excess arguments,
86854         list them.
86856 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86858         * README: Document signed integer overflow situation more
86859         accurately.
86861 2007-02-25  Bruno Haible  <bruno@clisp.org>
86863         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
86864         'a' or 'A' conversion.
86866 2007-02-25  Bruno Haible  <bruno@clisp.org>
86868         * modules/filename: Renamed from modules/pathname.
86869         (Files): Replace lib/pathname.h with lib/filename.h. Replace
86870         lib/concatpath.c with lib/concat-filename.c.
86871         (Makefile.am): Update.
86872         (Include): Replace pathname.h with filename.h.
86873         * lib/filename.h: Renamed from lib/pathname.h.
86874         (concatenated_filename): Renamed from concatenated_pathname.
86875         * lib/concat-filename.c: Renamed from lib/concatpath.c.
86876         (concatenated_filename): Renamed from concatenated_pathname.
86877         * lib/findprog.c: Include filename.h instead of pathname.h.
86878         (find_in_path): Update.
86879         * lib/javacomp.c: Include filename.h instead of pathname.h.
86880         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
86881         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
86882         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
86883         is_oldgcj_14_13_usable, is_javac_usable): Update.
86884         * lib/javaexec.c: Include filename.h instead of pathname.h.
86885         (execute_java_class): Update.
86886         * modules/findprog: Update.
86887         * modules/javacomp: Update.
86888         * modules/javaexec: Update.
86889         * MODULES.html.sh (File system functions): Add 'filename', remove
86890         'pathname'.
86892 2007-02-25  Bruno Haible  <bruno@clisp.org>
86894         * modules/printf-frexpl-tests: New file.
86895         * tests/test-printf-frexpl.c: New file.
86897         * modules/printf-frexpl: New file.
86898         * lib/printf-frexpl.h: New file.
86899         * lib/printf-frexpl.c: New file.
86900         * m4/printf-frexpl.m4: New file.
86902 2007-02-25  Bruno Haible  <bruno@clisp.org>
86904         * modules/printf-frexp-tests: New file.
86905         * tests/test-printf-frexp.c: New file.
86907         * modules/printf-frexp: New file.
86908         * lib/printf-frexp.h: New file.
86909         * lib/printf-frexp.c: New file.
86910         * m4/printf-frexp.m4: New file.
86912 2007-02-25  Bruno Haible  <bruno@clisp.org>
86914         Assume automake >= 1.10 for the tests.
86915         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
86916         * modules/arctwo-tests: Likewise.
86917         * modules/argp-tests: Likewise.
86918         * modules/avltree-list-tests: Likewise.
86919         * modules/avltree-oset-tests: Likewise.
86920         * modules/avltreehash-list-tests: Likewise.
86921         * modules/carray-list-tests: Likewise.
86922         * modules/crc-tests: Likewise.
86923         * modules/des-tests: Likewise.
86924         * modules/gc-arcfour-tests: Likewise.
86925         * modules/gc-arctwo-tests: Likewise.
86926         * modules/gc-des-tests: Likewise.
86927         * modules/gc-hmac-md5-tests: Likewise.
86928         * modules/gc-hmac-sha1-tests: Likewise.
86929         * modules/gc-md2-tests: Likewise.
86930         * modules/gc-md4-tests: Likewise.
86931         * modules/gc-md5-tests: Likewise.
86932         * modules/gc-pbkdf2-sha1-tests: Likewise.
86933         * modules/gc-rijndael-tests: Likewise.
86934         * modules/gc-sha1-tests: Likewise.
86935         * modules/gc-tests: Likewise.
86936         * modules/getaddrinfo-tests: Likewise.
86937         * modules/hmac-md5-tests: Likewise.
86938         * modules/hmac-sha1-tests: Likewise.
86939         * modules/linked-list-tests: Likewise.
86940         * modules/linkedhash-list-tests: Likewise.
86941         * modules/lock-tests: Likewise.
86942         * modules/md2-tests: Likewise.
86943         * modules/md4-tests: Likewise.
86944         * modules/md5-tests: Likewise.
86945         * modules/rbtree-list-tests: Likewise.
86946         * modules/rbtree-oset-tests: Likewise.
86947         * modules/rbtreehash-list-tests: Likewise.
86948         * modules/read-file-tests: Likewise.
86949         * modules/rijndael-tests: Likewise.
86950         * modules/stdint-tests: Likewise.
86951         * modules/tls-tests: Likewise.
86953 2007-02-24  Bruno Haible  <bruno@clisp.org>
86955         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
86956         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
86957         function; instead check whether isnan with a double argument links.
86958         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
86959         function; instead check whether isnan with a 'long double' argument
86960         links.
86961         Reported by Eric Blake <ebb9@byu.net>.
86963 2007-02-24  Bruno Haible  <bruno@clisp.org>
86965         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
86966         defined.
86967         * lib/isnanl.c: Remove all code. Just include isnan.c.
86968         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
86970 2007-02-25  Jim Meyering  <jim@meyering.net>
86972         Avoid conflicting types for 'unsetenv' on FreeBSD.
86973         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
86974         conflicting with FreeBSD's (5.0 and 6.1) function declaration
86975         in stdlib.h.
86977 2007-02-24  Bruno Haible  <bruno@clisp.org>
86979         * modules/isnanl-nolibm-tests: New file.
86980         * tests/test-isnanl.c: New file.
86982         * modules/isnanl-nolibm: New file.
86983         * lib/isnanl.h: New file.
86984         * lib/isnanl.c: New file.
86985         * m4/isnanl.m4: New file.
86987 2007-02-24  Bruno Haible  <bruno@clisp.org>
86989         * modules/isnan-nolibm-tests: New file.
86990         * tests/test-isnan.c: New file.
86992         * modules/isnan-nolibm: New file.
86993         * lib/isnan.h: New file.
86994         * lib/isnan.c: New file.
86995         * m4/isnan.m4: New file.
86997 2007-02-24  Bruno Haible  <bruno@clisp.org>
86999         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
87000         assume that an exponent fits in 20 bits.
87002 2007-02-24  Jim Meyering  <jim@meyering.net>
87004         * m4/regex.m4: Update the description of the configure-time option,
87005         --without-included-regex, to state accurately what the defaults are,
87006         and perhaps to give people an idea why using this option is risky.
87008 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
87010         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
87011         loops on small arguments.  This attempts to avoid the problem
87012         Bruno Haible reported for AIX 4.3.2 in
87013         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
87015 2007-02-23  Bruno Haible  <bruno@clisp.org>
87017         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
87018         Needed for help2man.
87020 2007-02-23  Karl Berry  <karl@gnu.org>
87022         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
87023         exists, foo.h should be cvs-ignored, not committed.
87025 2007-02-23  Eric Blake  <ebb9@byu.net>
87027         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
87028         * lib/stat-time.h (includes): Likewise.
87029         * lib/utimecmp.c (includes): Likewise.
87030         * lib/utimens.h (includes): Likewise.
87031         * lib/getdate.y (includes): Also include "timespec.h" for use
87032         internal to the module.
87033         * modules/utimens (Depends-on): Revert yesterday's patch.
87034         * modules/nanosleep (Depends-on): Add missing dependency.
87036 2007-02-22  Bruno Haible  <bruno@clisp.org>
87038         * lib/glob.c: Don't include getlogin_r.h.
87040 2007-02-22  Jim Meyering  <jim@meyering.net>
87042         * modules/utimens (Depends-on): Add timespec, required for
87043         utimens.h's inclusion of timespec.h.
87045 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
87047         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
87048         long unreadable paths in GNU/Linux.  Problem reported by Andreas
87049         Schwab in
87050         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
87051         I'll try to think of a better way to fix the Solaris problem.
87053         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
87054         like glibc; on Solaris 10, it fails with errno == EINVAL.
87055         POSIX says the behavior is unspecified if the first argument is NULL,
87056         so play it safe and never pass NULL to the system getcwd.
87058 2007-02-21  Jim Meyering  <jim@meyering.net>
87060         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
87061         of gettimeofday.  It would conflict with the one now always
87062         provided via sys_time_.h.  Reported by Matthew Woehlke, as
87063         an IRIX 6.5 build failure.
87065 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
87067         Minor fixups to port to Solaris 10 with Sun C 5.8.
87068         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
87069         * modules/getcwd (Depends-on): Add dirfd.
87070         * lib/putenv.c (putenv): #undef it.
87071         (rpl_putenv): New decl.
87072         (malloc, free): Include <stdlib.h> rather than prototyping separately.
87074 2007-02-20  Bruno Haible  <bruno@clisp.org>
87076         * modules/stdio-tests: New file.
87077         * tests/test-stdio.c: New file.
87079         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
87080         (Depends-on): Add stdio.
87081         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
87082         (Include): Use <stdio.h> instead of vsnprintf.h.
87083         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
87084         HAVE_DECL_VSNPRINTF.
87085         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
87087         * modules/snprintf (Files): Remove lib/snprintf.h.
87088         (Depends-on): Add stdio.
87089         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
87090         (Include): Use <stdio.h> instead of snprintf.h.
87091         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
87092         HAVE_DECL_SNPRINTF.
87093         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
87094         * lib/getaddrinfo.c: Likewise.
87096         * modules/stdio: New file.
87097         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
87098         * lib/snprintf.h: Remove file.
87099         * lib/vsnprintf.h: Remove file.
87100         * lib/.cppi-disable: Remove snprintf.h.
87101         * m4/stdio_h.m4: New file.
87102         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
87104 2007-02-20  Jim Meyering  <jim@meyering.net>
87106         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
87107         used by e.g., mingw.  From Bruno Haible.
87109 2007-02-19  Bruno Haible  <bruno@clisp.org>
87111         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
87112         warnings.
87113         Reported by Ben Pfaff <blp@cs.stanford.edu>.
87115 2007-02-19  Bruno Haible  <bruno@clisp.org>
87117         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
87118         from mingw users.
87120 2007-02-19  Bruno Haible  <bruno@clisp.org>
87122         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
87123         warnings.
87124         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
87126 2007-02-19  Jim Meyering  <jim@meyering.net>
87128         Don't use FD after a successful "fdopendir (fd)".
87129         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
87130         Reset it by calling dirfd on the just-obtained DIR*.
87132         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
87133         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
87135 2007-02-18  Bruno Haible  <bruno@clisp.org>
87137         * lib/readlink.c: Include <unistd.h>.
87138         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
87139         HAVE_READLINK.
87140         * modules/readlink (Depends-on): Add unistd.
87141         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87142         (Include): Add <unistd.h>.
87144         * lib/getlogin_r.h: Remove file.
87145         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
87146         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
87147         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
87148         HAVE_DECL_GETLOGIN_R.
87149         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
87150         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87151         (Include): Use <unistd.h> instead of getlogin_r.h.
87153         * lib/getcwd.h: Remove file.
87154         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
87155         * lib/xgetcwd.c: Likewise.
87156         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
87157         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
87158         * modules/getcwd (Files): Remove lib/getcwd.h.
87159         (Depends-on): Add unistd.
87160         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87161         (Include): Use <unistd.h> instad of getcwd.h.
87163         * lib/ftruncate.c: Include <unistd.h> first.
87164         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
87165         Set HAVE_FTRUNCATE.
87166         * modules/ftruncate (Depends-on): Add unistd.
87167         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87169         * lib/fchdir.c: Include <unistd.h> first.
87170         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
87171         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
87172         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
87173         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87174         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
87176         * lib/dup2.c: Include <unistd.h> first.
87177         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
87178         HAVE_DUP2.
87179         * modules/dup2 (Depends-on): Add unistd.
87180         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87182         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
87183         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
87184         REPLACE_CHOWN. Don't define chown as a macro here.
87185         * modules/chown (Depends-on): Add unistd.
87186         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
87188         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
87189         Add definition for GL_LINK_WARNING.
87190         (chown, dup2): New declarations.
87191         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
87192         link warning.
87193         (ftruncate): New declaration.
87194         (getcwd): New declaration, taken from old getcwd.h.
87195         (getlogin_r): New declaration, taken from old getlogin_r.h.
87196         (readlink): New declaration.
87197         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
87198         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
87199         (gl_PREREQ_UNISTD): Remove macro.
87200         (gl_UNISTD_MODULE_INDICATOR): New macro.
87201         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
87202         many new variables. Don't set UNISTD_H.
87203         * modules/unistd (Description): Change.
87204         (Depends-on): Add link-warning.
87205         (configure.ac): Update.
87206         (Makefile.am): Create unistd.h always. Substitute many new variables
87207         into it.
87209 2007-02-18  Bruno Haible  <bruno@clisp.org>
87211         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
87212         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
87213         HAVE_GETSUBOPT.
87214         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
87215         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
87216         * lib/getsubopt.h: Remove file.
87217         * modules/getsubopt (Files): Remove lib/getsubopt.h.
87218         (Depends-on): Add stdlib.
87219         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
87220         (Includes): Use <stdlib.h> instead of getsubopt.h.
87221         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
87222         Set HAVE_GETSUBOPT.
87223         * lib/getsubopt.c: Don't include getsubopt.h.
87225 2007-02-18  Bruno Haible  <bruno@clisp.org>
87227         * modules/fchdir (Depends-on): Add dup2.
87229 2007-02-18  Bruno Haible  <bruno@clisp.org>
87231         * lib/stdlib_.h: Handle glibc's special invocation convention
87232         specially.
87234 2007-02-18  Bruno Haible  <bruno@clisp.org>
87236         * modules/stdlib-tests: New file.
87237         * tests/test-stdlib.c: New file.
87239         * modules/mkstemp (Files): Remove lib/mkstemp.h.
87240         (Depends-on): Add stdlib.
87241         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
87242         (Includes): Use <stdlib.h> instead of mkstemp.h.
87243         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
87244         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
87245         * lib/mkstemp.c: Don't include mkstemp.h.
87246         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
87247         * lib/stdlib--.h: Don't include mkstemp.h.
87249         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
87250         (Depends-on): Add stdlib.
87251         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
87252         (Includes): Use <stdlib.h> instead of mkdtemp.h.
87253         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
87254         HAVE_MKDTEMP.
87255         * lib/mkdtemp.c: Don't include mkdtemp.h.
87256         * lib/clean-temp.c: Don't include mkdtemp.h.
87258         * modules/exit (Files): Remove lib/exit.h.
87259         (Depends-on): Add stdlib.
87260         (Makefile.am): Remove lib_SOURCES.
87261         (Include): Use <stdlib.h> instead of exit.h.
87262         * lib/argmatch.c: Don't include exit.h.
87263         * lib/execute.c: Likewise.
87264         * lib/pagealign_alloc.c: Likewise.
87265         * lib/pipe.c: Likewise.
87266         * lib/wait-process.c: Likewise.
87267         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
87268         * lib/exitfail.c: Likewise.
87269         * lib/savewd.c: Likewise.
87270         * lib/xsetenv.c: Likewise.
87272         * modules/stdlib: New file.
87273         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
87274         and extra comments about mkstemp().
87275         * lib/exit.h: Remove file.
87276         * lib/mkdtemp.h: Remove file.
87277         * lib/mkstemp.h: Remove file.
87278         * m4/stdlib_h.m4: New file.
87279         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
87281 2007-02-18  Bruno Haible  <bruno@clisp.org>
87283         * modules/math-tests: New file.
87284         * tests/test-math.c: New file.
87286         * modules/math: New file.
87287         * modules/mathl (Files): Remove lib/mathl.h.
87288         (Depends-on): Add math.
87289         (Makefile.am): Don't mention mathl.h.
87290         (Include): Use <math.h> instead of mathl.h.
87291         * lib/math_.h: New file.
87292         * lib/mathl.h: Remove file.
87293         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
87294         mathl.h.
87295         * lib/asinl.c: Likewise.
87296         * lib/atanl.c: Likewise.
87297         * lib/ceill.c: Likewise.
87298         * lib/cosl.c: Likewise.
87299         * lib/expl.c: Likewise.
87300         * lib/floorl.c: Likewise.
87301         * lib/frexpl.c: Likewise.
87302         * lib/ldexpl.c: Likewise.
87303         * lib/logl.c: Likewise.
87304         * lib/sincosl.c: Likewise.
87305         * lib/sinl.c: Likewise.
87306         * lib/sqrtl.c: Likewise.
87307         * lib/tanl.c: Likewise.
87308         * lib/trigl.c: Likewise.
87309         * m4/math_h.m4: New file.
87310         * MODULES.html.sh (Mathematics): Add math.
87312 2007-02-17  Bruno Haible  <bruno@clisp.org>
87314         * modules/wctype-tests: New file.
87315         * tests/test-wctype.c: New file.
87317         * modules/wchar-tests: New file.
87318         * tests/test-wchar.c: New file.
87320         * modules/unistd-tests: New file.
87321         * tests/test-unistd.c: New file.
87323         * modules/time-tests: New file.
87324         * tests/test-time.c: New file.
87326         * modules/sysexits-tests: New file.
87327         * tests/test-sysexits.c: New file.
87329         * modules/sys_time-tests: New file.
87330         * tests/test-sys_time.c: New file.
87332         * modules/sys_stat-tests: New file.
87333         * tests/test-sys_stat.c: New file.
87335         * modules/sys_socket-tests: New file.
87336         * tests/test-sys_socket.c: New file.
87338         * modules/sys_select-tests: New file.
87339         * tests/test-sys_select.c: New file.
87341         * modules/string-tests: New file.
87342         * tests/test-string.c: New file.
87344         * modules/stdbool-tests: New file.
87345         * tests/test-stdbool.c: New file.
87347         * modules/netinet_in-tests: New file.
87348         * tests/test-netinet_in.c: New file.
87350         * modules/inttypes-tests: New file.
87351         * tests/test-inttypes.c: New file.
87353         * modules/fcntl-tests: New file.
87354         * tests/test-fcntl.c: New file.
87356         * modules/byteswap-tests: New file.
87357         * tests/test-byteswap.c: New file.
87359         * modules/arpa_inet-tests: New file.
87360         * tests/test-arpa_inet.c: New file.
87362 2007-02-17  Bruno Haible  <bruno@clisp.org>
87364         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
87365         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
87366         if the corresponding module is not enabled. Emit link warnings if
87367         the function is used nevertheless.
87368         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
87369         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
87370         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
87371         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
87372         * modules/inttypes (Depends-on): Add link-warning.
87373         (Makefile.am): Copy the contents of build-aux/link-warning.h into
87374         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
87375         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
87376         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
87377         * modules/imaxdiv (configure.ac): Likewise.
87378         * modules/strtoimax (configure.ac): Likewise.
87379         * modules/strtoumax (configure.ac): Likewise.
87381 2007-02-17  Bruno Haible  <bruno@clisp.org>
87383         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
87384         gl_STRING_MODULE_INDICATOR_DEFAULTS.
87385         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
87386         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
87388 2007-02-17  Bruno Haible  <bruno@clisp.org>
87390         * modules/link-warning: New file.
87391         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
87392         * lib/string_.h (GL_LINK_WARNING): Remove definition.
87393         * modules/string (Depends-on): Add link-warning.
87394         (Makefile.am): Copy the contents of build-aux/link-warning.h into
87395         string.h.
87396         * MODULES.html.sh (Support for building libraries and executables): Add
87397         link-warning.
87399 2007-02-17  Bruno Haible  <bruno@clisp.org>
87401         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
87402         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
87403         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
87404         long lines.
87406 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
87407             Bruno Haible  <bruno@clisp.org>
87409         * modules/tmpfile: New file.
87410         * lib/tmpfile.c: New file.
87411         * m4/tmpfile.m4: New file.
87412         * MODULES.html.sh (func_all_modules): New section "Input/output".
87414 2007-02-15  Bruno Haible  <bruno@clisp.org>
87416         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
87417         (supports_delete_on_close): New function.
87418         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
87420 2007-02-14  Bruno Haible  <bruno@clisp.org>
87422         * modules/mbspcasecmp-tests: New file.
87423         * tests/test-mbspcasecmp.sh: New file.
87424         * tests/test-mbspcasecmp.c: New file.
87426         New module mbspcasecmp.
87427         * modules/mbspcasecmp: New file.
87428         * lib/mbspcasecmp.c: New file.
87429         * lib/string_.h (strncasecmp): Change warning message.
87430         (mbspcasecmp): New declaration.
87431         * m4/mbspcasecmp.m4: New file.
87432         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
87433         GNULIB_MBSPCASECMP.
87434         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
87435         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
87437 2007-02-14  Bruno Haible  <bruno@clisp.org>
87439         * modules/mbsncasecmp-tests: New file.
87440         * tests/test-mbsncasecmp.sh: New file.
87441         * tests/test-mbsncasecmp.c: New file.
87443         New module mbsncasecmp.
87444         * modules/mbsncasecmp: New file.
87445         * lib/mbsncasecmp.c: New file.
87446         * lib/string_.h (mbsncasecmp): New declaration.
87447         * m4/mbsncasecmp.m4: New file.
87448         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
87449         GNULIB_MBSNCASECMP.
87450         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
87451         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
87453 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
87455         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
87456         Verify that it doesn't overlap with our flags.
87457         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
87458         do not have the desired effect in multibyte locales; instead, use
87459         mbscasecmp.
87460         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
87461         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
87462         we don't require GNU fnmatch ourselves (if our users require it, they
87463         should do so explicitly).
87465         Fix regex code so it doesn't rely on strcasecmp.
87466         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
87467         Otherwise, include gnulib's langinfo.h.
87468         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
87469         undesirable behavior in non-C locales.  Instead, rely on localecharset.
87470         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
87471         * modules/regex (FILES): Remove m4/codeset.m4.
87472         (Depends-on): Add localcharset.  Remove strcase.
87474 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87476         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
87477         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
87479 2007-02-13  Bruno Haible  <bruno@clisp.org>
87481         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
87482         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
87484 2007-02-12  Bruno Haible  <bruno@clisp.org>
87486         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
87487         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
87488         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
87489         time warning rather than a link error.
87491 2007-02-12  Bruno Haible  <bruno@clisp.org>
87493         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
87494         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
87495         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
87497 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
87499         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
87500         args, not 2.
87502 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
87504         New module 'time', so that apps can include <time.h> as per
87505         POSIX and GNU instead of separate include files like time_r.h
87506         and timegm.h.  This implementation tries out a simpler approach
87507         for replacing decls in standard include files (as compared to
87508         the string module), somewhat as an experiment.
87510         * config/srclist.txt: Comment out mktime.c for now.
87511         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
87512         since it doesn't apply any more.  Use generic wording instead.
87513         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
87514         'time'.
87515         * lib/time_.h, m4/time_h.m4, modules/time: New files.
87516         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
87517         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
87518         Don't include <sys/types.h>; no longer needed since we assume C89.
87519         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
87520         * lib/strftime.c: Likewise.
87521         * lib/time_r.c: Likewise.
87522         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
87523         * lib/nanosleep.c: Include <time.h> first, to check interface.
87524         * lib/strptime.c: Likewise.
87525         * lib/time_r.c: Likewise.
87526         * lib/timegm.c: Likewise.
87527         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
87528         needed.
87529         * lib/timegm.c: Don't include timegm.h; no longer needed.
87530         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
87531         time.h now handles any problems in that area.
87532         (struct timespec, nanosleep): Remove; time.h now arranges for these.
87533         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
87534         that time.h defines struct timespec.
87535         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
87536         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
87537         handles that.
87538         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
87539         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
87540         needed.  Set REPLACE_LOCALTIME.
87541         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
87542         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
87543         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
87544         nanosleep; time_h.m4 now does that.  Don't require
87545         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
87546         module handles this now.
87547         * modules/getdate (Depends-on): Remove timespec.  Add time.
87548         * modules/nanosleep (Depends-on): Likewise.
87549         * modules/stat-time (Depends-on): Likewise.
87550         * modules/nanosleep (Include): Include time.h, not timespec.h.
87551         * modules/strptime (Files): Remove lib/strptime.h.
87552         (Depends-on): Add extensions, time.
87553         (Include): Include time.h, not strptime.h.
87554         * modules/time_r (Files): Remove lib/time_r.h.
87555         (Depends-on): Add time.
87556         (Include): Include time.h, not time_r.h.
87557         * modules/timegm: Likewise.
87558         * modules/timespec (Description): Now does timespec-related decls
87559         of our own, instead of struct timespec itself.
87560         (Depends-on): Add time; remove extensions.
87561         (Maintainer): Add self.
87562         * modules/utimecmp (Depends-on): Add time; remove timespec.
87563         * modules/utimens (Depends-on): Likewise.
87564         * modules/xnanosleep (Depends-on): Likewise.
87566 2007-02-11  Bruno Haible  <bruno@clisp.org>
87568         * lib/c-strstr.c: Include allocsa.h.
87569         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
87570         * lib/c-strcasestr.c: Include allocsa.h.
87571         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
87572         * lib/strcasestr.c: Include allocsa.h.
87573         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
87574         * lib/mbsstr.c: Include allocsa.h.
87575         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
87576         allocsa/freesa instead of malloc/free.
87577         * lib/mbscasestr.c: Include allocsa.h.
87578         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
87579         allocsa/freesa instead of malloc/free.
87580         * modules/c-strstr (Depends-on): Add allocsa.
87581         * modules/c-strcasestr (Depends-on): Likewise.
87582         * modules/strcasestr (Depends-on): Likewise.
87583         * modules/mbsstr (Depends-on): Likewise.
87584         * modules/mbscasestr (Depends-on): Likewise.
87586 2007-02-11  Bruno Haible  <bruno@clisp.org>
87588         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
87590         * modules/mbsspn-tests: New file.
87591         * tests/test-mbsspn.sh: New file.
87592         * tests/test-mbsspn.c: New file.
87594 2007-02-11  Bruno Haible  <bruno@clisp.org>
87596         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
87598         * modules/mbspbrk-tests: New file.
87599         * tests/test-mbspbrk.sh: New file.
87600         * tests/test-mbspbrk.c: New file.
87602 2007-02-11  Bruno Haible  <bruno@clisp.org>
87604         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
87605         unneeded cast.
87607         * modules/mbscspn-tests: New file.
87608         * tests/test-mbscspn.sh: New file.
87609         * tests/test-mbscspn.c: New file.
87611 2007-02-11  Bruno Haible  <bruno@clisp.org>
87613         * modules/mbscasecmp-tests: New file.
87614         * tests/test-mbscasecmp.sh: New file.
87615         * tests/test-mbscasecmp.c: New file.
87617 2007-02-11  Bruno Haible  <bruno@clisp.org>
87619         Ensure O(n) worst-case complexity of mbscasestr.
87620         * lib/mbscasestr.c: Include stdbool.h.
87621         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
87622         functions.
87623         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
87624         the bookkeeping indicates that it's worth it.
87625         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
87627         * modules/mbscasestr-tests: New file.
87628         * tests/test-mbscasestr1.c: New file.
87629         * tests/test-mbscasestr2.sh: New file.
87630         * tests/test-mbscasestr2.c: New file.
87631         * tests/test-mbscasestr3.sh: New file.
87632         * tests/test-mbscasestr3.c: New file.
87633         * tests/test-mbscasestr4.sh: New file.
87634         * tests/test-mbscasestr4.c: New file.
87635         * m4/locale-tr.m4: New file.
87637 2007-02-11  Bruno Haible  <bruno@clisp.org>
87639         Ensure O(n) worst-case complexity of mbsstr.
87640         * lib/mbsstr.c: Include stdbool.h.
87641         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
87642         functions.
87643         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
87644         bookkeeping indicates that it's worth it.
87645         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
87647         * modules/mbsstr-tests: New file.
87648         * tests/test-mbsstr1.c: New file.
87649         * tests/test-mbsstr2.sh: New file.
87650         * tests/test-mbsstr2.c: New file.
87651         * tests/test-mbsstr3.sh: New file.
87652         * tests/test-mbsstr3.c: New file.
87653         * m4/locale-fr.m4: New file.
87655 2007-02-11  Bruno Haible  <bruno@clisp.org>
87657         * lib/mbsrchr.c (mbsrchr): Fix bug.
87659         * modules/mbsrchr-tests: New file.
87660         * tests/test-mbsrchr.sh: New file.
87661         * tests/test-mbsrchr.c: New file.
87663 2007-02-11  Bruno Haible  <bruno@clisp.org>
87665         * lib/mbschr.c (mbschr): Fix bug.
87667         * modules/mbschr-tests: New file.
87668         * tests/test-mbschr.sh: New file.
87669         * tests/test-mbschr.c: New file.
87670         * m4/locale-zh.m4: New file.
87672 2007-02-11  Bruno Haible  <bruno@clisp.org>
87674         Support for copying multibyte string iterators.
87675         * lib/mbiter.h: Include <string.h>.
87676         (mbiter_multi_copy): New function.
87677         (mbi_copy): New macro.
87678         * lib/mbuiter.h: Include <string.h>.
87679         (mbuiter_multi_copy): New function.
87680         (mbui_copy): New macro.
87682 2007-02-11  Bruno Haible  <bruno@clisp.org>
87684         New module mbslen.
87685         * modules/mbslen: New file.
87686         * lib/mbslen.c: New file.
87687         * lib/string_.h (mbslen): New declaration.
87688         * m4/mbslen.m4: New file.
87689         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
87690         GNULIB_MBSLEN.
87691         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
87692         * MODULES.html.sh (Internationalization functions): Add mbslen.
87694 2007-02-11  Bruno Haible  <bruno@clisp.org>
87696         Ensure O(n) worst-case complexity of strcasestr substitute.
87697         * lib/strcasestr.c: Include stdbool.h.
87698         (knuth_morris_pratt): New function.
87699         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
87700         bookkeeping indicates that it's worth it.
87701         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
87703         * modules/strcasestr-tests: New file.
87704         * tests/test-strcasestr.c: New file.
87706 2007-02-11  Bruno Haible  <bruno@clisp.org>
87708         Ensure O(n) worst-case complexity of c_strcasestr.
87709         * lib/c-strcasestr.c: Include stdbool.h, string.h.
87710         (knuth_morris_pratt): New function.
87711         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
87712         the bookkeeping indicates that it's worth it.
87713         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
87715         * modules/c-strcasestr-tests: New file.
87716         * tests/test-c-strcasestr.c: New file.
87718 2007-02-11  Bruno Haible  <bruno@clisp.org>
87720         Ensure O(n) worst-case complexity of c_strstr.
87721         * lib/c-strstr.c: Include stdbool.h, string.h.
87722         (knuth_morris_pratt): New function.
87723         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
87724         bookkeeping indicates that it's worth it.
87725         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
87727         * lib/c-strstr.c: Complete rewrite for maintainability.
87729         * modules/c-strstr-tests: New file.
87730         * tests/test-c-strstr.c: New file.
87732 2007-02-11  Bruno Haible  <bruno@clisp.org>
87734         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
87735         5.2.1 and earlier, whereby \055 was treated just like the range
87736         delimiter '-'.
87737         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
87739 2007-02-08  Bruno Haible  <bruno@clisp.org>
87741         * modules/regex (Depends-on): Add stdbool.
87742         Reported by Dalibor Topic <robilad@kaffe.org>.
87744 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
87746         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
87747         Prefer returning from main to exiting from it.
87748         Remove unnecessary parens after sizeof.
87750 2007-02-05  Bruno Haible  <bruno@clisp.org>
87752         New module mbssep.
87753         * modules/mbssep: New file.
87754         * lib/mbssep.c: New file.
87755         * lib/string_.h (strsep): Add a conditional link warning.
87756         (mbssep): New declaration.
87757         * m4/mbssep.m4: New file.
87758         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
87759         GNULIB_MBSSEP.
87760         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
87761         * MODULES.html.sh (Internationalization functions): Add mbssep.
87763 2007-02-05  Bruno Haible  <bruno@clisp.org>
87765         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
87766         Optimize search in case of 1 delimiter.
87768 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
87770         * lib/acl.h: Include sys/types.h before sys/acl.h.
87772 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
87774         Merge upstream fix for glibc bugzilla #3957:
87776         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
87778         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
87779         bit for RE_HAT_LISTS_NOT_NEWLINE.
87780         (build_charclass_op): Remove bogus comment.
87782 2007-02-05  Simon Josefsson  <simon@josefsson.org>
87784         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
87786 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
87788         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
87789         * lib/memmem.c [!defined _LIBC]: Include config.h.
87791 2007-02-04  Bruno Haible  <bruno@clisp.org>
87793         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
87794         warning message.
87796 2007-02-04  Bruno Haible  <bruno@clisp.org>
87798         New module mbstok_r.
87799         * modules/mbstok_r: New file.
87800         * lib/mbstok_r.c: New file.
87801         * lib/string_.h (strtok_r): Change argument names to match the
87802         comments. Add a conditional link warning.
87803         (mbstok_r): New declaration.
87804         * m4/mbstok_r.m4: New file.
87805         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
87806         GNULIB_MBSTOK_R.
87807         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
87808         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
87810 2007-02-04  Bruno Haible  <bruno@clisp.org>
87812         New module mbsspn.
87813         * modules/mbsspn: New file.
87814         * lib/mbsspn.c: New file.
87815         * lib/string_.h (strspn): Add a conditional link warning.
87816         (mbsspn): New declaration.
87817         * m4/mbsspn.m4: New file.
87818         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
87819         GNULIB_MBSSPN.
87820         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
87821         * MODULES.html.sh (Internationalization functions): Add mbsspn.
87823 2007-02-04  Bruno Haible  <bruno@clisp.org>
87825         New module mbspbrk.
87826         * modules/mbspbrk: New file.
87827         * lib/mbspbrk.c: New file.
87828         * lib/string_.h (strpbrk): Add a conditional link warning.
87829         (mbspbrk): New declaration.
87830         * m4/mbspbrk.m4: New file.
87831         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
87832         GNULIB_MBSPBRK.
87833         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
87834         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
87836 2007-02-04  Bruno Haible  <bruno@clisp.org>
87838         New module mbscspn.
87839         * modules/mbscspn: New file.
87840         * lib/mbscspn.c: New file.
87841         * lib/string_.h (strcspn): Add a conditional link warning.
87842         (mbscspn): New declaration.
87843         * m4/mbscspn.m4: New file.
87844         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
87845         GNULIB_MBSCSPN.
87846         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
87847         * MODULES.html.sh (Internationalization functions): Add mbscspn.
87849 2007-02-04  Bruno Haible  <bruno@clisp.org>
87851         New module mbscasestr, reduced goal of strcasestr.
87852         * modules/mbscasestr: New file.
87853         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
87854         (mbscasestr): Renamed from strcasestr.
87855         * lib/strcasestr.c: Don't include mbuiter.h.
87856         (strcasestr): Remove support for multibyte locales.
87857         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
87858         Change the conditional link warning.
87859         (mbscasestr): New declaration.
87860         * m4/mbscasestr.m4: New file.
87861         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
87862         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
87863         REPLACE_STRCASESTR.
87864         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
87865         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
87866         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
87867         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
87868         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
87869         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
87870         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
87871         (Depends-on): Remove mbuiter.
87872         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
87874 2007-02-04  Bruno Haible  <bruno@clisp.org>
87876         Simplify handling of strncasecmp.
87877         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
87878         the conditional link warning.
87879         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
87880         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
87881         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
87882         * modules/strcase (configure.ac): Don't invoke
87883         gl_STRING_MODULE_INDICATOR.
87884         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
87886 2007-02-04  Bruno Haible  <bruno@clisp.org>
87888         New module mbscasecmp, reduced goal of strcasecmp.
87889         * modules/mbscasecmp: New file.
87890         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
87891         (mbscasecmp): Renamed from strcasecmp.
87892         * lib/strcasecmp.c: Don't include mbuiter.h.
87893         (strcasecmp): Remove support for multibyte locales.
87894         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
87895         Change the conditional link warning.
87896         (mbscasecmp): New declaration.
87897         * m4/mbscasecmp.m4: New file.
87898         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
87899         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
87900         REPLACE_STRCASECMP.
87901         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
87902         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
87903         GNULIB_MBSCASECMP.
87904         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
87905         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
87906         * modules/strcase (Files): Remove m4/mbrtowc.m4.
87907         (Depends-on): Remove mbuiter.
87908         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
87910 2007-02-04  Bruno Haible  <bruno@clisp.org>
87912         New module mbsstr. Remove module strstr.
87913         * modules/mbsstr: New file.
87914         * modules/strstr: Remove file.
87915         * lib/mbsstr.c: Renamed from lib/strstr.c.
87916         (mbsstr): Renamed from strstr.
87917         * lib/string_.h (strstr): Remove declaration. Change the conditional
87918         link warning.
87919         (mbsstr): New declaration.
87920         * m4/mbsstr.m4: New file.
87921         * m4/strstr.m4: Remove file.
87922         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
87923         REPLACE_STRSTR.
87924         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
87925         Don't initialize GNULIB_STRSTR.
87926         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
87927         substitute GNULIB_STRSTR and REPLACE_STRSTR.
87928         * MODULES.html.sh (Internationalization functions): Add mbsstr.
87929         (Support for systems lacking ANSI C 89): Remove strstr.
87931 2007-02-04  Bruno Haible  <bruno@clisp.org>
87933         New module mbsrchr.
87934         * modules/mbsrchr: New file.
87935         * lib/mbsrchr.c: New file.
87936         * lib/string_.h (strrchr): Add a conditional link warning.
87937         (mbsrchr): New declaration.
87938         * m4/mbsrchr.m4: New file.
87939         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
87940         GNULIB_MBSRCHR.
87941         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
87942         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
87944 2007-02-04  Bruno Haible  <bruno@clisp.org>
87946         New module mbschr.
87947         * modules/mbschr: New file.
87948         * lib/mbschr.c: New file.
87949         * lib/string_.h (strchr): Add a conditional link warning.
87950         (mbschr): New declaration.
87951         * m4/mbschr.m4: New file.
87952         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
87953         GNULIB_MBSCHR.
87954         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
87955         * MODULES.html.sh (Internationalization functions): Add mbschr.
87957 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
87959         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
87961         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
87963 2007-02-04  Bruno Haible  <bruno@clisp.org>
87965         New module description section 'configure.ac-early'.
87966         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
87967         (func_get_autoconf_early_snippet): New function.
87968         (func_import, func_create_testdir): Use it. Remove special cases for
87969         modules 'extensions' and 'lock'.
87970         * modules/extensions (configure.ac-early): Require
87971         gl_USE_SYSTEM_EXTENSIONS.
87972         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
87974 2007-02-04  Bruno Haible  <bruno@clisp.org>
87976         Make use of gcj-4.3's -fsource and -ftarget option.
87977         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
87978         and if so try the options -fsource and -ftarget.
87979         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
87980         source_version, ftarget_option, target_version arguments.
87981         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
87982         (is_envjavac_oldgcj_14_14_usable): Renamed from
87983         is_envjavac_gcj_14_14_usable.
87984         (is_envjavac_oldgcj_14_13_usable): Renamed from
87985         is_envjavac_gcj_14_13_usable.
87986         (is_gcj_present): Update.
87987         (is_gcj_43, is_gcj43_usable): New functions.
87988         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
87989         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
87990         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
87991         try the options -fsource and -ftarget.
87993 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87995         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
87996         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
87997         larger value.
87999 2007-02-03  Jim Meyering  <jim@meyering.net>
88001         Give tools a better chance to allocate space for very large buffers.
88002         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
88004         Make pwd and readlink work also when run with an unreadable parent dir
88005         on systems with openat support.
88006         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
88007         provided getcwd function, even when we have openat support.
88008         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
88010 2007-02-02  Bruno Haible  <bruno@clisp.org>
88012         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
88013         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
88014         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
88015         portability problems if one of these functions is only used on specific
88016         platforms.
88017         Reported by Paul Eggert.
88019 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
88021         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
88022         is causing more trouble than it's curing.
88023         * lib/regex_internal.h (__mempcpy): Remove.
88024         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
88025         (and make the code a tad smaller to boot).
88026         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
88028 2007-02-02  Jim Meyering  <jim@meyering.net>
88030         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
88031         section, not in the Makefile.am: one.
88033 2007-02-02  Eric Blake  <ebb9@byu.net>
88035         * lib/strchrnul.c: Always include config.h first.
88037         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
88038         gnulib strstr is not necessary here.
88040 2007-02-02  Simon Josefsson  <simon@josefsson.org>
88042         * m4/socklen.m4: Fix typo.
88044 2007-02-02  Eric Blake  <ebb9@byu.net>
88046         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
88047         * modules/netinet_in (Makefile.am): Likewise.
88049 2007-02-01  Bruno Haible  <bruno@clisp.org>
88051         * lib/string_.h (GL_LINK_WARNING): New macro.
88052         (strcasecmp, strstr, strcasestr): If provided by the system,
88053         conditionally define as a macro that leads to a warning instead of to
88054         an error.
88055         (strncasecmp): Conditionally define as a macro that leads to a warning.
88057 2007-02-01  Karl Berry  <karl@gnu.org>
88059         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
88061 2007-02-01  Bruno Haible  <bruno@clisp.org>
88063         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
88064         renamings.
88066 2007-02-01  Eric Blake  <ebb9@byu.net>
88068         * modules/regex (Depends-on): Revert dependence on mempcpy.
88069         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
88070         module's definition of mempcpy.
88071         Reported by Paul Eggert.
88073 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
88075         * lib/string_.h: If the gnulib module XYZ is not present, undefine
88076         the symbol XYZ before redefining it.  This fixes a problem with
88077         programs that don't use XYZ, when compiled on systems that define
88078         XYZ to something else.
88080 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
88082         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
88083         occurs when "mkdir -m foo" creates a setgid directory that is (1)
88084         writeable to group or other and (2) is intended to have a special
88085         mode bit that is set or cleared.  In such a case, the directory
88086         should be neither group- nor other-writeable until the special
88087         mode bits are right.
88089 2007-01-31  Eric Blake  <ebb9@byu.net>
88091         * modules/mountlist (Depends-on): Add strstr.
88093         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
88094         bug.
88095         * modules/string (Makefile.am): Remove redundant replacement.
88096         * modules/regex (Depends-on): Add mempcpy.
88098 2007-01-31  Bruno Haible  <bruno@clisp.org>
88100         New module description field 'Link'.
88101         * gnulib-tool (func_usage): Document --extract-link-directive.
88102         (sed_extract_prog): Recognize 'Link' directive.
88103         (func_get_link_directive): New function.
88104         (func_import): Show summary of link directives.
88105         Handle --extract-link-directive option.
88106         * modules/acl (Link): New section.
88107         * modules/clock-time (Link): New section.
88108         * modules/euidaccess (Link): New section.
88109         * modules/gettext (Link): New section.
88110         * modules/iconv (Link): New section.
88111         * modules/lock (Link): New section.
88112         * modules/nanosleep (Link): New section.
88113         * modules/readline (Link): New section.
88115 2007-01-27  Bruno Haible  <bruno@clisp.org>
88117         Enforce the use of gnulib modules for unportable <string.h> functions.
88118         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
88119         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
88120         (gl_HEADER_STRING_H_BODY): Require it.
88121         * lib/string_.h: If the gnulib module XYZ is not present, redefine
88122         the symbol XYZ to one that gives a link error.
88123         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
88124         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
88125         * modules/mempcpy (configure.ac): Likewise.
88126         * modules/memrchr (configure.ac): Likewise.
88127         * modules/stpcpy (configure.ac): Likewise.
88128         * modules/stpncpy (configure.ac): Likewise.
88129         * modules/strcase (configure.ac): Likewise.
88130         * modules/strcasestr (configure.ac): Likewise.
88131         * modules/strchrnul (configure.ac): Likewise.
88132         * modules/strdup (configure.ac): Likewise.
88133         * modules/strndup (configure.ac): Likewise.
88134         * modules/strnlen (configure.ac): Likewise.
88135         * modules/strpbrk (configure.ac): Likewise.
88136         * modules/strsep (configure.ac): Likewise.
88137         * modules/strstr (configure.ac): Likewise.
88138         * modules/strtok_r (configure.ac): Likewise.
88140 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
88142         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
88144 2007-01-30  Jim Meyering  <jim@meyering.net>
88146         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
88148 2007-01-29  Bruno Haible  <bruno@clisp.org>
88150         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
88151         * lib/execute.c: Likewise.
88152         * lib/pipe.c: Likewise.
88153         * lib/printf-args.h: Likewise.
88154         * lib/printf-args.c: Likewise.
88155         * lib/printf-parse.c: Likewise.
88156         * lib/vasnprintf.c: Likewise.
88158 2007-01-29  Eric Blake  <ebb9@byu.net>
88160         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
88161         declaration.
88163 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
88165         * lib/strptime.h (strptime): Use 'restrict' for args where
88166         POSIX requires this.
88167         * lib/strptime.c (strptime): Likewise.
88168         Change license notice from LGPL to GPL, since gnulib-tool will
88169         change this as needed.
88170         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
88171         defined.
88172         Include "strptime.h" first, to check interface.
88173         Do not #undef _LIBC and _NL_CURRENT.
88174         Do not include <stdlib.h>; no longer needed.
88175         Include "time_r.h" and declare ptime_locale_status
88176         only if _LIBC is not defined.
88177         (__P): Remove unused macro.
88178         (match_string): Bring back glibc version, but use it only if _LIBC
88179         is defined.
88180         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
88181         Remove unnecessary assertion and abort() call.
88182         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
88183         * m4/strptime.m4: Fix serial number comment.
88184         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
88185         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
88186         (Depends-on): Add time_r.
88188 2007-01-29  Bruno Haible  <bruno@clisp.org>
88190         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88191         strptime.
88192         * modules/strptime (Depends-on): Add stdbool.
88193         * lib/strptime.h: Include <time.h> always. Add comments.
88195 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88197         * modules/strptime: New file.
88198         * lib/strptime.h: New file.
88199         * lib/strptime.c: New file.
88200         * m4/strptime.m4: New file.
88202 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
88204         * MODULES.html.sh: New module mpsort.
88205         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
88207         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
88208         a circularity problem with HP-UX ia64 reported by Bob Proulx in
88209         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
88210         All uses changed.
88211         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
88212         All uses changed.
88213         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
88214         to _Restrict_.
88215         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
88216         the parameter matches the prototype.
88218 2007-01-28  Jim Meyering  <jim@meyering.net>
88220         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
88221         sys/time.h here, reverting that part of the previous patch:
88222         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
88224 2007-01-28  Bruno Haible  <bruno@clisp.org>
88226         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
88227         value of $(SYS_TIME_H).
88228         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
88229         remove it conditionally, too. [added by Jim Meyering]
88230         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
88231         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
88232         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
88233         GETTIMEOFDAY_REPLACEMENT to 1.
88235 2007-01-28  Bruno Haible  <bruno@clisp.org>
88237         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
88238         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
88239         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
88240         Set UNISTD_H instead of UNISTD_H2.
88241         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
88243 2007-01-28  Bruno Haible  <bruno@clisp.org>
88245         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
88246         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
88248 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88250         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
88251         (func_create_testdir): Ensure C locale for `grep' and `tr'
88252         character ranges.
88253         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
88254         ACLOCAL_AMFLAGS parsing state machine.
88256 2007-01-27  Bruno Haible  <bruno@clisp.org>
88258         * modules/unistr/base: Update.
88260 2007-01-27  Bruno Haible  <bruno@clisp.org>
88262         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
88263         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
88264         * modules/unistr/u32-mbtouc-unsafe: Renamed from
88265         modules/unistr/u32-mbtouc.
88266         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
88267         * lib/unistr.h: Update.
88268         * lib/linebreak.c: Update.
88269         * modules/unistr/u32-mbtouc: Renamed from
88270         modules/unistr/u32-mbtouc-safe.
88271         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
88272         * lib/unistr.h: Update.
88273         * lib/unistr/u32-to-u8.c: Update.
88274         * lib/unistr/u32-to-u16.c: Update.
88276 2007-01-27  Bruno Haible  <bruno@clisp.org>
88278         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
88279         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
88280         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
88281         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
88282         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
88283         * modules/unistr/u16-mbtouc-unsafe: Renamed from
88284         modules/unistr/u16-mbtouc.
88285         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
88286         * lib/unistr.h: Update.
88287         * lib/linebreak.c: Update.
88288         * modules/linebreak: Update.
88289         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
88290         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
88291         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
88292         * modules/unistr/u16-mbtouc: Renamed from
88293         modules/unistr/u16-mbtouc-safe.
88294         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
88295         * lib/unistr.h: Update.
88296         * lib/unistr/u16-to-u8.c: Update.
88297         * modules/unistr/u16-to-u8: Update.
88298         * lib/unistr/u16-to-u32.c: Update.
88299         * modules/unistr/u16-to-u32: Update.
88301 2007-01-27  Bruno Haible  <bruno@clisp.org>
88303         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
88304         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
88305         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
88306         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
88307         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
88308         * modules/unistr/u8-mbtouc-unsafe: Renamed from
88309         modules/unistr/u8-mbtouc.
88310         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
88311         * lib/unistr.h: Update.
88312         * lib/striconveh.c: Update.
88313         * modules/striconveh: Update.
88314         * lib/linebreak.c: Update.
88315         * modules/linebreak: Update.
88316         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
88317         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
88318         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
88319         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
88320         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
88321         * lib/unistr.h: Update.
88322         * lib/striconveh.c: Update.
88323         * modules/striconveh: Update.
88324         * lib/unistr/u8-to-u16.c: Update.
88325         * modules/unistr/u8-to-u16: Update.
88326         * lib/unistr/u8-to-u32.c: Update.
88327         * modules/unistr/u8-to-u32: Update.
88329 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88331         Sync from Libtool.
88332         * lib/argz.c: Do not include strings.h nor memory.h, include
88333         string.h unconditionally.  Patch by Simon Josefsson.
88335 2007-01-27  Bruno Haible  <bruno@clisp.org>
88337         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
88338         from gl_HEADER_STRING_H_BODY.
88339         (gl_HEADER_STRING_H_BODY): Require it.
88340         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
88341         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
88342         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
88343         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
88344         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
88345         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
88346         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
88347         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
88348         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
88349         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
88350         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
88351         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
88352         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
88353         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
88354         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
88356 2007-01-27  Bruno Haible  <bruno@clisp.org>
88358         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
88359         check_PROGRAMS into noinst_PROGRAMS.
88360         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
88361         check_PROGRAMS in this case.
88362         (func_import): Set for_test to false.
88363         (func_create_testdir): Set for_test to true.
88365 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88366             Bruno Haible  <bruno@clisp.org>
88368         * modules/strcasestr (Files): Remove lib/strcasestr.h.
88369         (Depends-on): Add string.
88370         (Includes): Use <string.h> instead of strcasestr.h.
88371         * modules/string (Makefile.am): Also substitute the value of
88372         REPLACE_STRCASESTR.
88373         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
88374         assume strcasestr is declared in <string.h> not <strings.h>. Also
88375         set REPLACE_STRCASESTR.
88376         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
88377         REPLACE_STRCASESTR.
88378         * lib/strcasestr.h: Remove file.
88379         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
88380         * lib/string_.h (strcasestr): New declaration.
88382 2007-01-27  Bruno Haible  <bruno@clisp.org>
88384         * lib/string_.h: Use 'extern'.
88386 2007-01-27  Jim Meyering  <jim@meyering.net>
88388         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
88389         of set-but-not-used local, "q".
88391         * lib/mempcpy.c: Include <config.h> before <string.h>.
88392         This fixes a compilation error on HP-UX, due to the system's
88393         "restrict"-using mempcpy prototype.
88395 2007-01-26  Bruno Haible  <bruno@clisp.org>
88397         Small optimization.
88398         * lib/javacomp.c: Include c-strstr.h.
88399          (is_envjavac_gcj): Use c_strstr instead of strstr.
88400         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
88402 2007-01-26  Bruno Haible  <bruno@clisp.org>
88404         * MODULES.html.sh (Unicode string functions): Add the new modules.
88406         * modules/uniconv/u32-strconv-to-locale: New file.
88407         * lib/uniconv/u32-strconv-to-locale.c: New file.
88409         * modules/uniconv/u16-strconv-to-locale: New file.
88410         * lib/uniconv/u16-strconv-to-locale.c: New file.
88412         * modules/uniconv/u8-strconv-to-locale: New file.
88413         * lib/uniconv/u8-strconv-to-locale.c: New file.
88415         * modules/uniconv/u32-strconv-from-locale: New file.
88416         * lib/uniconv/u32-strconv-from-locale.c: New file.
88418         * modules/uniconv/u16-strconv-from-locale: New file.
88419         * lib/uniconv/u16-strconv-from-locale.c: New file.
88421         * modules/uniconv/u8-strconv-from-locale: New file.
88422         * lib/uniconv/u8-strconv-from-locale.c: New file.
88424         * modules/uniconv/u32-strconv-to-enc: New file.
88425         * lib/uniconv/u32-strconv-to-enc.c: New file.
88426         * modules/uniconv/u32-strconv-to-enc-tests: New file.
88427         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
88429         * modules/uniconv/u16-strconv-to-enc: New file.
88430         * lib/uniconv/u16-strconv-to-enc.c: New file.
88431         * lib/uniconv/u-strconv-to-enc.h: New file.
88432         * modules/uniconv/u16-strconv-to-enc-tests: New file.
88433         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
88435         * modules/uniconv/u8-strconv-to-enc: New file.
88436         * lib/uniconv/u8-strconv-to-enc.c: New file.
88437         * modules/uniconv/u8-strconv-to-enc-tests: New file.
88438         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
88440         * modules/uniconv/u32-strconv-from-enc: New file.
88441         * lib/uniconv/u32-strconv-from-enc.c: New file.
88442         * modules/uniconv/u32-strconv-from-enc-tests: New file.
88443         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
88445         * modules/uniconv/u16-strconv-from-enc: New file.
88446         * lib/uniconv/u16-strconv-from-enc.c: New file.
88447         * modules/uniconv/u16-strconv-from-enc-tests: New file.
88448         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
88450         * modules/uniconv/u8-strconv-from-enc: New file.
88451         * lib/uniconv/u8-strconv-from-enc.c: New file.
88452         * lib/uniconv/u-strconv-from-enc.h: New file.
88453         * modules/uniconv/u8-strconv-from-enc-tests: New file.
88454         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
88456         * modules/uniconv/u32-conv-from-enc: New file.
88457         * lib/uniconv/u32-conv-from-enc.c: New file.
88458         * modules/uniconv/u32-conv-from-enc-tests: New file.
88459         * tests/uniconv/test-u32-conv-from-enc.c: New file.
88461         * modules/uniconv/u16-conv-from-enc: New file.
88462         * lib/uniconv/u16-conv-from-enc.c: New file.
88463         * lib/uniconv/u-conv-from-enc.h: New file.
88464         * modules/uniconv/u16-conv-from-enc-tests: New file.
88465         * tests/uniconv/test-u16-conv-from-enc.c: New file.
88467         * modules/uniconv/u8-conv-from-enc: New file.
88468         * lib/uniconv/u8-conv-from-enc.c: New file.
88469         * modules/uniconv/u8-conv-from-enc-tests: New file.
88470         * tests/uniconv/test-u8-conv-from-enc.c: New file.
88472         * modules/uniconv/base: New file.
88473         * lib/uniconv.h: New file.
88475 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
88477         * doc/gnulib-tool.texi (Initial import): Update to match current
88478         behavior with strdup module.
88479         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
88480         * lib/memmem.h: Remove; all uses removed.  This is now done
88481         by <string.h>.
88482         * lib/mempcpy.h: Likewise.
88483         * lib/memrchr.h: Likewise.
88484         * lib/stpcpy.h: Likewise.
88485         * lib/stpncpy.h: Likewise.
88486         * lib/strcase.h: Likewise.
88487         * lib/strchrnul.h: Likewise.
88488         * lib/strdup.h: Likewise.
88489         * lib/strndup.h: Likewise.
88490         * lib/strnlen.h: Likewise.
88491         * lib/strpbrk.h: Likewise.
88492         * lib/strsep.h: Likewise.
88493         * lib/strstr.h: Likewise.
88494         * lib/strtok_r.h: Likewise.
88495         * lib/string_.h: New file.
88496         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
88497         Rely on <string.h> instead.
88498         * lib/canon-host.c: Likewise.
88499         * lib/chdir-long.c: Likewise.
88500         * lib/concatpath.c: Likewise.
88501         * lib/exclude.c: Likewise.
88502         * lib/fchdir.c: Likewise.
88503         * lib/getaddrinfo.c: Likewise.
88504         * lib/getcwd.c: Likewise.
88505         * lib/getsubopt.c: Likewise.
88506         * lib/glob.c: Likewise.
88507         * lib/hard-locale.c: Likewise.
88508         * lib/iconvme.c: Likewise.
88509         * lib/javacomp.c: Likewise.
88510         * lib/mempcpy.c: Likewise.
88511         * lib/memrchr.c: Likewise.
88512         * lib/regex_internal.h: Likewise.
88513         * lib/stpncpy.c: Likewise.
88514         * lib/strcasecmp.c: Likewise.
88515         * lib/strchrnul.c: Likewise.
88516         * lib/strdup.c: Likewise.
88517         * lib/striconv.c: Likewise.
88518         * lib/striconveh.c: Likewise.
88519         * lib/striconveha.c: Likewise.
88520         * lib/strncasecmp.c: Likewise.
88521         * lib/strndup.c: Likewise.
88522         * lib/strnlen.c: Likewise.
88523         * lib/strsep.c: Likewise.
88524         * lib/strstr.c: Likewise.
88525         * lib/strtok_r.c: Likewise.
88526         * lib/userspec.c: Likewise.
88527         * lib/w32spawn.h: Likewise.
88528         * lib/xstrndup.c: Likewise.
88529         * lib/mountlist.c (strstr): Remove decl.
88530         * m4/string_h.m4: New file.
88531         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
88532         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
88533         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
88534         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
88535         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
88536         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
88537         Set REPLACE_STRCASECMP if necessary.
88538         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
88539         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
88540         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
88541         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
88542         HAVE_DECL_STRDUP if necessary.
88543         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
88544         since gl_FUNC_STRNDUP does that now.
88545         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
88546         Check for decl here...
88547         (gl_PREREQ_STRNLEN): ... not here.
88548         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
88549         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
88550         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
88551         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
88552         necessary.
88553         * modules/string: New file.
88554         * modules/memmem (Files): Remove special-purpose include file.
88555         (Depends-on): Add string.
88556         (Include): Include <string.h>, not the removed file.
88557         * modules/mempcpy: Likewise.
88558         * modules/memrchr: Likewise.
88559         * modules/stpcpy: Likewise.
88560         * modules/stpncpy: Likewise.
88561         * modules/strcase: Likewise.
88562         * modules/strchrnul: Likewise.
88563         * modules/strdup: Likewise.
88564         * modules/strndup: Likewise.
88565         * modules/strnlen: Likewise.
88566         * modules/strpbrk: Likewise.
88567         * modules/strsep: Likewise.
88568         * modules/strstr: Likewise.
88569         * modules/strtok_r: Likewise.
88570         * tests/test-dirname.c: Don't include "strdup.h", since
88571         <string.h> now suffices.
88572         * tests/test-memmem.c: Don't include "memmem.h", since
88573         <string.h> now suffices.
88575 2007-01-25  Bruno Haible  <bruno@clisp.org>
88577         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
88578         *resultp is 0.
88580         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
88581         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
88582         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
88583         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
88585         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
88586         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
88587         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
88588         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
88589         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
88590         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
88592 2007-01-24  Bruno Haible  <bruno@clisp.org>
88594         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
88595         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
88596         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
88597         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
88598         gl_FUNC_FTS_CORE.
88599         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
88600         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
88601         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88602         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
88603         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
88604         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
88605         gl_FUNC_FCHOWNAT.
88606         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
88607         gl_FUNC_STRFTIME.
88608         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
88609         Reported by Ralf Wildenhues.
88611 2007-01-24  Bruno Haible  <bruno@clisp.org>
88613         Drop AC_REQUIRE calls that are redundant with the module dependencies.
88614         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
88615         gl_GETADDRINFO.
88616         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
88617         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
88618         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
88620 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
88622         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
88623         Don't use 'exit'; just return from 'main'.
88624         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
88626         * lib/fnmatch_.h: Readjust white space and comments to match
88627         glibc, to avoid spurious diffs.
88629 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
88631         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
88632         2004-12-01 change by Jakub Jelinek, since this code won't compile
88633         if !LIBC.  Problem reported by Bob Proulx.
88635 2007-01-23  Bruno Haible  <bruno@clisp.org>
88637         * lib/striconveh.c: Include c-strcaseeq.h.
88638         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
88639         * modules/striconveh (Depends-on): Add c-strcaseeq.
88641 2007-01-23  Bruno Haible  <bruno@clisp.org>
88643         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
88645         * modules/c-strcaseeq: New file.
88646         * lib/c-strcaseeq.h: New file.
88648         * modules/streq: New file.
88649         * lib/streq.h: New file.
88651 2007-01-23  Bruno Haible  <bruno@clisp.org>
88653         * modules/striconveha-tests: New file.
88654         * tests/test-striconveha.c: New file.
88656         * lib/striconveha.h: Include <stdbool.h>.
88657         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
88658         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
88659         (mem_iconveha_notranslit): Renamed from mem_iconveha.
88660         (mem_iconveha): New function.
88661         (str_iconveha_notranslit): Renamed from str_iconveha.
88662         (str_iconveha): New function.
88663         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
88664         c-strcase.
88666 2007-01-23  Bruno Haible  <bruno@clisp.org>
88668         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
88669         encodings without forgiving before trying any encoding with handler.
88670         (str_iconveha): Try all encodings without forgiving before trying any
88671         encoding with handler.
88673 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
88675         Import the following changes from libc.
88677         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
88679         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
88681         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
88683         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
88684         normal_bracket label.
88686         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
88688         [BZ #361]
88689         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
88690         to normal_bracket after fetching the next character.
88692 2007-01-22  Bruno Haible  <bruno@clisp.org>
88694         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
88695         argument.
88696         * lib/striconveh.c (iconv_carefully_1): New function.
88697         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
88698         argument.
88699         (str_cd_iconveh): Update.
88700         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
88701         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
88702         * tests/test-striconveh.c (MAGIC): New macro.
88703         (new_offsets): New function.
88704         (main): Test call with and without offsets.
88706 2007-01-22  Bruno Haible  <bruno@clisp.org>
88708         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
88709         * modules/sys_select (Makefile.am): Likewise.
88710         * modules/sys_socket (Makefile.am): Likewise.
88711         * modules/sys_time (Makefile.am): Likewise.
88713 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
88715         * modules/gettimeofday (License): Change from GPL to LGPL, since
88716         gettimeofday is a library function.
88718 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88720         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
88722 2007-01-21  Bruno Haible  <bruno@clisp.org>
88724         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
88726 2007-01-21  Bruno Haible  <bruno@clisp.org>
88728         * modules/striconveha: New file.
88729         * lib/striconveha.h: New file.
88730         * lib/striconveha.c: New file.
88731         * MODULES.html.sh (Internationalization functions): Add striconveha.
88732         * lib/striconv.c (str_iconv): Optimize the case of an empty input
88733         string.
88734         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
88736 2007-01-21  Bruno Haible  <bruno@clisp.org>
88738         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
88739         * lib/striconveh.c (str_iconveh): Likewise.
88741 2007-01-21  Bruno Haible  <bruno@clisp.org>
88743         * lib/striconveh.h (mem_iconveh): New declaration.
88744         * lib/striconveh.c (mem_iconveh): New function.
88745         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
88747 2007-01-21  Bruno Haible  <bruno@clisp.org>
88749         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
88751         * lib/striconveh.h (mem_cd_iconveh): Change specification.
88752         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
88753         original result buffer.
88754         (str_cd_iconveh): Update.
88755         * tests/test-striconveh.c (main): Update.
88757         * lib/striconv.h (mem_cd_iconv): Change specification.
88758         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
88759         result buffer.
88760         (str_cd_iconv): Update.
88761         * tests/test-striconv.c (main): Update.
88763 2007-01-21  Bruno Haible  <bruno@clisp.org>
88765         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
88767 2007-01-20  Jim Meyering  <jim@meyering.net>
88769         * lib/userspec.c (parse_with_separator): If a user or group string
88770         starts with "+", skip the corresponding name-to-ID look-up, since
88771         such a look-up must fail: user and group names may not include "+".
88773 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
88775         * lib/poll.c: Include sys/time.h and time.h unconditionally,
88776         since we now assume the sys_time module.
88777         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
88778         check for sys/time.h; no longer needed.
88779         * modules/poll (Depends-on): Depend on sys_time.
88781 2007-01-18  Bruno Haible  <bruno@clisp.org>
88783         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
88784         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
88786         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
88787         gettimeofday.
88789         * tests/test-gettimeofday.c: Include <time.h>.
88790         (dummy): Remove variable.
88792         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
88793         gl_HEADER_SYS_TIME_H.
88794         (gl_HEADER_SYS_TIME_H): New macro.
88796         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
88797         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
88798         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
88799         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
88800         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
88801         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
88802         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
88803         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
88804         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
88805         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
88806         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
88808         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
88809         last change; it caused a compilation error when cross-compiling to
88810         Cygwin.
88812 2007-01-18  Jim Meyering  <jim@meyering.net>
88814         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
88815         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
88816         than the race-prone "test -d sys || mkdir sys".
88817         (configure.ac): Use AC_PROG_MKDIR_P.
88818         * modules/sys_select: Likewise.
88819         * modules/sys_socket: Likewise.
88820         * modules/sys_time: Likewise.
88822 2007-01-18  Eric Blake  <ebb9@byu.net>
88824         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
88825         replace gettimeofday.
88826         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
88827         name, to avoid infinite recursion.
88829 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
88831         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
88832         module sys_time.
88833         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
88834         assume timespec.h defines struct timeval.
88835         * lib/settime.c: Likewise.
88836         * lib/utimens.c: Likewise.
88837         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
88838         since we now assume the gettimeofday module.
88839         * lib/tempname.c (__gen_tempname): Likewise.
88840         * lib/gettimeofday.h: Remove.
88841         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
88842         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
88843         Include <time.h>, for 'time()'.
88844         (localtime_buffer_addr): Also use this workaround if
88845         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
88846         to simplify the uses.  All uses changed.
88847         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
88848         that #undef is inside {}, and 'const' follows type name consistently.
88849         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
88850         (gettimeofday): Do not use the maximum possible value for
88851         tv->tv_usec, since that might break usages other than ls.c.
88852         Instead, we'll leave ls.c alone.  This undoes today's patch
88853         by Bruno.  Add a compile-time warning for 1s-clock resolution;
88854         we've never observed the problem but might as well keep the
88855         canary.
88856         * lib/nanosleep.c: Include timespec.h first, for interface check.
88857         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
88858         now assume the sys_time module.
88859         * lib/tempname.c: Likewise.
88860         * lib/timespec.h: Likewise.
88861         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
88862         needed.
88863         * lib/strftime.c: Likewise.
88864         * lib/timespec.h: Likewise.
88865         * lib/posixtm.c: Include posixtm.h first, for interface check.
88866         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
88867         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
88868         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
88869         * lib/sys_time_.h: New file.
88870         * lib/timespec.h (struct timespec): Use long int, not long.
88871         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
88872         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
88873         Remove obsolescent call to AC_HEADER_TIME.
88874         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
88875         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
88876         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
88877         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
88878         Likewise.
88879         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
88880         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
88881         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
88882         into the sys_time module.  Check for gettimeofday just once.
88883         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
88884         for gettimeofday signature to just check the signature.  Merely
88885         compile it, since linking doesn't test signature.  Improve test for
88886         whether gettimeofday.o is actually needed.
88887         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
88888         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
88889         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
88890         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
88891         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
88892         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
88893         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
88894         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
88895         than worrying about sys/time.h.
88896         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
88897         Don't bother worrying about TIME_WITH_SYS_TIME.
88898         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
88899         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
88900         * m4/sys_time_h.m4: New file.
88901         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
88902         Don't include sys/time.h.  Return from main rather than exiting.
88903         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
88904         all uses changed.
88905         * modules/gethrxtime (Depends-on): Add sys_time.
88906         * modules/gettime (Depends-on): Likewise.
88907         * modules/gettimeofday (Depends-on): Likewise.
88908         * modules/nanosleep (Depends-on): Likewise.
88909         * modules/settime (Depends-on): Likewise.
88910         * modules/tempname (Depends-on): Likewise.
88911         * modules/utimens (Depends-on): Likewise.
88912         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
88913         (Include): Change back to <sys/time.h>.
88914         (Maintainer): Add self.
88915         * modules/sys_time: New file.
88916         * modules/tempname (Depends-on): Add gettimeofday.
88917         * tests/test-gettimeofday.c: Include <sys/time.h>
88918         rather than gettimeofday.h.
88920 2007-01-17  Bruno Haible  <bruno@clisp.org>
88922         * gnulib-tool (func_get_license): Revert last patch. Instead, let
88923         the license default to GPL.
88924         (func_create_testdir): Don't complain if a module is LGPL and its
88925         tests module depends on GPLed modules.
88927 2007-01-17  Bruno Haible  <bruno@clisp.org>
88929         * lib/gettimeofday.c (gettimeofday): Add code for the case
88930         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
88931         maximum possible value for tv->tv_usec, rather than the minimum one.
88933 2005-10-08  Martin Lambers  <marlam@marlam.de>
88934 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
88935 2007-01-16  Bruno Haible  <bruno@clisp.org>
88937         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
88938         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
88939         gl_FUNC_GETTIMEOFDAY.
88940         (Include): Add gettimeofday.h.
88941         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
88942         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
88943         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
88944         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
88945         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
88946         * lib/gettimeofday.h: New file.
88947         * lib/gettimeofday.c: Include <sys/timeb.h>.
88948         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
88949         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
88950         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
88951         fall back on time().
88953         * tests/test-gettimeofday.c: New file.
88954         * modules/gettimeofday-tests: New file.
88956 2007-01-16  Eric Blake  <ebb9@byu.net>
88958         * modules/fnmatch (Depends-on): Depend on wchar.
88959         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
88960         * m4/fnmatch.m4: Likewise.
88961         * modules/mbchar (Makefile.am): Assume <wchar.h>.
88962         * m4/mbchar.m4: Likewise.
88963         * modules/mbswidth (Depends-on): Depend on wchar.
88964         * lib/mbswidth.c: Assume <wchar.h>.
88965         * m4/mbswidth.m4: Likewise.
88966         * modules/quotearg (Depends-on): Depend on wchar.
88967         * lib/quotearg.c: Assume <wchar.h>.
88968         * m4/quotearg.m4: Likewise.
88969         * modules/regex (Depends-on): Depend on wchar.
88970         * lib/regex_internal.h: Assume <wchar.h>.
88971         * m4/regex.m4: Likewise.
88972         * modules/stdint (Depends-on): Depend on wchar.
88973         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
88974         * m4/stdint.m4: Likewise.
88975         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
88976         * modules/strftime (Depends-on): Depend on wchar.
88977         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
88978         * modules/strtol (Depends-on): Depend on wchar.
88979         * lib/strtol.c: Assume <wchar.h>.
88980         * modules/wcwidth (Depends-on): Depend on wchar.
88981         * lib/wcwidth.h: Assume <wchar.h>.
88982         * m4/wcwidth.m4: Likewise.
88984 2007-01-16  Bruno Haible  <bruno@clisp.org>
88986         * modules/csharpexec-script: New, created from...
88987         * modules/csharpexec: ... this.
88989 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
88991         * modules/javaexec-script: New, created from...
88992         * modules/javaexec: ... this.
88994 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88996         * modules/poll (Dependencies): Add sys_select.
88998 2007-01-15  Jim Meyering  <jim@meyering.net>
89000         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
89001         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
89002         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
89003         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
89005 2007-01-15  Bruno Haible  <bruno@clisp.org>
89007         * modules/striconveh: New file.
89008         * lib/striconveh.h: New file.
89009         * lib/striconveh.c: New file.
89010         * MODULES.html.sh (Internationalization functions): Add striconveh.
89012         * modules/striconveh-tests: New file.
89013         * tests/test-striconveh.c: New file.
89015 2007-01-15  Bruno Haible  <bruno@clisp.org>
89017         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
89018         not from GNU libiconv or GNU libc.
89020 2007-01-15  Bruno Haible  <bruno@clisp.org>
89022         * doc/gnulib-intro.texi (Copyright): Explain the different license
89023         terms for module descriptions, autoconf macros, tests, documentation.
89025 2007-01-14  Bruno Haible  <bruno@clisp.org>
89027         * modules/striconv-tests: New file.
89028         * tests/test-striconv.c: New file.
89030 2007-01-14  Bruno Haible  <bruno@clisp.org>
89032         * modules/iconv-tests: New file.
89033         * tests/test-iconv.c: New file.
89035 2007-01-14  Bruno Haible  <bruno@clisp.org>
89037         * gnulib-tool (func_get_license): For test modules, use the license of
89038         the main module.
89040 2007-01-14  Bruno Haible  <bruno@clisp.org>
89042         * modules/iconv (Include): Clarify that <iconv.h> can only be included
89043         if iconv is found to exist.
89045 2007-01-14  Bruno Haible  <bruno@clisp.org>
89047         * modules/c-ctype-tests: New file.
89048         * tests/test-c-ctype.c: New file.
89050 2007-01-14  Bruno Haible  <bruno@clisp.org>
89052         * modules/binary-io-tests: New file.
89053         * tests/test-binary-io.sh: New file.
89054         * tests/test-binary-io.c: New file.
89056 2007-01-14  Bruno Haible  <bruno@clisp.org>
89058         * modules/array-oset-tests: New file.
89059         * tests/test-array_oset.c: New file.
89061 2007-01-14  Bruno Haible  <bruno@clisp.org>
89063         * modules/array-list-tests: New file.
89064         * tests/test-array_list.c: New file.
89066 2007-01-14  Bruno Haible  <bruno@clisp.org>
89068         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
89069         and make.
89070         Reported by Simon Josefsson in
89071         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
89073 2007-01-14  Bruno Haible  <bruno@clisp.org>
89075         * modules/allocsa-tests: New file.
89076         * tests/test-allocsa.c: New file.
89078 2007-01-14  Bruno Haible  <bruno@clisp.org>
89080         * modules/fchdir (Depends-on): Add absolute-header.
89081         * modules/unistd (Depends-on): Likewise.
89083 2006-12-30  Bruno Haible  <bruno@clisp.org>
89085         * modules/fchdir: New file.
89086         * modules/unistd (Files): Add lib/unistd_.h.
89087         (Makefile.am): Generate unistd.h from unistd_.h.
89088         * lib/fchdir.c: New file.
89089         * lib/dirent_.h: New file.
89090         * lib/unistd_.h: New file.
89091         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
89092         * m4/fchdir.m4: New file.
89093         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
89094         (gl_HEADER_UNISTD): Invoke it.
89095         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
89096         function.
89097         * lib/backupfile.c (opendir, closedir): Undefine.
89098         * lib/chown.c (open, close): Undefine.
89099         * lib/clean-temp.c (open, close): Undefine.
89100         * lib/copy-file.c (open, close): Undefine.
89101         * lib/execute.c (open, close): Undefine.
89102         * lib/fsusage.c (open, close): Undefine.
89103         * lib/gc-gnulib.c (open, close): Undefine.
89104         * lib/getcwd.c (opendir, closedir): Undefine.
89105         * lib/glob.c (opendir, closedir): Undefine.
89106         * lib/javacomp.c (open, close): Undefine.
89107         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
89108         * lib/openat-proc.c (open, close): Undefine.
89109         * lib/pagealign_alloc.c (open, close): Undefine.
89110         * lib/pipe.c (open, close): Undefine.
89111         * lib/progreloc.c (open, close): Undefine.
89112         * lib/savedir.c (opendir, closedir): Undefine.
89113         * lib/utime.c (open, close): Undefine.
89114         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
89116 2007-01-10  Bruno Haible  <bruno@clisp.org>
89118         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
89120 2007-01-12  Eric Blake  <ebb9@byu.net>
89122         Provide a robust <wchar.h>.  Further simplifications are now
89123         possible in other modules, but not included here.
89124         * modules/wchar: New module.
89125         * m4/wchar.m4: New file.
89126         * lib/wchar_.h: Likewise.
89127         * modules/mbchar (Depends-on): Depend on wchar, as the first use
89128         of the new module.
89129         * MODULES.html.sh (Extended multibyte and wide character utilities):
89130         New section.
89132 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
89134         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
89135         to a reasonable default for memory allocation.
89136         (xreadlink): Don't allocate a huge buffer, to work around a buggy
89137         file system that reports garbage st_size values for symlinks.
89138         Problem reported by Liyang Hu.
89140 2007-01-11  Simon Josefsson  <simon@josefsson.org>
89142         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
89143         Emacs .#* auto-save files).
89145 2007-01-11  Bruno Haible  <bruno@clisp.org>
89147         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
89148         directory.
89150 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
89152         Use @...@ consistently in lib/wctype_.h.
89153         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
89154         on it being set to 1 or 0.
89155         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
89156         go back to AC_SUBSTing it.
89157         * modules/wctype (Makefile.am): Undo previous change.
89159 2007-01-10  Eric Blake  <ebb9@byu.net>
89161         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
89162         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
89163         * modules/wctype (Makefile.am): Likewise.
89164         Reported by Chris McGuire.
89166 2007-01-10  Jim Meyering  <jim@meyering.net>
89168         fts.c: a small readability/maintainability improvement
89169         * lib/fts.c (fts_read): Make this code slightly more readable and
89170         maintainable by hoisting the "sp->fts_cur = p" assignments to
89171         immediately follow the statements that set P.  Derived from
89172         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
89174 2007-01-10  Eric Blake  <ebb9@byu.net>
89176         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
89177         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
89178         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
89179         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
89180         Reported by Chris McGuire.
89182 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89184         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
89185         in sed script.
89187 2007-01-09  Bruno Haible  <bruno@clisp.org>
89189         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
89190         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
89191         variables.
89192         (func_module): Use them.
89194 2007-01-09  Bruno Haible  <bruno@clisp.org>
89196         * modules/unistr/base: New file.
89197         * lib/unistr.h: New file.
89199         * modules/unistr/u8-to-u16: New file.
89200         * lib/unistr/u8-to-u16.c: New file.
89202         * modules/unistr/u8-to-u32: New file.
89203         * lib/unistr/u8-to-u32.c: New file.
89205         * modules/unistr/u16-to-u8: New file.
89206         * lib/unistr/u16-to-u8.c: New file.
89208         * modules/unistr/u16-to-u32: New file.
89209         * lib/unistr/u16-to-u32.c: New file.
89211         * modules/unistr/u32-to-u8: New file.
89212         * lib/unistr/u32-to-u8.c: New file.
89214         * modules/unistr/u32-to-u16: New file.
89215         * lib/unistr/u32-to-u16.c: New file.
89217         * modules/unistr/u8-check: New file.
89218         * modules/unistr/u16-check: New file.
89219         * modules/unistr/u32-check: New file.
89220         * lib/unistr/u8-check.c: New file.
89221         * lib/unistr/u16-check.c: New file.
89222         * lib/unistr/u32-check.c: New file.
89224         * modules/unistr/u8-chr: New file.
89225         * modules/unistr/u16-chr: New file.
89226         * modules/unistr/u32-chr: New file.
89227         * lib/unistr/u8-chr.c: New file.
89228         * lib/unistr/u16-chr.c: New file.
89229         * lib/unistr/u32-chr.c: New file.
89231         * modules/unistr/u8-cmp: New file.
89232         * modules/unistr/u16-cmp: New file.
89233         * modules/unistr/u32-cmp: New file.
89234         * lib/unistr/u8-cmp.c: New file.
89235         * lib/unistr/u16-cmp.c: New file.
89236         * lib/unistr/u32-cmp.c: New file.
89238         * modules/unistr/u8-cpy: New file.
89239         * modules/unistr/u16-cpy: New file.
89240         * modules/unistr/u32-cpy: New file.
89241         * lib/unistr/u8-cpy.c: New file.
89242         * lib/unistr/u16-cpy.c: New file.
89243         * lib/unistr/u32-cpy.c: New file.
89244         * lib/unistr/u-cpy.h: New file.
89246         * modules/unistr/u8-cpy-alloc: New file.
89247         * modules/unistr/u16-cpy-alloc: New file.
89248         * modules/unistr/u32-cpy-alloc: New file.
89249         * lib/unistr/u8-cpy-alloc.c: New file.
89250         * lib/unistr/u16-cpy-alloc.c: New file.
89251         * lib/unistr/u32-cpy-alloc.c: New file.
89252         * lib/unistr/u-cpy-alloc.h: New file.
89254         * modules/unistr/u8-endswith: New file.
89255         * modules/unistr/u16-endswith: New file.
89256         * modules/unistr/u32-endswith: New file.
89257         * lib/unistr/u8-endswith.c: New file.
89258         * lib/unistr/u16-endswith.c: New file.
89259         * lib/unistr/u32-endswith.c: New file.
89260         * lib/unistr/u-endswith.h: New file.
89262         * modules/unistr/u8-mblen: New file.
89263         * modules/unistr/u16-mblen: New file.
89264         * modules/unistr/u32-mblen: New file.
89265         * lib/unistr/u8-mblen.c: New file.
89266         * lib/unistr/u16-mblen.c: New file.
89267         * lib/unistr/u32-mblen.c: New file.
89269         * modules/unistr/u8-mbtouc: New file.
89270         * modules/unistr/u16-mbtouc: New file.
89271         * modules/unistr/u32-mbtouc: New file.
89272         * lib/unistr/u8-mbtouc.c: New file.
89273         * lib/unistr/u16-mbtouc.c: New file.
89274         * lib/unistr/u32-mbtouc.c: New file.
89276         * modules/unistr/u8-mbtouc-safe: New file.
89277         * modules/unistr/u16-mbtouc-safe: New file.
89278         * modules/unistr/u32-mbtouc-safe: New file.
89279         * lib/unistr/u8-mbtouc-safe.c: New file.
89280         * lib/unistr/u16-mbtouc-safe.c: New file.
89281         * lib/unistr/u32-mbtouc-safe.c: New file.
89283         * modules/unistr/u8-move: New file.
89284         * modules/unistr/u16-move: New file.
89285         * modules/unistr/u32-move: New file.
89286         * lib/unistr/u8-move.c: New file.
89287         * lib/unistr/u16-move.c: New file.
89288         * lib/unistr/u32-move.c: New file.
89289         * lib/unistr/u-move.h: New file.
89291         * modules/unistr/u8-next: New file.
89292         * modules/unistr/u16-next: New file.
89293         * modules/unistr/u32-next: New file.
89294         * lib/unistr/u8-next.c: New file.
89295         * lib/unistr/u16-next.c: New file.
89296         * lib/unistr/u32-next.c: New file.
89298         * modules/unistr/u8-prev: New file.
89299         * modules/unistr/u16-prev: New file.
89300         * modules/unistr/u32-prev: New file.
89301         * lib/unistr/u8-prev.c: New file.
89302         * lib/unistr/u16-prev.c: New file.
89303         * lib/unistr/u32-prev.c: New file.
89305         * modules/unistr/u8-set: New file.
89306         * modules/unistr/u16-set: New file.
89307         * modules/unistr/u32-set: New file.
89308         * lib/unistr/u8-set.c: New file.
89309         * lib/unistr/u16-set.c: New file.
89310         * lib/unistr/u32-set.c: New file.
89311         * lib/unistr/u-set.h: New file.
89313         * modules/unistr/u8-startswith: New file.
89314         * modules/unistr/u16-startswith: New file.
89315         * modules/unistr/u32-startswith: New file.
89316         * lib/unistr/u8-startswith.c: New file.
89317         * lib/unistr/u16-startswith.c: New file.
89318         * lib/unistr/u32-startswith.c: New file.
89319         * lib/unistr/u-startswith.h: New file.
89321         * modules/unistr/u8-stpcpy: New file.
89322         * modules/unistr/u16-stpcpy: New file.
89323         * modules/unistr/u32-stpcpy: New file.
89324         * lib/unistr/u8-stpcpy.c: New file.
89325         * lib/unistr/u16-stpcpy.c: New file.
89326         * lib/unistr/u32-stpcpy.c: New file.
89327         * lib/unistr/u-stpcpy.h: New file.
89329         * modules/unistr/u8-stpncpy: New file.
89330         * modules/unistr/u16-stpncpy: New file.
89331         * modules/unistr/u32-stpncpy: New file.
89332         * lib/unistr/u8-stpncpy.c: New file.
89333         * lib/unistr/u16-stpncpy.c: New file.
89334         * lib/unistr/u32-stpncpy.c: New file.
89335         * lib/unistr/u-stpncpy.h: New file.
89337         * modules/unistr/u8-strcat: New file.
89338         * modules/unistr/u16-strcat: New file.
89339         * modules/unistr/u32-strcat: New file.
89340         * lib/unistr/u8-strcat.c: New file.
89341         * lib/unistr/u16-strcat.c: New file.
89342         * lib/unistr/u32-strcat.c: New file.
89343         * lib/unistr/u-strcat.h: New file.
89345         * modules/unistr/u8-strchr: New file.
89346         * modules/unistr/u16-strchr: New file.
89347         * modules/unistr/u32-strchr: New file.
89348         * lib/unistr/u8-strchr.c: New file.
89349         * lib/unistr/u16-strchr.c: New file.
89350         * lib/unistr/u32-strchr.c: New file.
89352         * modules/unistr/u8-strcmp: New file.
89353         * modules/unistr/u16-strcmp: New file.
89354         * modules/unistr/u32-strcmp: New file.
89355         * lib/unistr/u8-strcmp.c: New file.
89356         * lib/unistr/u16-strcmp.c: New file.
89357         * lib/unistr/u32-strcmp.c: New file.
89359         * modules/unistr/u8-strcpy: New file.
89360         * modules/unistr/u16-strcpy: New file.
89361         * modules/unistr/u32-strcpy: New file.
89362         * lib/unistr/u8-strcpy.c: New file.
89363         * lib/unistr/u16-strcpy.c: New file.
89364         * lib/unistr/u32-strcpy.c: New file.
89365         * lib/unistr/u-strcpy.h: New file.
89367         * modules/unistr/u8-strcspn: New file.
89368         * modules/unistr/u16-strcspn: New file.
89369         * modules/unistr/u32-strcspn: New file.
89370         * lib/unistr/u8-strcspn.c: New file.
89371         * lib/unistr/u16-strcspn.c: New file.
89372         * lib/unistr/u32-strcspn.c: New file.
89373         * lib/unistr/u-strcspn.h: New file.
89375         * modules/unistr/u8-strdup: New file.
89376         * modules/unistr/u16-strdup: New file.
89377         * modules/unistr/u32-strdup: New file.
89378         * lib/unistr/u8-strdup.c: New file.
89379         * lib/unistr/u16-strdup.c: New file.
89380         * lib/unistr/u32-strdup.c: New file.
89381         * lib/unistr/u-strdup.h: New file.
89383         * modules/unistr/u8-strlen: New file.
89384         * modules/unistr/u16-strlen: New file.
89385         * modules/unistr/u32-strlen: New file.
89386         * lib/unistr/u8-strlen.c: New file.
89387         * lib/unistr/u16-strlen.c: New file.
89388         * lib/unistr/u32-strlen.c: New file.
89389         * lib/unistr/u-strlen.h: New file.
89391         * modules/unistr/u8-strmblen: New file.
89392         * modules/unistr/u16-strmblen: New file.
89393         * modules/unistr/u32-strmblen: New file.
89394         * lib/unistr/u8-strmblen.c: New file.
89395         * lib/unistr/u16-strmblen.c: New file.
89396         * lib/unistr/u32-strmblen.c: New file.
89398         * modules/unistr/u8-strmbtouc: New file.
89399         * modules/unistr/u16-strmbtouc: New file.
89400         * modules/unistr/u32-strmbtouc: New file.
89401         * lib/unistr/u8-strmbtouc.c: New file.
89402         * lib/unistr/u16-strmbtouc.c: New file.
89403         * lib/unistr/u32-strmbtouc.c: New file.
89405         * modules/unistr/u8-strncat: New file.
89406         * modules/unistr/u16-strncat: New file.
89407         * modules/unistr/u32-strncat: New file.
89408         * lib/unistr/u8-strncat.c: New file.
89409         * lib/unistr/u16-strncat.c: New file.
89410         * lib/unistr/u32-strncat.c: New file.
89411         * lib/unistr/u-strncat.h: New file.
89413         * modules/unistr/u8-strncmp: New file.
89414         * modules/unistr/u16-strncmp: New file.
89415         * modules/unistr/u32-strncmp: New file.
89416         * lib/unistr/u8-strncmp.c: New file.
89417         * lib/unistr/u16-strncmp.c: New file.
89418         * lib/unistr/u32-strncmp.c: New file.
89420         * modules/unistr/u8-strncpy: New file.
89421         * modules/unistr/u16-strncpy: New file.
89422         * modules/unistr/u32-strncpy: New file.
89423         * lib/unistr/u8-strncpy.c: New file.
89424         * lib/unistr/u16-strncpy.c: New file.
89425         * lib/unistr/u32-strncpy.c: New file.
89426         * lib/unistr/u-strncpy.h: New file.
89428         * modules/unistr/u8-strnlen: New file.
89429         * modules/unistr/u16-strnlen: New file.
89430         * modules/unistr/u32-strnlen: New file.
89431         * lib/unistr/u8-strnlen.c: New file.
89432         * lib/unistr/u16-strnlen.c: New file.
89433         * lib/unistr/u32-strnlen.c: New file.
89434         * lib/unistr/u-strnlen.h: New file.
89436         * modules/unistr/u8-strpbrk: New file.
89437         * modules/unistr/u16-strpbrk: New file.
89438         * modules/unistr/u32-strpbrk: New file.
89439         * lib/unistr/u8-strpbrk.c: New file.
89440         * lib/unistr/u16-strpbrk.c: New file.
89441         * lib/unistr/u32-strpbrk.c: New file.
89442         * lib/unistr/u-strpbrk.h: New file.
89444         * modules/unistr/u8-strrchr: New file.
89445         * modules/unistr/u16-strrchr: New file.
89446         * modules/unistr/u32-strrchr: New file.
89447         * lib/unistr/u8-strrchr.c: New file.
89448         * lib/unistr/u16-strrchr.c: New file.
89449         * lib/unistr/u32-strrchr.c: New file.
89451         * modules/unistr/u8-strspn: New file.
89452         * modules/unistr/u16-strspn: New file.
89453         * modules/unistr/u32-strspn: New file.
89454         * lib/unistr/u8-strspn.c: New file.
89455         * lib/unistr/u16-strspn.c: New file.
89456         * lib/unistr/u32-strspn.c: New file.
89457         * lib/unistr/u-strspn.h: New file.
89459         * modules/unistr/u8-strstr: New file.
89460         * modules/unistr/u16-strstr: New file.
89461         * modules/unistr/u32-strstr: New file.
89462         * lib/unistr/u8-strstr.c: New file.
89463         * lib/unistr/u16-strstr.c: New file.
89464         * lib/unistr/u32-strstr.c: New file.
89465         * lib/unistr/u-strstr.h: New file.
89467         * modules/unistr/u8-strtok: New file.
89468         * modules/unistr/u16-strtok: New file.
89469         * modules/unistr/u32-strtok: New file.
89470         * lib/unistr/u8-strtok.c: New file.
89471         * lib/unistr/u16-strtok.c: New file.
89472         * lib/unistr/u32-strtok.c: New file.
89473         * lib/unistr/u-strtok.h: New file.
89475         * modules/unistr/u8-uctomb: New file.
89476         * modules/unistr/u16-uctomb: New file.
89477         * modules/unistr/u32-uctomb: New file.
89478         * lib/unistr/u8-uctomb.c: New file.
89479         * lib/unistr/u16-uctomb.c: New file.
89480         * lib/unistr/u32-uctomb.c: New file.
89482         * MODULES.html.sh (Unicode string functions): Add the new modules.
89484 2007-01-08  Bruno Haible  <bruno@clisp.org>
89486         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
89487         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
89488         subdirectories.
89490 2007-01-08  Karl Berry  <karl@gnu.org>
89492         * doc/error.texi: mention that main() fns must set program_name
89493         when progname is used.
89495 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
89497         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
89498         WCTYPE_H is empty, for the benefit of builds from non-distclean
89499         directories.  Problem reported by Eric Blake in
89500         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
89502 2007-01-08  Bruno Haible  <bruno@clisp.org>
89504         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
89505         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
89506         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
89507         PROVIDE_CANONICALIZE_FILENAME_MODE.
89508         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
89510 2007-01-08  Bruno Haible  <bruno@clisp.org>
89512         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
89513         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
89514         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
89515         * lib/fts.c: Likewise.
89516         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
89518 2006-12-25  Bruno Haible  <bruno@clisp.org>
89520         * modules/utf8-ucs4-safe: New file.
89521         * lib/utf8-ucs4-safe.h: New file.
89522         * lib/unistr/utf8-ucs4-safe.c: New file.
89524         * modules/utf16-ucs4-safe: New file.
89525         * lib/utf16-ucs4-safe.h: New file.
89526         * lib/unistr/utf16-ucs4-safe.c: New file.
89528         * MODULES.html.sh (Unicode string functions): Add the new modules.
89530 2007-01-08  Bruno Haible  <bruno@clisp.org>
89532         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
89533         (Depends-on): Add unitypes.
89534         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
89535         (u8_mbtouc_aux): Move out to separate file.
89536         (u8_mbtouc): Use ucs4_t, uint8_t types.
89537         * lib/unistr/utf8-ucs4.c: New file.
89539         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
89540         (Depends-on): Add unitypes.
89541         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
89542         (u16_mbtouc_aux): Move out to separate file.
89543         (u16_mbtouc): Use ucs4_t, uint16_t types.
89544         * lib/unistr/utf16-ucs4.c: New file.
89546         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
89547         (Depends-on): Add unitypes.
89548         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
89549         (u8_uctomb_aux): Move out to separate file.
89550         (u8_uctomb): Use ucs4_t, uint8_t types.
89551         * lib/unistr/ucs4-utf8.c: New file.
89553         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
89554         (Depends-on): Add unitypes.
89555         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
89556         (u16_uctomb_aux): Move out to separate file.
89557         (u16_uctomb): Use ucs4_t, uint16_t types.
89558         * lib/unistr/ucs4-utf16.c: New file.
89560 2006-12-25  Bruno Haible  <bruno@clisp.org>
89562         * modules/unitypes: New file.
89563         * lib/unitypes.h: New file.
89564         * MODULES.html.sh (func_all_modules): New section "Unicode string
89565         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
89566         this section. Add unitypes.
89568 2007-01-08  Bruno Haible  <bruno@clisp.org>
89570         Avoid variable names that conflict with those from libtool.
89571         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
89572         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
89573         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
89574         library_names_spec to acl_library_names_spec, hardcode_* to
89575         acl_hardcode_*.
89576         Reported by Ralf Wildenhues.
89578 2007-01-08  Bruno Haible  <bruno@clisp.org>
89580         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
89581         definition.
89582         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
89583         definition.
89584         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
89585         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
89586         definition.
89587         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
89588         definition.
89589         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
89590         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
89591         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
89592         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
89593         definition.
89594         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
89595         definition.
89596         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
89597         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
89598         GC_USE_<algorithm>.
89599         * lib/gc-libgcrypt.c: Likewise.
89600         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
89601         * modules/gc-arctwo (configure.ac): Likewise.
89602         * modules/gc-des (configure.ac): Likewise.
89603         * modules/gc-hmac-md5 (configure.ac): Likewise.
89604         * modules/gc-hmac-sha1 (configure.ac): Likewise.
89605         * modules/gc-md2 (configure.ac): Likewise.
89606         * modules/gc-md4 (configure.ac): Likewise.
89607         * modules/gc-md5 (configure.ac): Likewise.
89608         * modules/gc-random (configure.ac): Likewise.
89609         * modules/gc-rijndael (configure.ac): Likewise.
89610         * modules/gc-sha1 (configure.ac): Likewise.
89612 2007-01-08  Bruno Haible  <bruno@clisp.org>
89614         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
89615         macro definition.
89616         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
89617         definition.
89618         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
89619         definition.
89620         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
89621         * modules/fcntl-safer (configure.ac): Likewise.
89622         * modules/fopen-safer (configure.ac): Likewise.
89623         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
89624         GNULIB_FWRITEERROR macro definition.
89626 2007-01-08  Bruno Haible  <bruno@clisp.org>
89628         * m4/gnulib-common.m4: New file.
89629         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
89630         (func_get_filelist): Add m4/gnulib-common.m4.
89632 2007-01-08  Bruno Haible  <bruno@clisp.org>
89634         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
89635         command.
89637 2007-01-08  Jim Meyering  <jim@meyering.net>
89639         Use a more robust test for a "can't happen" condition.
89640         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
89641         narrowed the st_size value.  Presuming the "can't happen" condition
89642         is true, that narrowing could conceivably convert an invalid st_size
89643         value into a valid one.  Instead, use a change based on Matthew
89644         Woehlke's original patch.
89646         Slight readability improvement: use an assert-like macro
89647         in place of literal "abort ()" uses.
89648         * lib/fts.c (fts_assert): Define.
89649         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
89650         Use this macro instead of a bare 'abort'.
89652 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
89654         Don't worry about using IRIX 5.3's wctype.h broken definitions;
89655         simply work around them.
89656         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
89657         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
89658         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
89659         declaring.
89660         Don't bother to define as macros, since the standard doesn't require it.
89661         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
89662         longer worry about IRIX 5.3.
89663         (HAVE_WCTYPE_CTMP_BUG): Remove.
89665 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
89667         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
89668         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
89669         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
89670         Problems reported by Georg Schwarz for IRIX 5.3.
89672         * gnulib-tool (autoconf_minversion): Take the maximum version number
89673         found, not the minimum.  Problem reported by James Youngman.
89675 2007-01-03  Karl Berry  <karl@gnu.org>
89677         * doc/error.texi: new file, explaining interaction with progname.
89678         * doc/gnulib.texi: include it.  Update copyright.
89680 2007-01-03  Simon Josefsson  <simon@josefsson.org>
89682         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
89683         AC_CANONICAL_HOST, to improve autobuild outputs.
89685 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
89686             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
89688         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
89689         sockets, server sockets, and other file descriptors.  Count errors
89690         to compute the return value.  Reorder the code a bit to be easier
89691         to follow.  Don't set event bits that were not requested (except
89692         POLLERR and POLLHUP).
89694 2007-01-01  Bruno Haible  <bruno@clisp.org>
89696         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
89698 2007-01-03  Jim Meyering  <jim@meyering.net>
89700         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
89702 2007-01-02  Bruno Haible  <bruno@clisp.org>
89704         * modules/settime (Include): Require timespec.h.
89705         * modules/nanosleep (Include): Likewise.
89707 2007-01-01  Bruno Haible  <bruno@clisp.org>
89709         * gnulib-tool (func_emit_copyright_notice): Bump year.
89710         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
89712 2007-01-01  Bruno Haible  <bruno@clisp.org>
89714         Improve support for OpenBSD.
89715         * build-aux/config.rpath (libname_spec): Export.
89716         (library_names_spec): New variable. Export.
89717         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
89718         library_names_spec from the config.rpath output. Locate shared library
89719         through the name pattern in library_names_spec.
89721 2007-01-01  Eric Blake  <ebb9@byu.net>
89723         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
89725 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
89727         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
89728         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
89729         assume the C locale, and avoid an "eval" that could cause trouble.
89730         Problem with SORT reported by Bob Proulx.
89732         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
89733         Define.  Trivial patch from Henning Nielsen Lund, originally
89734         sent to bug-grep@gnu.org today.
89736 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
89738         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
89739         struct stat.  Problem reported by Henning Nielsen Lund.
89740         * lib/acl.c: Include acl.h first, to check interface.  Don't
89741         bother to include sys/types.h and sys/stat.h again.
89743 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89745         Import the following change from libc; problem reported by
89746         Sven Verdoolaege.
89748         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
89750         [BZ #1373]
89751         * lib/argp.h: Remove __NTH for __argp_usage inline function.
89753 2006-12-28  Jim Meyering  <jim@meyering.net>
89755         * build-aux/announce-gen: Do not assume that the package
89756         builds any of tar.gz, tar.bz2, and .xdelta files.
89757         Suggestion from Simon Josefsson.
89759 2006-12-28  Simon Josefsson  <simon@josefsson.org>
89761         * modules/announce-gen: New file.
89763 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
89765         * lib/mbchar.h: Just include <wctype.h>; the wctype module
89766         handles its gotchas now.
89767         * lib/mbswidth.c: Likewise.
89768         * lib/wcwidth.h: Likewise.
89769         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
89770         and iswcntrl; the wctype module does this stuff now.
89771         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
89772         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
89773         * modules/mbchar (Depends-on): Add wctype.
89774         * modules/mbswidth (Depends-on): Likewise.
89775         * modules/wcwidth (Depends-on): Likewise.
89777 2006-12-27  Eric Blake  <ebb9@byu.net>
89779         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
89780         module uses more than what <wctype.h> is required to provide.
89782 2006-12-26  Eric Blake  <ebb9@byu.net>
89784         * gnulib-tool (sed_extract_prog): Avoid space-tab.
89786 2006-12-26  Eric Blake  <ebb9@byu.net>
89788         * modules/absolute-header: New module.
89789         * modules/fcntl (Depends-on): Depend on it.
89790         * modules/inttypes (Depends-on): Likewise.
89791         * modules/stdint (Depends-on): Likewise.
89792         * modules/sys_stat (Depends-on): Likewise.
89793         * modules/wctype (Depends-on): Likewise.
89794         * MODULES.html.sh (Support for building libraries and
89795         executables): Document it.
89797 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
89799         * gnulib-tool (SED): Remove, undoing previous change.
89800         The problem was that it broke coreutils on Solaris, because
89801         "sed --posix" leaked into a makefile.
89802         (sed): New alias, if 'alias' and GNU sed.
89804 2006-12-24  Jim Meyering  <jim@meyering.net>
89806         Work around an fchownat bug in glibc-2.4:
89807         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
89808         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
89809         in spite of the -P option.
89810         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
89811         New macros.
89812         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
89813         * modules/openat (Files): Add lib/fchownat.c.
89814         * lib/openat.c (fchownat): Don't define here.  Move to...
89815         * lib/fchownat.c: ...this new file.
89817 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89819         Fix bug reported by Bruno Haible in
89820         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
89821         where quotearg.c didn't compile on Mac OS X 10.2 because it
89822         lacks <wchar.h> and wint_t.
89823         * lib/wctype_.h (__wctype_wint_t): New type.
89824         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
89825         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
89826         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
89827         Arg is now of type __wctype_wint_t, not wint_t.
89828         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
89829         substitute HAVE_WINT_T.
89830         * modules/wctype (Files): Add m4/wint_t.m4.
89831         (wctype.h): Substitute HAVE_WINT_T.
89833 2006-12-23  Bruno Haible  <bruno@clisp.org>
89835         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
89837 2006-12-23  Bruno Haible  <bruno@clisp.org>
89839         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
89840         S_ISLNK.
89841         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
89842         mingw.
89844 2006-12-22  Bruno Haible  <bruno@clisp.org>
89846         * lib/copy-file.c: Include acl.h.
89847         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
89848         Close the file descriptors only after being done with copy_acl.
89849         * modules/copy-file (Depends-on): Add acl.
89851 2006-12-22  Bruno Haible  <bruno@clisp.org>
89853         * gnulib-tool (SED): New variable.
89854         Use $SED instead of sed everywhere.
89856 2006-12-22  Bruno Haible  <bruno@clisp.org>
89858         * modules/no-c++: New file.
89859         * m4/no-c++.m4: New file.
89860         * MODULES.html.sh (Support for building libraries and executables):
89861         Add no-c++.
89863 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
89865         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
89866         Include <limits.h>, and use its INT_MAX to rewrite the
89867         j loop so that it does not overflow 'int'.  Problem reported by
89868         Ralf Wildenhues in
89869         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
89870         Play it safe by shifting left by 1 rather than multiplying by 2,
89871         as GCC is less likely to optimize this away when the value
89872         is signed (when it assumes overflow leads to undefined behavior).
89873         Also, don't assume time_t uses two's complement.
89875 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
89877         * MODULES.html.sh: New module wctype.
89878         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
89879         * lib/fnmatch.c: Don't bother to include <wchar.h> before
89880         <wctype.h>, since the new wctype module should fix this.
89881         * lib/quotearg.c: Include <wctype.h> unconditionally, since
89882         the wctype module should arrange for it.
89883         * lib/regex_internal.h: Likewise.
89884         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
89885         since the wctype module should handle this now.
89886         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
89887         * modules/fnmatch (Depends-on): Add wctype.
89888         * modules/quotearg (Depends-on): Likewise.
89889         * modules/regex (Depends-on): Likewise.
89891 2006-12-19  Bruno Haible  <bruno@clisp.org>
89893         * lib/strdup.h [C++]: Wrap definitions in extern "C".
89894         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
89896 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89898         * modules/savewd (Depends-on): Fix dependency on fcntl.
89900 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
89902         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
89903         conforms to C99, rather than relying on the user's environment
89904         setting of STDINT_H.
89906 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
89907         and Eric Blake  <ebb9@byu.net>
89909         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
89910         This is more consistent with the other defines here.
89911         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
89912         Port to z/OS.  Problem reported by Paul Gilmartin.
89913         Change local vars to use gl_ prefix rather than ac_.
89914         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
89915         with other defines.
89916         * modules/double-slash-root: New module.
89917         * modules/dirname (Files): Remove m4/double-slash-root.m4.
89918         (Depends-on): Add double-slash-root.
89919         * MODULES.html.sh (File system functions): Mention new module.
89921 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
89923         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
89924         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
89925         This is for the benefit of gzip, which doesn't do i18n.
89927 2006-12-12  Jim Meyering  <jim@meyering.net>
89929         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
89930         Reported by Andreas Schwab <schwab@suse.de>.
89932 2006-12-12  Bruno Haible  <bruno@clisp.org>
89934         Merge these changes.
89935         2006-09-05  Bruno Haible  <bruno@clisp.org>
89936         * lib/iconvme.c (iconv_string): No need to save and restore errno when
89937         iconv_alloc succeeded.
89938         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
89939         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
89940         test for " && dest " at the end - dest is always != NULL there. Call
89941         iconv with 4xNULL arguments initially, to reset the state. Call iconv
89942         with 2xNULL arguments, also to flush the state storage. Handle the
89943         IRIX iconv behaviour. Realloc the final result, to throw away unused
89944         memory.
89946 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
89948         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
89949         and fchmodat unconditionally, since glibc 2.4 has them.
89950         Problem reported by Arkadiusz Miskiewicz.
89952 2006-12-10  Bruno Haible  <bruno@clisp.org>
89954         * gnulib-tool (func_import): Show the include files only for those
89955         modules that are copied and specified.
89956         Reported by Karl Berry.
89958 2006-12-08  Jim Meyering  <jim@meyering.net>
89960         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
89961         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
89963         * build-aux/announce-gen: Add two new options, both optional:
89964         --bootstrap-tools=TOOL_LIST
89965               a comma-separated list of tools, e.g.,
89966               autoconf,automake,bison,gnulib
89967         --gnulib-snapshot-date=DATE
89968               if gnulib is in the bootstrap tool list,
89969               then report this as the snapshot date.
89970               If not specified, use the current date/time.
89971               If you specify a date here, be sure it's UTC.
89973 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89975         * tests/test-argp-2.sh: Fix test to match actual output.
89976         (func_compare): Fix sed script to be portable.
89978 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
89980         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
89981         workaround for this case.  It is not autoconfigured now; offhand
89982         it's hard to see how to autoconfigure it.
89984 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
89986         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
89987         a directory that is about to be chowned.  Such a directory's
89988         initial file permissions should permit the owner only and this
89989         should not be changed until after the chown, since the group and
89990         other bits would be incorrect if they granted permission before
89991         the chown.
89993         Fix porting problem for iswctype reported by Georg Schwarz in:
89994         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
89995         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
89996         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
89997         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
89998         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
90000 2006-12-03  Jim Meyering  <jim@meyering.net>
90002         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
90003         p->fts_statp may not yet be defined.
90004         (fts_read): Instead, set it in the caller, once p->fts_statp is
90005         sure to be defined, and corresponds to a top-level directory.
90006         This bug made du -x fail.  Here's the coreutils test case:
90007         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
90008         Reported by Mike Frysinger.
90010 2006-12-01  Jim Meyering  <jim@meyering.net>
90012         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
90013         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
90014         Reported by Simon Josefsson.
90016 2006-11-30  Jim Meyering  <jim@meyering.net>
90018         * m4/warning.m4: Use the all-permissive copyright notice
90019         recommended by RMS (rather than LGPL).
90020         * m4/vararrays.m4: Likewise.
90021         * m4/flexmember.m4: Likewise.
90023 2006-11-29  Bruno Haible  <bruno@clisp.org>
90025         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
90026         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
90027         using +=.
90028         Reported by Simon Josefsson <simon@josefsson.org>.
90030 2006-11-28  James Youngman  <jay@gnu.org>
90032         * README: Advise users that they might find the bug-gnulib@gnu.org
90033         and autotools-announce@gnu.org mailing lists useful.
90035 2006-11-28  Bruno Haible  <bruno@clisp.org>
90037         * m4/ptrdiff_max.m4: Remove file.
90039 2006-11-21  Bruno Haible  <bruno@clisp.org>
90041         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
90042         _AC_COMPUTE_INT.
90043         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
90044         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
90045         _AC_COMPUTE_INT.
90046         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
90047         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
90048         _AC_COMPUTE_INT.
90049         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
90051 2006-11-28  Jim Meyering  <jim@meyering.net>
90053         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
90054         warning from "gcc -Wshadow" about shadowing the builtin.
90056 2006-11-27  Bruno Haible  <bruno@clisp.org>
90058         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
90059         _AC_COMPUTE_INT.
90060         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
90062 2006-11-27  Bruno Haible  <bruno@clisp.org>
90063             Paul Eggert  <eggert@cs.ucla.edu>
90065         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
90067 2006-11-26  Bruno Haible  <bruno@clisp.org>
90069         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
90070         noinst_LTLIBRARIES.
90072 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
90073             Bruno Haible  <bruno@clisp.org>
90075         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
90076         if compiling with "gcc -ansi".
90078 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
90080         Fix some incompatibilities with gcc -ansi -pedantic.
90081         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
90082         if compiling pedantically with GCC, unless it's C99 or later.
90083         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
90084         it mishandles gcc -ansi -pedantic as well.
90085         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
90086         if gcc -pedantic.
90087         * lib/regexec.c (check_node_accept_bytes): Don't use auto
90088         initializers for struct if -pedantic, unless it's C99 or later.
90090 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
90092         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
90093         Don't close an fd more than once. Identical atimes indicate
90094         success, not failure.
90096 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
90098         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
90100 2006-11-23  Jim Meyering  <jim@meyering.net>
90102         * build-aux/announce-gen: New file.  From coreutils.
90104 2006-11-22  Jim Meyering  <jim@meyering.net>
90106         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
90107         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
90108         (fts_read): Use a temporary to narrow the overused st_size member
90109         before using it in a switch statement.  Reported by Matthew Woehlke.
90111         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
90112         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
90114 2006-11-20  Bruno Haible  <bruno@clisp.org>
90116         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
90117         changequote instead of pairs of brackets.
90118         Reported by Andreas Schwab <schwab@suse.de>.
90120 2006-11-21  Jim Meyering  <jim@meyering.net>
90122         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
90123         so as to remain compatible with older compilers.
90124         Patch from Michael Deutschmann.
90126 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
90128         * MODULES.html.sh (File system functions): Add openat.
90130         * lib/openat.h (rpl_fstatat): New macro, if
90131         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
90132         (fstatat): Define to rpl_fstatat under the same conditions,
90133         unless COMPILING_FSTATAT.
90134         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
90135         seems to have the bug.
90136         * lib/fstatat.c: New file.
90137         * modules/openat (Files): Add it.
90139 2006-11-20  Bruno Haible  <bruno@clisp.org>
90141         * Makefile: New file.
90143 2006-11-20  Jim Meyering  <jim@meyering.net>
90145         The beginnings of syntax-related checks for gnulib.
90146         * lib/Makefile: New file.
90147         * lib/t-idcache: New script.  Ensure that the two halves of
90148         idcache.c stay in sync.
90150         * lib/idcache.c: Adjust comments in user- and group- portions to
90151         be more accurate, and to be consistent with one another.
90153 2006-11-20  Jim Meyering  <jim@meyering.net>
90155         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
90156         continue using the flexible array member (thus, this module performs
90157         half as many malloc calls), with the addition that...
90158         (getgroup, getuser): Consistently record a non-match via an empty
90159         "name" string, and map an empty string match to a NULL return value.
90160         * modules/idcache (Depends-on): Re-add flexmember.
90162         * lib/idcache.c (getuser): Remove all uses of the register keyword.
90163         (getuidbyname, getgroup, getgidbyname): Likewise.
90165         Use cleaner syntax: NULL rather than 0.
90166         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
90168 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
90170         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
90171         It mishandled the case where the group was missing.
90172         Problem reported by Greg Schafer.
90173         * modules/idcache: Likewise.
90175 2006-11-18  Jim Meyering  <jim@meyering.net>
90177         * check-module (%exempt_header): Add exception for some
90178         conditionally-included headers.
90180         * modules/i-ring (Depends-on): Add verify.
90181         (License): Change to LGPL.
90183 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
90185         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
90186         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
90187         and inttostr.h.  Use snprintf rather than uinttostr, so that
90188         LGPLed code doesn't depend on GPLed.
90190 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
90192         * modules/inline (License): Change from GPL to LGPL.
90194 2006-11-17  Jim Meyering  <jim@meyering.net>
90196         * modules/d-type (License): Switch to LGPL.
90198 2006-11-15  Bruno Haible  <bruno@clisp.org>
90200         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
90202 2006-11-15  Eric Blake  <ebb9@byu.net>
90204         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
90205         the module dependency.
90207 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
90208             Bruno Haible  <bruno@clisp.org>
90210         * gnulib-tool (func_create_testdir): Add license consistency check.
90212 2006-11-15  Eric Blake  <ebb9@byu.net>
90214         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
90215         random "(cached)" in configure output.
90217 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90219         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
90220         test for conforming inttypes.h is both announced and cached.
90222         * MODULES.html.sh (seen_modules, seen_files): New variables.
90223         (func_module): Rewrite to use a few less gnulib-tool and sed
90224         invocations.  Avoid a couple of quadratic algorithms for ...
90225         (missed_modules, missed_files): ... these, with ...
90226         (func_append, func_tmpdir): ... these new functions, from
90227         gnulib-tool.  Analogously, install traps for cleanup.
90229         * tests/test-gc.c (main): Remove unused variables.
90230         * tests/test-read-file.c: Include stdlib.h, for 'free'.
90232 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
90234         * modules/inttostr (License): Change to LGPL.
90236 2006-11-14  Eric Blake  <ebb9@byu.net>
90238         * modules/tempname (License): Change to LGPL.
90240 2006-11-14  Eric Blake  <ebb9@byu.net>
90242         * doc/functions.texi (Function Portability): *printf functions on
90243         Cygwin now understand all POSIX size specifiers.
90245 2006-11-14  Bruno Haible  <bruno@clisp.org>
90247         * modules/c-ctype (License): Change to LGPL.
90249 2006-11-12  Bruno Haible  <bruno@clisp.org>
90251         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
90252         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
90253         for GNOME libraries, for which the include files are installed in
90254         subdirectories of $prefix/include.
90256 2006-11-12  Bruno Haible  <bruno@clisp.org>
90258         * m4/lib-link.m4: Require at least autoconf-2.54.
90259         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
90260         name to underscores for the --with option.
90262 2006-11-13  Bruno Haible  <bruno@clisp.org>
90264         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
90265         the tests directory.
90266         Reported by Ralf Wildenhues.
90268 2006-11-13  Bruno Haible  <bruno@clisp.org>
90270         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
90271         (func_emit_initmacro_end): Undo the override here.
90272         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
90273         Works around the famous automake error in coreutils.
90275 2006-11-13  Eric Blake  <ebb9@byu.net>
90277         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
90278         element, not its node.
90280 2006-11-12  Bruno Haible  <bruno@clisp.org>
90282         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
90283         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
90285 2006-11-12  Bruno Haible  <bruno@clisp.org>
90287         * gnulib-tool: New option --local-symlink.
90288         (func_usage): Document it.
90289         (lsymbolic): New variable.
90290         (func_import, func_create_testdir): If --symlink was not specified,
90291         test whether --local-symlink was specified and the file comes from
90292         the local_gnulib_dir.
90294 2006-11-12  Bruno Haible  <bruno@clisp.org>
90296         * gnulib-tool (func_ln): New function.
90297         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
90299 2006-11-12  Bruno Haible  <bruno@clisp.org>
90301         Finish support for source files in subdirectories.
90302         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
90303         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
90304         AUTOMAKE_OPTIONS.
90305         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
90307 2006-11-12  Bruno Haible  <bruno@clisp.org>
90309         * gnulib-tool (func_get_automake_snippet): Synthesize also an
90310         EXTRA_lib_SOURCES augmentation.
90311         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
90313 2006-11-12  Jim Meyering  <jim@meyering.net>
90315         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
90316         file descriptors.  This also averts a failure on systems with
90317         native openat support when a traversed directory lacks "x" access.
90318         * lib/fts_.h: Include "i-ring.h"
90319         (struct FTS) [fts_fd_ring]: New member.
90320         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
90321         (FCHDIR): Add parentheses.
90322         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
90323         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
90324         When descending, rather than simply closing the previous
90325         fts_cwd_fd value, push that file descriptor onto the ring.
90326         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
90327         (fts_open): Initialize the new fd_ring member.
90328         (fts_close): Clear the ring.
90329         (fts_safe_changedir): When possible, use our new fd_ring to skip
90330         the diropen and fstat and dev/ino comparison that would normally
90331         accompany a virtual `chdir ("..")'.
90333         * modules/fts (Depends-on): Add i-ring.
90334         * modules/i-ring: New module.
90335         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
90336         * m4/i-ring.m4: New file.
90338 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90340         * gnulib-tool (func_create_testdir): Fix replacement of
90341         `build-aux' in configure.ac.  Run autotools in gltests
90342         subdirectory.
90343         (func_create_testdir, func_create_megatestdir, test): There is
90344         no need for '--force' in most autotool invocations in a new
90345         tree.  Actually fail the whole test if any of the tools, or the
90346         configure or make stages fail.
90348         Sync from Automake.
90349         * build-aux/gnupload: Revert last change.  Add pointer to upload
90350         instructions of the GNU Maintenance Instructions.
90351         Suggestion by Karl Berry.
90353 2006-11-10  Jim Meyering  <jim@meyering.net>
90355         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
90357 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
90359         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
90360         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
90361         (bind_textdomain_codeset) [! ENABLE_NLS]:
90362         Evaluate all the arguments.  That way, callers get compatible behavior
90363         if the arguments have side effects.  Also, it avoids some GCC
90364         diagnostics in some cases; Joel E. Denny reported problems when Bison
90365         was configured with --enable-gcc-warnigs.
90367 2006-11-10  Jim Meyering  <jim@meyering.net>
90369         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
90370         relevant options in CFLAGS (like -O, -fno-inline) are taken into
90371         account.
90373 2006-11-10  Jim Meyering  <jim@meyering.net>
90375         * modules/inline: New file/module.
90376         * modules/xalloc (Files): Remove m4/inline.m4.
90377         (Depends-on): Add inline, instead.
90378         * modules/oset: Likewise.
90379         * modules/list: Likewise.
90381 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
90383         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
90384         Problem reported by Matthew Woehlke.
90386 2006-11-09  Bruno Haible  <bruno@clisp.org>
90388         * lib/tempname.c (gen_tempname): Remove variant that invokes
90389         __gen_tempname.
90390         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
90391         __gen_tempname.
90393 2006-11-08  Bruno Haible  <bruno@clisp.org>
90395         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
90396         to 'yes' instead of 'cross-compiling'.
90398 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
90400         * lib/quotearg.h (quotearg_free): New decl.
90401         * lib/quotearg.c (quotearg_free): New function.
90402         (slot0, nslots, slotvec0, slotvec):
90403         Now file-scope so that quotearg_free can get at them.
90405 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90407         Sync from Automake.
90408         * build-aux/gnupload: Add missing 'gnu' to example URL.
90409         Report by Karl Berry.
90411 2006-11-08  Bruno Haible  <bruno@clisp.org>
90413         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
90414         Suggested by Paul Eggert.
90416 2006-11-08  Jim Meyering  <jim@meyering.net>
90418         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
90419         It's already included if !_LIBC.
90420         (fts_safe_changedir): Add a comment.
90422 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
90424         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
90425         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
90426         Matthew Woehlke.
90428         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
90429         definitions up, to avoid colliding with change below.
90430         (static_inline) [HAVE_INLINE]: New macro.
90431         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
90432         Provide extern decls when !HAVE_INLINE.  Do not define unless
90433         static_inline is defined, either by us or by xmalloc.c.  Use
90434         static_inline rather than static inline.
90435         (XCALLOC): Optimize sizeof(T) = 1 case.
90436         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
90438 2006-11-07  Bruno Haible  <bruno@clisp.org>
90440         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
90441         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
90442         AC_C_INLINE.
90443         * modules/xalloc (Files): Add m4/inline.m4.
90445 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90447         * README: Fix typo.
90448         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
90449         (Miscellanous Notes): ...from this.
90451 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
90453         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
90454         Mention that offsetof should be used instead of sizeof.
90455         From Bruno Haible.
90457 2006-11-07  Bruno Haible  <bruno@clisp.org>
90459         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
90461 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
90463         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
90464         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
90465         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
90466         (gl_tree_add_before, gl_tree_add_after):
90467         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
90468         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
90469         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
90470         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
90471         (gl_linked_add_after, gl_linked_add_at): Likewise.
90472         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
90473         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
90474         (gl_tree_add_before, gl_tree_add_after): Likewise.
90475         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
90476         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
90477         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
90479 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90481         * lib/gl_oset.h: Use C comment style, not C++ comment style.
90483 2006-11-06  Bruno Haible  <bruno@clisp.org>
90485         * m4/inline.m4: New file.
90486         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
90487         * modules/list (Files): Add m4/inline.m4.
90488         * modules/oset (Files): Likewise.
90490 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
90492         * lib/idcache.c: Include <stddef.h>, for offsetof.
90493         (struct userid.name): Change from char * to a flexible array member.
90494         All uses changed.
90495         * modules/idcache (Depends-on): Add flexmember.
90497         * MODULES.html.sh (Core language properties): New module flexmember.
90498         * modules/flexmember, m4/flexmember.m4: New files.
90500         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
90501         inline functions that are identical with the old xnmalloc_inline,
90502         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
90503         that we can avoid some unnecessary integer multiplications and
90504         divisions in the common case where the element size is known at
90505         compile time.
90506         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
90507         needed.
90508         (xnboundedmalloc): Remove.
90509         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
90510         arguments, for consistency with rest of this header.
90511         (xcharalloc): Rewrite using XNMALLOC.
90512         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
90513         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
90514         versions have been moved to lib/xalloc.h and renamed to be the
90515         non-*_inline versions.
90516         (xmalloc, xrealloc): Implement without reference to the xnmalloc
90517         and xnrealloc functions, since those functions are now inline and
90518         now call us.
90519         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
90520         renaming described above.
90521         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
90522         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
90523         captures the dependency in AC_C_INLINE.
90525         New module canonicalize-lgpl, proposed by Charles Wilson in
90526         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
90527         with a few small changes afterwards.
90528         * MODULES.html.sh (File system functions): New module
90529         canonicalize-lgpl.
90530         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
90531         and canonicalize_file_name.
90532         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
90533         * modules/canonicalize-lgpl: New files.
90535 2006-11-05  Bruno Haible  <bruno@clisp.org>
90537         * gnulib-tool (func_import, func_create_testdir): Create directories
90538         also for files in subdirectories of lib/.
90540 2006-11-05  Bruno Haible  <bruno@clisp.org>
90542         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
90543         ANSI C compliant.
90545 2006-11-03  Bruno Haible  <bruno@clisp.org>
90547         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
90548         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
90549         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
90550         (xnboundedmalloc): New inline function.
90551         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
90552         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
90553         xmalloc.
90554         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
90555         xmalloc.
90556         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
90557         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
90558         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
90559         xmalloc.
90560         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
90561         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
90562         xmalloc.
90563         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
90564         gl_tree_add_after): Use XMALLOC instead of xmalloc.
90565         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
90566         xmalloc.
90567         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
90568         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
90569         gl_tree_add_after): Use XMALLOC instead of xmalloc.
90570         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
90571         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
90572         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
90573         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
90575 2006-11-03  Bruno Haible  <bruno@clisp.org>
90577         * lib/c-ctype.h [C++]: Define functions without name mangling.
90578         * lib/fwriteerror.h [C++]: Likewise.
90579         * lib/gcd.h [C++]: Likewise.
90580         * lib/linebreak.h [C++]: Likewise.
90582 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
90584         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
90585         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
90586         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
90587         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
90588         Check for functions and headers just once.
90589         Check for declaration of canonicalize_file_name.
90590         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
90592 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
90594         * gnulib-tool (func_import): Fix typo in actioncmd.
90596 2006-11-02  Bruno Haible  <bruno@clisp.org>
90598         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
90599         newline sequence in the Makefile.am snippet as a space, like "make"
90600         does.
90601         Reported by Roger Persson <perrog@gmail.com>.
90603 2006-11-01  Bruno Haible  <bruno@clisp.org>
90605         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
90606         already declared in <string.h>.
90607         * lib/strcase.h (strncasecmp): Don't declare it if yes.
90609 2006-11-01  Bruno Haible  <bruno@clisp.org>
90611         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
90612         * lib/strcase.h: Include <string.h>.
90613         (strcasecmp): Define to rpl_strcasecmp here.
90615 2006-11-01  Bruno Haible  <bruno@clisp.org>
90617         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
90619 2006-11-01  Eric Blake  <ebb9@byu.net>
90621         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
90623         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
90625 2006-10-29  Bruno Haible  <bruno@clisp.org>
90627         Make it compile in C++ mode.
90628         * lib/full-write.c (full_rw): Add a cast.
90630 2006-11-01  Bruno Haible  <bruno@clisp.org>
90632         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
90633         be POSIX compliant.
90634         Reported by Roger Persson <perrog@gmail.com>.
90636 2006-11-01  Eric Blake  <ebb9@byu.net>
90638         * lib/getopt_.h: Fix comments.
90640 2006-10-31  Eric Blake  <ebb9@byu.net>
90642         * modules/tmpdir (Depends-on): Add sys_stat.
90643         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
90644         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
90645         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
90646         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
90647         tempname.
90649 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
90651         Avoid some C++ diagnostics reported by Bruno Haible.
90652         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
90653         xmalloc.
90654         (quotearg_alloc): Use xcharalloc rather than xmalloc.
90655         (struct slotvec): Move to top level.
90656         (quotearg_n_options): Rewrite to avoid xmalloc.
90657         * lib/xalloc.h (xcharalloc): New function.
90658         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
90659         [defined __cplusplus]: Add function template that provides result
90660         type propagation.  This part of the change is from Bruno Haible.
90662 2006-10-29  Bruno Haible  <bruno@clisp.org>
90664         Make it compile in C++ mode.
90665         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
90666         * lib/strnlen1.c (strnlen1): Cast memchr result.
90667         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
90668         * lib/clean-temp.c (string_equals, string_hash): Add casts.
90669         (create_temp_dir): Rename local variable 'template'.
90670         (compile_csharp_using_sscli): Add cast.
90671         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
90672         * lib/findprog.c (find_in_path): Likewise.
90673         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
90674         * lib/wait-process.c (register_slave_subprocess): Likewise.
90676 2006-10-22  Bruno Haible  <bruno@clisp.org>
90678         * modules/tsearch: New file.
90679         * lib/tsearch.h: New file.
90680         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
90681         * m4/tsearch.m4: New file.
90682         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
90684 2006-10-29  Eric Blake  <ebb9@byu.net>
90686         * lib/arcfour.c: Assume config.h.
90687         * lib/arctwo.c: Likewise.
90688         * lib/base64.c: Likewise.
90689         * lib/check-version.c: Likewise.
90690         * lib/crc.c: Likewise.
90691         * lib/des.c: Likewise.
90692         * lib/gc-gnulib.c: Likewise.
90693         * lib/gc-libgcrypt.c: Likewise.
90694         * lib/gc-pbkdf2-sha1.c: Likewise.
90695         * lib/getaddrinfo.c: Likewise.
90696         * lib/getdelim.c: Likewise.
90697         * lib/getline.c: Likewise.
90698         * lib/hmac-md5.c: Likewise.
90699         * lib/hmac-sha1.c: Likewise.
90700         * lib/iconvme.c: Likewise.
90701         * lib/md2.c: Likewise.
90702         * lib/md4.c: Likewise.
90703         * lib/memxor.c: Likewise.
90704         * lib/read-file.c: Likewise.
90705         * lib/readline.c: Likewise.
90706         * lib/rijndael-alg-fst.c: Likewise.
90707         * lib/rijndael-api-fst.c: Likewise.
90708         * lib/xgetdomainname.c: Likewise.
90710 2006-10-28  Eric Blake  <ebb9@byu.net>
90712         * lib/xstrndup.c: Assume config.h.
90714 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
90716         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
90717         stat-macros.h is now for our own macros, whereas stat_h is for
90718         macros in the <sys/stat.h> name space.
90719         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
90720         (STAT_MACROS_H): Remove.
90721         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
90722         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
90723         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
90724         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
90725         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
90726         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
90727         Move these macros to ...
90728         * lib/stat_.h: here.  Don't include stat-macros.h.
90729         * lib/canonicalize.c: Don't include stat-macros.h.
90730         * lib/chown.c: Likewise.
90731         * lib/euidaccess.c: Likewise.
90732         * lib/file-type.c: Likewise.
90733         * lib/filemode.c: Likewise.
90734         * lib/glob.c: Likewise.
90735         * lib/isapipe.c: Likewise.
90736         * lib/lchown.c: Likewise.
90737         * lib/lstat.c: Likewise.
90738         * lib/mkdir-p.c: Likewise.
90739         * lib/rmdir.c: Likewise.
90740         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
90741         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
90742         unless mkdir isn't declared, to speed up 'configure'.
90743         Always create sys/stat.h, since it's unlikely any real sys/stat.h
90744         would define all the S_* symbols.
90745         * modules/canonicalize (Depends-on):
90746         Depend on sys_stat, not stat-macros.
90747         * modules/chown: Likewise.
90748         * modules/euidaccess: Likewise.
90749         * modules/filemode: Likewise.
90750         * modules/file-type: Likewise.
90751         * modules/glob: Likewise.
90752         * modules/isapipe: Likewise.
90753         * modules/lchown: Likewise.
90754         * modules/lstat: Likewise.
90755         * modules/mkancesdirs: Likewise.
90756         * modules/rmdir: Likewise.
90757         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
90758         * modules/modechange: Likewise.
90759         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
90760         (configure.ac): Remove gl_STAT_MACROS.
90761         * modules/sys_stat (Depends-on): Remove stat-macros.
90763 2006-10-27  Bruno Haible  <bruno@clisp.org>
90765         * m4/signed.m4: Remove file.
90766         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
90767         invocation.
90768         * modules/vasnprintf (Files): Remove m4/signed.m4.
90770 2006-10-27  Bruno Haible  <bruno@clisp.org>
90772         Update to GNU gettext 0.16.
90773         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
90774         m4/inttypes-h.m4, m4/signed.m4.
90775         * m4/gettext.m4: Update to GNU gettext 0.16.
90776         * m4/intl.m4: New file, from GNU gettext.
90777         * m4/intldir.m4: New file, from GNU gettext.
90778         * config/srclist.txt: Update
90780 2006-10-27  Eric Blake  <ebb9@byu.net>
90782         * MODULES.html.sh: Document tempname.
90783         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
90784         dependencies.
90785         (Files): Move lib/tempname.c...
90786         * modules/tempname: ...to this new module.
90787         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
90788         (gl_PREREQ_TEMPNAME): Move...
90789         * m4/tempname.m4: ...to this new file.
90790         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
90791         * modules/sys_stat (Depends-on): Add stat-macros.
90792         * lib/stat_.h (includes): Pick up stat macros.
90793         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
90794         if stat macros are broken.
90795         * lib/tempname.c (includes): No need to include "stat-macros.h".
90796         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
90797         (direxists, __path_search) [!_LIBC]: Don't compile these in
90798         gnulib; the tmpdir module covers that.
90799         * lib/tempname.h: New file.
90801 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
90803         * COPYING: Explain how gnulib-tool converts licence headers.
90804         Almost all wording by Eric Blake.
90806 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
90808         * lib/mbchar.h (is_basic_table): Make read-only.
90809         * lib/mbchar.c (is_basic_table): Likewise.
90810         Reported by John Darrington.
90812 2006-10-25  Bruno Haible  <bruno@clisp.org>
90814         * lib/progname.h (set_program_name): Undefine before defining.
90816 2006-10-25  Bruno Haible  <bruno@clisp.org>
90818         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
90819         false for non-gcc C++ compilers.
90820         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
90822 2006-10-24  Bruno Haible  <bruno@clisp.org>
90824         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
90825         iconv implementations like Irix iconv.
90827 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
90829         * modules/vararrays: New file.
90830         * m4/vararrays.m4: New file, taken from diffutils.
90831         * MODULES.html.sh: New module vararrays.
90833 2006-10-24  Karl Berry  <karl@gnu.org>
90835         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
90836         Don't call GNU Unix.
90838 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90840         * users.txt: Add Libtool.
90842         Sync from Libtool:
90844         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
90846         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
90847         to gnulib's policy of including config.h unconditionally.
90849 2006-10-24  Bruno Haible  <bruno@clisp.org>
90851         * modules/wcwidth (Files): Add m4/wint_t.m4.
90852         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
90853         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
90855 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
90857         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
90858         to pacify GCC with some -W flags enabled.  Problem reported by
90859         Bruno Haible.
90861 2006-10-24  Jim Meyering  <jim@meyering.net>
90863         * MODULES.html.sh: Remove uinttostr.  It's not a module.
90864         Reported by Karl Berry.
90866 2006-10-23  Bruno Haible  <bruno@clisp.org>
90868         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
90870 2006-10-24  Bruno Haible  <bruno@clisp.org>
90872         * lib/gl_list.h: Use C comment style, not C++ comment style.
90874 2006-10-23  Eric Blake  <ebb9@byu.net>
90876         * lib/getaddrinfo.c (includes): Add missing include.
90878 2006-10-23  Bruno Haible  <bruno@clisp.org>
90879             Paul Eggert  <eggert@cs.ucla.edu>
90881         Ability to rename obstack_free.
90882         * lib/obstack.h (__obstack_free): New macro. Declare instead of
90883         obstack_free.
90884         (obstack_free): Invoke the __obstack_free macro.
90885         * lib/obstack.c (obstack_free): Use __obstack_free macro.
90887 2006-10-23  Bruno Haible  <bruno@clisp.org>
90888             Paul Eggert  <eggert@cs.ucla.edu>
90890         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
90891         __argc, __argv from the declaration. (They are defined as macros on
90892         mingw.)
90894 2006-10-22  Bruno Haible  <bruno@clisp.org>
90896         * doc/gnulib-intro.texi: New file.
90897         * doc/gnulib.texi: Include it.
90899 2006-10-21  Bruno Haible  <bruno@clisp.org>
90901         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
90902         "Introduction", "Miscellanous Notes", "Particular Modules".
90904 2006-10-21  Bruno Haible  <bruno@clisp.org>
90906         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
90907         Change mostlyclean-local rule to avoid sh syntax error from bash
90908         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
90910 2006-10-23  Jim Meyering  <jim@meyering.net>
90912         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
90913         in place of snprintf.
90915         * modules/inttostr (Files): Add lib/uinttostr.c.
90916         * lib/uinttostr.c (inttostr): New file/function.
90917         * lib/inttostr.h (uinttostr): Declare.
90918         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
90919         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
90920         Add uinttostr.
90921         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
90923 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
90925         * lib/canonicalize.c (ELOOP): Define if not already defined.
90926         Problem reported by Bruno Haible in
90927         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
90929 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
90931         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
90932         Problem reported by Perry Smith and Ville Laurikari.
90934         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
90935         uses.
90937 2006-10-19  Bruno Haible  <bruno@clisp.org>
90939         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
90940         for mingw.
90942 2006-10-19  Bruno Haible  <bruno@clisp.org>
90944         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
90945         Needed for mingw.
90947 2006-10-19  Bruno Haible  <bruno@clisp.org>
90949         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
90951 2006-10-19  Bruno Haible  <bruno@clisp.org>
90953         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
90954         it.
90956 2006-10-19  Bruno Haible  <bruno@clisp.org>
90958         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
90959         invocation.
90961 2006-10-19  Bruno Haible  <bruno@clisp.org>
90963         * gnulib-tool (func_create_testdir): Don't include ftruncate and
90964         mountlist by default.
90966 2006-10-16  Bruno Haible  <bruno@clisp.org>
90968         * lib/c-strstr.c: Include c-strstr.h.
90970 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
90972         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
90973         in a slash.
90975 2006-10-18  Bruno Haible  <bruno@clisp.org>
90977         * lib/lock.h [C++]: Wrap definitions in extern "C".
90979 2006-10-18  Bruno Haible  <bruno@clisp.org>
90981         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
90982         gl_LIBOBJS list.
90984 2006-10-18  Bruno Haible  <bruno@clisp.org>
90986         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
90988 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
90990         * lib/xstrtol.h: Include gettext.h.
90991         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
90992         Problem reported by Eric Blake.
90993         * modules/xstrtol (Depends-on): Add gettext-h.
90995 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
90997         * lib/strftime.c (advance): New macro.
90998         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
90999         incomplete type, so you can't add 0 to it.  Problem and patch
91000         reported by Eelco Dolstra for dietlibc.
91002 2006-10-18  Jim Meyering  <jim@meyering.net>
91004         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
91005         type for a local, and rename it: s/up/user_proc/.
91007 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
91009         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
91010         READ_UTMP_USER_PROCESS.
91011         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
91013 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
91015         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
91016         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
91018 2006-10-17  Eric Blake  <ebb9@byu.net>
91020         * lib/sigprocmask.c (sigprocmask): Fix typo.
91022         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
91024         * modules/clean-temp (Makefile.am): Don't add to make output...
91025         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
91026         config.h.
91028 2006-10-17  Bruno Haible  <bruno@clisp.org>
91030         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
91031         differently if DEFAULT_TEXT_DOMAIN is set.
91033 2006-10-16  Bruno Haible  <bruno@clisp.org>
91035         * lib/clean-temp.c: Include fwriteerror.h.
91037 2006-10-16  Bruno Haible  <bruno@clisp.org>
91039         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
91041 2006-10-16  Bruno Haible  <bruno@clisp.org>
91043         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
91044         * lib/sigprocmask.h: Include <sys/types.h>.
91045         (sigset_t): Use the system's definition if present.
91047 2006-10-17  Eric Blake  <ebb9@byu.net>
91049         * lib/xvasprintf.c (includes): Assume config.h.
91050         * lib/xasprintf.c (includes): Likewise.
91052 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
91054         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
91055         at least as wide as intmax_t.
91057 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
91059         (Imported from Automake.)
91060         * build-aux/gnupload: Update to version 1.1 of directive file.
91062 2006-10-16  Eric Blake  <ebb9@byu.net>
91064         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
91065         match Automake 1.10a.
91067 2006-10-14  Bruno Haible  <bruno@clisp.org>
91069         * modules/sigprocmask: New file.
91070         * lib/sigprocmask.h: New file.
91071         * lib/sigprocmask.c: New file.
91072         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
91073         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
91074         request sigprocmask.o.
91075         (gl_PREREQ_SIGPROCMASK): New macro.
91076         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
91077         (Depends-on): Add sigprocmask.
91078         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
91079         gt_SIGNALBLOCKING. Test for 'raise' only once.
91080         * lib/fatal-signal.c: Include sigprocmask.h.
91081         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
91082         unblock_fatal_signals): Define always.
91083         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
91084         sigprocmask.
91086 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
91088         Sync from Automake.
91089         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
91090         which incorrectly sets the mode of an existing destination
91091         directory.  In some cases the unpatched install-sh could do the
91092         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
91093         system.  We hope this is rare in practice, but it's clearly worth
91094         fixing.  Problem reported by Alex Unleashed in
91095         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
91096         Also, don't bother to check for -m bugs unless we're using -m;
91097         suggested by Stepan Kasal.
91099 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
91101         Sync from Automake.
91102         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
91103         `-c' flag, so they appear at the same position as in %FASTDEP%
91104         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
91105         which ignores unknown options only after the first non-option.
91106         Bug report against M4 by Nelson H. F. Beebe.
91108 2006-10-13  Jim Meyering  <jim@meyering.net>
91110         Fix a bug in yesterday's change.
91111         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
91112         p->fts_statp->st_dev would be used uninitialized.
91113         Ensures that we always call fts_stat on the very first entry.
91114         Miklos Szeredi reported that find -xdev stopped working.
91116 2006-10-12  Bruno Haible  <bruno@clisp.org>
91118         * gnulib-tool (func_get_automake_snippet): Append an automatically
91119         computed EXTRA_DIST augmentation.
91120         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
91121         * modules/alloca-opt (Makefile.am): Likewise.
91122         * modules/allocsa (Makefile.am): Likewise.
91123         * modules/arcfour (Makefile.am): Likewise.
91124         * modules/arctwo (Makefile.am): Likewise.
91125         * modules/argmatch (Makefile.am): Likewise.
91126         * modules/argz (Makefile.am): Likewise.
91127         * modules/atexit (Makefile.am): Likewise.
91128         * modules/backupfile (Makefile.am): Likewise.
91129         * modules/byteswap (Makefile.am): Likewise.
91130         * modules/c-strtod (Makefile.am): Likewise.
91131         * modules/c-strtold (Makefile.am): Likewise.
91132         * modules/calloc (Makefile.am): Likewise.
91133         * modules/canon-host (Makefile.am): Likewise.
91134         * modules/canonicalize (Makefile.am): Likewise.
91135         * modules/chdir-long (Makefile.am): Likewise.
91136         * modules/chdir-safer (Makefile.am): Likewise.
91137         * modules/check-version (Makefile.am): Likewise.
91138         * modules/chown (Makefile.am): Likewise.
91139         * modules/cloexec (Makefile.am): Likewise.
91140         * modules/close-stream (Makefile.am): Likewise.
91141         * modules/closeout (Makefile.am): Likewise.
91142         * modules/crc (Makefile.am): Likewise.
91143         * modules/csharpexec (Makefile.am): Likewise.
91144         * modules/cycle-check (Makefile.am): Likewise.
91145         * modules/des (Makefile.am): Likewise.
91146         * modules/dev-ino (Makefile.am): Likewise.
91147         * modules/dirfd (Makefile.am): Likewise.
91148         * modules/dirname (Makefile.am): Likewise.
91149         * modules/dup2 (Makefile.am): Likewise.
91150         * modules/eealloc (Makefile.am): Likewise.
91151         * modules/error (Makefile.am): Likewise.
91152         * modules/euidaccess (Makefile.am): Likewise.
91153         * modules/exclude (Makefile.am): Likewise.
91154         * modules/exitfail (Makefile.am): Likewise.
91155         * modules/fcntl-safer (Makefile.am): Likewise.
91156         * modules/fcntl (Makefile.am): Likewise.
91157         * modules/file-type (Makefile.am): Likewise.
91158         * modules/fileblocks (Makefile.am): Likewise.
91159         * modules/filemode (Makefile.am): Likewise.
91160         * modules/filenamecat (Makefile.am): Likewise.
91161         * modules/fnmatch (Makefile.am): Likewise.
91162         * modules/fopen-safer (Makefile.am): Likewise.
91163         * modules/fpending (Makefile.am): Likewise.
91164         * modules/fprintftime (Makefile.am): Likewise.
91165         * modules/free (Makefile.am): Likewise.
91166         * modules/fsusage (Makefile.am): Likewise.
91167         * modules/ftruncate (Makefile.am): Likewise.
91168         * modules/fts (Makefile.am): Likewise.
91169         * modules/gc-arcfour (Makefile.am): Likewise.
91170         * modules/gc-des (Makefile.am): Likewise.
91171         * modules/gc-hmac-md5 (Makefile.am): Likewise.
91172         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
91173         * modules/gc-md4 (Makefile.am): Likewise.
91174         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
91175         * modules/gc-sha1 (Makefile.am): Likewise.
91176         * modules/gc (Makefile.am): Likewise.
91177         * modules/getaddrinfo (Makefile.am): Likewise.
91178         * modules/getcwd (Makefile.am): Likewise.
91179         * modules/getdelim (Makefile.am): Likewise.
91180         * modules/getdomainname (Makefile.am): Likewise.
91181         * modules/getgroups (Makefile.am): Likewise.
91182         * modules/gethostname (Makefile.am): Likewise.
91183         * modules/gethrxtime (Makefile.am): Likewise.
91184         * modules/getline (Makefile.am): Likewise.
91185         * modules/getloadavg (Makefile.am): Likewise.
91186         * modules/getlogin_r (Makefile.am): Likewise.
91187         * modules/getndelim2 (Makefile.am): Likewise.
91188         * modules/getopt (Makefile.am): Likewise.
91189         * modules/getpagesize (Makefile.am): Likewise.
91190         * modules/getpass-gnu (Makefile.am): Likewise.
91191         * modules/getpass (Makefile.am): Likewise.
91192         * modules/getsubopt (Makefile.am): Likewise.
91193         * modules/gettime (Makefile.am): Likewise.
91194         * modules/gettimeofday (Makefile.am): Likewise.
91195         * modules/getugroups (Makefile.am): Likewise.
91196         * modules/getusershell (Makefile.am): Likewise.
91197         * modules/glob (Makefile.am): Likewise.
91198         * modules/group-member (Makefile.am): Likewise.
91199         * modules/hard-locale (Makefile.am): Likewise.
91200         * modules/hash (Makefile.am): Likewise.
91201         * modules/hmac-md5 (Makefile.am): Likewise.
91202         * modules/hmac-sha1 (Makefile.am): Likewise.
91203         * modules/human (Makefile.am): Likewise.
91204         * modules/idcache (Makefile.am): Likewise.
91205         * modules/imaxabs (Makefile.am): Likewise.
91206         * modules/imaxdiv (Makefile.am): Likewise.
91207         * modules/inet_ntop (Makefile.am): Likewise.
91208         * modules/inet_pton (Makefile.am): Likewise.
91209         * modules/intprops (Makefile.am): Likewise.
91210         * modules/inttostr (Makefile.am): Likewise.
91211         * modules/inttypes (Makefile.am): Likewise.
91212         * modules/isapipe (Makefile.am): Likewise.
91213         * modules/javaversion (Makefile.am): Likewise.
91214         * modules/lchmod (Makefile.am): Likewise.
91215         * modules/lchown (Makefile.am): Likewise.
91216         * modules/localcharset (Makefile.am): Likewise.
91217         * modules/long-options (Makefile.am): Likewise.
91218         * modules/lstat (Makefile.am): Likewise.
91219         * modules/malloc (Makefile.am): Likewise.
91220         * modules/mathl (Makefile.am): Likewise.
91221         * modules/mbchar (Makefile.am): Likewise.
91222         * modules/md2 (Makefile.am): Likewise.
91223         * modules/md4 (Makefile.am): Likewise.
91224         * modules/md5 (Makefile.am): Likewise.
91225         * modules/memcasecmp (Makefile.am): Likewise.
91226         * modules/memchr (Makefile.am): Likewise.
91227         * modules/memcmp (Makefile.am): Likewise.
91228         * modules/memcoll (Makefile.am): Likewise.
91229         * modules/memcpy (Makefile.am): Likewise.
91230         * modules/memmem (Makefile.am): Likewise.
91231         * modules/memmove (Makefile.am): Likewise.
91232         * modules/mempcpy (Makefile.am): Likewise.
91233         * modules/memrchr (Makefile.am): Likewise.
91234         * modules/memset (Makefile.am): Likewise.
91235         * modules/memxor (Makefile.am): Likewise.
91236         * modules/mkancesdirs (Makefile.am): Likewise.
91237         * modules/mkdir-p (Makefile.am): Likewise.
91238         * modules/mkdir (Makefile.am): Likewise.
91239         * modules/mkdtemp (Makefile.am): Likewise.
91240         * modules/mkstemp (Makefile.am): Likewise.
91241         * modules/mktime (Makefile.am): Likewise.
91242         * modules/modechange (Makefile.am): Likewise.
91243         * modules/mountlist (Makefile.am): Likewise.
91244         * modules/nanosleep (Makefile.am): Likewise.
91245         * modules/obstack (Makefile.am): Likewise.
91246         * modules/openat (Makefile.am): Likewise.
91247         * modules/pagealign_alloc (Makefile.am): Likewise.
91248         * modules/pathmax (Makefile.am): Likewise.
91249         * modules/physmem (Makefile.am): Likewise.
91250         * modules/poll (Makefile.am): Likewise.
91251         * modules/posixtm (Makefile.am): Likewise.
91252         * modules/posixver (Makefile.am): Likewise.
91253         * modules/putenv (Makefile.am): Likewise.
91254         * modules/quote (Makefile.am): Likewise.
91255         * modules/quotearg (Makefile.am): Likewise.
91256         * modules/raise (Makefile.am): Likewise.
91257         * modules/read-file (Makefile.am): Likewise.
91258         * modules/readline (Makefile.am): Likewise.
91259         * modules/readlink (Makefile.am): Likewise.
91260         * modules/readtokens (Makefile.am): Likewise.
91261         * modules/readutmp (Makefile.am): Likewise.
91262         * modules/realloc (Makefile.am): Likewise.
91263         * modules/regex (Makefile.am): Likewise.
91264         * modules/rename-dest-slash (Makefile.am): Likewise.
91265         * modules/rename (Makefile.am): Likewise.
91266         * modules/rijndael (Makefile.am): Likewise.
91267         * modules/rmdir (Makefile.am): Likewise.
91268         * modules/rpmatch (Makefile.am): Likewise.
91269         * modules/safe-read (Makefile.am): Likewise.
91270         * modules/safe-write (Makefile.am): Likewise.
91271         * modules/same-inode (Makefile.am): Likewise.
91272         * modules/same (Makefile.am): Likewise.
91273         * modules/save-cwd (Makefile.am): Likewise.
91274         * modules/savedir (Makefile.am): Likewise.
91275         * modules/setenv (Makefile.am): Likewise.
91276         * modules/settime (Makefile.am): Likewise.
91277         * modules/sha1 (Makefile.am): Likewise.
91278         * modules/sig2str (Makefile.am): Likewise.
91279         * modules/snprintf (Makefile.am): Likewise.
91280         * modules/stat-macros (Makefile.am): Likewise.
91281         * modules/stat-time (Makefile.am): Likewise.
91282         * modules/stdbool (Makefile.am): Likewise.
91283         * modules/stdint (Makefile.am): Likewise.
91284         * modules/stdlib-safer (Makefile.am): Likewise.
91285         * modules/stpcpy (Makefile.am): Likewise.
91286         * modules/stpncpy (Makefile.am): Likewise.
91287         * modules/strcase (Makefile.am): Likewise.
91288         * modules/strcasestr (Makefile.am): Likewise.
91289         * modules/strchrnul (Makefile.am): Likewise.
91290         * modules/strcspn (Makefile.am): Likewise.
91291         * modules/strdup (Makefile.am): Likewise.
91292         * modules/strerror (Makefile.am): Likewise.
91293         * modules/strftime (Makefile.am): Likewise.
91294         * modules/strndup (Makefile.am): Likewise.
91295         * modules/strnlen (Makefile.am): Likewise.
91296         * modules/strpbrk (Makefile.am): Likewise.
91297         * modules/strsep (Makefile.am): Likewise.
91298         * modules/strstr (Makefile.am): Likewise.
91299         * modules/strtod (Makefile.am): Likewise.
91300         * modules/strtoimax (Makefile.am): Likewise.
91301         * modules/strtok_r (Makefile.am): Likewise.
91302         * modules/strtol (Makefile.am): Likewise.
91303         * modules/strtoll (Makefile.am): Likewise.
91304         * modules/strtoul (Makefile.am): Likewise.
91305         * modules/strtoull (Makefile.am): Likewise.
91306         * modules/strtoumax (Makefile.am): Likewise.
91307         * modules/strverscmp (Makefile.am): Likewise.
91308         * modules/sys_socket (Makefile.am): Likewise.
91309         * modules/sys_stat (Makefile.am): Likewise.
91310         * modules/sysexits (Makefile.am): Likewise.
91311         * modules/time_r (Makefile.am): Likewise.
91312         * modules/timegm (Makefile.am): Likewise.
91313         * modules/timespec (Makefile.am): Likewise.
91314         * modules/tmpfile-safer (Makefile.am): Likewise.
91315         * modules/trim (Makefile.am): Likewise.
91316         * modules/unistd-safer (Makefile.am): Likewise.
91317         * modules/unlinkdir (Makefile.am): Likewise.
91318         * modules/unlocked-io (Makefile.am): Likewise.
91319         * modules/userspec (Makefile.am): Likewise.
91320         * modules/utime (Makefile.am): Likewise.
91321         * modules/utimecmp (Makefile.am): Likewise.
91322         * modules/utimens (Makefile.am): Likewise.
91323         * modules/vasnprintf (Makefile.am): Likewise.
91324         * modules/vasprintf (Makefile.am): Likewise.
91325         * modules/vsnprintf (Makefile.am): Likewise.
91326         * modules/xalloc (Makefile.am): Likewise.
91327         * modules/xgetcwd (Makefile.am): Likewise.
91328         * modules/xnanosleep (Makefile.am): Likewise.
91329         * modules/xreadlink (Makefile.am): Likewise.
91330         * modules/xstrtod (Makefile.am): Likewise.
91331         * modules/xstrtol (Makefile.am): Likewise.
91332         * modules/xstrtold (Makefile.am): Likewise.
91333         * modules/yesno (Makefile.am): Likewise.
91334         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
91336 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
91338         * modules/error (Makefile.am): Distribute files through
91339         EXTRA_DIST, not lib_SOURCES.
91341 2006-10-12  Eric Blake  <ebb9@byu.net>
91343         * modules/error (Makefile.am): Distribute files in /lib.
91344         * modules/obstack (Makefile.am): Likewise.
91346 2006-10-12  Bruno Haible  <bruno@clisp.org>
91348         * modules/acl (Makefile.am): Distribute all files in lib/ through
91349         EXTRA_DIST.
91350         * modules/arcfour (Makefile.am): Likewise.
91351         * modules/arctwo (Makefile.am): Likewise.
91352         * modules/argmatch (Makefile.am): Likewise.
91353         * modules/argz (Makefile.am): Likewise.
91354         * modules/atexit (Makefile.am): Likewise.
91355         * modules/backupfile (Makefile.am): Likewise.
91356         * modules/c-strtod (Makefile.am): Likewise.
91357         * modules/c-strtold (Makefile.am): Likewise.
91358         * modules/calloc (Makefile.am): Likewise.
91359         * modules/canon-host (Makefile.am): Likewise.
91360         * modules/canonicalize (Makefile.am): Likewise.
91361         * modules/chdir-long (Makefile.am): Likewise.
91362         * modules/chdir-safer (Makefile.am): Likewise.
91363         * modules/check-version (Makefile.am): Likewise.
91364         * modules/chown (Makefile.am): Likewise.
91365         * modules/cloexec (Makefile.am): Likewise.
91366         * modules/close-stream (Makefile.am): Likewise.
91367         * modules/closeout (Makefile.am): Likewise.
91368         * modules/crc (Makefile.am): Likewise.
91369         * modules/cycle-check (Makefile.am): Likewise.
91370         * modules/des (Makefile.am): Likewise.
91371         * modules/dirfd (Makefile.am): Likewise.
91372         * modules/dirname (Makefile.am): Likewise.
91373         * modules/dup2 (Makefile.am): Likewise.
91374         * modules/euidaccess (Makefile.am): Likewise.
91375         * modules/exclude (Makefile.am): Likewise.
91376         * modules/exitfail (Makefile.am): Likewise.
91377         * modules/fcntl-safer (Makefile.am): Likewise.
91378         * modules/file-type (Makefile.am): Likewise.
91379         * modules/fileblocks (Makefile.am): Likewise.
91380         * modules/filemode (Makefile.am): Likewise.
91381         * modules/filenamecat (Makefile.am): Likewise.
91382         * modules/fnmatch (Makefile.am): Likewise.
91383         * modules/fopen-safer (Makefile.am): Likewise.
91384         * modules/fpending (Makefile.am): Likewise.
91385         * modules/fprintftime (Makefile.am): Likewise.
91386         * modules/free (Makefile.am): Likewise.
91387         * modules/fsusage (Makefile.am): Likewise.
91388         * modules/ftruncate (Makefile.am): Likewise.
91389         * modules/fts (Makefile.am): Likewise.
91390         * modules/gc (Makefile.am): Likewise.
91391         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
91392         * modules/getaddrinfo (Makefile.am): Likewise.
91393         * modules/getcwd (Makefile.am): Likewise.
91394         * modules/getdelim (Makefile.am): Likewise.
91395         * modules/getdomainname (Makefile.am): Likewise.
91396         * modules/getgroups (Makefile.am): Likewise.
91397         * modules/gethostname (Makefile.am): Likewise.
91398         * modules/gethrxtime (Makefile.am): Likewise.
91399         * modules/getline (Makefile.am): Likewise.
91400         * modules/getloadavg (Makefile.am): Likewise.
91401         * modules/getlogin_r (Makefile.am): Likewise.
91402         * modules/getopt (Makefile.am): Likewise.
91403         * modules/getpass (Makefile.am): Likewise.
91404         * modules/getpass-gnu (Makefile.am): Likewise.
91405         * modules/getsubopt (Makefile.am): Likewise.
91406         * modules/gettime (Makefile.am): Likewise.
91407         * modules/gettimeofday (Makefile.am): Likewise.
91408         * modules/getugroups (Makefile.am): Likewise.
91409         * modules/getusershell (Makefile.am): Likewise.
91410         * modules/glob (Makefile.am): Likewise.
91411         * modules/group-member (Makefile.am): Likewise.
91412         * modules/hard-locale (Makefile.am): Likewise.
91413         * modules/hash (Makefile.am): Likewise.
91414         * modules/hmac-md5 (Makefile.am): Likewise.
91415         * modules/hmac-sha1 (Makefile.am): Likewise.
91416         * modules/human (Makefile.am): Likewise.
91417         * modules/idcache (Makefile.am): Likewise.
91418         * modules/imaxabs (Makefile.am): Likewise.
91419         * modules/imaxdiv (Makefile.am): Likewise.
91420         * modules/inet_ntop (Makefile.am): Likewise.
91421         * modules/inet_pton (Makefile.am): Likewise.
91422         * modules/inttostr (Makefile.am): Likewise.
91423         * modules/isapipe (Makefile.am): Likewise.
91424         * modules/lchown (Makefile.am): Likewise.
91425         * modules/long-options (Makefile.am): Likewise.
91426         * modules/lstat (Makefile.am): Likewise.
91427         * modules/malloc (Makefile.am): Likewise.
91428         * modules/mathl (Makefile.am): Likewise.
91429         * modules/mbchar (Makefile.am): Likewise.
91430         * modules/md2 (Makefile.am): Likewise.
91431         * modules/md4 (Makefile.am): Likewise.
91432         * modules/md5 (Makefile.am): Likewise.
91433         * modules/memcasecmp (Makefile.am): Likewise.
91434         * modules/memchr (Makefile.am): Likewise.
91435         * modules/memcmp (Makefile.am): Likewise.
91436         * modules/memcoll (Makefile.am): Likewise.
91437         * modules/memcpy (Makefile.am): Likewise.
91438         * modules/memmem (Makefile.am): Likewise.
91439         * modules/memmove (Makefile.am): Likewise.
91440         * modules/mempcpy (Makefile.am): Likewise.
91441         * modules/memrchr (Makefile.am): Likewise.
91442         * modules/memset (Makefile.am): Likewise.
91443         * modules/memxor (Makefile.am): Likewise.
91444         * modules/mkancesdirs (Makefile.am): Likewise.
91445         * modules/mkdir (Makefile.am): Likewise.
91446         * modules/mkdir-p (Makefile.am): Likewise.
91447         * modules/mkdtemp (Makefile.am): Likewise.
91448         * modules/mkstemp (Makefile.am): Likewise.
91449         * modules/mktime (Makefile.am): Likewise.
91450         * modules/modechange (Makefile.am): Likewise.
91451         * modules/mountlist (Makefile.am): Likewise.
91452         * modules/nanosleep (Makefile.am): Likewise.
91453         * modules/openat (Makefile.am): Likewise.
91454         * modules/pagealign_alloc (Makefile.am): Likewise.
91455         * modules/physmem (Makefile.am): Likewise.
91456         * modules/poll (Makefile.am): Likewise.
91457         * modules/posixtm (Makefile.am): Likewise.
91458         * modules/posixver (Makefile.am): Likewise.
91459         * modules/putenv (Makefile.am): Likewise.
91460         * modules/quote (Makefile.am): Likewise.
91461         * modules/quotearg (Makefile.am): Likewise.
91462         * modules/raise (Makefile.am): Likewise.
91463         * modules/read-file (Makefile.am): Likewise.
91464         * modules/readline (Makefile.am): Likewise.
91465         * modules/readlink (Makefile.am): Likewise.
91466         * modules/readtokens (Makefile.am): Likewise.
91467         * modules/readutmp (Makefile.am): Likewise.
91468         * modules/realloc (Makefile.am): Likewise.
91469         * modules/regex (Makefile.am): Likewise.
91470         * modules/rename (Makefile.am): Likewise.
91471         * modules/rename-dest-slash (Makefile.am): Likewise.
91472         * modules/rijndael (Makefile.am): Likewise.
91473         * modules/rmdir (Makefile.am): Likewise.
91474         * modules/rpmatch (Makefile.am): Likewise.
91475         * modules/safe-read (Makefile.am): Likewise.
91476         * modules/safe-write (Makefile.am): Likewise.
91477         * modules/same (Makefile.am): Likewise.
91478         * modules/save-cwd (Makefile.am): Likewise.
91479         * modules/savedir (Makefile.am): Likewise.
91480         * modules/setenv (Makefile.am): Likewise.
91481         * modules/settime (Makefile.am): Likewise.
91482         * modules/sha1 (Makefile.am): Likewise.
91483         * modules/sig2str (Makefile.am): Likewise.
91484         * modules/snprintf (Makefile.am): Likewise.
91485         * modules/stdlib-safer (Makefile.am): Likewise.
91486         * modules/stpcpy (Makefile.am): Likewise.
91487         * modules/stpncpy (Makefile.am): Likewise.
91488         * modules/strcase (Makefile.am): Likewise.
91489         * modules/strcasestr (Makefile.am): Likewise.
91490         * modules/strchrnul (Makefile.am): Likewise.
91491         * modules/strcspn (Makefile.am): Likewise.
91492         * modules/strdup (Makefile.am): Likewise.
91493         * modules/strerror (Makefile.am): Likewise.
91494         * modules/strftime (Makefile.am): Likewise.
91495         * modules/strndup (Makefile.am): Likewise.
91496         * modules/strnlen (Makefile.am): Likewise.
91497         * modules/strpbrk (Makefile.am): Likewise.
91498         * modules/strsep (Makefile.am): Likewise.
91499         * modules/strstr (Makefile.am): Likewise.
91500         * modules/strtod (Makefile.am): Likewise.
91501         * modules/strtoimax (Makefile.am): Likewise.
91502         * modules/strtok_r (Makefile.am): Likewise.
91503         * modules/strtol (Makefile.am): Likewise.
91504         * modules/strtoll (Makefile.am): Likewise.
91505         * modules/strtoul (Makefile.am): Likewise.
91506         * modules/strtoull (Makefile.am): Likewise.
91507         * modules/strtoumax (Makefile.am): Likewise.
91508         * modules/strverscmp (Makefile.am): Likewise.
91509         * modules/time_r (Makefile.am): Likewise.
91510         * modules/timegm (Makefile.am): Likewise.
91511         * modules/tmpfile-safer (Makefile.am): Likewise.
91512         * modules/unistd-safer (Makefile.am): Likewise.
91513         * modules/unlinkdir (Makefile.am): Likewise.
91514         * modules/userspec (Makefile.am): Likewise.
91515         * modules/utime (Makefile.am): Likewise.
91516         * modules/utimecmp (Makefile.am): Likewise.
91517         * modules/utimens (Makefile.am): Likewise.
91518         * modules/vasnprintf (Makefile.am): Likewise.
91519         * modules/vasprintf (Makefile.am): Likewise.
91520         * modules/vsnprintf (Makefile.am): Likewise.
91521         * modules/xalloc (Makefile.am): Likewise.
91522         * modules/xgetcwd (Makefile.am): Likewise.
91523         * modules/xnanosleep (Makefile.am): Likewise.
91524         * modules/xreadlink (Makefile.am): Likewise.
91525         * modules/xstrtod (Makefile.am): Likewise.
91526         * modules/xstrtol (Makefile.am): Likewise.
91527         * modules/xstrtold (Makefile.am): Likewise.
91528         * modules/yesno (Makefile.am): Likewise.
91530 2006-10-12  Jim Meyering  <jim@meyering.net>
91532         * m4/getloadavg.m4: Revert the change below.
91534         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
91535         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
91536         fail with a symlink, which is what coreutils' ./bootstrap now
91537         creates by default.
91539 2006-10-12  Bruno Haible  <bruno@clisp.org>
91541         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
91542         mingw.
91543         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
91544         MSVC and mingw explicitly.
91546 2006-10-11  Simon Josefsson  <jas@extundo.com>
91547             Bruno Haible  <bruno@clisp.org>
91549         Add support for multiple gnulib-tool invocations in the scope of a
91550         single configure.ac file.
91551         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
91552         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
91553         with the same contents as the _LIBADD variable.
91554         (func_emit_initmacro_start, func_emit_initmacro_end,
91555         func_emit_initmacro_done): New functions.
91556         (func_import, func_create_testdir): Invoke them. Allow the identifiers
91557         gl_LIBOBJS and gl_LTLIBOBJS.
91559 2006-10-11  Bruno Haible  <bruno@clisp.org>
91561         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
91562         (func_create_testdir): Don't create po/Makefile.am, don't invoke
91563         autoreconf. Instead, invoke autopoint explicitly but move back the
91564         *.m4 files from gnulib.
91566 2006-10-11  Bruno Haible  <bruno@clisp.org>
91568         * gnulib-tool (func_usage): Make module names after --create-testdir
91569         optional.
91570         (func_create_testdir): If no module was specified, use nearly all
91571         modules.
91573 2006-10-12  Jim Meyering  <jim@meyering.net>
91575         Big performance improvement for fts-based tools that use FTS_NOSTAT.
91576         Avoid spurious inode-mismatch problems on non-POSIX file systems.
91577         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
91578         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
91579         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
91580         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
91581         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
91582         (fts_set_stat_required): New function.
91583         (fts_open): Defer the calls to fts_stat, if possible or requested.
91584         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
91585         into fts_stat itself.
91586         (fts_read): Perform any required (deferred) fts_stat call.
91587         (fts_build): Likewise, for the directory we're about to open and read.
91588         In the readdir loop, carefully decide whether each entry will require
91589         an eventual call to fts_stat, using dirent.d_type info if available.
91590         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
91591         a command line argument into this function.  Update all callers.
91592         Map a return value of FTS_DOT to FTS_D for a command line argument.
91593         * modules/fts (Depends-on): Add d-type.  Alphabetize.
91594         Thanks to Miklos Szeredi for his tenacity and for the initial
91595         bug report about "find" failing on a FUSE-based file system.
91597         * lib/fts.c (fts_open): Use consistent indentation.
91599 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
91601         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
91602         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
91603         reported by Jim Meyering.  All uses of cache variables renamed
91604         to match Autoconf's.
91605         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
91606         the other one.
91608         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
91609         Fix misspelling in diagnostic.
91611 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
91613         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
91614         defined.  Problem reported by Matthew Woehlke.
91616         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
91617         Add support for Tandem NonStop R series.
91618         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
91619         Use new macro.
91621         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
91622         (has_trailing_slash): Omit size arg; all callers changed.
91623         Omit 'inline', since it doesn't help performance and we'd
91624         need to configure it.
91625         Don't count //, ///, etc. as having a trailing slash.
91626         As a side effect, this removes a C99ism reported by Matthew Woehlke.
91627         (rpl_rename_dest_slash): On failure, use rename's errno rather
91628         than (in some cases) an incorrect or junk errno.
91629         Simplify code by removing need to compute length; this does
91630         cause it to make two passes instead of one over the file name,
91631         but it's worth it.
91633         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
91634         change, since Autoconf's version may no longer be appropriate now
91635         that we are using CVS Autoconf's version.  Add support for Tandem.
91637 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
91638             Bruno Haible  <bruno@clisp.org>
91640         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
91641         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
91642         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
91643         gl_AC_TYPE_LONG_LONG.
91645         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
91646         instead of HAVE_LONG_LONG.
91647         * lib/printf-args.c (printf_fetchargs): Likewise.
91648         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
91649         * lib/vasnprintf.c (VASNPRINTF): Likewise.
91650         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
91651         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
91652         gl_AC_TYPE_LONG_LONG.
91654 2006-10-11  Bruno Haible  <bruno@clisp.org>
91656         * m4/longlong.m4: Add comments.
91657         * m4/ulonglong.m4: Likewise.
91659 2006-10-10  Bruno Haible  <bruno@clisp.org>
91661         Make it possible to #define stpcpy, strdup to aliases.
91662         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
91663         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
91665 2006-10-10  Bruno Haible  <bruno@clisp.org>
91667         Make it possible to #define gcd to an alias.
91668         * lib/gcd.c: Include config.h.
91670 2006-10-10  Bruno Haible  <bruno@clisp.org>
91672         Make it possible to #define c_isascii to an alias.
91673         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
91674         defined. Undefine the macros before defining them, to avoid gcc
91675         warnings.
91676         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
91677         define NO_C_CTYPE_MACROS early.
91679 2006-10-10  Bruno Haible  <bruno@clisp.org>
91681         Make it possible to #define set_program_name to an alias.
91682         * lib/progname.c: Don't undefine set_program_name; instead, undefine
91683         ENABLE_RELOCATABLE early.
91685 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
91687         Port to Tandem NSK OSS, which has 64-bit signed int but at most
91688         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
91689         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
91690         More generally, don't assume that 64-bit signed int is available
91691         if unsigned int is, and vice versa.
91692         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
91693         unsigned symbols, not on their signed counterparts.
91694         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
91695         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
91696         (UINT64_C, UINTMAX_C):
91697         Likewise.
91698         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
91699         unsigned counterparts.
91700         (Have_long_long, Unsigned): New macros.
91701         (Int): Renamed from INT.
91702         (strtoimax): Use the new macros.
91703         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
91704         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
91705         * modules/inttypes (inttypes.h): Substitute
91706         HAVE_UNSIGNED_LONG_LONG_INT.
91707         * modules/stdint (stdint.h): Likewise.
91708         (Files): Add m4/ulonglong.m4.
91710 2006-10-10  Bruno Haible  <bruno@clisp.org>
91712         Fix a gcc -Wshadow warning.
91713         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
91714         to 'bucket'.
91715         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
91716         gl_linked_indexof_from_to): Likewise.
91717         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
91718         Likewise.
91719         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
91720         Likewise.
91721         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
91722         Reported by Eric Blake.
91724 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
91726         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
91727         for NetBSD.  Problem reported by Bruno Haible.
91729 2006-10-09  Jim Meyering  <jim@meyering.net>
91731         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
91732         Patch from Bruno Haible.
91734 2006-10-09  Jim Meyering  <jim@meyering.net>
91736         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
91737         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
91738         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
91740 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
91742         Don't include <config.h> twice; this doesn't work in some cases,
91743         e.g., when config.h has "#define intmax_t long long int" and
91744         we include <config.h>, <inttypes.h>, <config.h> in that order.
91745         Problem reported by Matthew Woehlke in:
91746         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
91747         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
91748         * lib/fts-cycle.c: Don't include config.h.
91749         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
91750         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
91751         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
91752         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
91753         inttypes.h.
91754         * lib/xstrtoumax.c: Likewise.
91755         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
91756         __strtol and the like, so that this module is more like its siblings.
91757         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
91758         Remove; no longer needed now that we assume gnulib inttypes.h.
91760 2006-10-08  Bruno Haible  <bruno@clisp.org>
91762         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
91763         option.
91765 2006-10-07  Jim Meyering  <jim@meyering.net>
91767         * modules/inttypes (inttypes.h): Revert what seems to have been
91768         an inadvertent part of today's change: use "|", not "/" in the
91769         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
91771 2006-10-07  Bruno Haible  <bruno@clisp.org>
91773         * modules/sublist: New file.
91775 2006-10-07  Bruno Haible  <bruno@clisp.org>
91777         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
91778         * modules/argz (argz.h): Likewise.
91779         * modules/arpa_inet (arpa/inet.h): Likewise.
91780         * modules/byteswap (byteswap.h): Likewise.
91781         * modules/configmake (configmake.h): Likewise.
91782         * modules/fcntl (fcntl.h): Likewise.
91783         * modules/fnmatch (fnmatch.h): Likewise.
91784         * modules/getopt (getopt.h): Likewise.
91785         * modules/glob (glob.h): Likewise.
91786         * modules/inttypes (inttypes.h): Likewise.
91787         * modules/netinet_in (netinet/in.h): Likewise.
91788         * modules/poll (poll.h): Likewise.
91789         * modules/stdbool (stdbool.h): Likewise.
91790         * modules/stdint (stdint.h): Likewise.
91791         * modules/sys_select (sys/select.h): Likewise.
91792         * modules/sys_socket (sys/socket.h): Likewise.
91793         * modules/sys_stat (sys/stat.h): Likewise.
91794         * modules/sysexits (sysexits.h): Likewise.
91795         * modules/unistd (unistd.h): Likewise.
91796         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
91797         Add a "DO NOT EDIT" comment to the generated file.
91798         (func_import): Likewise for gnulib-comp.m4.
91800 2006-10-07  Bruno Haible  <bruno@clisp.org>
91802         * lib/gl_sublist.h: New file.
91803         * lib/gl_sublist.c: New file.
91805 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
91807         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
91808         name (relative to the original working directory) and the file
91809         name component (relative to the temporary working directory).  All
91810         callers changed.
91811         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
91812         * lib/mkdir-p.c (make_dir_parents): Likewise.
91813         * lib/mkdir-p.h (make_dir_parents): Likewise.
91815 2006-10-06  Eric Blake  <ebb9@byu.net>
91817         Define several macros for use by the clean-temp module.
91818         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
91819         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
91820         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
91822         * lib/clean-temp.h (close_stream_temp): New declaration.
91823         * lib/clean-temp.c (includes): Pull in headers according to what
91824         other modules are in use.
91825         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
91827 2006-10-06  Bruno Haible  <bruno@clisp.org>
91829         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
91830         instead of fopen, fwriteerror.
91832 2006-10-06  Bruno Haible  <bruno@clisp.org>
91834         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
91835         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
91836         int.
91837         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
91838         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
91839         Return an error indicator.
91840         Suggested by Eric Blake.
91842 2006-10-06  Bruno Haible  <bruno@clisp.org>
91844         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
91845         Reported by Eric Blake.
91847 2006-10-06  Bruno Haible  <bruno@clisp.org>
91849         * modules/closeout (Description): Mention stderr too.
91851 2006-10-06  Bruno Haible  <bruno@clisp.org>
91852         and Paul Eggert  <eggert@cs.ucla.edu>
91854         * lib/closeout.c (close_stdout): Also close stderr.
91855         * lib/closeout.h: Update comment.
91857 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
91859         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
91860         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
91861         * lib/dirchownmod.c: Include lchown.h.
91862         * lib/lchown.c: Don't include files that lchown.h now includes.
91863         Don't declare chown, since lchown.h now does that.
91864         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
91865         (lchown): Define to rpl_chown if lchown is declared but
91866         does not exist.  Declare using a prototype if lchown is not
91867         declared.  Add a copyright notice.
91868         * lib/mkstemp.h: Include <unistd.h>.
91869         * lib/openat.c: Include lchown.h.
91871         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
91872         we now test for that separately.
91873         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
91874         rather than O_NOFOLLOW, when testing whether it's possible to
91875         avoid a race condition reliably.
91876         * lib/savewd.c (savewd_chdir): Likewise.
91878         Remove macros that are no longer needed now that stdint.h is
91879         reliable.
91880         * lib/fsusage.c (UINTMAX_MAX): Remove.
91881         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
91882         * lib/utimecmp.c (SIZE_MAX): Remove.
91884         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
91886         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
91887         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
91888         O_NOATIME works.
91890 2006-10-05  Bruno Haible  <bruno@clisp.org>
91892         * lib/gl_list.h (gl_sortedlist_search_from_to,
91893         gl_sortedlist_indexof_from_to): New declarations.
91894         (gl_list_implementation): New fields sortedlist_search_from_to,
91895         sortedlist_indexof_from_to.
91896         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
91897         inline functions.
91898         * lib/gl_list.c (gl_sortedlist_search_from_to,
91899         gl_sortedlist_indexof_from_to): New functions.
91900         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
91901         function.
91902         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
91903         (gl_array_sortedlist_search_from_to): New function.
91904         (gl_array_list_implementation): Update.
91905         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
91906         function.
91907         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
91908         (gl_carray_sortedlist_search_from_to): New function.
91909         (gl_carray_list_implementation): Update.
91910         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
91911         gl_linked_sortedlist_indexof_from_to): New functions.
91912         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
91913         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
91914         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
91915         gl_tree_sortedlist_indexof_from_to): New functions.
91916         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
91917         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
91918         Update.
91919         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
91920         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
91921         Update.
91923 2006-10-05  Bruno Haible  <bruno@clisp.org>
91925         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
91926         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
91927         (struct gl_list_implementation): Add fields search_from_to,
91928         indexof_from_to. Remove fields search, indexof.
91929         (gl_list_search): Use the search_from_to method.
91930         (gl_list_search_from, gl_list_search_from_to): New functions.
91931         (gl_list_indexof): Use the indexof_from_to method.
91932         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
91933         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
91934         (gl_list_search_from, gl_list_search_from_to): New functions.
91935         (gl_list_indexof): Use the indexof_from_to method.
91936         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
91937         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
91938         gl_array_indexof. Add start_index, end_index arguments.
91939         (gl_array_search_from_to): Renamed from gl_array_search. Add
91940         start_index, end_index arguments.
91941         (gl_array_remove, gl_array_list_implementation): Update.
91942         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
91943         gl_carray_indexof. Add start_index, end_index arguments.
91944         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
91945         start_index, end_index arguments.
91946         (gl_carray_remove, gl_carray_list_implementation): Update.
91947         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
91948         gl_linked_search. Add start_index, end_index arguments.
91949         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
91950         start_index, end_index arguments.
91951         (gl_linked_remove): Update.
91952         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
91953         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
91954         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
91955         field to 'size_t'.
91956         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
91957         gl_tree_search. Add start_index, end_index arguments.
91958         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
91959         start_index, end_index arguments.
91960         (gl_tree_remove): Update.
91961         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
91962         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
91963         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
91964         function.
91965         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
91966         gl_tree_search. Add start_index, end_index arguments.
91967         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
91968         start_index, end_index arguments.
91969         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
91970         Update.
91971         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
91973 2006-10-05  Bruno Haible  <bruno@clisp.org>
91975         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
91977         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
91978         fwriteerror_temp): New declarations.
91979         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
91980         (descriptors): New variable.
91981         (cleanup): First, close the descriptors.
91982         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
91983         fclose_temp, fwriteerror_temp): New functions.
91985 2006-10-04  Jim Meyering  <jim@meyering.net>
91987         * lib/fts.c (fts_open): Tiny comment change.
91989 2006-10-04  Bruno Haible  <bruno@clisp.org>
91991         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
91992         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
91993         gl_LOCK_BODY.
91994         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
91995         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
91996         gl_LOCK_EARLY_BODY.
91997         (gl_LOCK): Require gl_LOCK_BODY.
91999 2006-10-04  Bruno Haible  <bruno@clisp.org>
92001         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
92002         (gl_oset_search_atleast): New declaration.
92003         (struct gl_oset_implementation): Add field 'search_atleast'.
92004         (gl_oset_search_atleast): New inline function.
92005         * lib/gl_oset.c (gl_oset_search_atleast): New function.
92006         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
92007         (gl_array_oset_implementation): Update.
92008         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
92009         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
92010         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
92012 2006-10-04  Bruno Haible  <bruno@clisp.org>
92014         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
92016 2006-10-03  Bruno Haible  <bruno@clisp.org>
92018         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
92019         from gl_avltreehash_list_implementation.
92021 2006-10-03  Bruno Haible  <bruno@clisp.org>
92023         * lib/gl_oset.c (gl_oset_add): Fix return type.
92025 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
92027         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
92029 2006-10-02  Eric Blake  <ebb9@byu.net>
92031         * modules/strnlen (Depends-on): Add extensions.
92033 2006-10-02  Eric Blake  <ebb9@byu.net>
92035         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
92036         definition in 2.60+.
92038 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
92040         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
92041         checks.
92043 2006-10-02  Bruno Haible  <bruno@clisp.org>
92045         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
92046         to the AUTOMAKE_OPTIONS.
92047         Reported by Jim Meyering.
92049 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
92051         Work around bug in Solaris 10 /proc file system:
92052         /proc/self/fd/NNN/.. isn't the parent directory of
92053         the directory whose file descriptor is NNN.  This needs to
92054         be worked around at run time, not compile time, since a
92055         program might be built on Solaris 8, where things work, and
92056         run on Solaris 10.
92057         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
92058         to use the following interface instead:
92059         (OPENAT_BUFFER_SIZE): New macro.
92060         (openat_proc_name): New function.
92061         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
92062         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
92063         Likewise.
92064         * lib/openat-proc.c: New file.
92065         * modules/openat (Files): Add lib/openat-proc.c.
92066         (Depends-on): Add same-inode, stdbool.
92067         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
92069 2006-09-29  Bruno Haible  <bruno@clisp.org>
92071         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
92072         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
92073         argument. Set stdout_closed before testing for ferror, not after.
92074         (fwriteerror, fwriteerror_no_ebadf): New functions.
92076 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92078         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
92080 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
92082         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
92083         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
92085 2006-09-28  Jim Meyering  <jim@meyering.net>
92087         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
92088         Include <unistd.h>.
92090 2006-09-28  Bruno Haible  <bruno@clisp.org>
92092         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
92093         * modules/linkedhash-list (Depends-on): Likewise.
92094         * modules/rbtreehash-list (Depends-on): Likewise.
92096 2006-09-28  Bruno Haible  <bruno@clisp.org>
92098         * lib/strndup.h: Simplify the redefinition of strndup.
92099         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
92100         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
92102 2006-09-28  Bruno Haible  <bruno@clisp.org>
92104         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
92105         * lib/gl_linkedhash_list.c: Likewise.
92106         * lib/gl_rbtreehash_list.c: Likewise.
92108 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
92110         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
92111         getaddrinfo.
92113         * lib/__fpending.h: Don't include <stdio_ext.h> unless
92114         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
92115         it causes <stdio_ext.h> to cause a compile-time error.
92116         Problem reported by Nelson H. F. Beebe.
92117         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
92118         of HAVE_DECL___PENDING.
92120         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
92121         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
92122         declaration.
92124 2006-09-27  Jim Meyering  <jim@meyering.net>
92126         This file could end up with a definition for a function
92127         named __strndup, rather than rpl_strndup on a system with
92128         incomplete weak_alias support.
92129         * lib/strndup.c (strndup): Rename from __strndup.
92130         Remove #defines that used to map __strndup to strndup.
92131         Don't use K&R prototypes.
92132         Remove LIBC-related code, since this file is not sync'd with glibc.
92133         * lib/strndup.h: Revamp, accordingly.
92134         * m4/strndup.m4: Modernize.
92136 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
92138         * modules/savewd (Depends-on): Add 'raise'.
92139         * lib/savewd.c: Include <signal.h>, for 'raise'.
92141 2006-09-26  Jim Meyering  <jim@meyering.net>
92143         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
92144         when we detect Darwin 8.7.0's acl_get_file bug.
92145         Rearrange to perform the new (below) run-test while $LIBS
92146         contains any acl-related library.  Set USE_ACL at the end.
92147         (gl_ACL_GET_FILE): New function.
92149 2006-09-26  Eric Blake  <ebb9@byu.net>
92151         * lib/verror.c: Include <config.h> unconditionally.
92153 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
92155         * modules/clock-time (Maintainer): Add self.
92156         * modules/getlogin_r (Depends-on): Add extensions.
92158 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92160         * modules/clock-time: New module.
92161         * modules/nanosleep (Depends-on): Add clock-time.
92162         * modules/gethrxtime (Depends-on): Likewise.
92163         * modules/gettime (Depends-on): Likewise.
92164         * modules/settime (Depends-on): Likewise.
92166         * modules/fts-lgpl: Depend on openat.
92167         * modules/mkancesdirs: Depend on savewd.
92168         * modules/mkdir-p: Likewise.
92170 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92172         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
92174         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
92175         `gl_have_arbitrary_file_name_length_limit' to
92176         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
92177         actually works between configure runs.
92179 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92180             Bruno Haible  <bruno@clisp.org>
92182         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
92184 2006-09-25  Jim Meyering  <jim@meyering.net>
92186         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
92187         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
92189 2006-09-25  Eric Blake  <ebb9@byu.net>
92191         * gnulib-tool (func_import, func_create_testdir): Fix typos in
92192         exec's in 2006-09-18 patch when shuffling fds.
92194 2006-09-25  Bruno Haible  <bruno@clisp.org>
92196         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
92197         Reported by Jim Meyering.
92199 2006-09-24  Jim Meyering  <jim@meyering.net>
92201         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
92202         compare a pointer against a literal "0".  That caused failures with
92203         at least HP-UX's hpcc.
92205 2006-09-22  Simon Josefsson  <jas@extundo.com>
92207         * modules/gc-sha1:
92208         * modules/gc-md4:
92209         * modules/gc-hmac-sha1:
92210         * modules/gc-hmac-md5:
92211         * modules/gc-des:
92212         * modules/gc-arcfour: Distribute more files.
92214 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92216         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
92217         (gl_linked_iterator_from_to): Initialize struct completely.
92218         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
92219         (gl_tree_iterator_from_to): Likewise
92220         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
92221         * lib/gl_array_list.c [lint] (gl_array_iterator)
92222         (gl_array_iterator_from_to): Likewise.
92223         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
92224         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
92225         (gl_carray_iterator_from_to): Likewise.
92227         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
92228         * lib/md4.c (md4_process_block): Remove unused variable.
92229         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
92230         parentheses for clarity.
92232 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92234         * modules/bison-i18n (Depends-on): Add gettext.
92236 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92238         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
92239         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
92240         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
92241         also add missing comma that caused broken test.
92242         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
92243         stdlib.h, for `abort'.
92244         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
92245         variables.
92246         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
92247         include unistd.h if present, for `rmdir'.
92248         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
92249         variables.
92250         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
92251         in the process include standard headers for prototypes.
92252         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
92253         gets declared on GNU/Linux.
92254         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
92255         unistd.h, for `rmdir'.
92256         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
92258         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
92259         always true.
92260         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
92262         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
92264 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92266         * gnulib-tool (func_version): Create output all at once.  This
92267         may help avoid triggering unnecessary SIGPIPEs, and at any
92268         rate it doesn't hurt.
92270 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92271             Bruno Haible  <bruno@clisp.org>
92273         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
92274         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
92275         * m4/signed.m4 (bh_C_SIGNED): Likewise.
92277         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
92278         (gl_FUNC_VASPRINTF): Invoke it.
92280 2006-09-22  Bruno Haible  <bruno@clisp.org>
92282         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
92283         getloadavg.c as first argument.
92285 2006-09-22  Bruno Haible  <bruno@clisp.org>
92287         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
92288         at the beginning of the gl_INIT macro.
92289         * modules/getloadavg (configure.ac): Pass $gl_source_base to
92290         gl_GETLOADAVG.
92292 2006-09-22  Bruno Haible  <bruno@clisp.org>
92294         * gnulib-tool (func_create_megatestdir): Don't include the config-h
92295         module.
92296         Suggested by Ralf Wildenhues.
92298 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
92300         Import this patch from libc:
92302         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
92304         * lib/regex_internal.c (re_string_reconstruct): Handle
92305         offset < pstr->valid_raw_len && pstr->offsets_needed case.
92306         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
92307         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
92308         re_string_context_at.
92310         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
92311         now requires it.
92312         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
92313         gl_REGEX now does it for us.
92314         (gl_REGEX): Add test taken from
92315         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
92317         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
92318         Check that large offsets work.  Modernize Autoconf usages.
92319         Prefer "yes" to mean a good thing rather than a bad.
92320         Don't put "#define mkstemp" in config.h, as this might interfere
92321         with standard system headers that "#define mkstemp mkstemp64".
92323         * modules/mkstemp (Depends-on): Add extensions, so that
92324         mkstemp is visible on some platforms.
92325         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
92326         (Include): Change to "mkstemp.h" from <stdlib.h>.
92327         (Files): Add mkstemp.h.
92329         * lib/mkstemp.h: New file, since some standard headers
92330         #define mkstemp.
92331         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
92332         Include "mkstemp.h".
92333         Make the _LIBC code resemble glibc original more,
92334         e.g., use K&R style.
92335         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
92336         (mkstemp): Remove, since mkstemp.h does this for us.
92337         * lib/stdlib--.h: Include mkstemp.h.
92339         Import this patch from libc:
92341         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
92343         * lib/tempname.c (__gen_tempname): Change attempts_min
92344         into a macro.  Use preprocessor to decide how to initialize
92345         attempts [Coverity CID 67].
92347 2006-09-20  Bruno Haible  <bruno@clisp.org>
92349         * lib/mkdtemp.c: Import from libc.
92350         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
92351                 * sysdeps/posix/tempname.c (__gen_tempname): Change
92352                 attempts_min into a macro.  Use preprocessor to decide how to
92353                 initialize attempts [Coverity CID 67].
92354         2001-11-27  Paul Eggert  <eggert@twinsun.com>
92355                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
92356                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
92358 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92360         * gnulib-tool (func_exit): New function, to allow to pass the
92361         exit status portably through the trap.  Use everywhere.
92362         (--help, --version): Signal a write error.
92363         (trap): catch SIGPIPE, for write errors.
92364         Exit at the end of the trap, with the correct exit status.
92366 2006-09-19  Karl Berry  <karl@gnu.org>
92368         * doc/gnulib.texi: note about the license texinfo files.
92370 2006-09-19  Eric Blake  <ebb9@byu.net>
92372         * gnulib-tool: Avoid space-tab.
92374 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
92376         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
92377         that prevented coreutils 6.1 from building.  Problem reported
92378         by Petter Reinholdtsen.
92380 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
92382         * gnulib-tool (avoidlist): Fix typo that broke options like
92383         --avoid=lock that are used by coreutils bootstrap.
92385 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
92387         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
92388         more systematically.
92390 2006-09-18  Jim Meyering  <jim@meyering.net>
92392         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
92394 2006-09-18  Bruno Haible  <bruno@clisp.org>
92396         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
92398 2006-09-18  Bruno Haible  <bruno@clisp.org>
92400         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
92401         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
92402         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
92403         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
92404         * m4/gettext.m4: Require autoconf >= 2.52.
92405         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
92406         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
92407         of gl_cv_header_inttypes_h.
92409 2006-09-18  Bruno Haible  <bruno@clisp.org>
92411         * lib/javaversion.c: Include configmake.h.
92413 2006-09-18  Bruno Haible  <bruno@clisp.org>
92415         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
92416         avoid that the while loops be executed in a subshell.
92418 2006-09-18  Bruno Haible  <bruno@clisp.org>
92420         * MODULES.html.sh (func_module): Break long lines.
92421         Suggested by Bruce Korb <bkorb@gnu.org>.
92423 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92425         Speed up by a factor of 1.12.
92426         * gnulib-tool (nl): New variable.
92427         (func_import): Rewrite include directive extraction to only read each
92428         directive once.
92430 2006-09-17  Bruno Haible  <bruno@clisp.org>
92432         * modules/javaversion (Makefile.am): Remove DEFS setting.
92433         (Depends-on): Add configmake, for PKGDATADIR definition.
92435 2006-09-17  Bruno Haible  <bruno@clisp.org>
92437         * gnulib-tool (func_create_testdir): Rewrite all files at once.
92439 2006-09-17  Bruno Haible  <bruno@clisp.org>
92441         * gnulib-tool (func_append): New function, stolen from libtool.m4.
92442         (func_modules_transitive_closure, func_modules_add_dummy,
92443         func_modules_to_filelist, func_import, func_create_testdir,
92444         func_create_megatestdir, ...): Use it wherever possible.
92445         Suggested by Ralf Wildenhues.
92447 2006-09-16  Karl Berry  <karl@gnu.org>
92449         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
92450         to avoid sectioning errors.
92451         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
92452         [ifinfo]: blank line after @center-ed titles.
92453         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
92454         Spell FSF address consistently with others.
92455         (These changes approved by rms.)
92457 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92459         Speed up by a factor of 1.61.
92460         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
92461         already checked module names again.
92463 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92465         Speed up by a factor of 1.13.
92466         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
92467         for new_files, and the input to func_add_or_update.
92469 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92471         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
92472         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
92474 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
92476         * modules/mkancesdirs (Depends-on): Add fcntl.
92477         * modules/savewd: New file.
92478         * MODULES.html.sh (File system functions): Add savewd.
92480         * modules/configmake (Makefile.am): Add support for the
92481         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
92483 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
92485         * m4/savewd.m4: New file.
92487 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
92489         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
92490         (dirchownmod): New arg FD.  All callers changed.
92491         Use FD rather than opening the directory ourself, as opening is
92492         now the caller's responsibility.
92493         * lib/dirchownmod.h: Likewise.
92494         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
92495         hosts that require <sys/types.h> before <sys/stat.h>.  Include
92496         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
92497         (test_dir): Remove.
92498         (mkancesdirs): Return length of prefix of FILE that has already
92499         been made, or -2 if there is a child doing the work.  Redo
92500         algorithm so that it is O(N) rather than O(N**2).  Optimize away
92501         ".", and treat ".." specially since it might stray back into
92502         already-created areas.  Use a subprocess if necessary.  New arg
92503         WD; all users changed.  MAKE_DIR function should now return 1
92504         if it creates a directory that is not readable.  Return -2 if
92505         a child process is spun off.
92506         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
92507         Adjust signature to match code.
92508         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
92509         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
92510         all users changed.
92511         * lib/savewd.c, lib/savewd.h: New files.
92513 2006-09-15  Jim Meyering  <jim@meyering.net>
92515         * modules/rename-dest-slash: New module.
92516         * MODULES.html.sh (posix_compat): Add it here.
92518         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
92520 2006-09-15  Jim Meyering  <jim@meyering.net>
92522         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
92523         file.
92525         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
92527 2006-09-15  Jim Meyering  <jim@meyering.net>
92529         * lib/rename-dest-slash.c (has_trailing_slash): Use
92530         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
92531         (rpl_rename_dest_slash): Perform the cheaper trailing slash
92532         test before testing whether SRC is a directory.
92533         Suggestions from Bruno Haible.
92535         Avoid a warning about an unused variable.
92536         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
92537         into the #ifdef block where it's used.
92539         * lib/rename-dest-slash.c: New file.
92541 2006-09-14  Bruno Haible  <bruno@clisp.org>
92543         * lib/allocsa.c: Include <config.h> unconditionally.
92544         * lib/asnprintf.c: Likewise.
92545         * lib/asprintf.c: Likewise.
92546         * lib/c-strcasecmp.c: Likewise.
92547         * lib/c-strcasestr.c: Likewise.
92548         * lib/c-strncasecmp.c: Likewise.
92549         * lib/c-strstr.c: Likewise.
92550         * lib/classpath.c: Likewise.
92551         * lib/clean-temp.c: Likewise.
92552         * lib/concatpath.c: Likewise.
92553         * lib/copy-file.c: Likewise.
92554         * lib/csharpcomp.c: Likewise.
92555         * lib/csharpexec.c: Likewise.
92556         * lib/execute.c: Likewise.
92557         * lib/fatal-signal.c: Likewise.
92558         * lib/findprog.c: Likewise.
92559         * lib/fwriteerror.c: Likewise.
92560         * lib/gl_array_list.c: Likewise.
92561         * lib/gl_array_oset.c: Likewise.
92562         * lib/gl_avltree_list.c: Likewise.
92563         * lib/gl_avltree_oset.c: Likewise.
92564         * lib/gl_avltreehash_list.c: Likewise.
92565         * lib/gl_carray_list.c: Likewise.
92566         * lib/gl_linked_list.c: Likewise.
92567         * lib/gl_linkedhash_list.c: Likewise.
92568         * lib/gl_list.c: Likewise.
92569         * lib/gl_oset.c: Likewise.
92570         * lib/gl_rbtree_list.c: Likewise.
92571         * lib/gl_rbtree_oset.c: Likewise.
92572         * lib/gl_rbtreehash_list.c: Likewise.
92573         * lib/imaxabs.c: Likewise.
92574         * lib/imaxdiv.c: Likewise.
92575         * lib/javacomp.c: Likewise.
92576         * lib/javaexec.c: Likewise.
92577         * lib/javaversion.c: Likewise.
92578         * lib/linebreak.c: Likewise.
92579         * lib/localcharset.c: Likewise.
92580         * lib/lock.c: Likewise.
92581         * lib/mbchar.c: Likewise.
92582         * lib/mbswidth.c: Likewise.
92583         * lib/mkdtemp.c: Likewise.
92584         * lib/pipe.c: Likewise.
92585         * lib/printf-args.c: Likewise.
92586         * lib/printf-parse.c: Likewise.
92587         * lib/progname.c: Likewise.
92588         * lib/progreloc.c: Likewise.
92589         * lib/readlink.c: Likewise.
92590         * lib/sh-quote.c: Likewise.
92591         * lib/stpcpy.c: Likewise.
92592         * lib/stpncpy.c: Likewise.
92593         * lib/strcasecmp.c: Likewise.
92594         * lib/strcasestr.c: Likewise.
92595         * lib/strcspn.c: Likewise.
92596         * lib/striconv.c: Likewise.
92597         * lib/strncasecmp.c: Likewise.
92598         * lib/strnlen1.c: Likewise.
92599         * lib/strstr.c: Likewise.
92600         * lib/strtok_r.c: Likewise.
92601         * lib/tls.c: Likewise.
92602         * lib/tmpdir.c: Likewise.
92603         * lib/unicodeio.c: Likewise.
92604         * lib/unsetenv.c: Likewise.
92605         * lib/vasnprintf.c: Likewise.
92606         * lib/vasprintf.c: Likewise.
92607         * lib/wait-process.c: Likewise.
92608         * lib/xallocsa.c: Likewise.
92609         * lib/xsetenv.c: Likewise.
92610         * lib/xstriconv.c: Likewise.
92612 2006-09-13  Simon Josefsson  <jas@extundo.com>
92614         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
92615         that internally, suggested by Ralf Wildenhues
92616         <Ralf.Wildenhues@gmx.de>.
92618 2006-09-13  Simon Josefsson  <jas@extundo.com>
92620         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
92621         @LIBOBJS@.
92622         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92624 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
92626         * lib/_fpending.c: Include <config.h> unconditionally, since we no
92627         longer worry about uses that don't define HAVE_CONFIG_H.
92628         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
92629         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
92630         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
92631         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
92632         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
92633         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
92634         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
92635         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
92636         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
92637         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
92638         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
92639         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
92640         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
92641         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
92642         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
92643         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
92644         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
92645         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
92646         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
92647         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
92648         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
92649         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
92650         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
92651         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
92652         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
92653         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
92654         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
92655         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
92656         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
92657         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
92658         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
92659         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
92660         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
92661         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
92662         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
92663         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
92664         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
92665         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
92666         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
92667         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
92668         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
92669         Likewise.
92671 2006-09-13  Eric Blake  <ebb9@byu.net>
92673         * lib/getopt.c: Fix typo in last commit.
92675 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
92677         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
92678         dgettext.
92680 2006-09-12  Jim Meyering  <jim@meyering.net>
92682         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
92683         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
92684         Reported by Nelson H. F. Beebe.
92686 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
92688         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
92689         program_invocation_name and program_invocation_short_name are
92690         initialized.
92691         * lib/argp-namefrob.h: Move declarations of program_invocation_name
92692         and program_invocation_short_name to argp.h, so they are visible
92693         to user programs.
92694         * lib/argp.h: Likewise
92696 2006-09-10  Bruno Haible  <bruno@clisp.org>
92698         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
92699         m4/inttypes_h.m4, m4/uintmax_t.m4.
92701 2006-09-10  Bruno Haible  <bruno@clisp.org>
92703         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
92704         gl_AC_TYPE_UINTMAX_T.
92706 2006-09-10  Bruno Haible  <bruno@clisp.org>
92708         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
92710 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
92712         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
92713         convention.  Text proposed by Bruno Haible.
92714         (struct argp_option): Document the use of N_() wrappers.
92716         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
92717         '\v', and translate the two parts separately, instead of feeding
92718         the whole string to gettext.  This allows to exclude
92719         '\v' from the strings visible to the translator by writing doc
92720         strings as N_("..") "\v" N_("..").
92722 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
92724         * config/srclist.txt: Undo latest change; the bug was fixed.
92726 2006-09-09  Bruno Haible  <bruno@clisp.org>
92728         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
92729         assignments if building a library without libtool.
92730         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
92731         in func_emit_lib_Makefile_am.
92732         (func_import): When building a static library libfoo.a, arrange to
92733         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
92734         (func_create_testdir): Likewise.
92735         * modules/gc (configure.ac, Makefile.am): If building statically,
92736         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
92737         * modules/iconvme (configure.ac, Makefile.am): Likewise.
92738         * modules/striconv (configure.ac, Makefile.am): Likewise.
92739         Based on a suggestion by Ralf Wildenhues.
92741 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
92743         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
92744         Check for unistd.h too, since Autoconf doesn't assume POSIX.
92745         Also:
92747         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
92748         Add year_2050_test to catch glibc bug 2821
92749         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
92751         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
92752         Prefer #ifdef to #if.
92754         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
92755         Return from 'main' instead of calling 'exit'.
92757 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
92759         * lib/mktime.c (guess_time_tm): Fix bug where mktime
92760         returned the maximum time_t value rather than (time_t) -1.
92761         Problem originally reported by William Bardwell
92762         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
92764         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
92765         Moved to here ...
92766         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
92767         ... from here.
92769 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
92771         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
92772         2821 is fixed.
92774 2006-09-08  Jim Meyering  <jim@meyering.net>
92776         Don't make generated files read-only.  That would bother too many
92777         people.  However, do retain the ability to work when targets are
92778         read-only: remove the destination and temporary files before writing
92779         them (when generated via sed or echo), or by using the -f option for
92780         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
92781         * modules/alloca-opt, modules/argz, modules/arpa_inet:
92782         * modules/byteswap, modules/configmake, modules/fcntl:
92783         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
92784         * modules/localcharset, modules/netinet_in, modules/poll:
92785         * modules/stdbool, modules/stdint, modules/sys_select:
92786         * modules/sys_socket, modules/sys_stat, modules/sysexits:
92788 2006-09-08  Jim Meyering  <jim@meyering.net>
92790         Avoid new build failure on FreeBSD 6.0.
92791         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
92792         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
92793         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
92795 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92797         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
92799 2006-09-07  Jim Meyering  <jim@meyering.net>
92801         Fix global typo in last change: use chmod u-w, not chmod u-x.
92802         Spotted by Paul Eggert and Bruce Korb.
92803         * modules/alloca-opt, modules/argz, modules/arpa_inet:
92804         * modules/byteswap, modules/configmake, modules/fcntl:
92805         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
92806         * modules/localcharset, modules/netinet_in, modules/poll:
92807         * modules/stdbool, modules/stdint, modules/sys_select:
92808         * modules/sys_socket, modules/sys_stat, modules/sysexits:
92810 2006-09-06  Jim Meyering  <jim@meyering.net>
92812         Make generated files be read-only.
92813         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
92814         Ensure that each generated file is now read-only.
92815         * modules/argz: Likewise.
92816         * modules/arpa_inet: Likewise.
92817         * modules/byteswap: Likewise.
92818         * modules/configmake: Likewise.
92819         * modules/fcntl: Likewise.
92820         * modules/fnmatch: Likewise.
92821         * modules/getopt: Likewise.
92822         * modules/glob: Likewise.
92823         * modules/inttypes: Likewise.
92824         * modules/netinet_in: Likewise.
92825         * modules/poll: Likewise.
92826         * modules/stdbool: Likewise.
92827         * modules/stdint: Likewise.
92828         * modules/sys_select: Likewise.
92829         * modules/sys_socket: Likewise.
92830         * modules/sys_stat: Likewise.
92831         * modules/sysexits: Likewise.
92832         * modules/localcharset: Same as above, but continue using temporary
92833         file named "t-$@" (why different?) rather than the "$@-t" used
92834         everywhere else.
92836         * modules/sysexits (Makefile.am): Replace literal occurrences
92837         of "sysexit.h" more readable, and more consistent, "$@".
92839 2006-09-06  Bruno Haible  <bruno@clisp.org>
92841         * modules/striconv: New file.
92842         * modules/xstriconv: New file.
92843         * MODULES.html.sh (Internationalization functions): Add striconv,
92844         xstriconv.
92846 2006-09-06  Bruno Haible  <bruno@clisp.org>
92848         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
92849         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
92850         not using libtool correctly.
92852 2006-09-06  Bruno Haible  <bruno@clisp.org>
92854         * lib/striconv.h: New file.
92855         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
92856         iconvstring.c.
92857         * lib/xstriconv.h: New file.
92858         * lib/xstriconv.c: New file.
92860 2006-09-06  Bruno Haible  <bruno@clisp.org>
92862         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
92863         lib_..._LDFLAGS.
92865 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92867         * lib/argz_.h: Sync from Libtool.
92869         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
92870                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
92872         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
92874 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
92876         * modules/trim: New file.
92878 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
92880         * lib/trim.h: New file.
92881         * lib/trim.c: New file.
92883 2006-09-05  Bruno Haible  <bruno@clisp.org>
92885         * MODULES.html.sh (String handling): Add trim.
92887 2006-09-04  Karl Berry  <karl@gnu.org>
92889         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
92890         until next release.
92892 2006-09-03  Bruno Haible  <bruno@clisp.org>
92894         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
92895         correctly.
92897 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
92899         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
92900         not gl_GETLOADAVG.  Omit unneeded semicolons.
92901         Problems reported by Ralf Wildenhues in
92902         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
92903         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
92904         at the end, which is the usual gnulib style.
92906         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
92907         of doing all the work ourselves.
92908         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
92909         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
92911 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
92913         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
92914         Problem reported by Ralf Wildenhues in
92915         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
92917         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
92918         HAVE_STRUCT_STATFS_F_FSTYPENAME.
92920 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
92922         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
92923         yesterday's patch by changing test -n to test -z.
92925 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
92927         * modules/getloadavg (Files): Add m4/getloadavg.m4.
92928         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
92929         the former is now obsolescent.
92931         * modules/chdir-long (Depends-on): Add fcntl.
92933 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
92935         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
92936         obsolescent, and programs should use gnulib instead.
92937         * m4/getloadavg.m4: New file, with contents taken from Autoconf
92938         but with prefixes changed.
92940 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
92942         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
92943         or stdbool.h, because they might not exist while configuring.
92945         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
92946         Don't include unistd.h or limits.h; not needed, since chdir-long.h
92947         does that for us.
92948         (O_DIRECTORY): Remove.
92950 2006-08-31  Eric Blake  <ebb9@byu.net>
92952         * gnulib-tool: Don't let emacs change spaces to TAB.
92954 2006-08-31  Bruno Haible  <bruno@clisp.org>
92956         * gnulib-tool: When calling func_import more than once, do it in a
92957         subshell.
92958         Reported by Eric Blake <ebb9@byu.net>.
92960 2006-08-31  Bruno Haible  <bruno@clisp.org>
92962         * gnulib-tool (nl): Remove variable.
92963         (sed_transform_lib_file): Use more robust test for config-h module.
92964         (func_import): Fix typo in 2006-08-25 patch.
92966 2006-08-31  Bruno Haible  <bruno@clisp.org>
92968         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
92969         specified, augment Makefile.am variables instead of assigning them.
92971 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
92973         Work around a bug in both the Linux and SunOS 64-bit kernels:
92974         nanosleep mishandles sleeps for longer than 2**31 seconds.
92975         Problem reported by Frank v Waveren in
92976         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
92977         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
92978         Check for nanosleep bug.
92979         (LIB_NANOSLEEP): Append clock_gettime library if needed.
92981 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
92983         Work around a bug in both the Linux and SunOS 64-bit kernels:
92984         nanosleep mishandles sleeps for longer than 2**31 seconds.
92985         Problem reported by Frank v Waveren in
92986         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
92987         * lib/nanosleep.c (BILLION): New constant.
92988         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
92989         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
92990         implementation.
92992 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
92994         * modules/nanosleep (Depends-on): Add gettime.
92996 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
92997         and Simon Josefsson  <jas@extundo.com>
92998         and Oskar Liljeblad  <oskar@osk.mine.nu>
93000         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
93001         * gnulib-tool (func_import): New license type 'unmodifiable license
93002         text'.
93003         * modules/fdl: Use it.  Longer description.
93004         * module/gpl, module/lgpl: New files.
93006 2006-08-30  Jim Meyering  <jim@meyering.net>
93008         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
93009         shadowing the parameter.
93011 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93013         Sync from Libtool:
93015         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93017         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
93018         sharing with gnulib.  Report by Eric Blake.
93020 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
93022         * modules/isapipe: New file.
93023         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
93025 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
93027         * modules/configmake (Makefile.am): Add a comment, and omit
93028         the CONFIGMAKE_ prefix from generated macro names.  Suggested
93029         by Bruno Haible.
93031 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
93033         * m4/isapipe.m4: New file.
93035 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
93037         * lib/isapipe.c, lib/isapipe.h: New files.
93039 2006-08-29  Jim Meyering  <jim@meyering.net>
93041         * modules/configmake (Makefile.am): Make configmake.h depend on
93042         Makefile.  Otherwise, a stale configmake.h could hang around.
93044 2006-08-29  Eric Blake  <ebb9@byu.net>
93046         * lib/error.c (error_at_line, print_errno_message): Match libc, after
93047         resolution of upstream bug 3044.
93049 2006-08-29  Bruno Haible  <bruno@clisp.org>
93051         * modules/localcharset (Depends-on): Add configmake.
93052         (Makefile.am): Remove setting of LIBDIR through DEFS.
93054 2006-08-29  Bruno Haible  <bruno@clisp.org>
93056         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
93057         defined.
93059 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
93061         * modules/fcntl: New file.
93062         * modules/chdir-safer (Depends-on): Add fcntl.
93063         * modules/fts: Likewise.
93064         * modules/mkdir-p: Likewise.
93066         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
93067         This undoes the most recent change, since we're now addressing the
93068         problem in a different way.
93070         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
93071         into output, since the output might be called Makefile.am even
93072         if $makefile_name is something different.
93073         (func_import): Use $makefile_am rather than
93074         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
93075         empty.
93077         * modules/inttypes (Files): Add m4/inttypes-h.m4.
93079 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
93081         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
93082         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
93083         recent change to stdint.m4, since we're now addressing the problem in a
93084         different way.
93086 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
93088         * m4/fcntl_h.m4: New file.
93090 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
93092         * lib/fcntl_.h: New file.
93093         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
93094         the fcntl module.
93095         * lib/dirchownmod.c: Likewise.
93096         * lib/fts.c: Likewise.
93098         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
93099         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
93100         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
93101         just before including <inttypes.h>, to avoid circular inclusion.
93103 2006-08-28  Jim Meyering  <jim@meyering.net>
93105         * doc/visibility.texi: Actually read and correct the grammar of the
93106         sentence affected by yesterday's change.
93108 2006-08-28  Eric Blake  <ebb9@byu.net>
93110         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
93111         needs wrapper.
93113 2006-08-28  Eric Blake  <ebb9@byu.net>
93115         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
93117 2006-08-28  Eric Blake  <ebb9@byu.net>
93119         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
93121 2006-08-28  Bruno Haible  <bruno@clisp.org>
93123         * modules/c-strstr: New file, from GNU gettext.
93124         * MODULES.html.sh (String handling): Add c-strstr.
93126 2006-08-28  Bruno Haible  <bruno@clisp.org>
93128         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
93129         macros.
93130         Reported by Eric Blake.
93132 2006-08-28  Bruno Haible  <bruno@clisp.org>
93134         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
93135         (VASNPRINTF): Return a string of length > INT_MAX without failing.
93136         * lib/vasprintf.c: Include errno.h, limits.h.
93137         (EOVERFLOW): New fallback definition.
93138         (vasprintf): Test here whether the string length is > INT_MAX.
93139         * lib/vsnprintf.c: Include errno.h, limits.h.
93140         (EOVERFLOW): New fallback definition.
93141         (vsnprintf): Fix bug when generated string was too long for the buffer.
93142         Test here whether the string length is > INT_MAX.
93144 2006-08-28  Bruno Haible  <bruno@clisp.org>
93146         * lib/inttypes_.h (SCNX*): Remove definitions.
93147         Reported by Eric Blake.
93149 2006-08-28  Bruno Haible  <bruno@clisp.org>
93151         * lib/c-strstr.h: New file, from GNU gettext.
93152         * lib/c-strstr.c: New file, from GNU gettext.
93154 2006-08-28  Bruno Haible  <bruno@clisp.org>
93156         * gnulib-tool: Reorder some statements.
93158 2006-08-28  Bruno Haible  <bruno@clisp.org>
93160         * gnulib-tool: New option --makefile-name.
93161         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
93162         $makefile_name.
93163         (func_import): Write $makefile_name to the cache file, and read it from
93164         there unless explicitly specified. Use $makefile_name as file name
93165         instead of Makefile.am. Adjust the recommendations accordingly.
93167 2006-08-28  Bruno Haible  <bruno@clisp.org>
93169         * gnulib-tool (func_verify_module): Check against misapplying patch.
93171 2006-08-28  Bruno Haible  <bruno@clisp.org>
93173         * gnulib-tool (func_relativize, func_relconcat): New functions.
93174         Give an error if --local-dir is given with --update.
93175         Remove trailing slashes from $local_gnulib_dir.
93176         (func_import): Store the relativized $local_gnulib_dir in
93177         gnulib-cache.m4, and read it from there if not specified explicitly.
93179 2006-08-28  Bruno Haible  <bruno@clisp.org>
93181         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
93182         is the current directory. Respect also $local_gnulib_dir.
93184 2006-08-28  Bruno Haible  <bruno@clisp.org>
93185             Simon Josefsson  <jas@extundo.com>
93187         BeOS portability.
93188         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
93190 2006-08-27  Jim Meyering  <jim@meyering.net>
93192         * doc/visibility.texi: Remove duplicate word: "pointer".
93194 2006-08-26  Bruno Haible  <bruno@clisp.org>
93196         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
93197         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
93198         (Makefile.am): Create inttypes.h from inttypes_.h.
93199         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
93201         * modules/imaxabs: New file.
93203         * modules/imaxdiv: New file.
93205 2006-08-26  Bruno Haible  <bruno@clisp.org>
93207         * m4/inttypes.m4: New file.
93208         * m4/_inttypes_h.m4: Remove file.
93209         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
93210         PRI_MACROS_BROKEN.
93211         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
93213         * m4/imaxabs.m4: New file.
93215         * m4/imaxdiv.m4: New file.
93217 2006-08-26  Bruno Haible  <bruno@clisp.org>
93219         * lib/inttypes_.h: New file.
93220         * lib/inttypes.h: Remove file.
93221         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
93223         * lib/imaxabs.c: New file.
93225         * lib/imaxdiv.c: New file.
93227 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
93229         New config-h module, so that "make" output needn't be cluttered
93230         by -DHAVE_CONFIG_H.
93231         * MODULES.html.sh (Support for building libraries and executables):
93232         Add config-h.
93233         * modules/config-h: New file.
93234         * gnulib-tool (nl, sed_transform_lib_file): New vars.
93235         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
93236         the config-h module is used.
93238         New configmake module, so that "make" output needn't be cluttered
93239         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
93240         * MODULES.html.sh (Support for building libraries and executables):
93241         Add configmake.
93242         * modules/configmake: New file.
93244 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
93246         * m4/config-h.m4: New file.
93248 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
93250         * config/srclist.txt: Add elisp-comp.
93252 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
93254         * MODULES.html.sh (Support for building libraries and executables):
93255         Add elisp-comp.
93256         * build-aux/elisp-comp: New file.
93257         * modules/elisp-comp: New file.
93259 2006-08-24  Bruno Haible  <bruno@clisp.org>
93261         * gnulib-tool (func_create_testdir): Use non-default values of
93262         sourcebase and m4base.
93264 2006-08-24  Bruno Haible  <bruno@clisp.org>
93266         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
93267         HTML structure.
93269 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
93271         * modules/openat (Depends-on): Add lchown.
93273 2006-08-23  Bruno Haible  <bruno@clisp.org>
93275         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
93276         of gl_LOCK_EARLY instead of gl_LOCK.
93278 2006-08-23  Bruno Haible  <bruno@clisp.org>
93280         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
93281         on OSF/1 to no.
93282         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
93284 2006-08-23  Bruno Haible  <bruno@clisp.org>
93286         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
93287         as unusable.
93289         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
93290         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
93291         (gl_LOCK): New macro.
93293 2006-08-22  Simon Josefsson  <jas@extundo.com>
93295         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
93296         to md5 module.
93298 2006-08-22  Simon Josefsson  <jas@extundo.com>
93300         * MODULES.html.sh: Add "Support for maintaining and release
93301         projects".
93303         * build-aux/gnupload: New file, from coreutils.
93305 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
93307         Avoid the need for AC_LIBSOURCES in m4 macros.
93308         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
93309         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
93310         * modules/check-version (EXTRA_DIST): Add check-version.h.
93311         * modules/crc (EXTRA_DIST): Add crc.h.
93312         * modules/des (EXTRA_DIST): Add des.h.
93313         * modules/gc (EXTRA_DIST): Add gc.h.
93314         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
93315         * modules/getline (EXTRA_DIST): Add getline.h.
93316         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
93317         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
93318         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
93319         * modules/md2 (EXTRA_DIST): Add md2.h.
93320         * modules/md4 (EXTRA_DIST): Add md4.h.
93321         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
93322         * modules/read-file (EXTRA_DIST): Add read-file.h.
93323         * modules/readline (EXTRA_DIST): Add readline.h.
93324         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
93325         rijndael-api-fst.h.
93327 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
93329         * m4/rijndael.m4 (gl_ARCFOUR):
93330         * m4/arctwo.m4 (gl_ARCTWO):
93331         * m4/check-version.m4 (gl_CHECK_VERSION):
93332         * m4/crc.m4 (gl_CRC):
93333         * m4/des.m4 (gl_DES):
93334         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
93335         * m4/gc.m4 (gl_GC):
93336         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
93337         * m4/getline.m4 (gl_FUNC_GETLINE):
93338         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
93339         * m4/hmac-md5.m4 (gl_HMAC_MD5):
93340         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
93341         * m4/md2.m4 (gl_MD2):
93342         * m4/md4.m4 (gl_MD4):
93343         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
93344         * m4/read-file.m4 (gl_FUNC_READ_FILE):
93345         * m4/readline.m4 (gl_FUNC_READLINE):
93346         * m4/rijndael.m4 (gl_RIJNDAEL):
93347         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
93348         to get the necessary .h files and whatnot.
93350 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
93352         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
93353         gnulib rather than the other way around.
93354         * config/srclistvars.sh (COREUTILS): Remove.
93356 2006-08-22  Jim Meyering  <jim@meyering.net>
93358         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
93360         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
93362 2006-08-22  Eric Blake  <ebb9@byu.net>
93364         * modules/regexprops-generic: New file.
93365         * MODULES.html.sh (Support for building documentation): List it.
93367 2006-08-22  Eric Blake  <ebb9@byu.net>
93369         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
93370         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
93371         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
93372         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
93374 2006-08-22  Bruno Haible  <bruno@clisp.org>
93376         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
93377         and lib_LTLIBRARIES like the other lib_* variables.
93379 2006-08-22  Bruno Haible  <bruno@clisp.org>
93381         * build-aux/x-to-1.in: New file, from GNU gettext.
93383 2006-08-22  Bruno Haible  <bruno@clisp.org>
93385         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
93386         <utmpx.h> exists.
93388 2006-08-22  Bruno Haible  <bruno@clisp.org>
93390         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
93391         <utmpx.h> exists.
93393 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
93395         BeOS portability.
93396         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
93397         exist.
93398         Problem reported by Bruno Haible.
93400 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
93402         Avoid the need for AC_LIBSOURCES in m4 macros.
93403         * modules/acl (EXTRA_DIST): Add acl.h.
93404         * modules/argmatch (Files): Add m4/argmatch.m4.
93405         (configure.ac): Add gl_ARGMATCH.
93406         (EXTRA_DIST): Renamed from lib_SOURCES, for
93407         consistency with the other modules.  Remove argmatch.c.
93408         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
93409         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
93410         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
93411         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
93412         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
93413         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
93414         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
93415         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
93416         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
93417         * modules/closeout (EXTRA_DIST): Add closeout.h.
93418         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
93419         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
93420         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
93421         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
93422         dirname.h; remove basename.c and stripslash.c.
93423         * modules/exclude (EXTRA_DIST): Add exclude.h.
93424         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
93425         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
93426         * modules/file-type (EXTRA_DIST): Add file-type.h.
93427         * modules/filemode (EXTRA_DIST): Add filemode.h.
93428         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
93429         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
93430         * modules/fpending (EXTRA_DIST): Add __fpending.h.
93431         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
93432         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
93433         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
93434         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
93435         * modules/getdate (EXTRA_DIST): Add getdate.c.
93436         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
93437         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
93438         * modules/getpass (EXTRA_DIST): Add getpass.h.
93439         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
93440         * modules/group-member (EXTRA_DIST): Add group-member.h.
93441         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
93442         * modules/hash (EXTRA_DIST): Add hash.h.
93443         * modules/human (EXTRA_DIST): Add human.h.
93444         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
93445         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
93446         * modules/lchown (EXTRA_DIST): Add lchown.h.
93447         * modules/long-options (EXTRA_DIST): Add long-options.h.
93448         * modules/lstat (EXTRA_DIST): Add lstat.h.
93449         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
93450         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
93451         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
93452         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
93453         * modules/memxor (EXTRA_DIST): Add memxor.h.
93454         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
93455         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
93456         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
93457         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
93458         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
93459         * modules/physmem (EXTRA_DIST): Add physmem.h.
93460         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
93461         * modules/posixver (EXTRA_DIST): Add posixver.h.
93462         * modules/quote (EXTRA_DIST): Add quote.h.
93463         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
93464         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
93465         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
93466         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
93467         regex_internal.h regexec.c.
93468         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
93469         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
93470         * modules/same (EXTRA_DIST): Add same.h.
93471         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
93472         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
93473         * modules/savedir (EXTRA_DIST): Add savedir.h.
93474         * modules/sha1 (EXTRA_DIST): Add sha1.h.
93475         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
93476         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
93477         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
93478         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
93479         * modules/strdup (EXTRA_DIST): Add strdup.h.
93480         * modules/strftime (EXTRA_DIST): Add strftime.h.
93481         * modules/strndup (EXTRA_DIST): Add strndup.h.
93482         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
93483         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
93484         * modules/time_r (EXTRA_DIST): Add time_r.h.
93485         * modules/timespec (EXTRA_DIST): Add timespec.h.
93486         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
93487         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
93488         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
93489         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
93490         * modules/userspec (EXTRA_DIST): Add userspec.h.
93491         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
93492         * modules/utimens (EXTRA_DIST): Add utimens.h.
93493         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
93494         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
93495         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
93496         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
93497         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
93498         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
93499         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
93500         * modules/yesno (EXTRA_DIST): Add yesno.h.
93502 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
93504         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
93506         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
93507         * m4/dev-ino.m4, same-inode.m4: Remove.
93509         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
93510         * m4/acl.m4 (AC_FUNC_ACL):
93511         * m4/backupfile.m4 (gl_BACKUPFILE):
93512         * m4/c-strtod.m4 (gl_C99_STRTOLD):
93513         * m4/canon-host.m4 (gl_CANON_HOST):
93514         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
93515         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
93516         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
93517         * m4/cloexec.m4 (gl_CLOEXEC):
93518         * m4/close-stream.m4 (gl_CLOSE_STREAM):
93519         * m4/closeout.m4 (gl_CLOSEOUT):
93520         * m4/dirfd.m4 (gl_FUNC_DIRFD):
93521         * m4/dirname.m4 (gl_DIRNAME):
93522         * m4/exclude.m4 (gl_EXCLUDE):
93523         * m4/exitfail.m4 (gl_EXITFAIL):
93524         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
93525         * m4/file-type.m4 (gl_FILE_TYPE):
93526         * m4/filemode.m4 (gl_FILEMODE):
93527         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
93528         * m4/fpending.m4 (gl_FUNC_FPENDING):
93529         * m4/fprintftime.m4 (gl_FPRINTFTIME):
93530         * m4/fts.m4 (gl_FUNC_FTS):
93531         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
93532         * m4/getdate.m4 (gl_GETDATE):
93533         * m4/gethrxtime.m4 (gl_GETHRXTIME):
93534         * m4/getpagesize.m4 (gl_GETPAGESIZE):
93535         * m4/getpass.m4 (gl_FUNC_GETPASS):
93536         * m4/gettime.m4 (gl_GETTIME):
93537         * m4/getugroups.m4 (gl_GETUGROUPS):
93538         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
93539         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
93540         * m4/hard-locale.m4 (gl_HARD_LOCALE):
93541         * m4/hash.m4 (gl_HASH):
93542         * m4/idcache.m4 (gl_IDCACHE):
93543         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
93544         * m4/lchown.m4 (gl_FUNC_LCHOWN):
93545         * m4/long-options.m4 (gl_LONG_OPTIONS):
93546         * m4/lstat.m4 (gl_FUNC_LSTAT):
93547         * m4/md5.m4 (gl_MD5):
93548         * m4/memcasecmp.m4 (gl_MEMCASECMP):
93549         * m4/memcoll.m4 (gl_MEMCOLL):
93550         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
93551         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
93552         * m4/memxor.m4 (gl_MEMXOR):
93553         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
93554         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
93555         * m4/modechange.m4 (gl_MODECHANGE):
93556         * m4/mountlist.m4 (gl_MOUNTLIST):
93557         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
93558         * m4/openat.m4 (gl_FUNC_OPENAT):
93559         * m4/pathmax.m4 (gl_PATHMAX):
93560         * m4/physmem.m4 (gl_PHYSMEM):
93561         * m4/posixtm.m4 (gl_POSIXTM):
93562         * m4/posixver.m4 (gl_POSIXVER):
93563         * m4/quote.m4 (gl_QUOTE):
93564         * m4/quotearg.m4 (gl_QUOTEARG):
93565         * m4/readtokens.m4 (gl_READTOKENS):
93566         * m4/readutmp.m4 (gl_READUTMP):
93567         * m4/regex.m4 (gl_REGEX):
93568         * m4/safe-read.m4 (gl_SAFE_READ):
93569         * m4/safe-write.m4 (gl_SAFE_WRITE):
93570         * m4/same.m4 (gl_SAME):
93571         * m4/save-cwd.m4 (gl_SAVE_CWD):
93572         * m4/savedir.m4 (gl_SAVEDIR):
93573         * m4/settime.m4 (gl_SETTIME):
93574         * m4/sha1.m4 (gl_SHA1):
93575         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
93576         * m4/stat-macros.m4 (gl_STAT_MACROS):
93577         * m4/stat-time.m4 (gl_STAT_TIME):
93578         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
93579         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
93580         * m4/strdup.m4 (gl_FUNC_STRDUP):
93581         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
93582         * m4/strndup.m4 (gl_FUNC_STRNDUP):
93583         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
93584         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
93585         * m4/time_r.m4 (gl_TIME_R):
93586         * m4/timespec.m4 (gl_TIMESPEC):
93587         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
93588         * m4/unlinkdir.m4 (gl_UNLINKDIR):
93589         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
93590         * m4/userspec.m4 (gl_USERSPEC):
93591         * m4/utimecmp.m4 (gl_UTIMECMP):
93592         * m4/utimens.m4 (gl_UTIMENS):
93593         * m4/xalloc.m4 (gl_XALLOC):
93594         * m4/xgetcwd.m4 (gl_XGETCWD):
93595         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
93596         * m4/xreadlink.m4 (gl_XREADLINK):
93597         * m4/xstrtod.m4 (gl_XSTRTOD):
93598         * m4/yesno.m4 (gl_YESNO):
93599         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
93600         to get the necessary .h files and whatnot.
93602 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
93603             Bruno Haible  <bruno@clisp.org>
93605         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
93606         /bin/sh understanding of '!' conditional negation.
93608 2006-08-21  Jim Meyering  <jim@meyering.net>
93610         * modules/openat (Depends-on): Really alphabetize.
93612         * modules/acl (Depends-on): Add error and quote.
93614         * check-module (find_included_lib_files): Add at-func.c to the
93615         ok-to-include-more-than-once white list.
93617         * modules/openat (Depends-on): Add lstat.  Alphabetize.
93619 2006-08-21  Bruno Haible  <bruno@clisp.org>
93621         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
93622         Emit a pkgdata_DATA variable only if some snippets add contents to it.
93623         Reported by Martin Lambers <marlam@marlam.de>.
93625 2006-08-21  Bruno Haible  <bruno@clisp.org>
93627         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
93628         specify an installation location, don't emit a noinst_LIBRARIES or
93629         noinst_LTLIBRARIES assignment.
93631 2006-08-21  Bruno Haible  <bruno@clisp.org>
93633         BeOS portability.
93634         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
93635         BeOS has mbrtowc() but no <wctype.h>.
93637 2006-08-21  Bruno Haible  <bruno@clisp.org>
93639         BeOS portability.
93640         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
93641         exist.
93643 2006-08-21  Bruno Haible  <bruno@clisp.org>
93645         BeOS portability.
93646         * lib/mbchar.h: Include <wctype.h> only if it exists.
93648 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
93650         Remove files that are no longer needed by their respective modules.
93651         * m4/obstack.m4: Remove.
93652         * m4/strerror_r.m4: Remove.
93653         * m4/uint32_t.m4: Remove.
93654         * m4/uintptr_t.m4: Remove.
93655         * m4/ullong_max.m4: Remove.
93656         * m4/xstrtoimax.m4: Remove.
93657         * m4/xstrtoumax.m4: Remove.
93659         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
93660         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
93661         dependencies now capture this.
93663         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
93664         Do not use AC_LIBSOURCES, since gnulib modules now do this.
93665         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
93666         * m4/human.m4 (gl_HUMAN): Likewise.
93667         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
93668         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
93670         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
93672         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
93673         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
93674         stdint.
93675         * m4/human.m4 (gl_HUMAN): Likewise.
93676         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
93677         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
93678         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
93679         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
93680         * m4/xstrtol (gl_XSTRTOL): Likewise.
93682         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
93683         AC_TYPE_LONG_LONG_INT.
93684         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
93685         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
93686         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
93687         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
93689         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
93690         on stdbool.
93692         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
93693         (gl_PREREQ_XSTRTOUL): Remove.
93695         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
93697         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
93698         mode.
93700 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
93702         Add and change modules to make it easier for coreutils to use
93703         gnulib-tool.
93704         * modules/backupfile (Files): Remove m4/d-ino.m4.
93705         (Depends-on): Add d-ino.
93706         * modules/cycle-check (Depends-on): Add stdint.
93707         (lib_SOURCES): Add cycle-check.h.
93708         * modules/d-ino: New module.
93709         * modules/d-type: New module.
93710         * modules/error (Files): Remove m4/strerror_r.m4.
93711         * modules/filemode (Files): Add m4/st_dm_mode.m4.
93712         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
93713         m4/inttypes_h.m4, m4/uintmax_t.m4.
93714         (Depends-on): Add stdint.
93715         (lib_SOURCES): Add fsusage.h.
93716         * modules/getcwd (Files): Remove d-ino.m4.
93717         (Depends-on): Add d-ino.
93718         * modules/getndelim2 (Depends-on): Add stdint.
93719         * modules/glob (Files): Remove m4/d-type.m4.
93720         (Depends-on): Add d-type.
93721         * modules/host-os: New module.
93722         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
93723         m4/inttypes_h.m4, m4/uintmax_t.m4.
93724         * Depends-on: Add stdint.
93725         (lib_SOURCES): Add human.h.
93726         * modules/inttostr (Files): Remove m4/intmax_t.m4,
93727         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
93728         m4/uintmax_t.m4, m4/ulonglong.m4.
93729         (Depends-on): Add stdint.
93730         (EXTRA_DIST): Add inttostr.h.
93731         * modules/lchmod: New module.
93732         * modules/link-follow: New module.
93733         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
93734         (Depends-on): Add lchmod.
93735         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
93736         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
93737         (Depends-on): Add stdint.
93738         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
93739         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
93740         (Depends-on): Add stdint.
93741         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
93742         * modules/perl: New module.
93743         * modules/regex (Depends-on): Add stdint.
93744         * modules/rmdir-errno: New module.
93745         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
93746         m4/intmax_t.m4.
93747         (Depends-on): Add stdint.
93748         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
93749         m4/uintmax_t.m4.
93750         (Depends-on): Add stdint.
93751         * modules/unlink-busy: New module.
93752         * modules/utimecmp (Depends-on): Add stdint.
93753         * modules/uptime: New module.
93754         * modules/winsz-ioctl: New module.
93755         * modules/winsz-termios: New module.
93756         * modules/xnanosleep (Depends-on): Add nanosleep.
93757         * modules/ullong_max: Remove.
93758         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
93759         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
93760         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
93761         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
93762         (Depends-on): Add inttypes.
93763         (lib_SOURCES): Add xstrtol.h.
93764         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
93765         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
93766         * MODULES.html.sh: Move 'assert' into the assert section.
93767         Move 'dummy' into the linking section.
93768         Remove ullong_max.
93769         Add section for compatibility checks for POSIX:2001 functions,
93770         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
93771         winsz-ioctl, and winsz-termios into it.
93772         Add lchmod.
93773         Add top-level Misc section and put host-os, perl, and uptime
93774         into it.
93776 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
93778         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
93779         now assume the stdint module.  Do not include inttypes.h.
93780         * lib/fsusage.h: Likewise.
93781         * lib/getndelim2.c: Likewise.
93782         * lib/human.h: Likewise.
93783         * lib/inttostr.h: Likewise.
93784         * lib/obstack.c: Likewise.
93785         * lib/regex_internal.h: Likewise.
93786         * lib/tempname.c: Likewise.
93787         * lib/utimecmp.c: Likewise.
93788         * lib/xstrtol.h: Likewise.
93790         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
93792         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
93793         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
93794         * lib/xtime.h: Likewise.
93796 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
93798         * modules/openat (Files): Add lib/fchmodat.c.
93799         Fixes problem reported by Jay Youngman.
93801 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
93803         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
93804         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
93806 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
93807             Bruno Haible  <bruno@clisp.org>
93809         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
93810         and is a script that invokes bison. Tighten the code. Add comments.
93812 2006-08-18  Jim Meyering  <jim@meyering.net>
93814         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
93815         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
93816         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
93817         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
93819 2006-08-18  Bruno Haible  <bruno@clisp.org>
93821         * modules/bison-i18n: New file.
93822         * MODULES.html.sh (Internationalization functions): Add it.
93824 2006-08-18  Bruno Haible  <bruno@clisp.org>
93826         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
93827         sys/statvfs.h. When getmntinfo was found, check its declaration and
93828         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
93830 2006-08-18  Bruno Haible  <bruno@clisp.org>
93832         * m4/bison-i18n.m4: New file, from bison.
93834 2006-08-18  Bruno Haible  <bruno@clisp.org>
93836         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
93837         (ME_DUMMY): Treat "kernfs" as a dummy.
93838         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
93840 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
93842         Update from coreutils.
93844         2006-08-15  Jim Meyering  <jim@meyering.net>
93846         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
93848         2006-01-17  Jim Meyering  <jim@meyering.net>
93850         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
93852         2006-01-11  Jim Meyering  <jim@meyering.net>
93854         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
93855         Check for the lchmod function.
93857 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
93859         Update from coreutils.
93861         * lib/__fpending.h: Add copyright notice.
93862         * lib/fprintftime.h: Likewise.
93863         * lib/savedir.c: Use (C) in copyright notice.
93864         * lib/savedir.h: Likewise.
93866         2006-08-15  Jim Meyering  <jim@meyering.net>
93868         * lib/at-func.c: New file, with the logic of all emulated at-functions.
93869         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
93870         in support of the EXPECTED_ERRNO macro.
93871         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
93872         definitions.  Instead, define the appropriate symbols and include
93873         "at-func.c".
93874         * lib/mkdirat.c (mkdirat): Likewise.
93875         * lib/fchmodat.c (fchmodat): Likewise.
93876         (ENOSYS): Remove definition.
93877         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
93878         it.  Don't include "unistd--.h" -- it wasn't ever used.
93880         2006-01-17  Jim Meyering  <jim@meyering.net>
93882         Rewrite fts.c not to change the current working directory,
93883         by using openat, fstatat, fdopendir, etc..
93885         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
93886         (HAVE_OPENAT_SUPPORT): Define.
93887         [_LIBC] (fchdir): Don't undef or define; no longer used.
93888         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
93889         Now, this `function' always succeeds, and consumes its file descriptor
93890         parameter -- so callers must not close such FDs.  Update callers.
93891         (diropen_fd, opendirat, cwd_advance_fd): New functions.
93892         (diropen): Add parameter, SP.  Adjust all callers.
93893         Implement using diropen_fd, rather than open.
93894         (fts_open): Initialize new member, fts_cwd_fd.
93895         Remove fts_rft-setting code.
93896         (fts_close): Close fts_cwd_fd, if necessary.
93897         (__opendir2): Define in terms of opendir or opendirat,
93898         depending on whether the FST_NOCHDIR flag is set.
93899         (fts_build): Since fts_safe_changedir consumes its FD, and since
93900         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
93901         and close the dup'd file descriptor upon failure.
93902         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
93903         (fts_safe_changedir): Tweak semantics to reflect that this function
93904         now calls cwd_advance_fd and hence consumes its FD argument.
93905         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
93906         [struct FTS] (fts_rft): Remove now-unused member.
93907         [struct FTS] (fts_cycle.state): Improve comment.
93909         * lib/openat.c (openat_needs_fchdir): New function.
93910         * lib/openat.h (openat_needs_fchdir): Declare it.
93912 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
93914         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
93915         Problem and fix reported by Pádraig Brady in
93916         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
93918 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
93920         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
93922 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
93924         * lib/memcoll.c (memcoll): Optimize for the common case where the
93925         arguments are bytewise equal.
93927 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
93929         * doc/regexprops-generic.texi: Add a copyright notice.
93931 2006-08-15  Bruno Haible  <bruno@clisp.org>
93933         * modules/tmpdir (License): Change to LGPL.
93935 2006-08-15  Bruno Haible  <bruno@clisp.org>
93937         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
93938         module.
93940 2006-08-14  Simon Josefsson  <jas@extundo.com>
93942         * config/srclist.txt: Add gnupload.
93944 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
93946         Change copyright notice from LGPL 2 to GPL 2, since that's the
93947         standard form used in the gnulib repository.
93948         * tests/test-lock.c: Likewise.
93949         * tests/test-stdint.c: Likewise.
93950         * tests/test-tls.c: Likewise.
93952         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
93953         prelude-manager.  User shorter URLs for GNU projects, without '?'.
93954         Add copyright notice.
93956         * check-module: Add copyright notice.  Output a copyright
93957         notice if "--version" is specified.
93958         * modules/COPYING: New file.
93959         * tests/test-getaddrinfo.c: Add copyright notice.
93960         * tests/test-verify.c: Likewise.
93962 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
93964         Change copyright notice from LGPL 2 to GPL 2, since that's the
93965         standard form used in the gnulib repository.
93966         * lib/lock.c: LGPL -> GPL.
93967         * lib/lock.h: Likewise.
93968         * lib/strnlen1.c: Likewise.
93969         * lib/strnlen1.h: Likewise.
93970         * lib/tls.c: Likewise.
93971         * lib/tls.h: Likewise.
93972         * lib/tmpdir.c: Likewise.
93974         * lib/TODO: Remove; this belongs only in coreutils.
93976 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
93978         Add copyright notices to long-enough files that lack them, since
93979         otherwise the files aren't clearly free.  Use the same notice that
93980         getdate.texi already uses.
93981         * doc/alloca-opt.texi: Add copyright notice.
93982         * doc/alloca.texi: Likewise.
93983         * doc/ctime.texi: Likewise.
93984         * doc/functions.texi: Likewise.
93985         * doc/gcd.texi: Likewise.
93986         * doc/gnulib-tool.texi: Likewise.
93987         * doc/inet_ntoa.texi: Likewise.
93988         * doc/visibility.texi: Likewise.
93990         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
93991         * doc/quote.texi: Add copyright notice.
93993         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
93994         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
93995         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
93996         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
93997         is now obsolete, and give a pointer to the Sun list.
93998         Add copyright notice.
94000 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
94002         * config/srclistvars.sh: Add copyright notice.
94004 2006-08-14  Eric Blake  <ebb9@byu.net>
94006         Import the following change from libc:
94008         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
94010         Upstream bug 2997.
94011         * lib/misc/error.c: Add space between program name and message if file
94012         name is missing.
94014 2006-08-12  Karl Berry  <karl@gnu.org>
94016         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
94017         remove, these originate in gnulib now.
94019 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94021         * doc/Makefile (standards.info standards.html standards.dvi):
94022         Also depend on make-stds.texi.
94024 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
94026         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
94027         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
94029         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
94030         in wchar_t.  Problem reported by Eric Blake.
94032         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
94033         LEN is smaller than SIZE.  Suggested by Bruno Haible.
94034         Also, help the compiler to keep LEN in a register.
94036 2006-08-11  Eric Blake  <ebb9@byu.net>
94038         * users.txt: Sort.  Add tar.
94040 2006-08-11  Bruno Haible  <bruno@clisp.org>
94042         * users.txt: New file.
94044 2006-08-11  Bruno Haible  <bruno@clisp.org>
94046         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
94047         before <wchar.h>. Needed for OSF/1 and BSD/OS.
94049 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
94051         * modules/snprintf (Depends-on): Remove minmax.
94052         (Maintainer): Add self and Bruno.
94054 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
94056         * lib/.cppi-disable: Add snprintf.h, socket_.h.
94057         * lib/snprintf.c: Include <errno.h> and <limits.h>.
94058         (EOVERFLOW): Define if the system does not.
94059         Do not include "minmax.h"; it wasn't used.
94060         (snprintf): Don't assume size_t promotes to an unsigned type.
94061         Fix bug when generated string was too long for the buffer: the
94062         buffer's contents are supposed to be the initial prefix of the
94063         output.  Don't assume vasnprintf returns EOVERFLOW if the size
94064         exceeds INT_MAX; do the check ourselves.
94066         Import the following changes from libc:
94068         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
94070         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
94071         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
94072         set wc to the byte which couldn't be converted.
94073         (re_string_reconstruct): Don't clear valid_raw_len before calling
94074         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
94075         tip_context using re_string_context_at.
94077         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
94079         * lib/posix/regex.h: g++ still cannot handled [restrict].
94081         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
94083         * lib/posix/regex.h: Remove special handling for VMS.
94085 2006-08-10  Jim Meyering  <jim@meyering.net>
94087         * modules/same-inode: New module.
94088         * modules/dev-ino: New module.
94089         * modules/cycle-check: Depend on these modules, rather than simply
94090         including their .h files.
94091         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
94092         required via m4/cycle-check.m4.
94093         * modules/same: Depend on new same-inode module, rather than
94094         including same-inode.h.
94095         * modules/chdir-safer: New file.
94097         * modules/chown (Depends-on): Add stat-macros.
94099 2006-08-10  Jim Meyering  <jim@meyering.net>
94101         * m4/cycle-check.m4: New file.
94102         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
94103         * m4/dev-ino.m4, m4/same-inode.m4: New files.
94105 2006-08-10  Eric Blake  <ebb9@byu.net>
94107         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
94108         in from original proposal.
94110 2006-08-10  Eric Blake  <ebb9@byu.net>
94111         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
94113         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
94114         namespace.
94116 2006-08-10  Bruno Haible  <bruno@clisp.org>
94118         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
94119         as well.
94121 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
94123         Sync from coreutils.
94125         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
94127         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
94128         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
94130 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
94132         * modules/restrict: Remove; no longer needed now that we assume
94133         Autoconf 2.59 or later.
94134         * MODULES.html.sh: Remove 'restrict'.
94135         * modules/argp (Depends-on): Remove 'restrict'.
94136         * modules/base64 (Depends-on): Likewise.
94137         * modules/gc (Depends-on): Likewise.
94138         * modules/getaddrinfo (Depends-on): Likewise.
94139         * modules/glob (Depends-on): Likewise.
94140         * modules/inet_ntop (Depends-on): Likewise.
94141         * modules/inet_pton (Depends-on): Likewise.
94142         * modules/memxor (Depends-on): Likewise.
94143         * modules/regex (Depends-on): Likewise.
94144         * modules/strtok_r (Depends-on): Likewise.
94145         * modules/time_r (Depends-on): Likewise.
94147 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
94149         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
94150         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
94151         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
94152         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
94153         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
94154         * m4/memxor.m4 (gl_MEMXOR): Likewise.
94155         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
94156         gl_C_RESTRICT replaced by AC_C_RESTRICT.
94158         Merge from coreutils.
94159         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
94160         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
94161         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
94162         * m4/time_r.m4 (gl_TIME_R): Likewise.
94164 2006-08-09  Karl Berry  <karl@gnu.org>
94166         * config/srclist.txt: no more gettext-tools, per Bruno.
94168 2006-08-08  Eric Blake  <ebb9@byu.net>
94170         * modules/verror: New module.
94171         * MODULES.html.sh: Document it.
94173 2006-08-08  Eric Blake  <ebb9@byu.net>
94175         * lib/verror.h, lib/verror.c: New files.
94177 2006-08-08  Eric Blake  <ebb9@byu.net>
94179         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
94180         verror_at_line output complies with GNU Coding Standards even when
94181         file is NULL.
94183 2006-08-07  Bruno Haible  <bruno@clisp.org>
94185         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
94186         versions of AIX.
94187         Reported by Ralf Wildenhues.
94189 2006-08-07  Bruno Haible  <bruno@clisp.org>
94191         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
94192         in an AC_DEFUN. Needed so that the autoconf snippets can use
94193         AC_REQUIRE.
94195 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94197         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
94198         Initialize pkgdata_DATA.
94199         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
94200         overriding it.
94202 2006-08-06  Eric Blake  <ebb9@byu.net>
94204         * lib/error.h: Fold in some upstream changes from glibc.
94205         * lib/error.c: Likewise.
94207 2006-08-04  Bruno Haible  <bruno@clisp.org>
94209         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
94210         Make the mostlyclean-local rule depend on mostlyclean-generic.
94211         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
94213 2006-07-31  Bruno Haible  <bruno@clisp.org>
94215         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
94216         <stdlib.h>, <string.h>.
94218 2006-07-30  Bruno Haible  <bruno@clisp.org>
94220         * modules/readlink (License): Change to LGPL.
94222 2006-07-30  Bruno Haible  <bruno@clisp.org>
94224         * modules/javaversion (Makefile.am): Distribute javaversion.java and
94225         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
94226         set PKGDATADIR to point to it.
94228 2006-07-30  Bruno Haible  <bruno@clisp.org>
94230         * modules/csharpexec (configure.ac): Comment out macro invocation.
94231         * modules/javaexec (configure.ac): Likewise.
94232         * modules/javacomp-script (configure.ac): Likewise.
94234         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
94236 2006-07-30  Bruno Haible  <bruno@clisp.org>
94238         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
94239         linked-list.
94241 2006-07-30  Bruno Haible  <bruno@clisp.org>
94243         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
94245 2006-07-30  Bruno Haible  <bruno@clisp.org>
94247         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
94248         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
94249         get removed.
94251 2006-07-29  Bruno Haible  <bruno@clisp.org>
94253         Make it possible for gnulib-tool to work with locally modified or
94254         augmented gnulib repositories.
94255         * gnulib-tool (func_usage): Document --local-dir option.
94256         (local_gnulib_dir): New variable.
94257         Handle --local-dir option.
94258         (func_lookup_file): New function.
94259         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
94260         (func_get_description, func_get_filelist, func_get_description,
94261         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
94262         func_get_automake_snippet, func_get_include_directive,
94263         func_get_license, func_get_maintainer): Use func_lookup_file.
94264         (func_import, func_create_testdir): Use func_lookup_file.
94266 2006-07-29  Bruno Haible  <bruno@clisp.org>
94268         * modules/setenv (Depends-on): Add unistd.
94270 2006-07-29  Bruno Haible  <bruno@clisp.org>
94272         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
94274 2006-07-29  Bruno Haible  <bruno@clisp.org>
94276         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
94278 2006-07-29  Bruno Haible  <bruno@clisp.org>
94280         * gnulib-tool (import, update): If there is no Makefile.am, look at
94281         aclocal.m4, instead of bailing out.
94283 2006-07-29  Bruno Haible  <bruno@clisp.org>
94285         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
94286         Categorize the options by when they are useful.
94288 2006-07-29  Bruno Haible  <bruno@clisp.org>
94290         * gnulib-tool (func_usage): Document option --no-libtool.
94291         Handle option --no-libtool.
94292         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
94293         for changed semantics of $libtool variable.
94294         (func_import): Likewise. If libtool is not used, show this through
94295         an option --no-libtool.
94296         (func_create_testdir): Update.
94298 2006-07-29  Bruno Haible  <bruno@clisp.org>
94300         * gnulib-tool (func_import): Extend error message about missing
94301         --doc-base.
94303 2006-07-29  Bruno Haible  <bruno@clisp.org>
94305         * gnulib-tool (func_import): Don't create the $docbase directory if
94306         there is no file to store there.
94308 2006-07-29  Bruno Haible  <bruno@clisp.org>
94310         * gnulib-tool (autoconf_minversion): If a --dir option is given and
94311         relevant, look for configure.ac there, not in the current directory.
94312         Also use a simple search for AC_PREREQ, not "autoconf --trace".
94314 2006-07-29  Bruno Haible  <bruno@clisp.org>
94316         * gnulib-tool (SORT): New variable.
94317         (func_usage): Undocument --assume-autoconf option.
94318         Remove --assume-autoconf option handling.
94319         (autoconf_minversion): Determine from the contents of configure.ac.
94320         (func_import): Remove autoconf_minversion handling.
94321         Suggested by Eric Blake.
94323 2006-07-29  Bruno Haible  <bruno@clisp.org>
94325         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
94327 2006-07-29  Bruno Haible  <bruno@clisp.org>
94329         * config/srclist.txt (*setenv.[ch]): Remove rules.
94331 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
94333         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
94335 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
94337         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
94338         arpa/inet.h.
94340 2006-07-28  Simon Josefsson  <jas@extundo.com>
94342         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
94343         * modules/inet_pton (Depends-on): Likewise.
94345 2006-07-28  Simon Josefsson  <jas@extundo.com>
94347         * m4/netinet_in_h.m4: New file.
94349 2006-07-28  Simon Josefsson  <jas@extundo.com>
94351         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
94352         #include's.
94354 2006-07-28  Simon Josefsson  <jas@extundo.com>
94356         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
94357         #include's.
94359 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
94361         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
94362         setgid on directories only if they set these bits.
94363         * lib/modechange.h: Remove obsolete comment about masks.
94365 2006-07-28  Eric Blake  <ebb9@byu.net>
94367         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
94368         macro expansion.
94370 2006-07-28  Bruno Haible  <bruno@clisp.org>
94372         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
94374 2006-07-28  Bruno Haible  <bruno@clisp.org>
94376         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
94378 2006-07-28  Bruno Haible  <bruno@clisp.org>
94380         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
94381         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
94382         Define fallbacks.
94383         Avoids link error on FreeBSD 4.x.
94384         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
94386         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
94387         encoding.
94388         * lib/mbswidth.c (iswcntrl): Likewise.
94390 2006-07-27  Bruno Haible  <bruno@clisp.org>
94392         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
94393         test.
94395 2006-07-27  Bruno Haible  <bruno@clisp.org>
94397         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
94398         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
94399         defined.
94401 2006-07-26  Eric Blake  <ebb9@byu.net>
94403         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
94405 2006-07-26  Eric Blake  <ebb9@byu.net>
94407         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
94408         like mingw that lack mkstemp.
94409         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
94410         avoid compilation warning on mingw.
94412 2006-07-26  Bruno Haible  <bruno@clisp.org>
94414         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
94415         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
94416         INT_FAST*_MIN, INTPTR_MIN.
94418 2006-07-25  Bruno Haible  <bruno@clisp.org>
94420         * modules/version-etc (Depends-on): Add stdarg.
94422 2006-07-25  Bruno Haible  <bruno@clisp.org>
94424         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
94425         complex commands.
94427 2006-07-25  Bruno Haible  <bruno@clisp.org>
94429         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
94430         defined in <stdarg.h> or config.h.
94432 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
94434         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
94435         (gl_STDIO_SAFER): Remove.
94437 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
94439         * MODULES.html.sh (File stream based Input/Output):
94440         Add fopen-safer, tmpfile-safer; remove stdio-safer.
94441         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
94442         * modules/fopen-safer, modules/tmpfile-safer: New files.
94443         * modules/stdio-safer: Remove.
94445 2006-07-24  Bruno Haible  <bruno@clisp.org>
94447         * modules/tmpdir: New file.
94448         * MODULES.html.sh (File system functions): Add it.
94450 2006-07-24  Bruno Haible  <bruno@clisp.org>
94452         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
94453         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
94455 2006-07-24  Bruno Haible  <bruno@clisp.org>
94457         * modules/clean-temp: New file.
94459 2006-07-24  Bruno Haible  <bruno@clisp.org>
94461         * m4/tmpdir.m4: New file, from GNU gettext.
94463 2006-07-24  Bruno Haible  <bruno@clisp.org>
94465         * lib/tmpdir.h: New file, from GNU gettext.
94466         * lib/tmpdir.c: New file, from GNU gettext.
94468 2006-07-24  Bruno Haible  <bruno@clisp.org>
94470         * lib/clean-temp.h: New file, from GNU gettext.
94471         * lib/clean-temp.c: New file, from GNU gettext.
94473 2006-07-23  Eric Blake  <ebb9@byu.net>
94475         * modules/stdio-safer (Files): Add tmpfile-safer.c.
94476         (Depends-on): Add binary-io.
94478 2006-07-23  Eric Blake  <ebb9@byu.net>
94480         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
94482 2006-07-23  Eric Blake  <ebb9@byu.net>
94484         * lib/tmpfile-safer.c: New file.
94485         * lib/stdio-safer.h (fopen_safer): Add prototype.
94486         * lib/stdio--.h (tmpfile): Make safer.
94488 2006-07-23  Bruno Haible  <bruno@clisp.org>
94490         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
94491         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
94492         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
94493         gl_linked_remove_at): Use it.
94495 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
94496         and Simon Josefsson <jas@extundo.com>
94498         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
94500         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
94502 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
94504         * modules/close-stream: New file.
94505         * modules/closeout (Description): Make it clear that it exits
94506         with a diagnostic on error.
94507         (Depends-on): Add close-stream.  Remove fpending, stdbool.
94508         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
94510 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
94512         * m4/close-stream.m4: New file.
94514 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
94516         * lib/close-stream.c, lib/close-stream.h: New files.
94518 2006-07-22  Bruno Haible  <bruno@clisp.org>
94520         Merge from GNU gettext 0.15.
94522         2006-05-01  Bruno Haible  <bruno@clisp.org>
94524                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
94526         2006-07-22  Bruno Haible  <bruno@clisp.org>
94528                 * modules/javaversion: New file.
94529                 * MODULES.html.sh (Java): Add javaversion.
94531         2006-03-12  Bruno Haible  <bruno@clisp.org>
94533                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
94535         2005-12-04  Bruno Haible  <bruno@clisp.org>
94537                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
94538                 (untested).
94540         2006-06-21  Bruno Haible  <bruno@clisp.org>
94542                 Avoid warnings from recent versions of mcs.
94543                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
94544                 -o, -L, -r any more. Use options documented since mcs-1.0
94545                 instead. Similarly for -g.
94547         2005-12-04  Bruno Haible  <bruno@clisp.org>
94549                 * build-aux/csharpcomp.sh.in: Suffix for resources is
94550                 .resources, not .resource.
94552         2005-07-09  Bruno Haible  <bruno@clisp.org>
94554                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
94555                 add a .dll suffix.
94556                 Reported by Mark Junker <mjscod@gmx.de>.
94558         2006-07-22  Bruno Haible  <bruno@clisp.org>
94560                 * modules/gettext: Upgrade to gettext-0.15.
94561                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
94562                 m4/visibility.m4.
94563                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
94565 2006-07-22  Bruno Haible  <bruno@clisp.org>
94567         Merge from GNU gettext 0.15.
94569         2006-03-25  Bruno Haible  <bruno@clisp.org>
94571                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
94573         2006-07-21  Bruno Haible  <bruno@clisp.org>
94575                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
94576                 "1.1".
94578         2006-05-09  Bruno Haible  <bruno@clisp.org>
94580                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
94581                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
94582                 for the conftestver execution.
94584         2006-05-01  Bruno Haible  <bruno@clisp.org>
94586                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
94587                 optional target-version argument. Verify that the compiler
94588                 groks source of the specified source-version, or add -source
94589                 option as necessary. Verify that the compiler produces
94590                 bytecode in the specified target-version, or add -target and
94591                 -source options as necessary. Make the result of the test
94592                 available as variable CONF_JAVAC. Also log error output in
94593                 config.log.
94595         2006-03-11  Bruno Haible  <bruno@clisp.org>
94597                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
94599         2006-05-09  Bruno Haible  <bruno@clisp.org>
94601                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
94602                 CLASSPATH_SEPARATOR to a semicolon.
94604         2006-03-12  Bruno Haible  <bruno@clisp.org>
94606                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
94607                 available as variable CONF_JAVA, for subsequent autoconf
94608                 tests. Also log error output in config.log.
94610         2006-07-19  Bruno Haible  <bruno@clisp.org>
94612                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
94613                 that getline works on glibc2 systems. Needed to avoid trouble
94614                 in relocatable.c.
94615                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
94617         2005-12-04  Bruno Haible  <bruno@clisp.org>
94619                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
94620                 launcher (untested).
94622         2005-12-04  Bruno Haible  <bruno@clisp.org>
94624                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
94626         2006-07-22  Bruno Haible  <bruno@clisp.org>
94628                 * gettext.m4: Update from GNU gettext-0.15.
94629                 * nls.m4: Likewise.
94630                 * po.m4: Likewise.
94631                 * inttypes-pri.m4: Likewise.
94632                 * inttypes-h.m4: Renamed from inttypes.m4.
94633                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
94635 2006-07-22  Bruno Haible  <bruno@clisp.org>
94637         Merge from GNU gettext 0.15.
94639         2005-07-05  Bruno Haible  <bruno@clisp.org>
94641                 * printf-args.c (printf_fetchargs): Work around broken
94642                 definition of wint_t on mingw.
94644         2005-02-12  Bruno Haible  <bruno@clisp.org>
94646                 * xallocsa.h: Add extern "C" for C++.
94648         2006-05-17  Bruno Haible  <bruno@clisp.org>
94650                 Cygwin portability.
94651                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
94653         2006-04-30  Bruno Haible  <bruno@clisp.org>
94655                 * progreloc.c: Include <mach-o/dyld.h> if available.
94656                 (find_executable): Use _NSGetExecutablePath when possible.
94658         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
94660                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
94661                 function.
94663         2005-12-29  Bruno Haible  <bruno@clisp.org>
94665                 * progreloc.c (set_program_name_and_installdir): Fix
94666                 compilation error.
94668         2005-12-04  Bruno Haible  <bruno@clisp.org>
94670                 Cygwin portability.
94671                 * progreloc.c: Include <windows.h> also on Cygwin.
94672                 (find_executable): Add support for Cygwin.
94673                 (set_program_name_and_installdir): Handle also platforms with
94674                 nonempty EXEEXT.
94676         2006-07-11  Bruno Haible  <bruno@clisp.org>
94678                 * javacomp.c: Fix a comment.
94679                 Reported by Jim Meyering.
94681         2006-04-30  Bruno Haible  <bruno@clisp.org>
94683                 * javacomp.h (compile_java_class): Add source_version,
94684                 target_version arguments.
94685                 * javacomp.c: Rewritten to choose only a compiler that
94686                 respects the specified source_version and target_version.
94688         2006-06-27  Bruno Haible  <bruno@clisp.org>
94690                 Assume correct S_ISDIR macro.
94691                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
94693         2006-07-22  Bruno Haible  <bruno@clisp.org>
94695                 * javaversion.h: New file, from GNU gettext.
94696                 * javaversion.c: New file, from GNU gettext.
94697                 * javaversion.java: New file, from GNU gettext.
94698                 * javaversion.class: New file, from GNU gettext.
94700         2006-05-17  Bruno Haible  <bruno@clisp.org>
94702                 Cygwin portability.
94703                 * javaexec.c (execute_java_class): Test for jview program
94704                 also on Cygwin.
94706         2006-04-09  Bruno Haible  <bruno@clisp.org>
94708                 * fatal-signal.c: Don't include string.h.
94709                 (at_fatal_signal): Use a copying loop instead of memcpy.
94711         2005-12-04  Bruno Haible  <bruno@clisp.org>
94713                 * csharpexec.c: Add support for 'clix' launcher (untested).
94714                 (execute_csharp_using_sscli): New function.
94715                 (execute_csharp_program): Call it.
94717         2006-06-21  Bruno Haible  <bruno@clisp.org>
94719                 Avoid warnings from recent versions of mcs.
94720                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
94721                 -o, -L, -r any more. Use options documented since mcs-1.0
94722                 instead. Similarly for -g.
94724         2005-07-09  Bruno Haible  <bruno@clisp.org>
94726                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
94727                 add a .dll suffix.
94728                 Reported by Mark Junker <mjscod@gmx.de>.
94730         2006-06-17  Bruno Haible  <bruno@clisp.org>
94732                 * config.charset: Update for NetBSD 3.0.
94734         2006-05-17  Bruno Haible  <bruno@clisp.org>
94736                 Cygwin portability.
94737                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
94739         2006-05-16  Bruno Haible  <bruno@clisp.org>
94741                 * localcharset.c [CYGWIN]: Include <windows.h>.
94742                 (get_charset_aliases): For Cygwin, return the same CPxxx
94743                 aliases list as under WIN32.
94744                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
94745                 the environment variables. Fall back to GetACP().
94747         2006-04-05  Bruno Haible  <bruno@clisp.org>
94749                 * config.charset: Update Juan Manuel Guerrero's address.
94751         2005-02-12  Bruno Haible  <bruno@clisp.org>
94753                 * allocsa.h: Add extern "C" for C++.
94755         2005-02-10  Bruno Haible  <bruno@clisp.org>
94757                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
94758                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
94760         2006-07-22  Bruno Haible  <bruno@clisp.org>
94762                 * gettext.h: Update to GNU gettext-0.15.
94764 2006-07-22  Bruno Haible  <bruno@clisp.org>
94766         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
94767         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
94768         lib-prefix.m4, longdouble.m4, ssize_t.m4.
94770 2006-07-21  Eric Blake  <ebb9@byu.net>
94772         * modules/stdlib-safer: New file.
94773         * MODULES.html.sh (File stream based Input/Output): Add
94774         stdlib-safer.
94776 2006-07-21  Eric Blake  <ebb9@byu.net>
94778         * lib/stdlib-safer.h: New file from coreutils, required by
94779         stdlib--.h.
94781 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
94783         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
94785 2006-07-20  Bruno Haible  <bruno@clisp.org>
94787         * gnulib-tool: Recognize new option --assume-autoconf.
94788         (autoconf_minversion): New variable.
94789         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
94791 2006-07-20  Bruno Haible  <bruno@clisp.org>
94793         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
94795 2006-07-19  Derek R. Price  <derek@ximbiot.com>
94797         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
94798         Reindent and repaginate.
94800 2006-07-19  Derek Price  <derek@ximbiot.com>
94802         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
94803         Correct grammar.
94805 2006-07-17  Bruno Haible  <bruno@clisp.org>
94807         * modules/list: New file.
94808         * modules/array-list: New file.
94809         * modules/carray-list, modules/carray-list-tests: New files.
94810         * modules/linked-list, modules/linked-list-tests: New files.
94811         * modules/avltree-list, modules/avltree-list-tests: New files.
94812         * modules/rbtree-list, modules/rbtree-list-tests: New files.
94813         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
94814         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
94815         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
94816         * modules/oset: New file.
94817         * modules/array-oset: New file.
94818         * modules/avltree-oset, modules/avltree-oset-tests: New files.
94819         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
94820         * tests/test-carray_list.c: New file.
94821         * tests/test-linked_list.c: New file.
94822         * tests/test-avltree_list.c: New file.
94823         * tests/test-rbtree_list.c: New file.
94824         * tests/test-linkedhash_list.c: New file.
94825         * tests/test-avltreehash_list.c: New file.
94826         * tests/test-rbtreehash_list.c: New file.
94827         * tests/test-avltree_oset.c: New file.
94828         * tests/test-rbtree_oset.c: New file.
94829         * MODULES.html.sh (Container data structures): New section.
94831 2006-07-17  Bruno Haible  <bruno@clisp.org>
94833         * m4/gl_list.m4: New file.
94835 2006-07-17  Bruno Haible  <bruno@clisp.org>
94837         * lib/gl_list.h: New file.
94838         * lib/gl_list.c: New file.
94839         * lib/gl_array_list.h: New file.
94840         * lib/gl_array_list.c: New file.
94841         * lib/gl_carray_list.h: New file.
94842         * lib/gl_carray_list.c: New file.
94843         * lib/gl_linked_list.h: New file.
94844         * lib/gl_linked_list.c: New file.
94845         * lib/gl_anylinked_list1.h: New file.
94846         * lib/gl_anylinked_list2.h: New file.
94847         * lib/gl_avltree_list.h: New file.
94848         * lib/gl_avltree_list.c: New file.
94849         * lib/gl_anyavltree_list1.h: New file.
94850         * lib/gl_anyavltree_list2.h: New file.
94851         * lib/gl_rbtree_list.h: New file.
94852         * lib/gl_rbtree_list.c: New file.
94853         * lib/gl_anyrbtree_list1.h: New file.
94854         * lib/gl_anyrbtree_list2.h: New file.
94855         * lib/gl_anytree_list1.h: New file.
94856         * lib/gl_anytree_list2.h: New file.
94857         * lib/gl_linkedhash_list.h: New file.
94858         * lib/gl_linkedhash_list.c: New file.
94859         * lib/gl_anyhash_list1.h: New file.
94860         * lib/gl_anyhash_list2.h: New file.
94861         * lib/gl_avltreehash_list.h: New file.
94862         * lib/gl_avltreehash_list.c: New file.
94863         * lib/gl_rbtreehash_list.h: New file.
94864         * lib/gl_rbtreehash_list.c: New file.
94865         * lib/gl_anytreehash_list1.h: New file.
94866         * lib/gl_anytreehash_list2.h: New file.
94868         * lib/gl_oset.h: New file.
94869         * lib/gl_oset.c: New file.
94870         * lib/gl_array_oset.h: New file.
94871         * lib/gl_array_oset.c: New file.
94872         * lib/gl_avltree_oset.h: New file.
94873         * lib/gl_avltree_oset.c: New file.
94874         * lib/gl_rbtree_oset.h: New file.
94875         * lib/gl_rbtree_oset.c: New file.
94876         * lib/gl_anytree_oset.h: New file.
94878 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
94880         * m4/mkancesdirs.m4: New file.
94881         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
94882         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
94883         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
94884         it.
94886 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
94888         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
94889         * lib/mkancesdirs.h: New files.
94890         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
94891         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
94892         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
94893         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
94894         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
94895         callers changed.  Revamp internals significantly, by not
94896         attempting to create directories that are temporarily more
94897         permissive than the final results.  Do not attempt to use
94898         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
94899         This removes some race conditions, fixes some bugs, and simplifies
94900         things.  Use new dirchownmod function to do owner and mode changes.
94901         * lib/mkdir-p.h: Likewise.
94902         * lib/modechange.c (octal_to_mode): New function.
94903         (struct mode_change): New member mentioned.
94904         (make_node_op_equals): New arg mentioned.  All callers changed.
94905         (mode_compile): Keep track of which mode bits the user has explicitly
94906         mentioned.
94907         (mode_adjust): New arg DIR, so that we implement the X op correctly.
94908         New arg PMODE_BITS, to keep track of which mode bits the user
94909         mentioned; it treats S_ISUID and S_ISGID speciall.
94910         All callers changed.
94911         * lib/modechange.h: Likewise.
94913 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
94915         * MODULES.html.sh: Add mkancestors.
94916         * modules/mkancesdirs: New module.
94917         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
94918         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
94919         The chdir-safer and afs files are now orphans; I'll remove them
94920         unless someone speaks up.
94921         Add lib/dirchownmod.c, lib/dirchownmod.h.
94922         (Depends-on): Remove alloca, chown, save-cwd, dirname.
94923         Add lchown, mkancesdirs.
94924         (Maintainer): Add self.
94926 2006-07-15  Karl Berry  <karl@gnu.org>
94928         * gnulib-tool: help message wording/arrangement.
94930 2006-07-14  Simon Josefsson  <jas@extundo.com>
94932         * doc/gnulib.texi (Libtool and Windows): New section.
94934 2006-07-12  Simon Josefsson  <jas@extundo.com>
94936         * modules/gendocs (License): Fix license, approved by Karl.
94938 2006-07-12  Eric Blake  <ebb9@byu.net>
94940         * MODULES.html.sh: Add gendocs.
94942 2006-07-11  Eric Blake  <ebb9@byu.net>
94944         * modules/fdl: New module, to install doc/fdl.texi.
94945         * MODULES.html.sh: Add new section for documentation modules.
94946         * gnulib-tool: Avoid space-tab.
94947         (--doc-base): New option, to manage files from doc.
94949 2006-07-11  Eric Blake  <ebb9@byu.net>
94951         * m4/absolute-header.m4: Fix comments to match recent change.
94953 2006-07-11  Eric Blake  <ebb9@byu.net>
94955         * gnulib-tool: List --doc-base before --tests-base.
94957 2006-07-11  Derek R. Price  <derek@ximbiot.com>
94959         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
94961 2006-07-11  Bruno Haible  <bruno@clisp.org>
94963         * README: Mention where to put documentation.
94965 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94967         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
94969 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
94971         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
94972         to stdint.m4.
94974 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
94976         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
94977         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
94978         "no/such/file/stdint.h" when there is no such file, so that
94979         the resulting C code can be parsed by dodgy compilers.
94980         Problems reported by Bob Proulx.
94982 2006-07-10  Derek R. Price  <derek@ximbiot.com>
94984         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
94985         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
94986         macros into the GNU _D_EXACT_NAMLEN.
94987         * lib/savedir.c:  Likewise.
94988         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
94990 2006-07-10  Derek R. Price  <derek@ximbiot.com>
94991         and Paul Eggert  <eggert@cs.ucla.edu>
94993         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
94994         * m4/savedir.m4:
94995         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
94996         macros into the GNU _D_EXACT_NAMLEN.
94998 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
95000         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
95001         around the absolute name, to work around a problem with the HP-UX
95002         11.23 native C compiler, reported by Bob Proulx.
95004 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
95006         * doc/maintain.texi, make-stds.texi: Sync from
95007         <http://savannah.gnu.org/projects/gnustandards>.
95009 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
95011         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
95013 2006-07-09  Jim Meyering  <jim@meyering.net>
95015         * m4/glob.m4: Remove a doubled word in a comment.
95017 2006-07-09  Jim Meyering  <jim@meyering.net>
95019         * lib/argp-pv.c: Remove a doubled word in a comment.
95020         * lib/check-version.c (check_version): Likewise.
95021         * lib/javacomp.c (compile_java_class): Likewise.
95023 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
95025         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
95026         for the benefit of people using Autoconf 2.60.  If you want to
95027         support older Autoconf versions you can copy m4/onceonly_2_57.m4
95028         (or m4/onceonly.m4, if pre-2.57) manually.
95030 2006-07-08  Jim Meyering  <jim@meyering.net>
95032         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
95033         comment.
95034         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
95035         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
95036         comment.
95038 2006-07-08  Jim Meyering  <jim@meyering.net>
95040         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
95042 2006-07-07  Simon Josefsson  <jas@extundo.com>
95044         * tests/test-crc.c: Change expected crc value, the test vector
95045         were probably computed using the old broken crc.c?
95047 2006-07-06  Simon Josefsson  <jas@extundo.com>
95049         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
95050         now the canonical place for the M4 file).
95052         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
95053         from the sys_socket dependency now.
95055         * modules/inet_pton (Files): Ditto.
95057         * modules/inet_ntop (Files): Ditto.
95059 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
95061         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
95062         not gl_PREREQ_GETUSERSHELL.
95064 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95066         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
95067         with only one argument, for Autoconf 2.60.
95068         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
95069         expand to nothing, so add a shell command to avoid syntax error.
95070         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
95072 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95074         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
95076 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
95078         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
95079         no longer needed.  Check for isblank decl.
95080         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
95081         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
95082         of existence.
95084 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
95086         * lib/getloadavg.c: Use __VMS, not VMS.
95087         * lib/getopt.c: Likewise.
95088         * lib/getpagesize.h: Likewise.
95089         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
95090         and probably does not work.
95092 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
95094         * lib/.cppi-disable: Add wcwidth.
95095         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
95096         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
95097         (ISGRAPH): Remove.  All uses changed to isgraph.
95098         (FOLD) [!defined _LIBC]: Remove special case.
95099         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
95100         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
95101         HAVE_ISBLANK.
95102         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
95103         case.
95105 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
95107         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
95108         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
95109         brackets.  Other minor changes to suppress some compiler
95110         warnings.
95112 2006-07-06  Derek R. Price  <derek@ximbiot.com>
95113         and Paul Eggert  <eggert@cs.ucla.edu>
95115         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
95116         of invoking obsolescent AC_HEADER_DIRENT macro.
95117         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
95118         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
95119         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
95120         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
95121         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
95122         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
95123         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
95124         * m4/readdir.m4: Remove; no longer needed.
95126 2006-07-06  Derek R. Price  <derek@ximbiot.com>
95127         and Paul Eggert  <eggert@cs.ucla.edu>
95129         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
95130         Don't worry about this obsolete case any more.
95131         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
95132         directories.
95133         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
95134         worry about this obsolete case any more.
95135         * lib/fts.c: Likewise.
95136         * lib/getcwd.c: Likewise.
95137         * lib/glob.h: Likewise.
95138         * lib/savedir.c: Likewise.
95140 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
95142         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
95143         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
95144         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
95145         needed.
95146         All uses removed.
95147         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
95148         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
95149         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
95150         needed.
95151         * m4/getdate.m4 (gl_GETDATE): Likewise.
95152         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
95153         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
95154         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
95155         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
95156         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
95157         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
95158         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
95159         needed.
95161 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
95163         * lib/memcasecmp.c: Include <limits.h>.
95164         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
95165         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
95166         Don't assume isdigit succeeds only on '0' through '9'.
95168 2006-07-05  Eric Blake  <ebb9@byu.net>
95170         * modules/getaddrinfo (Depends-on): Add snprintf.
95172 2006-07-05  Eric Blake  <ebb9@byu.net>
95174         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
95175         to avoid 'header present but could not be compiled' on cygwin.
95177 2006-07-05  Eric Blake  <ebb9@byu.net>
95179         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
95180         missing from netdb.h.
95181         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
95183 2006-07-05  Derek R. Price  <derek@ximbiot.com>
95185         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
95186         no longer needed.
95187         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
95188         * m4/getdate.m4 (gl_GETDATE): Likewise.
95189         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
95190         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
95191         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
95192         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
95193         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
95195 2006-07-05  Derek R. Price  <derek@ximbiot.com>
95197         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
95198         All uses of is_space replaced by isspace.
95199         * lib/exit.h: Don't talk about STDC_HEADERS.
95200         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
95201         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
95202         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
95203         replaced by isprint etc.
95204         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
95205         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
95206         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
95207         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
95208         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
95209         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
95211 2006-07-05  Bruno Haible  <bruno@clisp.org>
95213         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
95214         the function exists, before testing against AIX.
95215         Reported by Martin Lambers <marlam@marlam.de>.
95217 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
95219         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
95220         From Mark D. Baushke.
95222 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
95224         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
95225         to the absolute name, not just one, to bypass Sun C 5.8's
95226         "warning: #include of /usr/include/... may be non-portable".
95228 2006-07-04  Eric Blake  <ebb9@byu.net>
95230         * modules/dirname-tests: New test module.
95231         * tests/test-dirname.c: New file, replacing dirname.c
95232         TEST_DIRNAME section that was recently deleted.
95234 2006-07-04  Bruno Haible  <bruno@clisp.org>
95236         Assume ANSI C header files and <ctype.h> functions.
95237         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
95238         (mbsnwidth): Use isprint, iscntrl instead.
95240 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
95242         Merge from coreutils.
95243         * MODULES.html.sh: Add xstrtold.
95244         * modules/xstrtold: New file.
95245         * modules/cycle-check (Files): Add lib/same-inode.h.
95246         * modules/dirname (Files): Add m4/double-slash-root.m4.
95247         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
95248         * modules/mkdir-p (Files): Add lib/same-inode.h.
95249         * modules/same (Files): Add lib/same-inode.h.
95251 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
95253         * m4/absolute-header.m4: Renamed from full-header-path.m4.
95254         This is to keep the terminology clean; POSIX talks about
95255         "absolute pathnames", not "full pathnames", but the GNU
95256         Coding Standards say to use "path" for something else;
95257         so use "absolute" to keep both sides happy.
95258         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
95259         Set gl_absolute_header, not gl_full_header_path.
95260         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
95261         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
95262         All uses changed.
95264         Merge from coreutils.
95266         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
95268         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
95269         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
95270         want to require the building of c-strtod.o.
95271         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
95272         needs -lm directly.
95273         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
95275         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
95277         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
95278         --as-needed option if available.  Problem reported by Albert Chin in
95279         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
95280         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
95281         cc merely issues a bunch of annoying warnings for --as-needed
95282         (this problem was reported by Bob Proulx).  Also, try linking with
95283         -lm to detect a bug in binutils 2.16 (this problem was reported
95284         by Ralf Wildenhues).
95286         2006-06-18  Jim Meyering  <jim@meyering.net>
95288         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
95289         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
95290         macro.
95291         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
95292         also check for glibc-2.4's abort-inducing bug.
95294         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
95295         Low-probability clean-up should be to use rmdir to get rid of
95296         the just-created directory, not unlink.
95298         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
95299         configure fail, and request a bug report to inform us about it.
95300         Add a comment that, barring reports to the contrary, in 2007 we'll
95301         assume ftruncate is universally available.
95303         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
95305         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
95307         2006-03-12  Jim Meyering  <jim@meyering.net>
95309         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
95310         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
95311         * m4/same.m4 (gl_SAME): Likewise.
95312         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
95314         2006-03-11  Eric Blake  <ebb9@byu.net>
95316         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
95317         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
95318         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
95319         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
95321 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
95323         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
95324         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
95325         reported by Mark D. Baushke, one in
95326         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
95328         Merge from coreutils.
95330         * lib/.cppi-disable: Add stdint_.h.
95331         * lib/.cvsignore: Add stdint.h.
95333         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
95335         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
95336         both double and long double versions.
95337         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
95338         * lib/xstrtold.c: New file.
95339         * lib/xstrtod.h (xstrtold): New decl.
95341         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
95343         * lib/filemode.c (setst): Remove.
95344         (strmode): Rewrite to avoid setst.  This makes the code shorter,
95345         (arguably) clearer, and the generated code is a bit smaller on my
95346         Debian GNU/Linux stable x86 host.
95348         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
95350         * lib/filemode.c: Include "filemode.h" first, to test the interface.
95351         Assume that filemode.h includes sys/types.h and sys/stat.h.
95352         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
95353         (ftypelet): Reorder to put common cases first, for efficiency.
95354         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
95355         to do 'M'.
95356         (strmode): Renamed from mode_string, and now stores 12 bytes instead
95357         of 10, for compatibility with FreeBSD.  All callers changed.
95358         (filemodestring): Now stores 12 bytes instead of 10, and sets file
95359         types that can't be deduced solely from st_mode.  First arg is now a
95360         const pointer.
95361         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
95362         (strmode): Renamed from mode_string.
95363         (filemodestring): New decl.
95364         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
95365         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
95366         needed.
95367         (S_ISPORT, S_ISWHT): New macros, if not already defined.
95369         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
95371         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
95372         fsusage.h now does that.  Include fsusage.h first, to test interface.
95373         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
95374         at most one method (the old code could have generated decls that
95375         didn't conform to C89, not that this was ever exercised).
95376         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
95378         2006-03-19  Jim Meyering  <jim@meyering.net>
95380         Work even in a chroot where d_ino values for entries in "/"
95381         don't match the stat.st_ino values for the same names.
95382         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
95383         number, iterate through all entries again, using lstat instead.
95384         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
95385         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
95387         * lib/getcwd.c (__getcwd): Clarify a comment.
95388         Use memcpy in place of a call to strcpy.
95390         2006-03-12  Jim Meyering  <jim@meyering.net>
95392         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
95393         matches that of the current directory (which we're about to chdir ".."
95394         out of), then save the dev-ino of the parent, instead.
95396         * lib/same-inode.h (SAME_INODE): New file/macro.
95397         * lib/chdir-safer.c (SAME_INODE): Remove definition.
95398         Include "same-inode.h", instead.
95399         * lib/same.c: Likewise.
95400         * lib/cycle-check.h: Include "same-inode.h".
95401         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
95402         * lib/cycle-check.c (SAME_INODE): Remove definition.
95403         * lib/root-dev-ino.h: Include "same-inode.h".
95405         2006-03-11  Eric Blake  <ebb9@byu.net>
95407         * lib/same.c (same_name): s/base_name/last_component/
95408         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
95409         * lib/filenamecat.c (file_name_concat): Likewise.
95411         2006-03-11  Eric Blake  <ebb9@byu.net>,
95412                     Paul Eggert  <eggert@cs.ucla.edu>
95414         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
95415         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
95416         drive prefix.
95417         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
95418         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
95419         (last_component): New method.
95420         * lib/dirname.c (dir_len): Determine when drive letters need a
95421         subsequent slash.  Preserve // when it is special.
95422         (dir_name): Don't append dot when drive letter is absolute.
95423         [TEST_DIRNAME]: Move into a full-blown gnulib test.
95424         * lib/basename.c (base_name): New semantics - malloc the result.
95425         Preserve // when it is special.  Preserve relative files that look
95426         like drive letters.
95427         (base_len): Preserve // when it is special.
95428         (last_component): New method, similar to old base_name semantics.
95429         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
95430         base_name.  Strip redundant slashes from ///.
95432 2006-07-03  Jim Meyering  <jim@meyering.net>
95434         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
95435         macro is used before the first cycle_check call.
95437 2006-07-03  Eric Blake  <ebb9@byu.net>
95439         * modules/dirname (Depends-on): Add xstrndup.
95441 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
95443         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
95444         test cases, so that config.log is a bit easier to follow.
95446 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
95448         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
95449         both are 64 bits, since this seems to be the tradition, and this
95450         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
95451         we ever run into a host that prefers long long to long in this
95452         case, we'll need another configure-time test.  Problem reported by
95453         Jim Meyering.
95455 2006-07-02  Eric Blake  <ebb9@byu.net>
95457         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
95459 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
95461         * modules/inttypes (Depends-on): No longer depends on stdint.
95462         * modules/stdint (Description): Say more about assumptions.
95463         Say that the fast types might differ.  Say macros are used.
95464         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
95465         (Makefile.am): Revise list of substituted symbols to match
95466         new stdint.m4.
95467         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
95468         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
95469         * tests/test-stdint.c (verify_same_types)
95470         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
95471         the code conforms to C99/C89.
95472         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
95473         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
95475 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
95477         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
95478         but fix a bug, by requiring at least 64 bits.
95479         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
95480         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
95481         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
95482         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
95484         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
95485         changes.  Make 2.59 a prerequisite.  Check and substitute for
95486         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
95487         inttypes.h.  Do not use special include files; just use the
95488         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
95489         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
95490         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
95491         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
95492         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
95493         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
95494         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
95495         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
95496         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
95497         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
95498         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
95499         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
95500         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
95501         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
95502         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
95503         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
95504         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
95505         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
95506         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
95507         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
95508         WINT_MAX.  Check for C99 conformance more strictly, by detecting
95509         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
95510         not check for things that C99 does not require, e.g., int8_t.  If
95511         a test isn't needed unless <stdint.h> isn't working, and is
95512         unlikely to be needed for any other reason, then don't do it
95513         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
95514         size_t, since we assume C89 freestanding at least.  Do not check
95515         for sig_atomic_t, wchar_t, or wint_t, since the code now does
95516         the right thing even if the types are not defined.  Instead use:
95517         (gl_STDINT_TYPE_PROPERTIES): New macro.
95518         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
95519         testing whether <sys/types.h> clashes, as Autoconf does this for
95520         us now.  All uses removed.
95521         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
95522         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
95523         (gl_CHECK_TYPE_SAME):
95524         Remove; no longer needed.
95525         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
95526         exists, since we'll return 0 anyway in that case.
95527         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
95529 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
95531         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
95532         possible collision with system files.
95533         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
95534         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
95535         WCHAR_MIN and WCHAR_MAX in this case.
95536         (<stddef.h>): Do not include; no longer needed.
95537         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
95538         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
95539         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
95540         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
95541         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
95542         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
95543         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
95544         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
95545         !defined(__c99))]: Include in this case too, since it's harmless
95546         now.
95547         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
95548         dangerous to do so.
95549         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
95550         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
95551         (_STDINT_MIN, _STDINT_MAX): New macros.
95552         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
95553         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
95554         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
95555         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
95556         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
95557         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
95558         macros, not typedefs; this simplifies things quite a bit.
95559         Use long int for all types narrower than int64_t.
95560         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
95561         Define in terms of long long int or int64_t or long int,
95562         not int64_t or int32_t.  This saves some compile-time testing.
95563         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
95564         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
95565         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
95566         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
95567         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
95568         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
95569         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
95570         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
95571         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
95572         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
95573         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
95574         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
95575         undef any previous version and define our own version, for
95576         simplicity and consistency with the new macros for types.
95577         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
95578         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
95579         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
95580         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
95581         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
95582         @WINT_T_SUFFIX@ to keep things simple here.
95583         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
95584         Simplify by assuming typical 8/16/32/64 host, since we're
95585         already doing that elsewhere anyway.
95586         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
95587         and assume long long int is 64 bits if available.  This
95588         speeds up 'configure'.
95590 2006-07-01  Eric Blake  <ebb9@byu.net>
95592         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
95593         Reported by Andreas Buening.
95595 2006-07-01  Eric Blake  <ebb9@byu.net>
95597         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
95599 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
95601         * lib/getaddrinfo.c: fixed typo
95603 2006-06-29  Jim Meyering  <jim@meyering.net>
95605         * modules/strftime (Maintainer): Add my name, since with the
95606         FPRINTFTIME changes strftime.c has forked from glibc.
95608 2006-06-29  Eric Blake  <ebb9@byu.net>
95610         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
95612 2006-06-29  Eric Blake  <ebb9@byu.net>
95614         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
95616 2006-06-29  Eric Blake  <ebb9@byu.net>
95618         * lib/stat_.h: New file.
95620 2006-06-29  Eric Blake  <ebb9@byu.net>
95622         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
95623         unused static function.
95625 2006-06-29  Eric Blake  <ebb9@byu.net>
95627         * doc/functions.texi (Function Portability): Document missing lstat
95628         on mingw.
95630 2006-06-29  Eric Blake  <ebb9@byu.net>
95632         * MODULES.html.sh: Add sys_stat.
95633         * modules/sys_stat: New module.
95634         * modules/mkstemp (Depends-on): Add sys_stat.
95636 2006-06-29  Derek R. Price  <derek@ximbiot.com>
95638         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
95640 2006-06-29  Derek R. Price  <derek@ximbiot.com>
95642         * m4/c-bs-a.m4: Removed.
95644 2006-06-29  Derek R. Price  <derek@ximbiot.com>
95646         * lib/strftime.c: Assume strftime() exists.
95648 2006-06-29  Derek Price  <derek@ximbiot.com>
95650         * modules/c-bs-a: Removed - \a is C89.
95651         * MODULES.html.sh: Remove c-bs-a.
95653 2006-06-29  Bruno Haible  <bruno@clisp.org>
95655         * modules/wcwidth (License): Change to LGPL.
95657 2006-06-28  Simon Josefsson  <jas@extundo.com>
95659         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
95660         on _WIN32.
95662         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
95663         getnameinfo.
95665 2006-06-28  Simon Josefsson  <jas@extundo.com>
95667         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
95669 2006-06-28  Simon Josefsson  <jas@extundo.com>
95671         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
95672         functions there.  It will succeed on Windows XP, but on Windows
95673         2000 and (presumably) earlier, it will fail, and use the internal
95674         re-implementation.
95675         (use_win32_p): New function.
95676         (getaddrinfo): Use strtoul on servname, to support numeric ports.
95677         Support AI_NUMERICSERV to disable getservbyname.
95678         (getnameinfo): New function, only supports
95679         NI_NUMERICHOST|NI_NUMERICSERV for now.
95681         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
95682         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
95683         getnameinfo.
95685 2006-06-28  Eric Blake  <ebb9@byu.net>
95687         * modules/wcwidth: New file.
95688         * modules/mbchar (Depends-on): Add wcwidth.
95689         * modules/mbswidth (Depends-on): Add wcwidth.
95690         * MODULES.html.sh: Add wcwidth.
95692 2006-06-28  Eric Blake  <ebb9@byu.net>
95694         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
95695         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
95697 2006-06-28  Eric Blake  <ebb9@byu.net>
95699         * lib/xvasprintf.h: Fix comments.
95701 2006-06-28  Eric Blake  <ebb9@byu.net>
95703         * lib/mbchar.h (wcwidth): Include wcwidth.h.
95704         * lib/mbswidth.c (wcwidth): Move from here...
95705         * lib/wcwidth.h: ...to this new file.
95707 2006-06-28  Derek R. Price  <derek@ximbiot.com>
95709         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
95711         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
95712         it's obsolete.
95713         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
95715 2006-06-28  Derek R. Price  <derek@ximbiot.com>
95717         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
95718         Autoconf 2.60 says this stuff was obsolete.
95720 2006-06-28  Bruno Haible  <bruno@clisp.org>
95722         * modules/wcwidth (Files): Add m4/wchar_t.m4.
95724 2006-06-28  Bruno Haible  <bruno@clisp.org>
95726         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
95727         gt_TYPE_WCHAR_T.
95729 2006-06-28  Bruno Haible  <bruno@clisp.org>
95731         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
95732         declaration for wcwidth.
95733         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
95735 2006-06-28  Bruno Haible  <bruno@clisp.org>
95737         * lib/mkdtemp.c [MINGW]: Include <io.h>.
95738         (mkdir): Define using _mkdir.
95740 2006-06-28  Bruno Haible  <bruno@clisp.org>
95742         * lib/getaddrinfo.h: Fix POSIX URL.
95743         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
95744         _WIN32.
95745         (use_win32_p): Make static.
95746         (getaddrinfo): Reject service name if it is empty or does not consist
95747         solely of decimal digits, or if its value is > 65535.
95748         (getnameinfo): Remove useless casts.
95750 2006-06-27  Simon Josefsson  <jas@extundo.com>
95752         * modules/sys_select: New file, suggested by Bruno Haible, Paul
95753         Eggert and Martin Lambers.
95755 2006-06-27  Simon Josefsson  <jas@extundo.com>
95757         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
95758         Eggert and Martin Lambers.
95760 2006-06-27  Bruno Haible  <bruno@clisp.org>
95762         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
95763         result to 0, not to empty.
95764         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
95766 2006-06-27  Bruno Haible  <bruno@clisp.org>
95768         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
95770 2006-06-26  Simon Josefsson  <jas@extundo.com>
95772         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
95773         present.
95775 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
95777         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
95778         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
95779         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
95781 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
95783         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
95785 2006-06-26  Bruno Haible  <bruno@clisp.org>
95787         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
95789 2006-06-26  Bruno Haible  <bruno@clisp.org>
95791         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
95793 2006-06-26  Bruno Haible  <bruno@clisp.org>
95795         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
95796         SGI C compiler in pre-C99 mode.
95797         Suggested by Mark D. Baushke and Larry Jones.
95799 2006-06-26  Bruno Haible  <bruno@clisp.org>
95801         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
95802         WCHAR_MAX.
95803         Reported by Mark D. Baushke and Larry Jones.
95805 2006-06-26  Bruno Haible  <bruno@clisp.org>
95807         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
95808         in pre-C99 mode.
95809         Suggested by Mark D. Baushke and Larry Jones.
95811 2006-06-23  Simon Josefsson  <jas@extundo.com>
95812             Bruno Haible  <bruno@clisp.org>
95814         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
95815         Emit mostlyclean-local rule.
95816         (func_emit_tests_Makefile_am): Likewise.
95817         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
95819 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
95821         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
95823 2006-06-23  Bruno Haible  <bruno@clisp.org>
95825         * tests/test-stdint.c: Update to match ISO C 99 Technical
95826         Corrigendum 1.
95828 2006-06-23  Bruno Haible  <bruno@clisp.org>
95830         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
95832 2006-06-23  Bruno Haible  <bruno@clisp.org>
95834         * lib/stdint_.h: Treat IRIX like OpenBSD.
95836 2006-06-23  Bruno Haible  <bruno@clisp.org>
95838         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
95839         ISO C 99 Technical Corrigendum 1.
95841 2006-06-22  Simon Josefsson  <jas@extundo.com>
95843         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
95844         MinGW.
95846 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
95848         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
95849         needed.  Some compiler complained about some of them.  Problem reported
95850         by Larry Jones in
95851         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
95853 2006-06-21  Simon Josefsson  <jas@extundo.com>
95855         * tests/test-getaddrinfo.c: New file.
95857         * modules/getaddrinfo-tests: New file.
95859         * MODULES.html.sh: Add inet_pton.
95861         * modules/inet_pton: New file.
95863 2006-06-21  Simon Josefsson  <jas@extundo.com>
95865         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
95866         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
95867         of using the (limited) gnulib implementation on Windows XP.
95869         * m4/inet_pton.m4: New file.
95871 2006-06-21  Simon Josefsson  <jas@extundo.com>
95873         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
95874         variable.
95876         * lib/socket_.h: Don't define WINVER.
95878         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
95879         slightly modified to work in gnulib.
95881 2006-06-21  Simon Josefsson  <jas@extundo.com>
95883         * doc/gnulib.texi (Windows sockets): Add.
95885 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
95887         * lib/read-file.c (fread_file): Start with buffer allocation of
95888         0 bytes rather than 1 byte; this simplifies the code.
95889         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
95890         code to free buffer and save/restore errno.
95891         (internal_read_file): Remove unused local.
95893 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
95895         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
95896         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
95897         Problem reported by Denis Excoffier in
95898         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
95900 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
95902         * modules/sys_socket, modules/socklen: Include sys/types since
95903         FreeBSD 4.x's sys/socket.h needs it.
95905 2006-06-19  Simon Josefsson  <jas@extundo.com>
95907         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
95909 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
95911         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
95913 2006-06-19  Bruno Haible  <bruno@clisp.org>
95915         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
95916         and FULL_PATH_INTTYPES_H in angle brackets.
95917         Reported by Mark D. Baushke <mdb@gnu.org>.
95919 2006-06-17  Eric Blake  <ebb9@byu.net>
95921         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
95922         errno.
95924 2006-06-17  Bruno Haible  <bruno@clisp.org>
95926         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
95927         <sys/inttypes.h>.
95929 2006-06-17  Bruno Haible  <bruno@clisp.org>
95931         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
95932         whether errno is declared. Assume <errno.h> declares errno.
95934 2006-06-17  Bruno Haible  <bruno@clisp.org>
95936         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
95938 2006-06-17  Bruno Haible  <bruno@clisp.org>
95940         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
95941         problem on Solaris 2.5.1.
95943 2006-06-16  Eric Blake  <ebb9@byu.net>
95945         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
95946         * lib/unicodeio.c [!defined errno]: Likewise.
95947         * lib/strtol.c [!defined errno]: Likewise.
95948         * lib/strtod.c [!defined errno]: Likewise.
95950 2006-06-15  Eric Blake  <ebb9@byu.net>
95952         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
95954 2006-06-15  Eric Blake  <ebb9@byu.net>
95956         * config/srclist.txt (ssize_t.m4): Lose sync.
95958 2006-06-15  Bruno Haible  <bruno@clisp.org>
95960         * modules/stdint (Files): Include m4/full-header-path.m4,
95961         m4/size_max.m4, m4/wchar_t.m4.
95962         (Makefile.am): Many more substitutions.
95963         * modules/stdint-tests: New file.
95964         * tests/test-stdint.c: New file.
95966 2006-06-15  Bruno Haible  <bruno@clisp.org>
95968         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
95969         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
95970         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
95971         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
95972         gl_CHECK_TYPE_SAME): New macros.
95974 2006-06-15  Bruno Haible  <bruno@clisp.org>
95976         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
95978 2006-06-15  Bruno Haible  <bruno@clisp.org>
95980         * lib/stdint_.h: Rewritten to be fully auto-configured.
95981         Fixes bug on HP-UX/IA64.
95983 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
95985         * lib/getdate.y (__attribute__): Don't define if already defined.
95986         Problem reported by Larry Jones.
95987         * lib/utimens.c (__attribute__): Likewise.
95989 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
95991         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
95992         reported by Andreas Schwab.
95994 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95995             Bruno Haible  <bruno@clisp.org>
95997         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
95998         check for the declaration of strnlen and a run test that exposes the
95999         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
96000         rpl_strndup.
96002 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96003             Bruno Haible  <bruno@clisp.org>
96005         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
96007 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96009         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
96010         compile test, for Tru64 4.0D.
96012 2006-05-28  Karl Berry  <karl@gnu.org>
96014         * config/srclist.txt (printf-args.c): lose sync.
96016 2006-05-26  Martin Lambers  <marlam@marlam.de>
96018         * lib/getpass.c: Updates the test for the native W32 API, and adds
96019         missing includes, thus fixing compilation warnings.
96021 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
96023         * lib/exclude.c (exclude_fnmatch): New function.
96024         (excluded_file_name): Call exclude_fnmatch.
96025         * lib/exclude.h (excluded_file_name): New prototype
96027 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
96029         * lib/tempname.c (small_open, large_open): New macros.
96030         (__open, __open64) [!_LIBC]: Remove.
96031         (__gen_tempname): Use small_open and large_open instead of __open
96032         and __open64.  This fixes a portability bug on HP-UX 11.11i
96033         reported by Simon Wing-Tang in
96034         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
96036 2006-05-24  Bruno Haible  <bruno@clisp.org>
96038         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
96039         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
96040         Reported by Thorsten Maerz <torte@netztorte.de> via
96041         Aaron Stone <aaron@serendipity.cx>.
96043 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
96045         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
96046         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
96047         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
96048         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
96049         not really conditional on the cache.
96050         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
96052 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
96054         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
96055         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
96056         (my_usleep): Don't mishandle maximum value.
96058 2006-05-19  Jim Meyering  <jim@meyering.net>
96060         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
96062 2006-05-17  Bruno Haible  <bruno@clisp.org>
96064         Cygwin portability.
96065         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
96067 2006-05-17  Bruno Haible  <bruno@clisp.org>
96069         * lib/stdint_.h: Fix recognition of Cygwin.
96071 2006-05-15  Bruno Haible  <bruno@clisp.org>
96073         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
96074         on libtool patch by Ralf Wildenhues.
96076 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
96078         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
96079         test for C99 conformance; (bool) 0.5 is an integer constant
96080         expression, but (bool) -0.5 is not.  Problem reported by Fedor
96081         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
96083 2006-05-11  Simon Josefsson  <jas@extundo.com>
96085         * m4/xvasprintf.m4: Fix obvious typo.
96087 2006-05-11  Jim Meyering  <jim@meyering.net>
96089         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
96090         James Lemley.
96092 2006-05-10  Simon Josefsson  <jas@extundo.com>
96094         * lib/md4.c: Typo fix, update copyright years.
96095         (K1, K2): Don't use L because it turn computations into 64-bit on
96096         64-bit platforms.
96098 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
96100         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
96101         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
96102         unwanted sign propagation, e.g., on hosts with 64-bit int.
96103         There still are some problems with reeelly weird theoretical hosts
96104         (e.g., 33-bit int) but it's not worth worrying about now.
96105         * lib/sha1.c (rol): Likewise.
96106         (K1, K2, K3, K4): Remove unnecessary L suffix.
96108 2006-05-10  Bruno Haible  <bruno@clisp.org>
96110         * lib/des.c: Cast to avoid warnings.
96112 2006-05-09  Bruno Haible  <bruno@clisp.org>
96114         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
96115         (Depends-on): Depend also on xsize, stdarg.
96116         (configure.ac): Add gl_XVASPRINTF.
96118 2006-05-09  Bruno Haible  <bruno@clisp.org>
96120         * m4/xvasprintf.m4: New file.
96122 2006-05-09  Bruno Haible  <bruno@clisp.org>
96124         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
96125         (EOVERFLOW): Define fallback value.
96126         (xstrcat): New function.
96127         (xvasprintf): Recognize the special case of a string concatenation.
96129 2006-05-08  Eric Blake  <ebb9@byu.net>
96131         * gnulib-tool (func_version): Base copyright year on CVS date.
96132         (func_emit_copyright_notice): New function.
96133         (func_emit_lib_Makefile_am): Use it.
96134         (func_emit_tests_Makefile_am): Likewise.
96135         (func_import): Likewise.
96137 2006-05-08  Bruno Haible  <bruno@clisp.org>
96139         * modules/stdarg: New file.
96140         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
96142 2006-05-08  Bruno Haible  <bruno@clisp.org>
96144         * m4/stdarg.m4: New file, from GNU gettext.
96146 2006-05-08  Bruno Haible  <bruno@clisp.org>
96148         * config/srclist.txt (build-aux/config.rpath): different from latest
96149         release.
96151 2006-05-08  Bruno Haible  <bruno@clisp.org>
96153         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
96155 2006-05-05  Jim Meyering  <jim@meyering.net>
96157         * m4/warning.m4: New file, derived from bison's file by the same name.
96159 2006-05-03  Bruno Haible  <bruno@clisp.org>
96161         * lib/stdint_.h: Shorter URL.
96162         * lib/inttypes.h: Likewise.
96164 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
96166         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
96168 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
96170         * lib/verify.h: Document the internals better.  Most of this change
96171         was written by Bruno Haible.
96173 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
96175         * doc/verify.texi: New file, partly based on a proposal by
96176         Bruno Haible.
96178 2006-05-02  Bruno Haible  <bruno@clisp.org>
96180         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
96181         test from here...
96182         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
96184 2006-04-29  Bruno Haible  <bruno@clisp.org>
96186         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
96187         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
96189 2006-04-29  Bruno Haible  <bruno@clisp.org>
96191         * gnulib-tool: Make --update option actually work.
96193 2006-04-29  Bruno Haible  <bruno@clisp.org>
96195         * doc/gcd.texi: New file.
96196         * doc/gnulib.texi: Include it.
96198 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
96200         * lib/getdate.y (get_date): When adding relative date, start with the
96201         initial time, not with the result of the first mktime call.
96203 2006-04-25  Bruno Haible  <bruno@clisp.org>
96205         * gnulib-tool (func_import): Output the include directives in three
96206         blocks, sorted separately.
96207         Reported by Ben Pfaff <blp@cs.stanford.edu>.
96209 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
96211         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
96212         to define main with arguments, for C++.  Reported by Eric Blake.
96213         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
96214         Prefer 'int main ()' to 'int main (void)', for C++.
96215         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
96216         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
96217         for 'main', for C99 and C++.
96219 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
96221         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
96222         Don't assume that exit status -1 is valid.
96223         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
96224         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
96225         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
96226         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
96227         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
96228         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
96229         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
96230         functions can be used without declaring them, or that you can
96231         exit with status -1.
96232         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
96234 2006-04-24  Karl Berry  <karl@gnu.org>
96236         * config/srclist.txt (longdouble.m4): sync lost.
96238 2006-04-24  Eric Blake  <ebb9@byu.net>
96240         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
96242 2006-04-24  Bruno Haible  <bruno@clisp.org>
96244         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
96245         poll() implementation in AIX.
96246         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96248 2006-04-24  Bruno Haible  <bruno@clisp.org>
96250         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
96251         assigned exactly once.
96253 2006-04-23  Claudio Fontana  <claudio@gnu.org>
96254             Bruno Haible  <bruno@clisp.org>
96256         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
96257         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
96258         for AM_CPPFLAGS.
96260 2006-04-23  Bruno Haible  <bruno@clisp.org>
96262         * modules/copy-file: Depend on unistd.
96263         * modules/execute: Likewise.
96264         * modules/fatal-signal: Likewise.
96265         * modules/findprog: Likewise.
96266         * modules/mkdtemp : Likewise.
96267         * modules/pipe: Likewise.
96268         * modules/wait-process: Likewise.
96270 2006-04-23  Bruno Haible  <bruno@clisp.org>
96272         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
96273         condition was already detected.
96274         Reported by Ben Pfaff <blp@cs.stanford.edu>.
96276 2006-04-23  Bruno Haible  <bruno@clisp.org>
96278         * lib/copy-file.c: Include <unistd.h> unconditionally.
96279         * lib/execute.c: Likewise.
96280         * lib/fatal-signal.c: Likewise.
96281         * lib/findprog.c: Likewise.
96282         * lib/mkdtemp.c: Likewise.
96283         * lib/pipe.h: Likewise.
96284         * lib/pipe.c: Likewise.
96285         * lib/wait-process.h: Likewise.
96287 2006-04-23  Bruno Haible  <bruno@clisp.org>
96289         * gnulib-tool (func_usage): Fix --import description. Document
96290         --update.
96291         (func_import): Create temporary file in a temporary directory, if
96292         --dry-run is specified. Silence errors from 'grep' when there are no
96293         m4 files in $m4dir.
96294         (func_create_testdir): Silence errors from 'grep' when there are no
96295         m4 files in $m4dir.
96296         Reported by Karl Berry <karl@freefriends.org>.
96298 2006-04-20  Bruno Haible  <bruno@clisp.org>
96300         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
96301         one argument, so that the code will be portable to Autoconf 2.60.
96302         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
96303         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
96304         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
96306 2006-04-19  Derek Price  <derek@ximbiot.com>
96307             Eric Blake  <ebb9@byu.net>
96309         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
96310         rather than "/full/path.h".  Update comment to match.  Shorten &
96311         generalize m4_translit call via AS_TR_CPP.
96313 2006-04-19  Derek Price  <derek@ximbiot.com>
96314             Eric Blake  <ebb9@byu.net>
96316         * lib/inttypes.h: Correct grammar in comment.
96318 2006-04-18  Derek Price  <derek@ximbiot.com>
96319             Paul Eggert  <eggert@cs.ucla.edu>
96321         * modules/inttypes: New file.
96322         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
96324 2006-04-18  Derek Price  <derek@ximbiot.com>
96325             Paul Eggert  <eggert@cs.ucla.edu>
96327         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
96328         New files.
96330 2006-04-18  Derek Price  <derek@ximbiot.com>
96331             Paul Eggert  <eggert@cs.ucla.edu>
96333         * lib/inttypes.h: New file.
96334         * lib/strtoimax.c: Assume <inttypes.h>.
96336 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
96338         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
96339         isn't mounted.  Problem reported by Kir Kolyshkin.
96341 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
96343         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
96344         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
96345         Derek R. Price.
96346         * lib/regex.h (RE_DUP_MAX): Update comment to match current
96347         implementation.
96349 2006-04-12  Eric Blake  <ebb9@byu.net>
96351         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
96352         is now done automatically by the corresponding Autoconf macro.
96354 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
96356         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
96357         time_r.h.
96359 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
96361         Merge regex changes from libc, removing some of our
96362         POSIX-conformance changes that were rejected and redoing them in a
96363         less-intrusive way.
96365         * lib/regcomp.c (re_compile_internal, init_dfa):
96366         Length arg is now size_t, not Idx.  All uses changed.
96367         (peek_token): Forward decl now says internal_function.
96368         (__re_error_msgid, __re_error_msgid_idx):
96369         Now static rather than extern with attribute_hidden.
96370         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
96371         For some reason libc prefers K&R style defns for external functions.
96372         (regerror) [!defined _LIBC]: Likewise.
96373         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
96374         (seek_collating_symbol_entry, lookup_collation_sequence_value):
96375         (build_range_exp, build_collating_symbol):
96376         Use K&R-style defn.
96377         (re_compile_fastmap): Use '\0' to memset, not 0.
96378         (utf8_sb_map): Make the calculations more obvious.
96379         (init_dfa, parse_bracket_exp, build_charclass_op):
96380         Call calloc and cast result, as glibc does.
96381         (init_word_char, fetch_token, peek_token, peek_token_bracket):
96382         (build_range_exp, build_collating_symbol):
96383         Now internal functions.
96385         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
96387         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
96388         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
96389         Don't depend on VMS; depend on __VMS instead, for POSIX
96390         namespace cleanness.
96391         (regoff_t): Define to ssize_t, not long int.
96393         Remove the REG_ macros named below.  Instead, make the old names
96394         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
96395         __USE_GNU_REGEX.
96396         (REG_BACKSLASH_ESCAPE_IN_LISTS):
96397         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
96398         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
96399         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
96400         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
96401         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
96402         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
96403         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
96404         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
96405         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
96406         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
96407         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
96408         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
96409         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
96410         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
96411         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
96412         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
96413         (REG_NREGS):
96414         Remove.  All uses replaced by the old RE_* names.
96415         (RE_BACKSLASH_ESCAPE_IN_LISTS):
96416         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
96417         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
96418         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
96419         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
96420         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
96421         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
96422         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
96423         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
96424         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
96425         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
96426         Don't bother having these macros be independent of each others'
96427         values, since they no longer exist in the POSIX name space.
96429         Rename the following member names back to their old names,
96430         unless !__USE_GNU_REGEX.  All uses changed back.
96431         (buffer): Renamed from re_buffer.
96432         (allocated): Renamed from re_allocated.
96433         (used): Renamed from re_used.
96434         (syntax): Renamed from re_syntax.
96435         (fastmap): Renamed from re_fastmap.
96436         (translate): Renamed from re_translate.
96437         (can_be_null): Renamed from re_can_be_null.
96438         (regs_allocated): Renamed from re_regs_allocated.
96439         (fastmap_accurate): Renamed from re_fastmap_accurate.
96440         (no_sub): Renamed from re_no_sub.
96441         (not_bol): Renamed from re_not_bol.
96442         (not_eol): Renamed from re_not_eol.
96443         (newline_anchor): Renamed from re_newline_anchor.
96444         (num_regs): Renamed from rm_num_regs.
96445         (start): Renamed from rm_start.
96446         (end): Renamed from rm_end.
96448         (free_state): Move up a bit.
96450         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
96451         #define to be empty.
96452         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
96453         when that is what is intended.
96454         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
96455         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
96456         (MAX): New macro.
96457         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
96458         All uses changed back to re_malloc, etc.  It's now the caller's
96459         responsibility to check for overflow; all callers changed.
96460         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
96461         (re_x2nrealloc): Remove.
96462         (free_state): Remove decl.
96464         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
96465         (re_set_registers, re_exec):
96466         Use K&R-style defn.
96468         2006-01-31  Roland McGrath  <roland@redhat.com>
96470         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
96471         Reported by Mike Frysinger <vapier@gentoo.org>.
96473         2006-01-15  Andreas Jaeger  <aj@suse.de>
96475         [BZ #1950]
96476         * lib/regex_internal.c (re_string_reconstruct): Adjust for
96477         build_wcs_upper_buffer change.
96478         (build_wcs_upper_buffer): Change return type.
96480         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
96482         * lib/regex_internal.h: Include <stdint.h> if available.
96484         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
96486         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
96488         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
96490         * lib/regcomp.c: Adjust for changed secondary hash function.
96492         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
96494         * lib/regex.h: Pretty printing.
96495         Clean up namespace a bit.
96497         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
96499         * lib/regexec.c (update_cur_sifted_state, check_arrival,
96500         check_arrival_add_next_nodes): Avoid using uninitialized variable.
96502         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
96503                     Ulrich Drepper  <drepper@redhat.com>
96505         [BZ #1302]
96506         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
96507         changed.
96508         (bitset_word_t): Renamed from bitset_word.  All uses changed.
96510         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
96512         [BZ #281]
96513         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
96514         * lib/regcomp.c: Remove unnecessary uses of
96515         unsigned RE_TRANSLATE_TYPE.
96516         * lib/regex_internal.h: Likewise.
96517         * lib/regex_internal.c: Likewise.
96518         * lib/regexec.c: Likewise.
96519         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
96521         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
96523         * lib/regexec.c (find_recover_state): Remove unnecessary
96524         initialization.
96525         (transit_state_bkref): Make DFA a const pointer.
96526         (get_subexp): Likewise.
96527         (check_arrival): Likewise.
96528         (update_cur_sifted_state): Likewise.
96529         (re_search_internal): Likewise.
96530         (prune_impossible_nodes): Likewise.
96531         (acquire_init_state_context): Likewise.
96532         (proceed_next_node): Likewise.
96533         (set_regs): Likewise.
96534         (free_fail_stack_return): Likewise.
96535         (check_arrival_expand_ecl): Mark DFA parameter as const.
96536         (check_arrival_expand_ecl_sub): Likewise.
96537         (check_subexp_limits): Likewise.
96538         (sub_epsilon_src_nodes):  Likewise.
96539         (add_epsilon_src_nodes):  Likewise.
96540         (merge_state_array): Likewise.
96541         (update_regs): Likewise.
96542         (build_trtable): Likewise.
96543         (sift_states_backward): Mark MCTX parameter as const.
96544         (build_sifted_states): Likewise.
96545         (update_cur_sifted_state): Likewise.
96546         (sift_states_mkref): Likewise.
96547         (check_arrival_expand_ecl): Mark eclosure as const.
96548         (check_dst_limits_calc_pos_1): Likewise.
96549         * lib/regex_internal.h (re_match_context_t): Make dfa a const
96550         pointer.
96552         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
96554         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
96555         (transit_state_sb): Likewise.
96556         (transit_state_mb): Likewise.
96557         (sift_states_iter_mb): Likewise.
96558         (check_arrival_add_next_nodes): Likewise.
96559         (check_node_accept_bytes): Change first parameter to pointer-to-const.
96560         [_LIBC] (re_search_2_stub): Use mempcpy.
96562         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
96563         mbrtowc for very simple UTF-8 case.
96565         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
96566         a pointer-to-const.
96567         (re_acquire_state_context): Likewise.
96568         * lib/regex_internal.h: Adjust prototypes.
96570         * lib/regex.c: Prevent using C++ compilers.
96572         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
96573         (re_acquire_state_context): Likewise.
96575 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
96577         * modules/regex (Depends-on): Add ssize_t.
96579 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
96581         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
96582         translation table.
96584 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
96586         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
96588 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
96589             Bruno Haible  <bruno@clisp.org>
96591         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
96592         <sys/types.h> and <inttypes.h>.
96594 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96596         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
96597         `__error_t_defined', so argp.h will not typedef the former.
96599 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
96601         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
96602         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
96603         glibc names.  Even if glibc is changed to conform to POSIX, the
96604         traditional names will be available anyway, since regex depends on
96605         the extensions module.  Also, fix a longstanding typo in the
96606         implementation of Spencer ERE test #75 from grep 2.3.  Problems
96607         reported by Emanuele Giaquinta.  Also, change sense of cached
96608         variable, so that the message makes sense.
96610 2006-03-24  Simon Josefsson  <jas@extundo.com>
96612         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
96613         including some doc fixes.
96614         (base64_encode_alloc): Fix +1 bug on allocation failures.
96616 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96618         * lib/base64.c (base64_encode): Do not read past end of array with
96619         unsanitized input on systems with CHAR_BIT > 8.
96621 2006-03-24  Eric Blake  <ebb9@byu.net>
96623         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
96625 2006-03-22  Karl Berry  <karl@gnu.org>
96627         * config/srclist.txt (*setenv.[ch]): get from coreutils.
96628         * config/srclistvars.sh (COREUTILS): new var.
96630 2006-03-17  Jim Meyering  <jim@meyering.net>
96632         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
96633         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
96635 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
96637         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
96638         no longer needs it.  Instead, check that regoff_t is as least
96639         as wide as ptrdiff_t.
96641         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
96642         so that our regex.h stays compatible with the installed regex.
96643         This is helpful for installers who configure --without-included-regex.
96644         Problem reported by Emanuele Giaquinta.
96646 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
96648         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
96649         Typedef to long int, not to off_, as POSIX will likely change
96650         in that direction.
96652 2006-03-15  Eric Blake  <ebb9@byu.net>
96654         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
96656 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
96658         * lib/argp-help.c (validate_uparams): Fix typo
96659         * lib/argp-parse.c (argp_default_options): Consistently begin help
96660         messages with a lowercase letter.
96662 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
96664         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
96665         overrun buffers and shouldn't be used (much as gets shouldn't be
96666         used).
96667         * lib/time_r.c (asctime_r, ctime_r): Likewise.
96669 2006-03-08  Simon Josefsson  <jas@extundo.com>
96671         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
96672         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96674 2006-03-08  Simon Josefsson  <jas@extundo.com>
96676         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
96677         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96679 2006-03-08  Simon Josefsson  <jas@extundo.com>
96681         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
96682         signal that configure disabled the device.
96684 2006-03-08  Simon Josefsson  <jas@extundo.com>
96686         * build-aux/maint.mk: Fix refresh-po, to handle no translated
96687         languages.
96689 2006-03-07  Simon Josefsson  <jas@extundo.com>
96691         * modules/getopt (Depends-on): Add unistd.
96693         * modules/unistd: New file.
96695 2006-03-07  Simon Josefsson  <jas@extundo.com>
96697         * modules/gc-random: New file.
96699 2006-03-07  Simon Josefsson  <jas@extundo.com>
96701         * m4/unistd_h.m4: New file.
96703 2006-03-07  Simon Josefsson  <jas@extundo.com>
96705         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
96706         test to be side-effect free by storing the result in the cache
96707         variable gl_cv_lib_readline, and moving the assignment of
96708         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
96709         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
96711 2006-03-07  Simon Josefsson  <jas@extundo.com>
96713         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
96714         error on missing devices (the functions will return an error).
96716         * m4/gc.m4: Move random stuff to gc-random.m4
96718 2006-03-07  Simon Josefsson  <jas@extundo.com>
96720         * lib/unistd_.h: New file.
96722 2006-03-07  Simon Josefsson  <jas@extundo.com>
96724         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
96726 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
96728         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
96729         Problem reported by Juan Manuel Guerrero.
96731 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
96733         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
96734         the unistd module.
96735         * lib/getlogin_r.c: Likewise.
96736         * lib/getlogin_r.h: Likewise.
96737         * lib/glob.c: Likewise.
96738         * lib/pagealign_alloc.c: Likewise.
96739         * lib/unistd_.h: Remove; no longer needed.
96741 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
96743         * MODULES.html.sh (Support for systems lacking POSIX:2001):
96744         Add unistd.
96745         * modules/c-stack (Depends-on): Add unistd.
96746         * modules/getlogin_r: Likewise.
96747         * modules/glob: Likewise.
96748         * modules/pagealign_alloc: Likewise.
96749         * modules/unistd (Files): Remove lib/unistd_.h.
96750         (EXTRA_DIST): Remove.
96751         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
96752         need unistd_.h.
96753         (MOSTLYCLEANFILES): Remove unistd.h-t.
96755 2006-03-03  Simon Josefsson  <jas@extundo.com>
96757         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
96759 2006-03-03  Simon Josefsson  <jas@extundo.com>
96761         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
96762         libidn and bison.
96764 2006-03-03  Simon Josefsson  <jas@extundo.com>
96766         * build-aux/maint.mk: Add indent target.
96768 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
96770         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
96771         our replacement poll.h in any case, to avoid a differing
96772         declaration from a system header.  Seen on AIX.
96774 2006-03-01  Simon Josefsson  <jas@extundo.com>
96776         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
96777         <kasal@ucw.cz>.
96779 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
96781         * modules/gettime (Depends-on): Add extensions module.
96782         * modules/nanosleep (Depends-on): Likewise.
96783         * modules/settime (Depends-on): Likewise.
96785 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
96787         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
96788         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
96789         pedantically.
96790         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
96791         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
96793         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
96794         not "==".  Reported by Ralf Wildenhues.
96796 2006-03-01  Karl Berry  <karl@gnu.org>
96798         * doc/Copyright/request-*: new files, synced from gnuorg.
96800 2006-03-01  Karl Berry  <karl@gnu.org>
96802         * config/srclist.txt (Copyright/*): new entries.
96804 2006-02-28  Simon Josefsson  <jas@extundo.com>
96806         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
96808 2006-02-27  Simon Josefsson  <jas@extundo.com>
96810         * lib/base64.h: Indent #define's.  From Jim Meyering
96811         <jim@meyering.net>.
96813 2006-02-27  Jim Meyering  <jim@meyering.net>
96815         Revert the change of 2006-02-24, so these files can continue
96816         to be sync'd from gettext.
96817         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
96818         of `config.h'.
96820 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
96822         * modules/intprops: New file.
96823         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
96824         Add intprops.
96825         * modules/getloadavg (Files): Remove lib/intprops.h.
96826         (Depends-on): Add intprops.
96827         * modules/human: Likewise.
96828         * modules/inttostr: Likewise.
96829         * modules/openat: Likewise.
96830         * modules/sig2str: Likewise.
96831         * modules/userspec: Likewise.
96832         * modules/utimecmp: Likewise.
96833         * modules/xnanosleep: Likewise.
96834         * modules/xstrtol: Likewise.
96836 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
96838         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
96839         * modules/lock-tests (TESTS): Use $(EXEEXT).
96840         * modules/tls-tests: Likewise.
96841         * modules/argp-tests: Likewise.
96842         (check_PROGRAMS): New var, replacing...
96843         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
96845 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96847         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
96848         `config.h'.
96850 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
96852         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
96854 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96856         Sync from coreutils.
96857         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
96858         gl_CHDIR_SAFER.
96860 2006-02-22  Jim Meyering  <jim@meyering.net>
96862         Sync from coreutils.
96863         * m4/chdir-safer.m4: New file.
96865 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
96867         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
96868         AT_FDCWD exceeds INT_MAX.
96869         * lib/openat.h (AT_FDCWD): Likewise.
96871 2006-02-17  Eric Blake  <address@hidden>
96873         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
96875 2006-02-16  Simon Josefsson  <jas@extundo.com>
96877         * modules/getaddrinfo (Depends-on): Add sys_socket.
96879 2006-02-15  Simon Josefsson  <jas@extundo.com>
96881         * build-aux/maint.mk: Add dsyntax-check rule.
96883 2006-02-15  Eric Blake  <ebb9@byu.net>
96885         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
96886         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
96887         'present but cannot compile' warnings on cygwin.
96888         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
96889         use ws2tcpip.h if sys/socket.h works.
96890         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
96891         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
96893 2006-02-14  Simon Josefsson  <jas@extundo.com>
96895         * modules/maintainer-makefile (Files): Rename.
96897         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
96898         and (the local) Makefile.cfg to maint-cfg.mk.
96900         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
96901         to the latter.
96903         * modules/maintainer-makefile: New module.
96905         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
96906         severaly stripped to make it possible to build it up from scratch
96907         with reliable tests.
96909         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
96910         fixes to permit overriding the default actions when configure and
96911         makefile are not available.
96913 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
96915         Sync from coreutils.
96916         * modules/lstat (Depends-on): Don't depend on xalloc.
96917         (License): Change from GPL to LGPL, since this is now simply a
96918         replacement for a libc function.
96920 2006-02-14  Jim Meyering  <jim@meyering.net>
96922         Sync from coreutils.
96924         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
96925         failure on deficient systems, and simplify gnulib lgpl dependencies.
96926         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
96927         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
96929         * lib/xalloc-die.c: Remove unused definition of N_.
96931 2006-02-14  Jim Meyering  <jim@meyering.net>
96933         Sync from coreutils.
96934         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
96935         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
96936         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
96937         double-quote uses of that variable, to accommodate the rare case in
96938         which getmntent is available in none of the libraries checked.  This
96939         happens at least on FreeBSD 5.0.
96941 2006-02-13  Simon Josefsson  <jas@extundo.com>
96943         * gnulib-tool (Usage): Fix --import, from
96944         karl@freefriends.org (Karl Berry).
96946 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
96948         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
96950 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
96952         * lib/argp-namefrob.h: Restore changes accidentally lost during the
96953         "autoupdate" on 2005-12-12.
96955 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
96957         * modules/closeout (Depends-on): Remove atexit.
96959 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
96961         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
96962         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
96964 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
96966         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
96967         __EXTENSIONS__ if this causes compilation to fail.  Problem
96968         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
96969         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
96971 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
96973         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
96974         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
96975         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
96976         All uses changed.
96978 2006-01-26  Simon Josefsson  <jas@extundo.com>
96980         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
96981         prototype is visible on mingw32.
96983         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
96984         for mingw32.
96986         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
96987         mingw32).
96989 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
96991         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
96992         attempt to open for write; this always fails, at least on POSIX
96993         hosts.  This reinstates the 2006-01-09 change, which was
96994         inadvertently removed.
96996 2006-01-26  Bruno Haible  <bruno@clisp.org>
96998         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
96999         Reported by Paul Eggert.
97001 2006-01-26  Bruno Haible  <bruno@clisp.org>
97002             Paul Eggert  <eggert@cs.ucla.edu>
97004         * lib/stdbool_.h (_Bool)
97005         [(! (defined __cplusplus || defined __BEOS__)
97006           && !defined __GNUC__
97007           && !(defined __HP_cc || defined __xlc__
97008                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
97009                || defined __sgi))]:
97010         #define to signed char in these cases too; this simplifies
97011         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
97012         etc., separately) and makes it more conservative.
97014 2006-01-25  Simon Josefsson  <jas@extundo.com>
97016         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
97017         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
97018         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
97020 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
97022         * lib/argp-namefrob.h: Bugfix. Remove stray #
97024 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
97026         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
97027         so that we test the test.
97028         Check for yet another HP-UX cc bug involving *bool |= bool.
97030 2006-01-25  Karl Berry  <karl@gnu.org>
97032         * config/srclist.txt (vasnprintf.c): sync lost.
97034 2006-01-25  Jim Meyering  <jim@meyering.net>
97036         Sync from the stable (b5) branch of coreutils:
97038         * lib/fts.c (fts_children): Don't let close() clobber errno from
97039         failed fchdir().
97041         * lib/fts.c (fts_stat): When following a symlink-to-directory,
97042         don't necessarily interpret stat-fails+lstat-succeeds as indicating
97043         a dangling symlink.  That can also happen at least for ELOOP.
97044         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
97045         FYI, this bug predates the inclusion of fts.c in coreutils.
97047         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
97048         in their own block, so pre-c99 compilers don't object.
97050         Avoid the double-free (first in fts_read, second in fts_close) that
97051         would occur when an `active' directory is made inaccessible (e.g.,
97052         via chmod a-x) during a traversal.
97053         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
97054         before returning.  Reproduce this failure by
97055         mkdir -p a/b; cd a; chmod a-x . b
97056         Reported by Stavros Passas.
97058 2006-01-25  Jim Meyering  <jim@meyering.net>
97060         * lib/fileblocks.c: Remove more useless parentheses.
97061         * lib/readutmp.h: Likewise.
97063 2006-01-25  Bruno Haible  <bruno@clisp.org>
97065         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
97066         warnings.
97067         Reported by Paul Eggert.
97069 2006-01-25  Bruno Haible  <bruno@clisp.org>
97071         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
97072         rid of a trap command. For Solaris sh.
97073         Reported by Mark D. Baushke <mdb@gnu.org>.
97075 2006-01-24  Simon Josefsson  <jas@extundo.com>
97077         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
97078         Bruno.
97080 2006-01-24  Karl Berry  <karl@gnu.org>
97082         * config/srclist.txt (argp-namefrob.h): sync lost.
97084 2006-01-24  Jim Meyering  <jim@meyering.net>
97086         * modules/openat (Files): Add lib/intprops.h.
97087         From Mark D. Baushke.
97089 2006-01-24  Jim Meyering  <jim@meyering.net>
97091         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
97092         Reported by Mark D. Baushke.
97094 2006-01-24  Jim Meyering  <jim@meyering.net>
97096         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
97098 2006-01-24  Bruno Haible  <bruno@clisp.org>
97100         * modules/strnlen (Maintainer): Change from glibc to all.
97102 2006-01-24  Bruno Haible  <bruno@clisp.org>
97104         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
97105         Patch by Paul Eggert.
97107 2006-01-24  Bruno Haible  <bruno@clisp.org>
97109         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
97110         already has it.
97111         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
97112         2005-11-26.
97114         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
97115         'signed char' to avoid problems with the built-in _Bool type.
97116         Reported by Paul Eggert on 2005-11-26.
97118 2006-01-24  Bruno Haible  <bruno@clisp.org>
97120         * gnulib-tool (func_import): Avoid constructing complicated sed
97121         expressions inside backquote.
97122         Report and solution by Mark D. Baushke <mdb@gnu.org>.
97124 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
97126         These changes imported from libc.
97127         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
97128         test and two separate function calls.
97129         * lib/strndup.c (__strndup): Add libc_hidden_def.
97131 2006-01-23  Simon Josefsson  <jas@extundo.com>
97133         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
97134         Remove the test_*_SOURCES variable: automake infers it by default.
97135         * modules/tls-tests: Likewise.
97137 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
97139         Work around porting bugs reported by Dieter in
97140         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
97141         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
97142         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
97143         Include "getopt.h" first, to check interface.
97144         (getenv): Declare only if defined HAVE_DECL_GETENV &&
97145         !HAVE_DECL_GETENV.
97146         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
97147         (__strndup): Revert to K&R-style function dfns, the glibc style.
97148         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
97149         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
97150         Include strnlen.h first, to get prototype properly.
97151         (strnlen): Renamed from __strnlen.
97152         Remove weak alias.
97154 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
97156         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
97158 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
97160         * config/srclist.txt: Adjust to reflect glibc reorganization.
97161         This affects only comments.
97163 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
97165          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
97166          Reported by Bruce Korb <bkorb@gnu.org>.
97168 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
97170         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
97171         to pacify gcc -Wswitch-default.
97173 2006-01-22  Bruno Haible  <bruno@clisp.org>
97175         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
97176         temporary buffer for sprintf, take into account the precision also
97177         for 'd', 'i', 'u', 'o', 'x', 'X'.
97179 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
97181         * modules/argp-tests: New module
97182         * tests/test-argp.c: New file
97183         * tests/test-argp-2.sh: New file
97185 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
97187         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
97188         (__argp_base_name): Removed
97189         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
97190         typo.
97191         (__argp_base_name): Provide macro definition or extern declaration
97192         depending on the configuration
97194 2006-01-20  Simon Josefsson  <jas@extundo.com>
97196         * modules/inet_ntop (Depends-on): Depend on sys_socket.
97198 2006-01-20  Simon Josefsson  <jas@extundo.com>
97200         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
97202 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
97204         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
97205         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
97206         Suggested by Bruno Haible.
97208 2006-01-20  Karl Berry  <karl@gnu.org>
97210         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
97211         until changes propagate, I guess.
97213 2006-01-19  Simon Josefsson  <jas@extundo.com>
97215         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
97217 2006-01-19  Simon Josefsson  <jas@extundo.com>
97219         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
97221 2006-01-19  Simon Josefsson  <jas@extundo.com>
97223         * gnulib-tool: Set check_PROGRAMS.
97225         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
97226         modules/des-tests, modules/gc-arcfour-tests,
97227         modules/gc-arctwo-tests, modules/gc-des-tests,
97228         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
97229         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
97230         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
97231         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
97232         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
97233         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
97234         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
97235         test_*_SOURCES.
97237 2006-01-18  Simon Josefsson  <jas@extundo.com>
97239         * modules/socklen (Depends-on): Depend on sys_socket.
97241 2006-01-18  Simon Josefsson  <jas@extundo.com>
97243         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
97244         modules/des-tests, modules/gc-arcfour-tests,
97245         modules/gc-arctwo-tests, modules/gc-des-tests,
97246         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
97247         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
97248         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
97249         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
97250         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
97251         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
97252         $(EXEEXT) to automake TESTS variable, for mingw32.
97254 2006-01-17  Simon Josefsson  <jas@extundo.com>
97256         * modules/socklen (Include): Need sys/socket.h.
97258 2006-01-17  Bruno Haible  <bruno@clisp.org>
97260         * modules/ssize_t (Include): Add <sys/types.h>.
97262 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
97264         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
97265         it's not portable and it doesn't work with cross-compiles.
97266         Problem reported by Bruno Haible.  Fix missing-$ typo in
97267         'test "gl_cv_ignore_unused_libraries" ...' that prevented
97268         -zignore from being used with Sun's C compiler.
97270 2006-01-12  Simon Josefsson  <jas@extundo.com>
97272         * lib/base64.c: Fix warning, reported by Bruno Haible
97273         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
97275 2006-01-12  Bruno Haible  <bruno@clisp.org>
97277         * modules/ldd: New file.
97278         * build-aux/ldd.sh.in: New file.
97279         * MODULES.html.sh (Support for building libraries and executables): Add
97280         ldd.
97282 2006-01-12  Bruno Haible  <bruno@clisp.org>
97284         * m4/ldd.m4: New file.
97286 2006-01-12  Bruno Haible  <bruno@clisp.org>
97288         * gnulib-tool (func_import, func_create_testdir): Don't go into an
97289         endless loop while replacing $auxdir with build-aux.
97291 2006-01-11  Simon Josefsson  <jas@extundo.com>
97293         * lib/stdint_.h (SIZE_MAX): Add missing (.
97295 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
97297         Sync from coreutils.
97298         * lib/md5.c: Fix commentary typos.
97299         (alignof, UNALIGNED_P): No need for a GCC-specific version.
97300         * lib/md5.h (__attribute__): Remove; unused.
97301         * lib/sha1.c: Fix commentary to match md5 better.
97302         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
97303         so that we don't need to worry about alignment.  All uses changed.
97304         This merges the 2005-10-28 md5 change into sha1.
97306 2006-01-11  Jim Meyering  <jim@meyering.net>
97308         Sync from coreutils.
97309         * lib/md5.c (OP): Fix spacing.
97311 2006-01-11  Bruno Haible  <bruno@clisp.org>
97313         Ensure automatic ordering between gl_LOCK and gl_ARGP.
97314         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
97315         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
97317 2006-01-11  Bruno Haible  <bruno@clisp.org>
97319         Ensure automatic ordering between gl_LOCK and gl_ARGP.
97320         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
97321         the "early" section as well.
97323 2006-01-11  Bruno Haible  <bruno@clisp.org>
97325         Avoid "ar: no archive members specified" error on MacOS X.
97326         * gnulib-tool (func_modules_add_dummy): New function.
97327         (func_import, func_create_testdir): Invoke it.
97329 2006-01-11  Bruno Haible  <bruno@clisp.org>
97331         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
97332         with $auxdir in AC_CONFIG_FILES statements.
97334 2006-01-11  Bruno Haible  <bruno@clisp.org>
97336         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
97337         Initialize also noinst_HEADERS to empty.
97339 2006-01-11  Bruno Haible  <bruno@clisp.org>
97341         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
97342         variables.
97343         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
97344         autoreconf.
97346 2006-01-11  Bruno Haible  <bruno@clisp.org>
97348         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
97349         overridable by the user.
97350         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97352 2006-01-10  Simon Josefsson  <jas@extundo.com>
97354         * modules/sys_socket: New file.
97356 2006-01-10  Simon Josefsson  <jas@extundo.com>
97358         * m4/sys_socket_h.m4: New file.
97360 2006-01-10  Simon Josefsson  <jas@extundo.com>
97362         * lib/socket_.h: New file.
97364 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
97366         * modules/readutmp (Maintainer): Add myself.
97368 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
97370         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
97371         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
97372         People who are still concerned with buggy memcmp implementations
97373         can invoke gl_FUNC_MEMCMP themselves.
97375 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
97377         * lib/regex_internal.h (BITSET_WORD_BITS):
97378         Work around a bug in 64-bit PGC (before version 6.1-2), where the
97379         preprocessor mishandles large unsigned values as if they were signed.
97380         Problem reported by Claudio Fontana in
97381         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
97383 2006-01-10  Jim Meyering  <jim@meyering.net>
97385         Avoid the double-free (first in fts_read, second in fts_close) that
97386         would occur when an `active' directory is made inaccessible (e.g.,
97387         via chmod a-x) during a traversal.
97388         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
97389         before returning.  Reproduce this failure by
97390         mkdir -p a/b; cd a; chmod a-x . b
97391         Reported by Stavros Passas.
97393         Sync from coreutils.
97394         * lib/sha1.c: Tweak grammar in a comment.
97396 2006-01-10  Jim Meyering  <jim@meyering.net>
97398         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
97399         Patch by Joerg Sonnenberger.
97401 2006-01-10  Bruno Haible  <bruno@clisp.org>
97403         * modules/readutmp: Depend on module free.
97404         * modules/strtok_r: Depend on module restrict.
97406 2006-01-10  Bruno Haible  <bruno@clisp.org>
97408         * modules/gettext (configure.ac): Add an invocation of
97409         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
97411 2006-01-10  Bruno Haible  <bruno@clisp.org>
97413         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
97414         Reported by Werner Lemberg <wl@gnu.org>.
97416 2006-01-10  Bruno Haible  <bruno@clisp.org>
97418         * lib/localcharset.c: Update from GNU gettext.
97420 2006-01-10  Bruno Haible  <bruno@clisp.org>
97422         * lib/argp.h (__const): Remove macro. Use const instead.
97423         * lib/argp-fmtstream.h (__const): Likewise.
97424         * lib/glob_.h (__const): Remove macro.
97425         * lib/glob-libc.h: Use const instead of __const.
97427 2006-01-10  Bruno Haible  <bruno@clisp.org>
97429         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
97430         variable.
97431         Needed to avoid an automake error regarding the 'gettext' module.
97433 2006-01-09  Simon Josefsson  <jas@extundo.com>
97435         * modules/inet_ntop (Depends-on): Add restrict.
97437 2006-01-09  Simon Josefsson  <jas@extundo.com>
97439         * modules/gc-rijndael-tests (License): Put under LGPL.
97441         * modules/gc-des-tests (License): Likewise.
97443         * modules/gc-arcfour-tests (License): Likewise.
97445         * modules/gc-arctwo-tests (License): Likewise.
97447         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
97449         * modules/gc-hmac-sha1-tests (Files): Likewise.
97451         * modules/gc-hmac-md5-tests (License): Likewise.
97453         * modules/gc-sha1-tests (License): Likewise.
97455         * modules/gc-md5-tests (License): Likewise.
97457         * modules/gc-md4-tests (License): Likewise.
97459         * modules/gc-md2-tests (License): Likewise.
97461         * modules/gc-tests (License): Likewise.
97463         * modules/des-tests (License): Likewise.
97465         * modules/md4-tests (License): Likewise.
97467         * modules/md2-tests (License): Likewise.
97469 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
97471         Sync from coreutils:
97473         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
97474         * modules/lib-ignore: New file.
97475         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
97476         chdir-safer.m4, lchmod.m4.
97477         * modules/openat: Add mkdirat.c, openat-priv.h.
97479 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
97481         Sync from coreutils.
97482         * m4/lib-ignore.m4: New file.
97483         * m4/lchmod.m4: New file.
97485 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
97487         Sync from coreutils.
97488         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
97489         for write access: POSIX says that must fail.
97490         * lib/fts.c (diropen): Likewise.
97491         * lib/save-cwd.c (save_cwd): Likewise.
97492         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
97493         well, for minor improvements on hosts that lack O_DIRECTORY.
97494         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
97495         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
97496         Fall back on chown if open failed with EACCES.
97498         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
97499         Report an error at compile-time if only a 1-second nominal clock
97500         resolution is found.
97502         * lib/lchmod.h: New file.
97503         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
97504         (make_dir_parents): Use lchown rather than chown, and
97505         lchmod rather than chmod.
97507         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
97508         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
97509         "proc" reported by n0dalus.
97511         * lib/mountlist.c: Include <limits.h>.
97512         (dev_from_mount_options)
97513         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
97514         New function.  It no longer assumes "dev=" has the System V meaning
97515         on Linux (since it doesn't).  It also parses "dev=" more carefully.
97516         (read_file_system_list)
97517         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
97518         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
97519         dev= in that case.
97521         * lib/posixtm.h (PDS_PRE_2000): New macro.
97522         * lib/posixtm.c (year): Arg is now syntax_bits rather than
97523         allow_century.  All usages changed.  Reject dates outside the range
97524         1969-1999 if PDS_PRE_2000 is used.
97526 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
97528         Sync from coreutils.
97529         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
97530         (Time of day items): Mention the possibility of leap seconds.
97531         Problem reported by Dr. David Alan Gilbert.
97533 2006-01-09  Jim Meyering  <jim@meyering.net>
97535         Sync from coreutils.
97537         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
97539         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
97541         * lib/modechange.c (mode_compile): Reject an invalid mode string
97542         that starts with an octal digit.  From Andreas Gruenbacher.
97544         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
97545         and dup to open_safer and dup_safer, respectively.
97546         (openat_permissive): Fix typo in comment.
97548         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
97549         "gettext.h"; either no longer needed or are guaranteed by openat.h.
97550         (_): Remove; no longer needed.
97551         (openat): Renamed from rpl_openat; no need for rpl_openat
97552         since openat.h renames openat for us.
97553         Replace most of the body with a call to openat_permissive,
97554         to avoid duplicate code.
97555         Port to (probably hypothetical) environments were mode_t is
97556         wider than int.
97557         (openat_permissive): Require mode arg, so that we can check
97558         types better.  Put it just after flags.  Change cwd failure
97559         indicator from pointer-to-bool to pointer-to-errno-value.
97560         All callers changed.
97561         Invoke openat_save_fail and/or openat_restore_fail if
97562         cwd_errno is null, so that openat can call us.
97563         (openat_permissive, fdopendir, fstatat, unlinkat):
97564         Simplify errno handling to avoid some duplicate code,
97565         as it's OK to set errno on success.
97566         * lib/openat.h: Revamp code so that function macros depend on
97567         __OPENAT_PREFIX only, not also on AT_FDCWD.
97568         (openat_ro): Remove.  Caller changed to use openat_permissive.
97569         (openat_permissive): Now a macro, if not a function.
97570         (openat_restore_fail, openat_save_fail): Now always functions,
97571         since mkdirat needs them even if __OPENAT_PREFIX is defined.
97573         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
97574         and openat.c.
97575         * lib/mkdirat.c: Include openat-priv.h.
97576         Remove definitions of macros defined therein.
97577         * lib/openat.c: Likewise.
97579         * lib/mkdirat.c (mkdirat): New file and function.
97580         * lib/openat.h (mkdirat): Declare.
97582         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
97584         * lib/openat.h (openat_permissive): Declare.
97585         (openat_ro): Define.
97587         * lib/openat.c (EXPECTED_ERRNO): New macro.
97588         (openat_permissive): New function -- used in remove.c rewrite.
97589         (all functions): Set errno just before returning, only if there
97590         was an actual failure.
97591         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
97593         Emulate openat-family functions using Linux's procfs, if possible.
97594         Idea and some code based on Ulrich Drepper's glibc changes.
97596         * lib/openat.c: (BUILD_PROC_NAME): New macro.
97597         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
97598         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
97599         before falling back on save_cwd and restore_cwd.
97600         (fdopendir, fstatat, unlinkat): Likewise.
97602         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
97603         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
97605         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
97606         as second argument to va_arg.  Otherwise, some versions of gcc
97607         warn that `if this code is reached, the program will abort'.
97609 2006-01-09  Jim Meyering  <jim@meyering.net>
97611         Sync from coreutils.
97612         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
97613         Require openat-priv.h.
97615 2006-01-09  Bruno Haible  <bruno@clisp.org>
97617         * modules/strnlen (Include): Use strnlen.h.
97619 2006-01-09  Bruno Haible  <bruno@clisp.org>
97621         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
97623 2006-01-09  Bruno Haible  <bruno@clisp.org>
97625         * lib/sysexit_.h (EX_OK): New macro.
97626         Suggested by Martin Lambers <marlam@marlam.de>.
97628 2006-01-09  Bruno Haible  <bruno@clisp.org>
97630         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
97631         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
97633 2006-01-09  Bruno Haible  <bruno@clisp.org>
97635         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
97636         numbers.
97638 2006-01-09  Bruno Haible  <bruno@clisp.org>
97640         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
97641         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
97642         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
97643         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
97645 2006-01-09  Bruno Haible  <bruno@clisp.org>
97647         * build-aux/javacomp.sh.in: New file, moved from lib/.
97648         * modules/javacomp-script (Files): Update.
97649         (configure.ac): Add AC_CONFIG_FILES invocation.
97650         (EXTRA_DIST): Remove variable.
97652         * build-aux/javaexec.sh.in: New file, moved from lib/.
97653         * modules/javaexec (Files): Update.
97654         (configure.ac): Add AC_CONFIG_FILES invocation.
97655         (EXTRA_DIST): Remove javaexec.sh.in.
97657         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
97658         * modules/csharpcomp-script (Files): Update.
97659         (configure.ac): Add AC_CONFIG_FILES invocation.
97660         (EXTRA_DIST): Remove variable.
97662         * build-aux/csharpexec.sh.in: New file, moved from lib/.
97663         * modules/csharpexec (Files): Update.
97664         (configure.ac): Add AC_CONFIG_FILES invocation.
97665         (EXTRA_DIST): Remove csharpexec.sh.in.
97667 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
97669         Sync from coreutils.
97671         Add POSIX ACL support
97672         * lib/acl.h (copy_acl, set_acl): Add declarations.
97673         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
97674         systems other than Linux.
97675         (chmod_or_fchmod): New function: use fchmod when possible,
97676         and chmod otherwise.
97677         (file_has_acl): Add a POSIX ACL implementation, with a
97678         Linux-specific subcase.
97679         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
97680         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
97681         acls are unsupported.
97682         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
97683         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
97684         are unsupported.
97686 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
97688         Sync from coreutils.
97689         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
97691 2006-01-07  Bruno Haible  <bruno@clisp.org>
97693         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
97694         gl_EARLY.
97696 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
97698         * lib/strftime.c (tzname): Don't declare if it is already #defined.
97699         Problem reported for Mingw by Mark Junker.
97701 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
97703         * README: Gnulib normally doesn't generate a tarball.
97705 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
97707         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
97708         long int, not int, for nanosecond counts, so that people who are
97709         used to POSIX struct timespec won't be surprised.  Reported by Jim
97710         Meyering.
97712 2005-12-28  Bruno Haible  <bruno@clisp.org>
97714         * build-aux/config.rpath: Update from GNU gettext.
97716 2005-12-16  Jim Meyering  <jim@meyering.net>
97718         * modules/fprintftime: New module.
97719         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
97721 2005-12-16  Jim Meyering  <jim@meyering.net>
97723         * m4/fprintftime.m4: New file.
97725 2005-12-16  Jim Meyering  <jim@meyering.net>
97727         * lib/fprintftime.c, lib/fprintftime.h: New files.
97729 2005-12-15  Simon Josefsson  <jas@extundo.com>
97731         * modules/socklen (configure.ac): Fix M4 macro name, to align with
97732         new m4/socklen.m4.
97734 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
97736         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
97737         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
97739 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
97741         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
97742         * lib/argp-help.c (fill_in_uparams): Check if the constructed
97743         struct uparams is valid. Fall back to the default values if it is
97744         not.
97746 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
97748         * modules/argp (Files): Add argp-pin.c
97749         (Depends-on): dirname
97750         (lib_SOURCES): Add argp-pin.c
97752 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
97754         * m4/argp.m4:  Check if program_invocation_name and
97755         program_invocation_short_name are declared and define appropriate
97756         macros if they are not.
97758 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
97760         * lib/argp-help.c (__argp_base_name): New function
97761         (__argp_short_program_name): Rewrite using __argp_base_name
97762         * lib/argp-namefrob.h: Define program_invocation_name and
97763         program_invocation_short_name if requested
97764         (__argp_base_name): Add prototype
97765         * lib/argp-parse.c (argp_def): Use gettext wrappers
97766         (argp_default_parser): Use __argp_base_name
97767         * lib/argp-pin.c: New file. Defines program_invocation_name and
97768         program_invocation_short_name on systems that lack them.
97770 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
97772         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
97773         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
97774         porting problem reported by Georg Schwarz in
97775         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
97777 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
97779         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
97780         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
97781         porting problem reported by Georg Schwarz in
97782         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
97784 2005-12-05  Bruno Haible  <bruno@clisp.org>
97786         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
97787         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
97788         Reported by Mark Junker <mjscod@gmx.de>.
97790 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
97792         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
97793         Use implementation from Albert Chin, with some
97794         comments/corrections by Stepan Kasal and myself.
97796 2005-12-02  Bruno Haible  <bruno@clisp.org>
97798         * gnulib-tool (func_import): Accept GPLed build tool modules when
97799         --lgpl is given.
97800         * modules/csharpcomp-script: New file.
97801         * modules/csharpcomp: Depend on it.
97802         * modules/javacomp-script: New file.
97803         * modules/javacomp: Depend on it.
97804         Suggested by Simon Josefsson.
97806 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
97808         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
97809         statement, to work around an HP-UX 10.20 compiler bug reported by
97810         Peter O'Gorman.
97812 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
97814         * modules/savedir (Depends-on): Add openat.
97816 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
97818         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
97819         (uintmax_t) [defined uintmax_t]: Do not declare.
97820         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
97821         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
97822         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
97823         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
97824         sake of portability to weird hosts that C allows (though we don't
97825         know of any practical examples).
97827         * lib/savedir.h (fdsavedir): New decl.
97828         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
97829         contains most of the former guts of savedir.
97830         (savedir): Use savedirstream.
97831         Include "openat.h".
97833 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
97835         * modules/obstack (Files): Add m4/ulonglong.m4.
97836         Problem reported by Davide Angelocola.
97838 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
97840         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
97841         coreutils no longer futzes with rounding modes.
97843 2005-11-14  Jim Meyering  <jim@meyering.net>
97845         * lib/mkstemp-safer.c: Include <config.h>, required for possible
97846         replacement of mkstemp.
97848 2005-11-10  Simon Josefsson  <jas@extundo.com>
97850         * lib/readline.c: Remove EOL.
97852 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
97854         * modules/gethrxtime (Depends-on): Add gettime.
97856 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
97858         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
97859         or gettimeofday; no longer needed.
97861 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
97863         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
97864         time business.
97865         (gethrxtime) [! (HAVE_NANOUPTIME
97866         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
97867         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
97868         our own approximation.
97870 2005-11-08  Eric Blake  <ebb9@byu.net>
97872         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
97874 2005-11-08  Eric Blake  <ebb9@byu.net>
97876         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
97878 2005-11-04  Bruno Haible  <bruno@clisp.org>
97880         * gnulib-tool: Implement --update mode.
97882 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
97884         Fix porting problem reported by Theodoros V. Kalamatianos.
97885         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
97886         Don't assume that futimes failing means we must fail.
97888 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
97890         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
97891         variables to suggest the intended function of the PATH_MAX check.
97893 2005-10-30  Kean Johnston  <jkj@sco.com>
97895         Trivial changes to support SCO systems.
97896         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
97897         as PATH_MAX.
97898         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
97899         where __ptr is null when no I/O is pending.
97901 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
97903         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
97904         leave errno alone.  Problem reported by Dmitry V. Levin.
97906 2005-10-28  Simon Josefsson  <jas@extundo.com>
97908         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
97909         Test more.
97911         * tests/test-gc-md2.c, tests/test-md2.c: New files.
97913         * modules/md2, modules/md2-tests: New files.
97915 2005-10-28  Simon Josefsson  <jas@extundo.com>
97917         * m4/inet_ntop.m4: More tests.
97919         * m4/gc-md2.m4, md2.m4: New file.
97921 2005-10-28  Simon Josefsson  <jas@extundo.com>
97923         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
97924         "restrict" keywords, as per POSIX.  Protect the function
97925         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
97926         Don't use K&R prototypes.  Check the sprintf return values.
97927         Re-define EAFNOSUPPORT if not present.  Indent.
97929         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
97930         suggested by Bruno Haible <bruno@clisp.org>.
97932         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
97934         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
97936         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
97937         libgcrypt).
97939         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
97941         * lib/md2.h, lib/md2.c: New files.
97943 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
97945         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
97946         errno alone.  Problem reported by Frederic Jolliton.
97948 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
97950         * modules/verify (License): Change from GPL to LGPL.  This is a
97951         tiny module and there are apparently near-equivalents that are
97952         under the BSD license.
97954 2005-10-24  Simon Josefsson  <jas@extundo.com>
97956         * modules/sha1: Relicense to LGPL.
97958 2005-10-24  Simon Josefsson  <jas@extundo.com>
97960         * lib/md4.h: Shrink buffer size, now that we changed the type.
97962 2005-10-23  Simon Josefsson  <jas@extundo.com>
97964         * gnulib-tool (func_import): Fix --tests-base.
97966 2005-10-22  Simon Josefsson  <jas@extundo.com>
97968         * modules/arcfour (Depends-on): Need stdint.
97970 2005-10-22  Simon Josefsson  <jas@extundo.com>
97972         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
97973         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
97975 2005-10-22  Simon Josefsson  <jas@extundo.com>
97977         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
97978         suggested by Bruno Haible <bruno@clisp.org>.
97980 2005-10-22  Simon Josefsson  <jas@extundo.com>
97982         * lib/crc.h: Include stddef.h, for size_t.
97984 2005-10-22  Simon Josefsson  <jas@extundo.com>
97986         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
97987         arcfour_context struct (simplify test vector testing in GNU
97988         Shishi).
97990 2005-10-21  Simon Josefsson  <jas@extundo.com>
97992         * modules/des, modules/des-tests: New files.
97994         * modules/gc-des, modules/gc-des-tests: New files.
97996         * tests/test-des.c, tests/test-gc-des.c: New file.
97998 2005-10-21  Simon Josefsson  <jas@extundo.com>
98000         * modules/arctwo, modules/arctwo-tests: New files.
98002         * tests/test-arctwo.c: New file.
98004         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
98006         * tests/test-gc-arctwo.c: New file.
98008 2005-10-21  Simon Josefsson  <jas@extundo.com>
98010         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
98011         Bruno Haible <bruno@clisp.org>.
98013         * m4/gc-des.m4: New file.
98015 2005-10-21  Simon Josefsson  <jas@extundo.com>
98017         * m4/arctwo.m4: New file.
98019         * m4/gc-arctwo.m4: New file.
98021 2005-10-21  Simon Josefsson  <jas@extundo.com>
98023         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
98024         block.
98026 2005-10-21  Simon Josefsson  <jas@extundo.com>
98028         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
98029         <bruno@clisp.org>.
98031         * lib/hmac-sha1.c (hmac_sha1): Likewise.
98033         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
98034         Bruno Haible <bruno@clisp.org>.
98036         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
98037         <bruno@clisp.org>.
98039 2005-10-21  Simon Josefsson  <jas@extundo.com>
98041         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
98043 2005-10-21  Simon Josefsson  <jas@extundo.com>
98045         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
98047 2005-10-21  Simon Josefsson  <jas@extundo.com>
98049         * lib/des.h, lib/des.c: New files.
98051         * lib/gc-gnulib.c: Support DES.c
98053 2005-10-21  Simon Josefsson  <jas@extundo.com>
98055         * lib/arctwo.h, lib/arctwo.c: New files.
98057         * lib/gc-gnulib.c: Support ARCTWO.
98059 2005-10-21  Simon Josefsson  <jas@extundo.com>
98061         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
98062         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98064 2005-10-21  Simon Josefsson  <jas@extundo.com>
98066         * gnulib-tool (func_import, func_create_testdir): Define automake
98067         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
98068         Makefile.am snippet),
98069         suggested by Bruno Haible <bruno@clisp.org>.
98071         * modules/gc (Makefile.am): Use it.
98073 2005-10-21  Bruno Haible  <bruno@clisp.org>
98075         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
98076         patch.
98078 2005-10-19  Simon Josefsson  <jas@extundo.com>
98080         * tests/test-gc-rijndael.c: New file.
98082         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
98084 2005-10-19  Simon Josefsson  <jas@extundo.com>
98086         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
98087         interface too.
98089 2005-10-19  Simon Josefsson  <jas@extundo.com>
98091         * tests/test-gc-arcfour.c: New file.
98093         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
98095 2005-10-19  Simon Josefsson  <jas@extundo.com>
98097         * modules/gc-md4, modules/gc-md4-tests: New file.
98099         * tests/test-gc-md4.c: New file.
98101 2005-10-19  Simon Josefsson  <jas@extundo.com>
98103         * m4/gc-md4.m4: New file.
98105 2005-10-19  Simon Josefsson  <jas@extundo.com>
98107         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
98108         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
98109         <kasal@ucw.cz>.
98111 2005-10-19  Simon Josefsson  <jas@extundo.com>
98113         * m4/gc-arcfour.m4: New file.
98115         * m4/gc-rijndael.m4: New file.
98117 2005-10-19  Simon Josefsson  <jas@extundo.com>
98119         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
98121 2005-10-19  Simon Josefsson  <jas@extundo.com>
98123         * lib/gc-gnulib.c: Support ARCFOUR.
98125 2005-10-19  Simon Josefsson  <jas@extundo.com>
98127         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
98128         support.
98130         * lib/gc.h: Add ECB enum type.
98132         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
98134 2005-10-18  Simon Josefsson  <jas@extundo.com>
98136         * tests/test-md5.c: New file.
98138         * modules/md5-tests: New file.
98140 2005-10-18  Simon Josefsson  <jas@extundo.com>
98142         * tests/test-md4.c: New file.
98144         * modules/md4, modules/md4-tests: New files.
98146 2005-10-18  Simon Josefsson  <jas@extundo.com>
98148         * m4/md4.m4: New file.
98150 2005-10-18  Simon Josefsson  <jas@extundo.com>
98152         * lib/md4.h, lib/md4.c: New files, based on md5.?.
98154 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
98156         * gnulib-tool (func_create_testdir): Omit the second check whether
98157         BUILT_SOURCES in nonempty.
98159 2005-10-17  Simon Josefsson  <jas@extundo.com>
98161         * tests/test-rijndael.c: New file.
98163 2005-10-17  Simon Josefsson  <jas@extundo.com>
98165         * modules/sha1: Depend on stdint instead of md5.
98167         * modules/md5: Depend on stdint, remove uint32_t.
98169 2005-10-17  Simon Josefsson  <jas@extundo.com>
98171         * modules/gc-sha1-tests: New file.
98173         * tests/test-gc-sha1.c: New file.
98175 2005-10-17  Simon Josefsson  <jas@extundo.com>
98177         * m4/md5.m4: Remove call to uint32_t.m4.
98179 2005-10-17  Simon Josefsson  <jas@extundo.com>
98181         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
98183         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
98184         md5.h.
98186         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
98188         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
98190 2005-10-17  Simon Josefsson  <jas@extundo.com>
98192         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
98194 2005-10-17  Simon Josefsson  <jas@extundo.com>
98196         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
98198 2005-10-17  Simon Josefsson  <jas@extundo.com>
98200         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
98202         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
98204 2005-10-17  Bruno Haible  <bruno@clisp.org>
98206         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
98207         that it can also be used in a test.
98209 2005-10-16  Bruno Haible  <bruno@clisp.org>
98211         * gnulib-tool (func_emit_tests_Makefile_am): Also define
98212         TESTS_ENVIRONMENT, so that individual tests can augment it.
98214         * gnulib-tool (func_create_testdir): Use an intermediate target for
98215         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
98216         macros, like $(ALLOCA_H), which cannot be passed through the command
98217         line.
98219 2005-10-15  Simon Josefsson  <jas@extundo.com>
98221         * modules/rijndael-tests: New file.
98223         * modules/rijndael: New file.
98225 2005-10-15  Simon Josefsson  <jas@extundo.com>
98227         * m4/rijndael.m4: New file.
98229 2005-10-15  Simon Josefsson  <jas@extundo.com>
98231         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
98233         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
98235 2005-10-14  Simon Josefsson  <jas@extundo.com>
98237         * tests/test-arcfour.c: New file.
98239         * modules/arcfour, modules/arcfour-tests: New files.
98241 2005-10-14  Simon Josefsson  <jas@extundo.com>
98243         * m4/arcfour.m4: New file.
98245 2005-10-14  Simon Josefsson  <jas@extundo.com>
98247         * lib/arcfour.h, lib/arcfour.c: New files.
98249 2005-10-14  Roland McGrath  <roland@redhat.com>
98251         Import from libc.  [BZ #1331]
98252         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
98253         macro argument.
98254         Reported by Matej Vela <vela@debian.org>.
98256 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
98258         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
98259         include <wchar.h>; no longer needed.
98261 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
98263         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
98265 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
98266         and  Ulrich Drepper  <drepper@redhat.com>
98268         Import from libc.
98269         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
98270         instead of inline stream orientation test and two separate
98271         function calls.  Pay no attention to USE_IN_LIBIO.
98273 2005-10-13  Simon Josefsson  <jas@extundo.com>
98275         * modules/gc-hmac-md5-tests: New file.
98277         * tests/test-gc-hmac-sha1.c: New file.
98279         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
98281         * modules/gc-hmac-md5-tests: New file.
98283         * tests/test-gc-md5.c: New file.
98285         * modules/gc-md5-tests: New file.
98287 2005-10-13  Simon Josefsson  <jas@extundo.com>
98289         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
98290         Move memory allocation outside of loop.
98292 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
98294         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
98295         intermediate directory is in a read-only file system.  Problem
98296         reported by Eric Blake.
98298 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
98300         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
98302 2005-10-12  Simon Josefsson  <jas@extundo.com>
98304         * tests/test-hmac-sha1.c: New file.
98306         * modules/hmac-sha1-tests: New file.
98308         * modules/hmac-sha1: New file.
98310 2005-10-12  Simon Josefsson  <jas@extundo.com>
98312         * modules/gc-sha1: New file.
98314 2005-10-12  Simon Josefsson  <jas@extundo.com>
98316         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
98318         * tests/test-gc-pbkdf2-sha1.c: New file.
98320 2005-10-12  Simon Josefsson  <jas@extundo.com>
98322         * modules/gc-md5, modules/gc-hmac-md5: New files.
98324         * modules/gc (Files): Remove md5, memxor and hmac files.
98326 2005-10-12  Simon Josefsson  <jas@extundo.com>
98328         * m4/gc-pbkdf2-sha1.m4: New file.
98330         * m4/gc-hmac-sha1.m4: New file.
98332         * m4/gc-sha1: New file.
98334         * m4/hmac-sha1.m4: New file.
98336 2005-10-12  Simon Josefsson  <jas@extundo.com>
98338         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
98340         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
98342 2005-10-12  Simon Josefsson  <jas@extundo.com>
98344         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
98345         suggested by Bruno Haible <bruno@clisp.org>.
98347 2005-10-12  Simon Josefsson  <jas@extundo.com>
98349         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
98351 2005-10-12  Simon Josefsson  <jas@extundo.com>
98353         * lib/gc-pbkdf2-sha1.c: New file.
98355         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
98357 2005-10-12  Simon Josefsson  <jas@extundo.com>
98359         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
98361         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
98363 2005-10-12  Simon Josefsson  <jas@extundo.com>
98365         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
98366         GC_USE_HMAC_MD5, respectively.
98368         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
98369         (gc_md5): Fix typo.
98371         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
98373         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
98375         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
98377 2005-10-12  Bruno Haible  <bruno@clisp.org>
98379         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
98380         Reported by Stepan Kasal <kasal@ucw.cz>.
98382 2005-10-11  Simon Josefsson  <jas@extundo.com>
98384         * tests/test-crc.c: New file.
98386         * modules/crc, modules/crc-tests: New files.
98388 2005-10-11  Simon Josefsson  <jas@extundo.com>
98390         * m4/crc.m4: New file.
98392 2005-10-11  Simon Josefsson  <jas@extundo.com>
98394         * lib/gc.h: Add gc_hash and gc_hash_buffer.
98396         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
98398         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
98400 2005-10-11  Simon Josefsson  <jas@extundo.com>
98402         * lib/crc.h, lib/crc.c: New files.
98404         * lib/gc.h (gc_hash_buffer): Add doc.
98406 2005-10-11  Bruno Haible  <bruno@clisp.org>
98408         * modules/c-strcasestr: New file.
98409         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
98411 2005-10-11  Bruno Haible  <bruno@clisp.org>
98413         * modules/c-strcase: New file.
98414         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
98416 2005-10-11  Bruno Haible  <bruno@clisp.org>
98418         * lib/strcasecmp.c: Include limits.h.
98419         (strcasecmp): Avoid integer overflow on exotic platforms.
98420         * lib/strncasecmp.c: Include limits.h.
98421         (strncasecmp): Avoid integer overflow on exotic platforms.
98422         Reported by Paul Eggert.
98424 2005-10-11  Bruno Haible  <bruno@clisp.org>
98426         * lib/c-strcasestr.h: New file, from GNU gettext.
98427         * lib/c-strcasestr.c: New file, from GNU gettext.
98429 2005-10-11  Bruno Haible  <bruno@clisp.org>
98431         * lib/c-strcase.h: New file, from GNU gettext.
98432         * lib/c-strcasecmp.c: New file, from GNU gettext.
98433         * lib/c-strncasecmp.c: New file, from GNU gettext.
98435 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
98437         * modules/mempcpy (License): GPL -> LGPL.
98438         * modules/strchrnul (License): Likewise.
98439         * modules/sysexits (License): Likewise.
98441 2005-10-08  Simon Josefsson  <jas@extundo.com>
98443         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
98445 2005-10-07  Simon Josefsson  <jas@extundo.com>
98447         * m4/memxor.m4: Remove gl_C_RESTRICT call.
98449 2005-10-06  Simon Josefsson  <jas@extundo.com>
98451         * tests/test-hmac-md5.c: New file.
98453         * modules/hmac-md5-tests: New file.
98455         * modules/hmac-md5: New file.
98457 2005-10-06  Simon Josefsson  <jas@extundo.com>
98459         * m4/hmac-md5.m4: New file.
98461         * m4/memxor.m4: Require gl_C_RESTRICT.
98463 2005-10-06  Simon Josefsson  <jas@extundo.com>
98465         * lib/memxor.c (memxor): Avoid casts and warnings.
98467 2005-10-06  Simon Josefsson  <jas@extundo.com>
98469         * lib/hmac-md5.c: New file.
98471         * lib/hmac.h: New file.
98473 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
98475         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
98476         promotes to int, not unsigned int, to catch the AIX 5.3
98477         compiler bug.
98479 2005-10-05  Simon Josefsson  <jas@extundo.com>
98481         * modules/memxor: New file.
98483         * modules/iconv (Files): Move config.rpath to havelib, it is used
98484         there.
98486         * modules/havelib (Files): Add config.rpath.
98488 2005-10-05  Simon Josefsson  <jas@extundo.com>
98490         * m4/memxor.m4: New file.
98492 2005-10-05  Simon Josefsson  <jas@extundo.com>
98494         * lib/memxor.c (memxor): Fix compiler error.
98496         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
98497         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
98499         * lib/memxor.h, lib/memxor.c: New files.
98501         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
98502         we assume all systems have it, suggested by Jim Meyering
98503         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
98504         any systems lack sys/socket.h; mingw32 is known to lack it, but we
98505         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
98506         same reasons.
98508 2005-10-05  Simon Josefsson  <jas@extundo.com>
98510         * config/srclist.txt: Add glibc bug 1423 for md5.h.
98512 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
98514         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
98515         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
98516         needed, since the source code now assumes these .h files.
98518 2005-10-05  Derek Price  <derek@ximbiot.com>
98520         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
98522 2005-10-05  Bruno Haible  <bruno@clisp.org>
98524         * modules/stdint (License): Change to LGPL.
98526 2005-10-04  Simon Josefsson  <jas@extundo.com>
98528         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
98529         D. Baushke" <mdb@gnu.org>.
98531 2005-10-04  Bruno Haible  <bruno@clisp.org>
98533         * lib/verify.h (verify_true): Provide alternative definition for C++.
98535 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
98537         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
98538         (SSIZE_MAX): New macro, if not already defined.
98539         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
98540         than 2 GiB.
98542 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
98544         Sync from coreutils.
98545         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
98546         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
98547         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
98548         ULLONG_MAX doesn't work with 2.7.2.1.
98550 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
98552         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
98553         From Ben Pfaff.
98555         * modules/exclude (Depends-on): Depend on verify.
98556         * modules/strtoimax (Depends-on): Likewise.
98557         * modules/utimecmp (Depends-on): Likewise.
98559 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
98561         * lib/exclude.c: Include verify.h.
98562         (verify): Remove.  All callers changed to use verify.h's version.
98563         * lib/strtoimax.c: Likewise.
98564         * lib/utimecmp.c: Likewis.e
98566         Sync from coreutils.
98567         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
98568         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
98569         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
98570         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
98571         bother returning ENOSYS if settimeofday or stime fails; just let
98572         them return whatever errno they want to return.
98573         * lib/utimens.c: Include unistd.h, for dup2.
98574         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
98575         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
98577 2005-10-02  Jim Meyering  <jim@meyering.net>
98579         Sync from coreutils.
98580         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
98581         from glibc-2.2.5 that fails for read-only files.
98583 2005-10-02  Jim Meyering  <jim@meyering.net>
98585         Sync from coreutils.
98586         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
98587         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
98588         `#if HAVE_CONFIG_H'.
98589         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
98590         Remove AT_FDCWD test.
98591         Do not consume the fd unless successful.
98592         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
98593         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
98594         block, so that we don't even try to compile it if settimeofday is
98595         available.  This works around a compilation failure on OSF1 V5.1,
98596         due to stime requiring a `long int*' while tv_sec is `int'.
98598 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
98600         Sync from coreutils.
98601         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
98602         against `yes', rather than just testing for nonempty.
98604 2005-10-01  Simon Josefsson  <jas@extundo.com>
98606         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
98607         and Darwin.
98609         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
98610         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
98611         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
98612         freeaddrinfo and gai_strerror are declared by the POSIX headers.
98613         Check if struct addrinfo is declared.
98615 2005-10-01  Simon Josefsson  <jas@extundo.com>
98617         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
98618         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
98619         AI_* and EAI_* definitions.  Protect function declarations.
98621 2005-10-01  Jim Meyering  <jim@meyering.net>
98623         Sync from coreutils.
98625         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
98626         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
98627         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
98628         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
98629         in the inet and nsl libraries.  Required on Solaris 5.7.
98631 2005-10-01  Jim Meyering  <jim@meyering.net>
98633         Sync from coreutils.
98634         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
98635         in the inet and nsl libraries.  Required on Solaris 5.7.
98637 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
98639         * lib/getdelim.c (getdelim): Remove unused variables.
98641 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
98643         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
98644         so that the code works even with ancient cpp.  Portability problem
98645         with GCC 2.7.2.1 reported by Thomas M.Ott.
98647 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
98649         * modules/regex (Depends-on): Add strcase.
98651         * modules/gethostname (Licence): Change from GPL to LGPL, since
98652         gethostname.c is a trivial implementation of a standard library
98653         function.
98654         * modules/poll (License): Change from GPL to LGPL, since it's
98655         derived from LGPL code.
98657 2005-09-27  Jim Meyering  <jim@meyering.net>
98659         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
98660         HAVE_CONFIG_H.
98662         * lib/intprops.h (signed_type_or_expr__): Define.
98663         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
98664         for unsigned types.
98666 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
98668         * lib/verify.h (verify_expr): Remove, replacing with:
98669         (verify_true): New macro that returns true instead of void.
98670         (verify_type__): Remove.
98671         (verify): Use verify_true rather than verify_type__.
98673 2005-09-26  Bruno Haible  <bruno@clisp.org>
98675         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
98676         is necessary.
98677         (lib_SOURCES): Remove mbchar.c.
98678         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
98679         (Files): Add m4/mbrtowc.m4.
98680         * modules/mbiter: Likewise.
98681         * modules/mbuiter: Likewise.
98683 2005-09-26  Bruno Haible  <bruno@clisp.org>
98685         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
98686         compile mbchar.c if they are not both present.
98687         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
98688         * m4/mbiter.m4 (gl_MBITER): Likewise.
98689         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
98690         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
98691         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
98693 2005-09-25  Jim Meyering  <jim@meyering.net>
98695         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
98696         also uses socklen_t.
98698 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
98700         * lib/utimens.c (ENOSYS): Define if not already defined.
98701         (futimens): Support having a null PATH if the file descriptor
98702         is nonnegative.
98704         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
98705         Remove.
98706         (__attribute): Define to empty unless GCC 3.1 or later.
98707         This works around a core dump on OpenBSD 3.4, which has GCC
98708         2.95.3, which dumps core when given __attribute__(()).  It also
98709         simplifies other tests, since we really don't want to bother with
98710         worrying about which ancient version of GCC supported what.
98711         Original problem reported by Yoann Vandoorselaere, with part of
98712         the fix suggested by Derek Price.
98714 2005-09-24  Jim Meyering  <jim@meyering.net>
98716         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
98717         so we can once again use a positive bitfield width of 1 -- now we
98718         don't have to explain why we were using a bitfield width of 2.
98720 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
98722         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
98723         and similarly for the other external symbols.  Problem reported
98724         by James Gallager.
98726         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
98727         bug reported by Jim Meyering.
98729         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
98730         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
98731         not needed, since socklen is a prerequisite module.
98733 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
98735         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
98736         Problem reported by Eric Blake.
98737         (getaddrinfo): Initialize se so that it's not garbage.
98738         Redo internal storage allocation so that it doesn't make unportable
98739         assumptions about alignment.
98740         Fix a memory leak.
98742         * lib/utimens.c (futimens): Use futimesat if available.
98743         Prefer it to futimes since it doesn't have the futimes bug.
98745         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
98746         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
98747         Instead, declare a function that returns a pointer to an array,
98748         and use verify_type__ to declare the size of the array.
98749         Problem and germ of a solution reported by Bruno Haible.
98750         (verify_type__): Use 2, not 1, for bitfield size, to avoid
98751         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
98753 2005-09-23  Jim Meyering  <jim@meyering.net>
98755         Sync from coreutils.
98756         Correct build failure (socklen_t not defined) on at least
98757         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
98758         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
98760 2005-09-23  Jim Meyering  <jim@meyering.net>
98762         * modules/getaddrinfo (Depends-on): Add socklen.
98764 2005-09-23  Bruno Haible  <bruno@clisp.org>
98766         * tests/test-verify.c: New file.
98768 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
98770         Sync from coreutils.
98772         * modules/argmatch (Depends-on): Add verify.
98773         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
98774         unistd-safer.
98775         * modules/save-cwd (Depends-on): Likewise.
98777         * modules/openat (Files): Add lib/openat-die.c.
98778         (Depends-on): Remove error, exitfail.
98779         Add dirname.
98781         * modules/verify: New file.
98782         * MODULES.html.sh (Diagnostics <assert.h>): New section,
98783         with "verify" module.
98785 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
98787         Sync from coreutils.
98789         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
98790         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
98791         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
98792         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
98793         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
98794         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
98795         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
98796         Don't bother checking for string.h, stdlib.h, unistd.h.
98797         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
98798         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
98799         module's job.
98800         * m4/jm-macros.m4 (gl_MACROS): Likewise.
98801         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
98803         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
98804         (gl_GETDATE): Use it.
98806         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
98808 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
98810         Sync from coreutils.
98812         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
98813         stat-time.h.
98814         * lib/argmatch.h: Include verify.h
98815         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
98816         (ARGMATCH_ASSERT): Remove; unused.
98817         * lib/canonicalize.c: Assume STDC_HEADERS.
98818         * lib/exclude.c: Include "strcase.h".
98819         * lib/regex_internal.h [!defined _LIBC]: Likewise.
98820         * lib/getusershell.c: Include stdio--.h rather than stdio.h
98821         and stdio-safer.h.
98822         (getusershell): Call fopen, not fopen_safer.
98823         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
98824         Do not include unistd-safer.h.
98825         (save_cwd): Don't call fd_safer; no longer needed
98826         now that we include fcntl--.h.
98828         * lib/getdate.y (relative_time): New type.
98829         (RELATIVE_TIME_0): New constant.
98830         (parser_control): Use relative_time instead of doing it ourselves.
98831         (%union): Add new relative_time rel member.
98832         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
98833         Now typeless.
98834         (relunit, relunit_snumber): Now of type rel.
98835         (zone, rel, relunit, get_date): Adjust to above changes.
98837         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
98838         Do not include unistd-safer.h.
98839         (getloadavg): Don't call fd_safer; no longer needed
98840         now that we include fcntl--.h.
98842         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
98843         (make_dir_parents): Treat ENOSYS like EEXIST.
98845         Improve quality of diagnostics on restore_cwd failure.
98846         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
98847         (make_dir_parents): Last arg is now int * (for errno), not bool *.
98848         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
98849         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
98850         each time through the loop.  Do not diagnose restore_cwd failure;
98851         that is the caller's job (and perhaps the caller does not care).
98853         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
98854         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
98855         If the file already exists but is not a directory, don't bother
98856         to try to make its parents.
98857         Close potential file descriptor leak if we can't chdir("/") (!).
98858         Don't always return true if chdir($PWD) fails; return true only
98859         if the requested action was done successfully (except for the
98860         chdir($PWD)).
98861         Don't log final directory unless we actually made it.
98862         Refactor to avoid duplicate code to fix up permissions.
98863         Don't attempt to fix up parent permissions if chdir($PWD) fails.
98865         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
98866         to make it a bit faster and (I hope) clearer.
98867         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
98868         Fix bug in formats like %2N.
98870         * lib/verify.h: New file.
98872 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
98874         Sync from coreutils.
98875         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
98877 2005-09-22  Jim Meyering  <jim@meyering.net>
98879         Sync from coreutils.
98881         * m4/lstat.m4 (gl_FUNC_LSTAT):
98882         Use AC_LIBSOURCES to require lstat.c and lstat.h.
98883         Remove obsolete comment.
98884         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
98885         * m4/xstrtod.m4: Likewise.
98887         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
98889 2005-09-22  Jim Meyering  <jim@meyering.net>
98891         Sync from coreutils.
98893         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
98895         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
98896         the .tm_year member, since otherwise gcc-4.0 would now warn about
98897         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
98899         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
98900         order to avoid an unsuppressible warning from gcc on 64-bit systems.
98902         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
98903         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
98904         when run in a time zone for which daylight savings time is in effect
98905         for the starting date.
98907         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
98908         stop us from restricting permissions of just-created absolute-named
98909         directories.
98910         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
98911         to restore initial working directory.
98912         * lib/mkdir-p.c (make_dir_parents): New parameter:
98913         different_working_dir, to tell caller if/when we change the working
98914         directory and are unable to return to the initial one.
98915         * lib/mkdir-p.h (make_dir_parents): Update prototype.
98916         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
98917         `return false'.  This fixes a bug introduced on 2004-07-30.
98919         * lib/openat.c (fdopendir): Be sure to close the supplied
98920         file descriptor before returning.  This makes our replacement
98921         implementation a little closer to Solaris's, where fdopendir
98922         ties the file descriptor to the returned DIR* pointer.
98923         * lib/openat.c (unlinkat): New function.
98924         * lib/openat.h (unlinkat): Add prototype.
98925         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
98926         (openat_restore_fail): Rename from openat_restore_die.
98927         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
98929         Provide an alternative to exiting immediately upon save_cwd or
98930         restore_cwd failure.  Now, an application can arrange e.g.,
98931         to perform a longjump in that case.
98932         * lib/openat.c: Include dirname.h.
98933         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
98934         (rpl_openat, fdopendir, fstatat): Call openat_save_die
98935         and openat_restore_die rather than calling error directly.
98936         Don't include "error.h" or "exitfail.h"; they're no longer needed.
98938         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
98939         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
98940         define.
98942         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
98943         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
98944                             int utc, int nanoseconds);
98945         Background:
98946         date should not have to allocate a megabyte of virtual memory to
98947         handle a format argument like +%1048575T.  When implemented with
98948         strftime, it must allocate such a buffer, use strftime to fill it
98949         in, print it, then free it.
98950         With fprintftime, it simply prints everything and exits.
98951         With no need for memory allocation, that's one fewer way to fail.
98952         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
98953         optional field width, not before, so we accept %9:z, not %:9z.
98954         (my_strftime): Be sure to use L_('x') for literals.
98956         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
98957         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
98958         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
98959         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
98960         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
98961         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
98962         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
98963         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
98964         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
98965         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
98966         * lib/xgethostname.c, lib/xreadlink.c:
98967         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
98969         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
98970         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
98971         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
98972         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
98973         and don't include <sys/file.h>).
98975 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
98977         Sync from coreutils.
98979         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
98980         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
98981         [!LDAV_DONE]: Avoid unused variable warning.
98983 2005-09-21  Bruno Haible  <bruno@clisp.org>
98985         * lib/unicodeio.h (unicode_to_mb): New declaration.
98987 2005-09-20  Derek Price  <derek@ximbiot.com>
98989         * lib/getaddrinfo.c: Don't include <netdb.h> included from
98990         getaddrinfo.h.
98992 2005-09-20  Bruno Haible  <bruno@clisp.org>
98994         * gnulib-tool: Remove trailing slashes from the values specified for
98995         --source-base, --m4-base, --tests-base, --aux-dir.
98996         Suggested by Simon Josefsson <jas@extundo.com>.
98998 2005-09-20  Bruno Haible  <bruno@clisp.org>
99000         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
99001         func_modules_to_filelist, func_import, func_create_testdir): Make all
99002         sorting results locale-independent, so that gnulib-cache.m4 doesn't
99003         change when gnulib-tool is invoked in a different locale.
99005 2005-09-19  Simon Josefsson  <jas@extundo.com>
99007         * m4/socklen.m4: Fix typo.
99009 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99011         Use a consistent style for including <config.h>.
99012         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
99013         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
99014         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
99015         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
99016         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
99017         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
99018         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
99019         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
99020         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
99021         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
99022         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
99023         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
99024         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
99025         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
99026         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
99027         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
99028         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
99029         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
99030         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
99031         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
99032         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
99033         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
99034         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
99035         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
99036         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
99037         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
99038         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
99039         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
99040         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
99041         lib/xstrtoumax.c, lib/yesno.c:
99042         Standardize inclusion of config.h.
99043         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
99044         lib/inttostr.h:  Removed inclusion of config.h from header files.
99045         * lib/inttostr.c:  Adjusted in-tree users.
99046         * lib/timespec.h: Remove superfluous warning to include config.h.
99047         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
99048         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
99049         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
99050         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
99051         config.h with HAVE_CONFIG_H.
99053 2005-09-19  Jim Meyering  <jim@meyering.net>
99055         * modules/pathmax (License): Change to LGPL.
99057 2005-09-19  Derek Price  <derek@ximbiot.com>
99059         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
99061 2005-09-19  Bruno Haible  <bruno@clisp.org>
99063         * gnulib-tool (import): Provide default for --tests-base.
99065 2005-09-19  Bruno Haible  <bruno@clisp.org>
99067         * doc/quote.texi: New file, extracted from gnulib.texi.
99068         * doc/ctime.texi: New file, extracted from gnulib.texi.
99069         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
99070         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
99071         * doc/gnulib.texi: Include them.
99073 2005-09-18  Bruno Haible  <bruno@clisp.org>
99075         Portability fix.
99076         * gnulib-tool (func_readlink): New function.
99077         (func_ln_if_changed): Use it.
99079 2005-09-18  Bruno Haible  <bruno@clisp.org>
99081         * gnulib-tool: Support --with-tests also with --import.
99082         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
99083         (func_import): Use variables $testsbase and $inctests. Emit a
99084         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
99085         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
99086         SUBDIRS += $testsdir.
99087         (func_create_testdir): Update.
99089 2005-09-18  Bruno Haible  <bruno@clisp.org>
99091         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
99092         instead of $dry_run.
99093         (func_cp_if_changed, func_mv_if_changed): Remove functions.
99094         (func_ln_if_changed): Don't handle dry-run here.
99095         (func_import): In dry-run mode, detect more precisely which actions
99096         would be performed, and don't use "...ing" verbs.
99098 2005-09-18  Bruno Haible  <bruno@clisp.org>
99100         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
99101         (func_import): Use join on two temporary files instead of three nested
99102         loops, in order to determine which files are new or old.
99104 2005-09-18  Bruno Haible  <bruno@clisp.org>
99106         * gnulib-tool (func_import): Comment out code that spits out the
99107         new files with --dry-run.
99109 2005-09-18  Bruno Haible  <bruno@clisp.org>
99111         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
99113 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
99115         * lib/stat-time.h: New file.
99116         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
99117         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
99118         in a different way.
99119         (timespec_cmp): New function.
99120         * lib/utimecmp.c: Include stat-time.h.
99121         (SYSCALL_RESOLUTION): Depend on whether various struct stat
99122         members exist, not on the obsolescent ST_MTIM_NSEC.
99123         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
99125 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
99127         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
99129 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
99131         * MODULES.html.sh (File system functions): Add stat-time.
99132         * modules/stat-time: New file.
99133         * modules/timespec (Files): Remove m4/st_mtim.m4; this
99134         is now done in a different way, by the stat-time module.
99135         * modules/utimecmp (Depends-on): Add stat-time.
99137 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
99139         * m4/st_mtim.m4: Remove.  Superseded by...
99140         * m4/stat-time.m4: New file.
99141         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
99142         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
99144 2005-09-15  Derek Price  <derek@ximbiot.com>
99146         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
99148 2005-09-15  Derek Price  <derek@ximbiot.com>
99150         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
99151         * lib/regex_internal.c: Ditto, using this...
99152         (__GNUC_PREREQ): ...new macro.
99153         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
99154         using...
99155         (__GNUC_PREREQ): ...this new macro.
99157         * lib/strstr.h: Include string.h. Define strstr as a macro here.
99159 2005-09-15  Derek Price  <derek@ximbiot.com>
99160             Paul Eggert  <eggert@cs.ucla.edu>
99162         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
99163         changes, consolidating in...
99164         * lib/regex_internal.h: ...this file.
99166 2005-09-13  Jim Meyering  <jim@meyering.net>
99168         * lib/canon-host.c: Filter through gnu indent and reword comments
99169         slightly.
99170         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
99172 2005-09-13  Derek Price  <derek@ximbiot.com>
99174         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
99175         failure.
99176         Reported by Jim Meyering  <jim@meyering.net>.
99178 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
99180         * lib/base64.c: Typo.
99181         (base64_encode): Put b64str in initialized data section.
99183 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
99185         Merge glibc and coreutils changes into gnulib, plus a few
99186         extra fixes.
99187         * lib/md5.c: Use #error rather than a string.
99188         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
99189         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
99190         (__attribute__): Define to empty for non recent-GCC.
99191         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
99192         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
99193         Renamed from their non-__ counterparts, with new macros replacing
99194         them if not _LIBC.  Add __THROW attribute.
99195         (rol): Remove.
99196         (struct md5_ctx): Align buffer if using GCC.
99197         * lib/sha1.h (struct sha1_ctx): Likewise.
99198         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
99199         The old name was backwards.
99200         (NOTSWAP): Remove; not used.
99201         (rol): New macro, moved here from md5.h.
99202         (sha1_process_block): Remove a FIXME that doesn't make sense.
99204 2005-09-12  Derek Price  <derek@ximbiot.com>
99206         Return usable errors from canon-host.
99207         * lib/canon-host.h: New file.
99208         * lib/canon-host.c (canon_host): Wrap...
99209         (canon_host_r): ...this new function, which now relies exclusively on
99210         getaddrinfo.
99211         (ch_strerror): New function.
99212         (last_cherror): New global.
99213         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
99214         interface.
99215         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
99216         void *.
99217         (freeaddrinfo): Free ai->ai_canonname when set.
99219 2005-09-12  Derek Price  <derek@ximbiot.com>
99221         Make canon-host require getaddrinfo.
99222         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
99223         AC_LIBSOURCE canon-host.h.  Call...
99224         (gl_PREREQ_CANON_HOST): ...this new function, which requires
99225         gl_GETADDRINFO.
99226         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
99228 2005-09-12  Derek Price  <derek@ximbiot.com>
99230         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
99231         LGPL.
99232         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
99234 2005-09-12  Derek Price  <derek@ximbiot.com>
99236         * lib/gai_strerror.c: Include config.h when available.  Include
99237         getaddrinfo.h before other headers to test interface.
99238         Reported by Larry Jones <lawrence.jones@ugs.com>.
99240 2005-09-12  Derek Price  <derek@ximbiot.com>
99241             Paul Eggert  <eggert@cs.ucla.edu>
99243         * modules/glob (Files): Add glob-libc.h.
99245 2005-09-12  Derek Price  <derek@ximbiot.com>
99246             Paul Eggert  <eggert@cs.ucla.edu>
99248         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
99249         glob_.h, glob-libc.h.
99250         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
99252 2005-09-12  Derek Price  <derek@ximbiot.com>
99253             Paul Eggert  <eggert@cs.ucla.edu>
99255         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
99256         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
99257         protecting things that should be done only in gnulib contexts.
99258         * lib/glob_.h: New file, containing only the glob things needed for
99259         gnulib.
99260         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
99261         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
99262         (glob, globfree, glob_pattern_p): Now defined simply in terms of
99263         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
99264         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
99265         and to respect the namespace rules better.
99267 2005-09-08  Simon Josefsson  <jas@extundo.com>
99269         * modules/socklen: New file.
99271 2005-09-08  Simon Josefsson  <jas@extundo.com>
99273         * m4/socklen.m4: New file.
99275 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
99277         * modules/utimens (Files): Add m4/utimbuf.m4, since
99278         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
99279         Reported by Sergey Poznyakoff.
99281 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
99283         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
99284         definitions, since that's the preferred style in glibc.
99285         Fix a minor spacing issue, and update copyright notice to match
99286         glibc's.
99288 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
99290         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
99292 2005-09-06  Simon Josefsson  <jas@extundo.com>
99294         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
99295         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
99297 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
99299         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
99300         warning.
99302 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
99304         * config/srclist.txt: Add glibc bug 1302.
99306 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
99308         Change bitset word type from unsigned int to unsigned long int,
99309         as this has better performance on typical 64-bit hosts.
99310         Port bitset code to hosts with unusual word sizes.
99311         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
99312         (build_collating_symbol):
99313         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
99314         argument is a bitset.  This is merely a style issue, but it makes
99315         it clearer that an entire array is expected.
99316         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
99317         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
99318         Port to the case where bitset_word is not the same as unsigned int.
99319         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
99320         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
99321         Likewise.
99322         * lib/regexec.c (check_dst_limits_calc_pos_1,
99323         check_subexp_matching_top):
99324         (build_trtable, group_nodes_into_DFAstates):
99325         Likewise.
99326         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
99327         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
99328         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
99329         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
99330         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
99331         * lib/regcomp.c (optimize_subexps, lower_subexp):
99332         Work even if bitset_word has holes in its bitwise representation.
99333         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
99334         * lib/regexec.c (check_dst_limits_calc_pos_1,
99335         check_subexp_matching_top):
99336         Likewise.
99337         * lib/regex_internal.c (re_string_reconstruct):
99338         Don't assume UCHAR_MAX == 255.
99339         * lib/regex_internal.h (bitset_set_all): Likewise.
99340         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
99341         All uses changed.
99342         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
99343         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
99344         All uses changed.
99345         (BITSET_WORD_MAX): New macro.
99346         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
99347         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
99348         (bitset_empty, bitset_copy):
99349         Prefer sizeof (bitset) to multiplying it out ourselves.
99350         (bitset_not_merge): Remove; unused.
99351         (bitset_contain): Return bool, not unsigned int with one bit on.
99352         All callers changed.
99353         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
99354         alignment than re_node_set; do this by defining a new internal
99355         type struct dests_alloc and using it to allocate memory.
99357 2005-09-05  Bruno Haible  <bruno@clisp.org>
99359         * gnulib-tool (func_import): Fix comparison in handling of symbolic
99360         links.
99362 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
99364         * modules/size_max (Makefile.am): Add size_max.h
99366 2005-09-04  Derek Price  <derek@ximbiot.com>
99368         * gnulib-tool (func_import): Fix reversed $symbolic logic.
99370 2005-09-03  Simon Josefsson  <jas@extundo.com>
99372         * gnulib-tool: Fix typo.
99374 2005-09-03  Simon Josefsson  <jas@extundo.com>
99376         * config/srclist.txt: Add glibc bug 1293.
99378 2005-09-03  Derek Price  <derek@ximbiot.com>
99380         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
99381         From Larry Jones <lawrence.jones@ugs.com>.
99383 2005-09-02  Simon Josefsson  <jas@extundo.com>
99385         * modules/socklen: New file.
99387 2005-09-02  Simon Josefsson  <jas@extundo.com>
99389         * modules/havelib: New module.
99391         * modules/gettext, modules/iconv, modules/lock, modules/readline:
99392         Use havelib.
99394 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
99396         Check for arithmetic overflow when calculating sizes, to prevent
99397         some buffer-overflow issues.  These patches are conservative, in the
99398         sense that when I couldn't determine whether an overflow was possible,
99399         I inserted a run-time check.
99400         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
99401         macros.
99402         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
99403         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
99404         (re_xnrealloc, re_x2nrealloc): New inline functions.
99405         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
99406         parse_bracket_exp):
99407         (build_equiv_class, build_charclass): Check for arithmetic overflow
99408         in size expression calculations.
99409         * lib/regex_internal.c (re_string_realloc_buffers):
99410         (build_wcs_upper_buffer, re_node_set_add_intersect):
99411         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
99412         (re_dfa_add_node, register_state): Likewise.
99413         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
99414         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
99415         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
99416         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
99418 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
99420         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
99421         m4/ulonglong.m4.  Problem reported by Martin Lambers.
99423 2005-09-02  Bruno Haible  <bruno@clisp.org>
99425         Support for lib vs. lib64 distinction on biarch platforms.
99426         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
99427         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
99428         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
99430 2005-09-02  Bruno Haible  <bruno@clisp.org>
99432         * gnulib-tool (import): In the other first-use case, provide defaults
99433         as well.
99435 2005-09-02  Bruno Haible  <bruno@clisp.org>
99437         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
99438         patches not yet found in the latest gettext release.
99440 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
99442         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
99443         to avoid a collision with bits/local_lim.h in glibc.
99444         All uses changed.  Problem reported by Dmitry V. Levin in
99445         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
99447         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
99448         bugs in int versus size_t comparisons.
99449         (re_string_context_at): Fix bug where the code assumed that
99450         Idx is signed.
99452         Use bool where appropriate.
99453         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
99454         All callers changed.
99455         (calc_eclosure_iter): Likewise, for ROOT arg.
99456         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
99457         (build_charclass_op): Likewise, for NON_MATCH arg.
99458         * lib/regex_internal.c (re_string_allocate, re_string_construct):
99459         (re_string_construct_common): Likewise, for ICASE arg.
99460         * lib/regexec.c (re_search_2_stub, re_search_stub):
99461         Likewise, for RET_LEN arg.
99462         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
99463         (set_regs): Likewise, for FL_BACKTRACK arg.
99464         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
99465         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
99466         (calc_eclosure_iter, parse_bracket_exp):
99467         Use bool for internal variables that are booleans.
99468         * lib/regexec.c (re_search_internal, check_matching,
99469         proceed_next_node):
99470         (set_regs, build_sifted_states, sift_states_bkref):
99471         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
99472         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
99473         (find_collation_sequence_value):
99474         Likewise.
99475         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
99476         (re_node_set_compare):
99477         Return bool, not int. All callers changed.
99478         * lib/regexec.c (check_halt_node_context, check_dst_limits):
99479         (build_trtable, check_node_accept): Likewise.
99480         * lib/regex_internal.h: Include stdbool.h.
99482         Fix bugs uncovered when converting to bool.
99483         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
99484         failure instead of charging ahead blindly.
99485         * lib/regex_internal.c (register_state): Likewise.
99486         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
99487         for freeing internal storage.
99488         (group_nodes_into_DFA_states): Use unsigned int, not int, for
99489         bitset pieces used as boolean, to avoid undefined behavior
99490         on hosts that do int overflow checking.
99492 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
99494         * config/srclist.txt: Add glibc bugs 1285-1287.
99496 2005-09-01  Jim Meyering  <jim@meyering.net>
99498         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
99499         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
99500         Require gl_STAT_MACROS, too.
99502 2005-09-01  Bruno Haible  <bruno@clisp.org>
99504         * gnulib-tool (import): In the first-use case, provide defaults.
99506 2005-09-01  Bruno Haible  <bruno@clisp.org>
99508         * gnulib-tool (func_import): Remove the .tmp files.
99510 2005-09-01  Bruno Haible  <bruno@clisp.org>
99512         * gnulib-tool (func_import): Fix handling of symbolic links.
99514 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
99516         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
99517         old glibc regex code mishandles strings longer than 2**31 bytes.
99518         This patch fixes this when the regex code is used in gnulib
99519         (i.e., outside glibc).
99521         This patch should not affect the use of the regex code inside
99522         glibc.  No doubt this problem also needs to be handled for glibc
99523         as well, but the result will be an incompatible change to the
99524         glibc ABI, and the old ABI will have to be supported too.  That
99525         can be the subject for another patch.
99527         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
99528         governing whether the rest of this patch is active.  By default,
99529         the macro is disabled and the patch has no effect.
99530         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
99531         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
99532         (struct re_pattern_buffer, re_search, re_search_2, re_match):
99533         (re_match_2, re_set_registers): Use the new types.
99534         * lib/regex_internal.h (Idx, re_hashval_t): New types.
99535         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
99536         New macros.
99537         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
99538         (re_string_context_at, bin_tree_t, re_dfastate_t):
99539         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
99540         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
99541         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
99542         (re_string_char_size_at, re_string_wchar_at):
99543         (re_string_elem_size_at):
99544         Use the new types and macros to port to 64-bit hosts.
99545         Use unsigned types for internal values, so that the code
99546         mostly works even for arrays larger than SSIZE_MAX.
99547         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
99548         (search_duplicated_node, calc_eclosure_iter, fetch_number):
99549         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
99550         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
99551         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
99552         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
99553         (calc_inveclosure, parse_dup_op, build_range_exp):
99554         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
99555         (fetch_number, create_token_tree, mark_opt_subexp):
99556         Likewise.
99557         * lib/regex_internal.c (re_string_construct_common,
99558         create_ci_newstate):
99559         (create_cd_newstate, re_string_allocate, re_string_construct):
99560         (re_string_realloc_buffers, build_wcs_upper_buffer):
99561         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
99562         (re_string_reconstruct, re_string_peek_byte_case):
99563         (re_string_fetch_byte_case, re_string_context_at):
99564         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
99565         (re_node_set_init_copy, re_node_set_add_intersect):
99566         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
99567         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
99568         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
99569         (re_acquire_state, re_acquire_state_context, register_state):
99570         Likewise.
99571         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
99572         search_cur_bkref_entry):
99573         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
99574         (re_search_internal, re_search_2_stub, re_search_stub)
99575         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
99576         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
99577         (update_cur_sifted_state, check_dst_limits):
99578         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
99579         (check_subexp_limits, sift_states_bkref, merge_state_array):
99580         (check_subexp_matching_top, get_subexp, get_subexp_sub):
99581         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
99582         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
99583         (expand_bkref_cache, check_node_accept_bytes):
99584         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
99585         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
99586         (acquire_init_state_context, check_halt_node_context):
99587         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
99588         (sift_states_backward, clean_state_log_if_needed):
99589         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
99590         (find_recover_state, transit_state_sb, transit_state_mb):
99591         (transit_state_bkref, build_trtable, match_ctx_clean):
99592         Likewise.
99593         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
99594         to work around an assumption that REG_MISSING is negative.
99596         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
99597         (seek_collating_symbol_entry) [defined _LIBC]:
99598         (lookup_collation_sequence_value) [defined _LIBC]:
99599         (build_range_exp, build_collating_symbol) [defined _LIBC]:
99600         Use prototypes rather than old-style function definitions.
99601         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
99602         (transit_state_sb) [0]:
99603         (find_collation_sequence_value) [defined _LIBC]: Likewise.
99605         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
99606         rm_eo.
99608         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
99609         (optimize_subexps, lower_subexp):
99610         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
99611         since the signed shift might overflow.  Use 1u<<31 instead.
99612         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
99613         Likewise.
99614         * lib/regexec.c (check_dst_limits_calc_pos_1,
99615         check_subexp_matching_top): Likewise.
99617         * lib/regcomp.c (optimize_subexps, lower_subexp):
99618         Use CHAR_BIT rather than 8, for clarity.
99619         * lib/regexec.c (check_dst_limits_calc_pos_1):
99620         (check_subexp_matching_top): Likewise.
99621         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
99622         have to worry about portability issues when shifting it left.
99623         Remove no-longer-needed test for table_size > 0.
99624         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
99625         in a word, as the resulting behavior is undefined.
99626         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
99627         in one case, a <= should have been an <, and in another case the
99628         whole test was missing.
99629         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
99630         the standard name CHAR_BIT.
99631         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
99632         this is not true on one's complement and signed-magnitude hosts.
99634         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
99635         next_last_offset.
99636         (struct re_dfa_t): Remove unused member states_alloc.
99637         * lib/regcomp.c (init_dfa): Don't initialize unused members.
99639 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
99641         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
99642         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
99643         and large-file glibc and in 32-bit large-file Solaris.
99645 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
99647         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
99648         lengths fit in regoff_t; this isn't true if regoff_t is the same
99649         width as size_t.
99650         * lib/regex.c (re_search_internal): 5th arg is LAST_START
99651         (= START + RANGE) instead of RANGE.  This avoids overflow
99652         problems when regoff_t is the same width as size_t.
99653         All callers changed.
99654         (re_search_2_stub): Check for overflow when adding the
99655         sizes of the two strings.
99656         (re_search_stub): Check for overflow when adding START
99657         to RANGE; if it occurs, substitute the extreme value.
99659 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
99661         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
99663 2005-08-31  Jim Meyering  <jim@meyering.net>
99665         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
99666         a pointer-to-const.
99667         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
99668         (register_state): Likewise.
99669         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
99670         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
99671         (group_nodes_into_DFAstates): Likewise.
99673 2005-08-31  Jim Meyering  <jim@meyering.net>
99675         * check-module: Add a FIXME comment.
99677 2005-08-31  Eric Blake  <ebb9@byu.net>
99679         * modules/unistd-safer (Files): Add unistd--.h.
99680         * modules/stdio-safer (Files): Add stdio--.h.
99682 2005-08-31  Derek Price  <derek@ximbiot.com>
99684         * lib/getdelim.c (getdelim): Return EOF on EOF.
99685         Reported by Larry Jones <lawrence.jones@ugs.com>.
99687 2005-08-31  Bruno Haible  <bruno@clisp.org>
99689         Avoid unnecessary diffs in the generated lib/Makefile.am.
99690         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
99691         the generated files.
99692         (func_import): Don't set cmd.
99694 2005-08-31  Bruno Haible  <bruno@clisp.org>
99696         * lib/strstr.c: Include <stddef.h>, for NULL.
99697         * lib/strcasestr.c: Likewise.
99698         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
99700 2005-08-31  Bruno Haible  <bruno@clisp.org>
99702         * gnulib-tool: New option --macro-prefix.
99703         (func_import): Use macro_prefix.
99704         (import): Handle option --macro-prefix.
99706 2005-08-31  Bruno Haible  <bruno@clisp.org>
99708         * gnulib-tool (import): Rename most ac_* variables to cached_*.
99709         Also use new variables cached_lgpl, cached_libtool.
99711 2005-08-31  Bruno Haible  <bruno@clisp.org>
99713         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
99714         always instantiating them.
99716 2005-08-31  Bruno Haible  <bruno@clisp.org>
99718         * gnulib-tool (func_import): Read the previous cached settings
99719         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
99720         earlier added by gnulib but are now dropped. Warn when a gnulib file
99721         overwrites a non-gnulib file.
99723 2005-08-31  Bruno Haible  <bruno@clisp.org>
99725         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
99726         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
99727         projects that don't keep autogenerated files in CVS. Put into
99728         actioncmd only the specified modules, not the transitive closure.
99730 2005-08-31  Bruno Haible  <bruno@clisp.org>
99732         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
99733         Create directories that shall be filled.
99734         (import): Don't look for gl_* macros in configure.ac. Recurse across
99735         all directories containing a gnulib-cache.m4 files, if meaningful.
99737 2005-08-31  Bruno Haible  <bruno@clisp.org>
99739         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
99740         (import): Set seen_libtool when we see gl_LIBTOOL.
99742 2005-08-31  Bruno Haible  <bruno@clisp.org>
99744         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
99745         declaration macro definitions from generated gnulib.m4.
99747 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
99749         * lib/iconvme.h: Add prototype for iconv_alloc.
99751 2005-08-29  Simon Josefsson  <jas@extundo.com>
99753         * lib/iconvme.c: Fix errno.
99755 2005-08-29  Bruno Haible  <bruno@clisp.org>
99757         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
99758         that it works when the directory contains spaces.
99760 2005-08-29  Bruno Haible  <bruno@clisp.org>
99762         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
99764 2005-08-29  Bruno Haible  <bruno@clisp.org>
99766         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
99767         Emit more advice.
99769 2005-08-29  Bruno Haible  <bruno@clisp.org>
99770         and Stepan Kasal  <kasal@ucw.cz>
99772         * check-module: If more parameters are given, check each of them
99773         separately; add more exceptions, as noted by Jim Meyering.
99774         (check_module): New procedure.
99775         (%exempt_header): Now contains all exceptions.
99777 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
99779         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
99781 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
99783         * lib/iconvme.c: Split iconv_string into iconv_alloc.
99785 2005-08-28  Bruno Haible  <bruno@clisp.org>
99787         * m4/gnulib-tool.m4: New file.
99789 2005-08-27  Jim Meyering  <jim@meyering.net>
99791         * modules/unistd-safer (Files): Add pipe-safer.c.
99792         * modules/fcntl-safer (Files): Add creat-safer.c.
99794 2005-08-27  Jim Meyering  <jim@meyering.net>
99796         * m4/stdlib-safer.m4: New file.  From coreutils.
99797         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
99798         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
99799         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
99800         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
99801         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
99803 2005-08-27  Jim Meyering  <jim@meyering.net>
99805         * lib/fopen-safer.c: Merge minor changes from coreutils.
99806         * lib/dup-safer.c: Likewise.
99807         * lib/fd-safer.c: Likewise.
99809         Merge from coreutils.
99810         * lib/stdio--.h: New file.
99811         * lib/stdlib--.h: New file.
99812         * lib/mkstemp-safer.c: New file.
99814         GNU tar needs these.
99815         * lib/pipe-safer.c: New file.
99816         * lib/creat-safer.c: New file.
99817         * lib/fcntl--.h (creat): Define to creat_safer.
99818         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
99819         * lib/unistd--.h (pipe): Define to pipe_safer.
99820         * lib/unistd-safer.h: Declare pipe_safer.
99822 2005-08-26  Simon Josefsson  <jas@extundo.com>
99824         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
99825         Haible <bruno@clisp.org>.
99827 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
99829         * lib/regex_internal.h: Remove all references to
99830         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
99831         or better.
99832         (bitset_not, bitset_merge, bitset_not_merge):
99833         (bitset_mask, re_string_allocate, re_string_construct):
99834         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
99835         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
99836         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
99837         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
99838         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
99839         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
99840         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
99841         (re_acquire_state_context):
99842         Remove unnecessary forward decls.
99843         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
99844         Put __attribute at function definition,
99845         now that the function decl has been removed.
99846         * lib/regex_internal.c (re_string_peek_byte_case):
99847         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
99848         Likewise.
99850 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
99852         * m4/regex.m4: Add AC_PREREQ(2.50).
99853         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
99855 2005-08-25  Simon Josefsson  <jas@extundo.com>
99857         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
99858         __fsetlocking.
99860 2005-08-25  Simon Josefsson  <jas@extundo.com>
99862         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
99863         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
99864         GLIBC specific code.
99866 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
99868         Make regex safe for g++.  This fixes one real bug (an "err"
99869         that should have been "*err").  g++ problem reported by
99870         Sam Steingold.
99871         * lib/regex_internal.h (re_calloc): New macro, consistent with
99872         re_malloc etc.  All callers of calloc changed to use re_calloc.
99873         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
99874         not int.  All callers changed.
99875         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
99876         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
99877         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
99878         (find_recover_state): Change "err" to "*err"; this fixes what
99879         appears to be a real bug.
99880         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
99881         versus int.
99883 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
99885         * modules/regex (Depends-on): Add malloc, since the code
99886         assumes that !malloc(0) means failure.
99888 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
99890         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
99892         alloca modernization/simplification for regex.
99893         * lib/regex.c: Remove portability cruft for alloca.  This no longer
99894         needs to be at the start of the file, and can be moved into
99895         regex_internal.h and simplified.
99896         * lib/regex_internal.h: Include <alloca.h>.
99897         (__libc_use_alloca) [!defined _LIBC]: New macro.
99898         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
99899         now works outside glibc.
99901 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
99903         * config/srclist.txt: Add glibc bugs 1241, 1245.
99905 2005-08-25  Jim Meyering  <jim@meyering.net>
99907         * lib/open-safer.c: Include <config.h>.
99908         Otherwise, we'd lose LARGEFILE support in any file using
99909         e.g. "fcntl--.h"
99911 2005-08-25  Bruno Haible  <bruno@clisp.org>
99913         * m4/minmax.m4: Require autoconf 2.52.
99914         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
99915         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
99916         alternatives of translit over the alphabet.
99917         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
99919 2005-08-24  Simon Josefsson  <jas@extundo.com>
99921         * tests/test-getpass.c: New file.
99923 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
99925         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
99926         for GNU regex features.
99928 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
99930         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
99931         * lib/regex.h (regerror): Likewise.
99933         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
99934         requires this.  (The code never needed it.)
99936         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
99937         All uses of recently-renamed identifiers changed to use the new,
99938         POSIX-compliant names.  The code will build and run just fine
99939         without these changes, but it's better to eat our own dog food
99940         and use the standard-conforming names.
99942         * lib/regex.h: Fix a multitude of POSIX name space violations.
99943         These changes have an effect only for programs that define
99944         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
99945         do not change anything for programs compiled in the normal way.
99946         Also, there is no effect on the ABI.
99948         (_REGEX_SOURCE): New macro.
99949         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
99950         defined and _GNU_SOURCE is not; this fixes a name space violation.
99952         Rename the following macros to obey POSIX requirements.
99953         The old names are still visible as macros if _REGEX_SOURCE is defined.
99954         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
99955         RE_BACKSLASH_ESCAPE_IN_LISTS.
99956         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
99957         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
99958         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
99959         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
99960         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
99961         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
99962         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
99963         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
99964         (REG_INTERVALS): renamed from RE_INTERVALS.
99965         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
99966         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
99967         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
99968         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
99969         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
99970         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
99971         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
99972         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
99973         RE_UNMATCHED_RIGHT_PAREN_ORD.
99974         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
99975         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
99976         (REG_DEBUG): renamed from RE_DEBUG.
99977         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
99978         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
99979         unusual, since we can't clash with the POSIX REG_ICASE.
99980         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
99981         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
99982         (REG_NO_SUB): renamed from RE_NO_SUB.
99983         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
99984         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
99985         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
99986         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
99987         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
99988         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
99989         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
99990         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
99991         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
99992         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
99993         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
99994         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
99995         RE_SYNTAX_POSIX_MINIMAL_BASIC.
99996         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
99997         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
99998         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
99999         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
100000         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
100001         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
100002         (REG_FIXED): Renamed from REGS_FIXED.
100003         (REG_NREGS): Renamed from RE_NREGS.
100005         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
100006         of other REG_* macros, since POSIX says the user is allowed to
100007         #undef these macros selectively.
100009         (reg_errcode_t): Update comment stating what other tables need
100010         to be consistent.
100012         Rename the following enum values to obey POSIX requirements.
100013         The old names are still visible as macros.
100014         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
100015         is not defined, since GNU is supposed to be a superset of POSIX as
100016         much as possible, and since we want reg_errcode_t to be a signed
100017         type for implementation consistency.
100018         (_REG_NOERROR): Renamed from REG_NOERROR.
100019         (_REG_NOMATCH): Renamed from REG_NOMATCH.
100020         (_REG_BADPAT): Renamed from REG_BADPAT.
100021         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
100022         (_REG_ECTYPE): Renamed from REG_ECTYPE.
100023         (_REG_EESCAPE): Renamed from REG_EESCAPE.
100024         (_REG_ESUBREG): Renamed from REG_ESUBREG.
100025         (_REG_EBRACK): Renamed from REG_EBRACK.
100026         (_REG_EPAREN): Renamed from REG_EPAREN.
100027         (_REG_EBRACE): Renamed from REG_EBRACE.
100028         (_REG_BADBR): Renamed from REG_BADBR.
100029         (_REG_ERANGE): Renamed from REG_ERANGE.
100030         (_REG_ESPACE): Renamed from REG_ESPACE.
100031         (_REG_BADRPT): Renamed from REG_BADRPT.
100032         (_REG_EEND): Renamed from REG_EEND.
100033         (_REG_ESIZE): Renamed from REG_ESIZE.
100034         (_REG_ERPAREN): Renamed from REG_ERPAREN.
100035         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
100036         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
100037         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
100038         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
100040         (_REG_RE_NAME, _REG_RM_NAME): New macros.
100041         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
100042         changed.  But support the old name if the new one is not defined
100043         and if _REGEX_SOURCE.
100045         Change the following member names in struct re_pattern_buffer.
100046         The old names are still supported if !_REGEX_SOURCE.
100047         The new names are always supported, regardless of _REGEX_SOURCE.
100048         (re_buffer): Renamed from buffer.
100049         (re_allocated): Renamed from allocated.
100050         (re_used): Renamed from used.
100051         (re_syntax): Renamed from syntax.
100052         (re_fastmap): Renamed from fastmap.
100053         (re_translate): Renamed from translate.
100054         (re_can_be_null): Renamed from can_be_null.
100055         (re_regs_allocated): Renamed from regs_allocated.
100056         (re_fastmap_accurate): Renamed from fastmap_accurate.
100057         (re_no_sub): Renamed from no_sub.
100058         (re_not_bol): Renamed from not_bol.
100059         (re_not_eol): Renamed from not_eol.
100060         (re_newline_anchor): Renamed from newline_anchor.
100062         Change the following member names in struct re_registers.
100063         The old names are still supported if !_REGEX_SOURCE.
100064         The new names are always supported, regardless of _REGEX_SOURCE.
100065         (rm_num_regs): Renamed from num_regs.
100066         (rm_start): Renamed from start.
100067         (rm_end): Renamed from end.
100069         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
100070         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
100071         Prepend __ to parameter names.
100073         Undo yesterday's changes.
100075 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
100077         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
100078         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
100079         lib/regex.c.
100081 2005-08-24  Jim Meyering  <jim@meyering.net>
100083         Sync from coreutils.
100084         * m4/fcntl-safer.m4: New file.
100086         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
100087         and object files for this module.
100089 2005-08-24  Jim Meyering  <jim@meyering.net>
100091         Sync from coreutils.
100092         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
100094 2005-08-24  Jim Meyering  <jim@meyering.net>
100096         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
100097         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
100099 2005-08-24  Jim Meyering  <jim@meyering.net>
100101         * modules/fcntl-safer: New module.
100102         * modules/fts (Depends-on): Add fcntl-safer.
100103         * MODULES.html.sh (File descriptor based Input/Output):
100104         Add fcntl-safer.
100106 2005-08-24  Bruno Haible  <bruno@clisp.org>
100108         Support for unit test modules.
100109         * modules/README: Mention tests modules.
100110         * modules/TEMPLATE-TESTS: New file.
100111         * gnulib-tool: New options --extract-tests-module, --with-tests and
100112         --tests-base (unused for the moment).
100113         (testsbase, inctests): New variables.
100114         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
100115         (func_verify_module): Exclude TEMPLATE-TESTS.
100116         (func_verify_nontests_module, func_verify_tests_module): New functions.
100117         (func_get_dependencies): Add implicit dependency for tests modules.
100118         (func_get_tests_module): New function.
100119         (func_modules_transitive_closure): When --with-tests was specified,
100120         include the unit tests as well, unless explicitly avoided.
100121         (func_emit_lib_Makefile_am): Ignore the tests modules here.
100122         (func_emit_tests_Makefile_am): New function.
100123         (func_create_testdir): When --with-tests was specified, emit a
100124         tests/ directory.
100125         * MODULES.html.sh (Future developments): Update.
100127 2005-08-24  Bruno Haible  <bruno@clisp.org>
100129         * modules/tls-tests: New file.
100130         * tests/test-tls.c: New file, from GNU gettext.
100132 2005-08-24  Bruno Haible  <bruno@clisp.org>
100134         * modules/lock-tests: New file.
100135         * tests/test-lock.c: New file, from GNU gettext.
100137 2005-08-24  Bruno Haible  <bruno@clisp.org>
100139         * lib/lock.h: Add multiple inclusion guard.
100140         * lib/tls.h: Add multiple inclusion guard.
100142 2005-08-24  Bruno Haible  <bruno@clisp.org>
100144         * gnulib-tool: Add support for the --aux-dir option to
100145         --create-testdir, --create-megatestdir, --test, --megatest.
100146         (func_create_testdir, func_create_megatestdir): Optionally emit a
100147         AC_CONFIG_AUX_DIR directive.
100148         (create-testdir, create-megatestdir, test, megatest): Provide a
100149         default value for $auxdir.
100151 2005-08-24  Bruno Haible  <bruno@clisp.org>
100153         * gnulib-tool (import): Use compound statement instead of subshell
100154         where possible.
100156 2005-08-24  Bruno Haible  <bruno@clisp.org>
100158         * gnulib-tool (import): Change --aux-dir default to "build-aux".
100160 2005-08-24  Bruno Haible  <bruno@clisp.org>
100162         * gnulib-tool (func_version): Update.
100164 2005-08-24  Bruno Haible  <bruno@clisp.org>
100166         * gnulib-tool (func_import, func_create_testdir,
100167         func_create_megatestdir): Quote all autoconf macro arguments.
100169 2005-08-24  Bruno Haible  <bruno@clisp.org>
100171         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
100172         option --force, because --force causes the aclocal.m4 of each
100173         subdirectory to be newer than the corresponding config.h.in.
100175 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
100177         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
100178         All contents moved to gl_REGEX.
100179         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
100180         assume that it does.
100182 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
100184         * lib/regex.h (REG_NOSYS)
100185         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
100186         Define, since POSIX requires it as of 2001.
100187         (_REG_ENOSYS)
100188         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
100189         New private symbol, used to keep the enum signed in all cases.
100190         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
100191         Youngman in
100192         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
100194         * lib/regex_internal.c (re_string_skip_chars, register_state):
100195         (calc_state_hash):
100196         Remove forward decls; no longer needed now that we use prototypes.
100197         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
100198         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
100199         (clean_state_log_if_needed): Likewise.
100201 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
100203         * config/srclist.txt: Add glibc bugs 1231-1233.
100205 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
100207         Fix problems reported by Sam Steingold in
100208         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
100209         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
100210         assumed that reg_errcode_t is a signed type, which is not
100211         necessarily true if _XOPEN_SOURCE is not defined.
100212         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
100213         since some compilers warn about it otherwise.
100215 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
100217         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
100218         (init_word_char, create_initial_state, duplicate_node_closure):
100219         (fetch_token, peek_token_bracket, build_range_exp):
100220         (build_collating_symbol): Remove forward decls; no longer needed
100221         now that we use prototypes.
100223         * lib/regcomp.c:
100224         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
100225         (re_compile_fastmap_iter, regcomp, regerror, regfree):
100226         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
100227         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
100228         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
100229         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
100230         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
100231         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
100232         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
100233         (build_range_exp, build_collating_symbol, parse_bracket_exp):
100234         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
100235         (build_charclass, build_charclass_op, fetch_number, create_tree):
100236         (create_token_tree, mark_opt_subexp, duplicate_tree):
100237         Use prototypes rather than old-style definitions.
100239         * lib/regex_internal.c:
100240         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
100241         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
100242         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
100243         (re_string_reconstruct, re_string_peek_byte_case):
100244         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
100245         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
100246         (re_node_set_init_copy, re_node_set_add_intersect):
100247         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
100248         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
100249         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
100250         (re_acquire_state, re_acquire_state_context, register_state):
100251         (create_ci_newstate, create_cd_newstate, free_state):
100252         Likewise.
100253         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
100254         re_search_2):
100255         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
100256         (re_search_internal, prune_impossible_nodes):
100257         (acquire_init_state_context, check_matching, static):
100258         (check_halt_node_context, check_halt_state_context, proceed_next_node):
100259         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
100260         (update_regs, sift_states_backward, build_sifted_states):
100261         (clean_state_log_if_needed, merge_state_array):
100262         (update_cur_sifted_state, add_epsilon_src_nodes):
100263         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
100264         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
100265         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
100266         (find_recover_state, check_subexp_matching_top, transit_state_mb):
100267         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
100268         (check_arrival, check_arrival_add_next_nodes):
100269         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
100270         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
100271         (check_node_accept_bytes, check_node_accept, extend_buffers):
100272         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
100273         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
100274         (sift_ctx_init):
100275         Likewise.
100277         * lib/regex_internal.h:
100278         (re_string_allocate, re_string_construct, re_string_reconstruct):
100279         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
100280         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
100281         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
100282         (re_string_context_at, re_string_peek_byte_case):
100283         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
100284         is defined, since we now use prototypes always.
100286         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
100287         C89 or better.  All uses removed.
100289 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
100291         * config/srclist.txt: Add glibc bugs 1220-1227.
100293 2005-08-20  Jim Meyering  <jim@meyering.net>
100295         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
100296         of unused local, dfa.
100298 2005-08-20  Bruno Haible  <bruno@clisp.org>
100300         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
100302 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
100304         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
100305         (re_node_set_insert_last, re_dfa_add_node):
100306         Rename local variables to avoid GCC shadowing warnings.
100308 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
100310         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
100311         [defined lint]: Suppress bogus uninitialized-variable warnings.
100313         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
100314         and let the caller return REG_ESPACE if out of space.  This
100315         removes an uninitialied-variable warning with GCC 4.0.1, and also
100316         avoids taking the address of a local variable.  All callers
100317         changed.
100319 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
100321         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
100322         $LIBCSRC/posix/regexec.c.
100323         Add glibc bug 1217 for regcomp.c.
100325 2005-08-19  Jim Meyering  <jim@meyering.net>
100327         * lib/regexec.c (proceed_next_node): Redo local variables to
100328         avoid GCC shadowing warnings.
100330 2005-08-18  Bruno Haible  <bruno@clisp.org>
100332         * lib/strstr.c (strstr): Fix return value in multibyte case.
100333         * lib/strcasestr.c (strcasestr): Likewise.
100335 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
100337         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
100339 2005-08-17  Jim Meyering  <jim@meyering.net>
100341         Make the %s format (seconds since the epoch) work for a negative
100342         number and when used with a zero-padded field width, e.g. %015s.
100344         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
100345         label so that it precedes the code to set `digits'.  Otherwise,
100346         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
100347         print `00-22'.  Now, it prints `-0022', as it should.
100349 2005-08-17  Bruno Haible  <bruno@clisp.org>
100351         * modules/strstr (Files): Add m4/mbrtowc.m4.
100352         (Depends-on): Add mbuiter.
100354 2005-08-17  Bruno Haible  <bruno@clisp.org>
100356         * modules/strcasestr: New file.
100357         * MODULES.html.sh (String handling, based on ANSI C 89): Add
100358         strcasestr.
100360 2005-08-17  Bruno Haible  <bruno@clisp.org>
100362         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
100364 2005-08-17  Bruno Haible  <bruno@clisp.org>
100366         * modules/mbuiter: New file.
100367         * MODULES.html.sh (Extended multibyte and wide character utilities):
100368         Add mbuiter.
100370 2005-08-17  Bruno Haible  <bruno@clisp.org>
100372         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
100373         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
100375 2005-08-17  Bruno Haible  <bruno@clisp.org>
100377         * m4/strcasestr.m4: New file.
100379 2005-08-17  Bruno Haible  <bruno@clisp.org>
100381         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
100382         * lib/strstr.c: Completely rewritten, with multibyte locale support.
100384 2005-08-17  Bruno Haible  <bruno@clisp.org>
100386         * lib/strcasestr.h: New file.
100387         * lib/strcasestr.c: New file.
100389 2005-08-17  Bruno Haible  <bruno@clisp.org>
100391         * lib/strcasecmp.c: Use mbuiter.h.
100393 2005-08-17  Bruno Haible  <bruno@clisp.org>
100395         * lib/mbuiter.h: New file.
100397 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
100399         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
100400         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
100401         and gl_GETOPT are both invoked via different paths (as happens
100402         with GNU tar CVS because it uses both argp and getopt), the former
100403         wins.
100405 2005-08-16  Bruno Haible  <bruno@clisp.org>
100407         * modules/tls: New file.
100408         * MODULES.html.sh (Multithreading): Add tls.
100410 2005-08-16  Bruno Haible  <bruno@clisp.org>
100412         * modules/strnlen1: New file.
100413         * MODULES.html.sh (String handling): Add strnlen1.
100415 2005-08-16  Bruno Haible  <bruno@clisp.org>
100417         * modules/strcase (Files): Add m4/mbrtowc.m4.
100418         (Depends-on): Add strnlen1, mbchar.
100420 2005-08-16  Bruno Haible  <bruno@clisp.org>
100422         * modules/mbiter: New file.
100423         * MODULES.html.sh (Extended multibyte and wide character utilities):
100424         Add mbiter.
100426 2005-08-16  Bruno Haible  <bruno@clisp.org>
100428         * modules/mbfile: New file.
100429         * MODULES.html.sh (Extended multibyte and wide character utilities):
100430         Add mbfile.
100432 2005-08-16  Bruno Haible  <bruno@clisp.org>
100434         * modules/mbchar: New file.
100435         * MODULES.html.sh (Extended multibyte and wide character utilities):
100436         New section.
100438 2005-08-16  Bruno Haible  <bruno@clisp.org>
100440         * m4/tls.m4: New file, from GNU gettext.
100442 2005-08-16  Bruno Haible  <bruno@clisp.org>
100444         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
100445         always.
100446         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
100448 2005-08-16  Bruno Haible  <bruno@clisp.org>
100450         * m4/mbiter.m4: New file.
100452 2005-08-16  Bruno Haible  <bruno@clisp.org>
100454         * m4/mbfile.m4: New file.
100456 2005-08-16  Bruno Haible  <bruno@clisp.org>
100458         * m4/mbchar.m4: New file.
100460 2005-08-16  Bruno Haible  <bruno@clisp.org>
100462         * lib/tls.h: New file, from GNU gettext.
100463         * lib/tls.c: New file, from GNU gettext.
100465 2005-08-16  Bruno Haible  <bruno@clisp.org>
100467         * lib/strnlen1.h: New file.
100468         * lib/strnlen1.c: New file.
100470 2005-08-16  Bruno Haible  <bruno@clisp.org>
100472         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
100473         (mbi_init): Update.
100474         (mbi_avail, mbi_advance): Let the iteration end before the terminating
100475         NUL byte, not after it.
100477 2005-08-16  Bruno Haible  <bruno@clisp.org>
100479         * lib/strcase.h (strcasecmp): Add note in comments.
100480         * lib/strncasecmp.c: Use code from strcasecmp.c.
100481         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
100482         (strcasecmp): Work correctly in multibyte locales.
100484 2005-08-16  Bruno Haible  <bruno@clisp.org>
100486         * lib/mbiter.h: New file.
100488 2005-08-16  Bruno Haible  <bruno@clisp.org>
100490         * lib/mbfile.h: New file.
100492 2005-08-16  Bruno Haible  <bruno@clisp.org>
100494         * lib/mbchar.h: New file.
100495         * lib/mbchar.c: New file.
100497 2005-08-16  Bruno Haible  <bruno@clisp.org>
100499         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
100500         the valid ones. Makes the comparison operations transitive:
100501         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
100502         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
100504 2005-08-15  Simon Josefsson  <jas@extundo.com>
100506         * modules/ssize_t (License): Change to 'unlimited'.
100508         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
100510 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
100512         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
100513         Add comments for each pending glibc patch.
100515 2005-08-15  Bruno Haible  <bruno@clisp.org>
100517         * lib/regex.h (__restrict_arr): Don't define to __restrict if
100518         __cplusplus is defined.
100520 2005-08-14  Jim Meyering  <jim@meyering.net>
100522         Sync from coreutils.
100524         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
100525         Use the hash-table-based cycle-detection code not just when
100526         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
100527         Reported by James Youngman in
100528         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
100529         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
100530         FTS_TIGHT_CYCLE_CHECK.
100531         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
100532         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
100533         once again.
100534         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
100535         * lib/fts.c (fd_safer): Remove decl.
100536         Include fcntl--.h rather than unistd-safer.h
100537         (fts_safe_changedir): Don't call fd_safer; no longer needed
100538         now that we include fcntl--.h.
100540 2005-08-12  Simon Josefsson  <jas@extundo.com>
100542         * modules/getndelim2: Use ssize_t module.
100543         * modules/getnline: Likewise.
100544         * modules/safe-read: Likewise.
100545         * modules/xreadlink: Likewise.
100547         * modules/ssize_t: New file.
100549 2005-08-12  Simon Josefsson  <jas@extundo.com>
100551         * m4/readline.m4: Look for termcap, curses or ncurses if required.
100553 2005-08-12  Simon Josefsson  <jas@extundo.com>
100555         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
100556         ssize_t.
100558 2005-08-12  Simon Josefsson  <jas@extundo.com>
100560         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
100561         readline, getdelim and check_version.
100562         (Support for systems lacking ISO C 99: Sizes of integer types):
100563         Add size_max.
100565 2005-08-12  Bruno Haible  <bruno@clisp.org>
100567         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
100569 2005-08-11  Simon Josefsson  <jas@extundo.com>
100571         * modules/readline: New file.
100573         * modules/strnlen (Files): Add strnlen.h.
100575 2005-08-11  Simon Josefsson  <jas@extundo.com>
100577         * m4/readline.m4: New file.
100579 2005-08-11  Simon Josefsson  <jas@extundo.com>
100581         * lib/readline.h, readline.c: New file.
100583 2005-08-11  Simon Josefsson  <jas@extundo.com>
100585         * doc/gnulib.texi (Initial import, Finishing touches): Mention
100586         gl_AVOID.
100588 2005-08-11  Bruno Haible  <bruno@clisp.org>
100590         * lib/strnlen.h (strnlen): Change parameter name to match comment.
100592 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
100594         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
100596 2005-08-10  Simon Josefsson  <jas@extundo.com>
100598         * tests/test-iconvme.c: New file.
100600 2005-08-10  Simon Josefsson  <jas@extundo.com>
100602         * m4/strnlen.m4: New file.
100604         * m4/strndup.m4: Don't check for strnlen declaration, done in
100605         strnlen.m4.
100607 2005-08-10  Simon Josefsson  <jas@extundo.com>
100609         * lib/strndup.c: Use strnlen.h.
100611         * lib/strnlen.h: New file.
100613 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
100615         * README: Typos.
100617 2005-08-02  Simon Josefsson  <jas@extundo.com>
100619         * modules/readline: New file.
100621 2005-08-02  Simon Josefsson  <jas@extundo.com>
100623         * modules/getdelim: New file.
100625         * modules/getline: Rewrite, don't use getndelim2.
100627 2005-08-02  Simon Josefsson  <jas@extundo.com>
100629         * m4/getline.m4: Separate out getdelim stuff into separate module.
100631         * m4/getdelim.m4: New file.
100633 2005-08-02  Simon Josefsson  <jas@extundo.com>
100635         * lib/getline.h, getline.c: Rewrite.
100637         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
100639 2005-07-31  Bruno Haible  <bruno@clisp.org>
100641         * lib/lock.h (gl_lock_initializer): New macro.
100642         (gl_lock_define_initialized): Use it.
100643         (gl_rwlock_initializer): New macro.
100644         (gl_rwlock_define_initialized): Use it.
100645         (gl_recursive_lock_initializer): New macro.
100646         (gl_recursive_lock_define_initialized): Use it.
100648 2005-07-30  Karl Berry  <karl@gnu.org>
100650         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
100651         Report from Ben Pfaff, regarding getopt.
100653 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
100655         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
100656         normal way.
100657         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
100658         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
100659         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
100660         (gl_GETOPT): Use the new macros.  Most of the implementation
100661         is moved to the new macros.  This is for programs like Emacs
100662         that don't want all the functionality of gl_GETOPT.
100664 2005-07-26  Bruno Haible  <bruno@clisp.org>
100666         * m4/lock.m4: Update from GNU gettext.
100668 2005-07-26  Bruno Haible  <bruno@clisp.org>
100670         * lib/lock.h: Update from GNU gettext.
100671         * lib/lock.c: Update from GNU gettext.
100673 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
100675         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
100676         obsolescent AC_TRY_RUN.  Include the default includes files, for
100677         'exit'.
100679 2005-07-24  Bruno Haible  <bruno@clisp.org>
100681         * modules/visibility: New file.
100682         * MODULES.html.sh (Misc): Add visibility.
100684 2005-07-24  Bruno Haible  <bruno@clisp.org>
100686         * m4/visibility.m4: New file.
100688 2005-07-24  Bruno Haible  <bruno@clisp.org>
100690         * doc/visibility.texi: New file.
100692 2005-07-22  Bruno Haible  <bruno@clisp.org>
100694         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
100695         $(ALLOCA_H), redundant through BUILT_SOURCES.
100696         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
100697         redundant through BUILT_SOURCES.
100698         * modules/byteswap (Makefile.am): Remove explicit dependency on
100699         $(BYTESWAP_H), redundant through BUILT_SOURCES.
100700         * modules/fnmatch (Makefile.am): Remove explicit dependency on
100701         $(FNMATCH_H), redundant through BUILT_SOURCES.
100702         * modules/getopt (Makefile.am): Remove explicit dependency on
100703         $(GETOPT_H), redundant through BUILT_SOURCES.
100704         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
100705         redundant through BUILT_SOURCES.
100706         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
100707         redundant through BUILT_SOURCES.
100708         * modules/stdbool (Makefile.am): Remove explicit dependency on
100709         $(STDBOOL_H), redundant through BUILT_SOURCES.
100710         * modules/stdint (Makefile.am): Remove explicit dependency on
100711         $(STDINT_H), redundant through BUILT_SOURCES.
100712         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
100713         Remove explicit dependency on $(SYSEXITS_H).
100714         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
100716 2005-07-18  Simon Josefsson  <jas@extundo.com>
100718         * lib/check-version.c (check_version): Accept identical versions too.
100720 2005-07-18  Bruno Haible  <bruno@clisp.org>
100722         * modules/lock: New file.
100723         * MODULES.html.sh (Multithreading): New section.
100725 2005-07-18  Bruno Haible  <bruno@clisp.org>
100727         * m4/lock.m4: New file, from GNU gettext.
100729 2005-07-18  Bruno Haible  <bruno@clisp.org>
100731         * lib/lock.h: New file, from GNU gettext.
100732         * lib/lock.c: New file, from GNU gettext.
100734 2005-07-18  Bruno Haible  <bruno@clisp.org>
100736         * lib/lock.h (gl_once_t): New type.
100737         (gl_once_define, gl_once): New macros.
100738         * lib/lock.c (fresh_once): New variable.
100739         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
100740         functions.
100742 2005-07-16  Simon Josefsson  <jas@extundo.com>
100744         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
100745         workaround, suggested by Bruno.
100747 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
100749         * modules/xalloc (Depends-on): Add xalloc-die.
100750         * modules/xvasprintf (Depends-on): Add xalloc-die.
100752 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
100754         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
100755         with a minor change.
100757 2005-07-15  Bruno Haible  <bruno@clisp.org>
100759         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
100760         When using lib/poll.c, define poll as rpl_poll.
100762 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
100764         * modules/argp (Depends-on): Remove unlocked-io.
100766 2005-07-14  Derek Price  <derek@ximbiot.com>
100768         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
100769         for glob symlink bug.
100771 2005-07-14  Bruno Haible  <bruno@clisp.org>
100773         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
100774         Instead, test for *_unlocked function declarations directly.
100776 2005-07-11  Simon Josefsson  <jas@extundo.com>
100778         * modules/size_max: New file.
100780         * modules/xsize: Depend on size_max module for size_max.m4.
100782 2005-07-11  Simon Josefsson  <jas@extundo.com>
100784         * lib/size_max.h: New file.
100786 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
100788         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
100789         copyright symbol and the year.
100790         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
100791         (version_etc_va): Use parameterized copyright notice.
100792         Reword to conform to the current GNU coding standards.
100794 2005-07-11  Karl Berry  <karl@gnu.org>
100796         * doc/gnulib.texi (Quoting): new node.
100797         (Initial import): more info, from Patrice.
100799 2005-07-11  Bruno Haible  <bruno@clisp.org>
100801         * gnulib-tool (func_usage): Document option --avoid.
100802         (Command line options): Handle --avoid.
100803         (func_acceptable): New function.
100804         (func_modules_transitive_closure): Use it.
100806 2005-07-11  Bruno Haible  <bruno@clisp.org>
100808         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
100809         Reported by Jim Meyering.
100811 2005-07-10  Bruno Haible  <bruno@clisp.org>
100813         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
100814         Needed when size_t is smaller than 'unsigned int'.
100815         Reported by Paul Eggert.
100817 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
100819         * modules/argp (Depends-on): Add unlocked-io
100821 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
100823         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
100824         block of defines.
100826 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
100828         * config/srclist.txt: Comment out regcomp.c, since we have a porting
100829         fix now.
100831 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
100832         and Paul Eggert  <eggert@cs.ucla.edu>
100834         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
100835         in wint_t, not wchar_t.  Remove now-unnecessary cast.
100837 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
100839         * modules/regex (Files): Add lib/regex_internal.c,
100840         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
100841         (Depends-on): Add extensions.
100842         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
100844 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
100846         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
100847         pathconf.
100848         * m4/same.m4 (gl_SAME): Likewise.
100849         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
100851         * m4/regex.m4: Adjust to new libc regex implementation.
100852         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
100853         all the .c and .h parts of (the new) regex.
100854         Quote the m4 stuff better.
100855         Check for RE_ICASE bug of old gnulib.
100856         Check for REG_STARTEND of recent libc.
100857         Rename local variables from jm_* to gl_*.
100858         Quote operand of "test -f".
100859         Say "recent enough" version of libc, not "version 2".
100860         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
100861         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
100862         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
100863         Remove check for btowc, isascii.
100864         Require AM_LANGINFO_CODESET.
100866 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
100868         * lib/regex.c, regex.h: Sync from libc.
100869         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
100870         * lib/regexec.c:
100871         New files, synced from libc, except that regex_internal.h
100872         currently has a small porting fix.
100874 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
100876         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
100877         regex_internal.c, regexec.c.
100878         Add regex_internal.h too, but as a comment, since the libc version
100879         is currently broken in gnulib mode.
100881 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
100883         Support programs like Emacs that use gnulib but not gettext.
100884         * MODULES.html.sh (Internationalization functions): Add gettext-h.
100885         * modules/gettext-h: New file.
100886         * modules/gettext (Files): Remove lib/gettext.h.
100887         (Depends-on): Add gettext-h.
100888         (Makefile.am): Remove lib_SOURCES.
100889         * modules/argmatch, modules/c-stack, modules/closeout:
100890         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
100891         * modules/execute, modules/file-type, modules/getaddrinfo:
100892         * modules/getopt, modules/human, modules/javacomp:
100893         * modules/javaexec, modules/mkdir-p, modules/obstack:
100894         * modules/openat, modules/pagealign_alloc, modules/pipe:
100895         * modules/quotearg, modules/regex, modules/rpmatch:
100896         * modules/unicodeio, modules/userspec, modules/version-etc:
100897         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
100898         * modules/xsetenv:
100899         Depend on gettext-h, not gettext.
100901 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
100903         * gnulib-tool (func_import): Add support for 'public domain' license.
100904         * modules/alloca, modules/atexit, modules/memmove:
100905         Now public domain, not GPL.
100906         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
100907         * modules/realloc, modules/strerror, modules/strtod:
100908         Now LGPL, not GPL.
100910 2005-07-05  Bruno Haible  <bruno@clisp.org>
100912         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
100913         autoconf CVS. Needed for mingw.
100915 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
100917         Remove the dependency of the strftime module on the tzset module.
100918         * modules/strftime (Depends-on): Remove dependency on tzset.
100920 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
100922         Remove the dependency of the strftime module on the tzset module.
100923         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
100924         gl_FUNC_TZSET_CLOBBER.
100926 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
100928         Remove the dependency of the strftime module on the tzset module.
100929         * lib/strftime.c (my_strftime)
100930         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
100931         Copy the input structure, to work around some of the bug with
100932         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
100933         Solaris releases, you should also use the tzset module, but we won't
100934         require it as a dependency any more since we don't want LGPLed code
100935         to depend on GPLed code.
100937 2005-07-02  Jim Meyering  <jim@meyering.net>
100939         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
100940         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
100941         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
100942         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
100944 2005-07-02  Jim Meyering  <jim@meyering.net>
100946         * lib/backupfile.c (backup_args): Change a `0' to NULL.
100948 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
100950         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
100951         declares only 'struct timespec;' (!).
100953 2005-07-01  Jim Meyering  <jim@meyering.net>
100955         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
100956         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
100957         * lib/save-cwd.c, tempname.c:
100958         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
100959         and don't include <sys/file.h>).
100961 2005-06-29  Jim Meyering  <jim@meyering.net>
100963         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
100964         type name.  Use the variable name instead.
100965         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
100966         Likewise.
100968 2005-06-28  Simon Josefsson  <jas@extundo.com>
100970         * modules/check-version (Files): Add check-version.m4.
100972 2005-06-28  Simon Josefsson  <jas@extundo.com>
100974         * m4/check-version.m4: New file, suggested by Jim Meyering
100975         <jim@meyering.net>.
100977 2005-06-28  Simon Josefsson  <jas@extundo.com>
100979         * lib/check-version.h, lib/check-version.c: New files.
100981 2005-06-28  Simon Josefsson  <jas@extundo.com>
100983         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
100984         collision with global variable.  Better indentation.  Don't
100985         increment buffer pointer beyond buffer end.  Based on comments
100986         from Paul Eggert <eggert@cs.ucla.edu>.
100988         * lib/base64.h: Indent.
100990 2005-06-28  Simon Josefsson  <jas@extundo.com>
100992         * doc/gnulib.texi (Library version handling): New section.
100994 2005-06-28  Jim Meyering  <jim@meyering.net>
100996         * check-module (find_included_lib_files): Hard-code another
100997         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
100998         but modules/fts-lgpl (correctly) does not list those files.
101000         * modules/canonicalize (Files): Add lib/pathmax.h.
101002 2005-06-25  Simon Josefsson  <jas@extundo.com>
101004         * modules/check-version: New file.
101006 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
101008         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
101009         initializer of struct addrinfo, as an indication that we don't
101010         care how many members the structure has.
101012 2005-06-24  Derek Price  <derek@ximbiot.com>
101013         and Bruno Haible  <bruno@clisp.org>
101015         Remove stat module & update lstat.
101016         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
101017         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
101018         * m4/stat.m4: Remove this file.
101020 2005-06-24  Derek Price  <derek@ximbiot.com>
101021         and Bruno Haible  <bruno@clisp.org>
101023         Remove stat module & update lstat.
101024         * lib/stat.c: Remove this file...
101025         (slash_aware_lstat): ...moving this content and its support...
101026         * lib/lstat.c (rpl_lstat): ...into here.
101027         * lib/lstat.h: New file.
101029 2005-06-24  Derek Price  <derek@ximbiot.com>
101030         and Bruno Haible  <bruno@clisp.org>
101032         Remove stat module & update lstat.
101033         * config/srclist.txt (libc sources): Remove stat.
101035 2005-06-24  Derek Price  <derek@ximbiot.com>
101036         and Bruno Haible  <bruno@clisp.org>
101038         Remove stat module & update lstat.
101039         * MODULES.html.sh (stat): Remove.
101040         * MODULES.html: Regenerated.
101041         * modules/lstat (Description): Correct function name.
101042         (Files): Add "lstat.h".
101043         (Depends-on): Remove stat, add xalloc, stat-macros.
101044         * modules/stat: Remove this file.
101045         (Include): Add "lstat.h", remove <sys/stat.h>.
101047 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
101049         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
101050         (ranged_convert): Don't save conversion in a temporary struct.
101051         This causes a warning with GCC 4.0.0, and anyway in the typical
101052         case it's not worth the extra 100 bytes or so of code.
101053         (ranged_convert, __mktime_internal): When calling a function via a
101054         pointer P, use P () rather than (*P) (), as we now assume C89 or
101055         better.
101057 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
101059         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
101060         "who -r" failed to give output.  Problem reported by Tim Waugh.
101062         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
101063         (xcalloc): Use it to avoid needless tests.
101064         Problem reported by Jim Meyering.
101066 2005-06-20  Derek Price  <derek@ximbiot.com>
101068         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
101069         unnecessary for Autoconfs > 2.59c.
101071 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101073         * lib/argp.h (__option_is_short): Check upper limit of
101074         __key. Isprint() requires its argument to have the value
101075         of an unsigned char or EOF.
101077 2005-06-16  Jim Meyering  <jim@meyering.net>
101079         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
101080         when either N or S is zero.
101082 2005-06-16  Derek Price  <derek@ximbiot.com>
101084         * m4/bison.m4: Declare YACC & YFLAGS precious.
101086 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
101088         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
101089         multibyte string or pattern, fall back on unibyte matching.
101090         Problem reported by James Youngman.
101092 2005-06-08  Bruno Haible  <bruno@clisp.org>
101094         * modules/csharpcomp: New file.
101095         * MODULES.html.sh (C#): Add csharpcomp.
101097 2005-06-08  Bruno Haible  <bruno@clisp.org>
101099         * m4/csharpcomp.m4: New file, from GNU gettext.
101101 2005-06-08  Bruno Haible  <bruno@clisp.org>
101103         * lib/csharpcomp.h: New file, from GNU gettext.
101104         * lib/csharpcomp.c: New file, from GNU gettext.
101105         * lib/csharpcomp.sh.in: New file, from GNU gettext.
101107 2005-06-08  Bruno Haible  <bruno@clisp.org>
101109         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
101110         warning on mingw.
101112 2005-06-07  Derek Price  <derek@ximbiot.com>
101114         Sync from CVS.
101115         * lib/glob_.h: Indent nested #ifdef.
101117 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
101119         Sync from coreutils.
101120         Use "file name" when talking about file names, instead of "filename"
101121         or "path", as per the GNU coding standards.
101122         * lib/mkdir-p.c: Renamed from makepath.c.
101123         (make_dir_parents): Renamed from make_path.  All callers changed.
101124         * lib/mkdir-p.h: Likewise.  All includers changed.
101125         * lib/filenamecat.c: Renamed from path-concat.c.
101126         (file_name_concat): Renamed from path_concat.  All callers changed.
101127         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
101128         * lib/filenamecat.h: Likewise.  All includers changed.
101129         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
101130         in comments or local variable names.
101131         * lib/basename.c: Likewise.
101132         * lib/canonicalize.c, canonicalize.h: Likewise.
101133         * lib/dirname.c, dirname.h: Likewise.
101134         * lib/euidaccess.c: Likewise.
101135         * lib/exclude.c: Likewise
101136         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
101137         * lib/fsusage.c, fsuage.h: Likewise.
101138         * lib/fts.c, fts_.h: Likewise.
101139         * lib/getcwd.c: Likewise.
101140         * lib/getloadavg.c: Likewise.
101141         * lib/mkstemp.c: Likewise.
101142         * lib/mountlist.c, mountlist.h: Likewise.
101143         * lib/openat.c, openat.h: Likewise.
101144         * lib/readlink-stub.c: Likewise.
101145         * lib/readutmp.c, readutmp.h: Likewise.
101146         * lib/rename.c: Likewise.
101147         * lib/rmdir.c: Likewise.
101148         * lib/same.c: Likewise.
101149         * lib/savedir.c: Likewise.
101150         * lib/stripslash.c: Likewise.
101151         * lib/tempname.c: Likewise.
101152         * lib/xreadlink.c: Likewise.
101153         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
101154         All uses changed.
101155         * lib/exclude.h: Likewise.
101157         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
101158         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
101159         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
101160         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
101161         * lib/pathmax.h: Include <limits.h> unconditionally, since other
101162         files have been getting away with it for years (MORE/BSD 4.3
101163         is extinct now).
101164         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
101165         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
101167         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
101168         Define to 256, not 255, as per modern POSIX.
101170 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
101172         Sync from coreutils.
101173         Use "file name" when talking about file names, instead of "filename"
101174         or "path", as per the GNU coding standards.
101175         * MODULES.html.sh: mkdir-p renamed from makepath.
101176         filenamecat renamed from path-concat.
101177         * modules/filenamecat: Renamed from modules/path-concat.
101178         (Files): filenamecat.h and filenamecat.c renamed from
101179         path-concat.h and path-concat.c.
101180         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
101181         (Include): filenamecat.h, not path-concat.h.
101182         * modules/mkdir-p: Renamed from modules/makepath.
101183         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
101184         makepath.c.
101185         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
101186         (Include): mkdir-p.h, not makepath.h.
101188 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
101190         Sync from coreutils.
101191         * m4/mkdir-p.m4: Renamed from makepath.m4.
101192         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
101193         Rename files from makepath.c to mkdir-p.c, and from
101194         makepath.h to mkdir-p.h.
101195         * m4/filenamecat.m4: Renamed from path-concat.m4.
101196         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
101197         Rename files from path-concat.c to filenamecat.c,
101198         and from path-concat.h to filenamecat.h.
101199         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
101200         "file name" in local variables or comments.
101201         * m4/rename.m4: Likewise.
101203 2005-06-01  Bruno Haible  <bruno@clisp.org>
101205         * modules/csharpexec: New file.
101206         * MODULES.html.sh (C#): New section.
101208 2005-06-01  Bruno Haible  <bruno@clisp.org>
101210         * m4/csharp.m4: New file, from GNU gettext.
101211         * m4/csharpexec.m4: New file, from GNU gettext.
101213 2005-06-01  Bruno Haible  <bruno@clisp.org>
101215         * lib/csharpexec.h: New file, from GNU gettext.
101216         * lib/csharpexec.c: New file, from GNU gettext.
101217         * lib/csharpexec.sh.in: New file, from GNU gettext.
101219 2005-05-31  Derek Price  <derek@ximbiot.com>
101220             Paul Eggert  <eggert@cs.ucla.edu>
101222         Sync from cvs.
101223         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
101225 2005-05-31  Derek Price  <derek@ximbiot.com>
101226             Paul Eggert  <eggert@cs.ucla.edu>
101228         Sync from cvs.
101229         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
101231 2005-05-29  Derek Price  <derek@ximbiot.com>
101233         * config/srclist.txt (glob_.h, glob.c): Add these files.
101235 2005-05-29  Derek Price  <derek@ximbiot.com>
101237         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
101238         * modules/glob: New file.
101239         * modules/getlogin_r: Add link to POSIX spec in description.
101241 2005-05-29  Derek Price  <derek@ximbiot.com>
101242             Paul Eggert  <eggert@cs.ucla.edu>
101244         * m4/glob.m4: New file.
101246 2005-05-29  Derek Price  <derek@ximbiot.com>
101247             Paul Eggert  <eggert@cs.ucla.edu>
101249         * lib/glob_.h, lib/glob.c: New files.
101251 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
101253         * modules/fts (Files): Remove m4/inttypes-pri.m4.
101254         * modules/fts-lgpl (Depends-on): Remove gettext.
101256 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
101258         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
101259         and don't require gt_INTTYPES_PRI.
101261 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
101263         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
101265         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
101266         the configuration hassle isn't worth it.
101267         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
101268         (LONGEST_MODIFIER, PRIuMAX): Remove.
101270 2005-05-27  Bruno Haible  <bruno@clisp.org>
101272         * lib/getlogin_r.h: Remove second include of <stddef.h>.
101274 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
101276         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
101277         _POSIX_PTHREAD_SEMANTICS for Solaris.
101279 2005-05-25  Derek Price  <derek@ximbiot.com>
101281         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
101283 2005-05-25  Derek Price  <derek@ximbiot.com>
101284             Paul Eggert  <eggert@cs.ucla.edu>
101286         * modules/getlogin_r, m4/getlogin_r.m4: New files.
101287         * lib/getlogin_r.c, getlogin_r.h: New files.
101289 2005-05-25  Bruno Haible  <bruno@clisp.org>
101290             Derek Price  <derek@ximbiot.com>
101292         * lib/getlogin_r.h: Simplify API documentation.
101294 2005-05-23  Derek Price  <derek@ximbiot.com>
101296         * modules/minmax (Files): Add m4/minmax.m4.
101297         (configure.ac): Add gl_MINMAX.
101299 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
101301         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
101302         so that unistd-safer.h (GPL'ed code) need not be included.
101304 2005-05-22  Bruno Haible  <bruno@clisp.org>
101306         * m4/minmax.m4: New file.
101307         Based on a patch by Derek Price <derek@ximbiot.com>.
101309 2005-05-22  Bruno Haible  <bruno@clisp.org>
101311         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
101312         (INT64_MIN): Fix definition.
101313         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
101315         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
101316         NEED_SIGNED_INT_TYPES.
101318         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
101319         HAVE_SYSTEM_INTTYPES.
101321 2005-05-22  Bruno Haible  <bruno@clisp.org>
101323         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
101324         Also include <sys/param.h> if it defines MIN, MAX.
101325         Based on a patch by Derek Price <derek@ximbiot.com>.
101327 2005-05-21  Jim Meyering  <jim@meyering.net>
101329         * modules/fts (Files): Add m4/inttypes-pri.m4.
101330         (Depends-on): Add lstat and remove gettext.  Alphabetize.
101332 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
101334         New fts module.
101335         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
101336         (setup_dir, free_dir): New functions.
101337         (enter_dir, leave_dir): Define trivial
101338         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
101339         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
101340         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
101341         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
101342         Move to fts-cycle.c.
101343         (fts_open): Use setup_dir.
101344         (fts_close): Use free_dir.
101345         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
101346         This adds a label and some gotos, but the alternatives were messier.
101347         Check for memory allocation failure when entering a dir.
101348         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
101349         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
101350         (FTS): New member fts_cycle, that is a union that contains the
101351         old active_dir_ht and cycle_state.  All uses changed to mention
101352         fts_cycle.ht and fts_cycle.state.
101353         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
101354         fts.c, with the following changes:
101355         (setup_dir, free_dir): New functions.
101356         (enter_dir): Now returns bool.  Return true if successful, false
101357         if memory exhausted.  All callers changed.
101358         Do not bother partly cleaning up on
101359         memory allocation failure; that is free_dir's job.
101360         However, free ad if hash_insert fails, to avoid memory leak.
101361         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
101362         fts->fts_options to see which union member to use.
101364 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
101366         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
101367         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
101369 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
101371         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
101373 2005-05-20  Jim Meyering  <jim@meyering.net>
101375         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
101376         Now a macro, to pacify GCC.
101378 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
101380         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
101381         of -1.
101383 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
101385         * lib/chown.c (rpl_chown): Return -1 on failure.
101387 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
101389         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
101390         Don't check for stddef.h.
101391         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
101392         don't use its results.
101393         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
101394         since we include them unconditionally.  Don't require
101395         AM_STDBOOL_H, since stdbool is a prerequisite.
101396         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
101397         since we assume C89 or better.
101398         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
101399         as we don't use their results.
101400         Don't check for fchdir, memmove, memset, strrchr, as we use
101401         them unconditionally.
101402         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
101403         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
101405 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
101407         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
101408         Include <stddef.h> unconditionally, since we assume C89 now.
101409         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
101410         * lib/fts.c: Include fts_.h first, to check interface.
101411         Do not include intprops.h; no longer needed.
101412         Include cycle-check.h and hash.h, since fts_.h no longer does.
101413         Remove unnecessary casts of closedir to void.
101414         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
101415         decide whether to decrement nlinks.
101416         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
101417         (FTS): Use struct hash_table * instead of Hash_table, so that
101418         we no longer need to include hash.h here.
101420 2005-05-18  Jim Meyering  <jim@meyering.net>
101422         * modules/dirfd (License): Change to LGPL.  Most of the code
101423         is already in the public domain.
101425 2005-05-18  Jim Meyering  <jim@meyering.net>
101427         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
101428         Reported by Yoann Vandoorselaere.
101430 2005-05-17  Jim Meyering  <jim@meyering.net>
101432         * m4/fts.m4: New file, from coreutils.
101434 2005-05-17  Jim Meyering  <jim@meyering.net>
101436         * lib/fts.c, lib/fts_.h: New files, from coreutils.
101438 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
101440         Sync from coreutils.
101441         * m4/unlinkdir.m4: New file.
101443 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
101445         Sync from coreutils.
101446         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
101447         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
101448         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
101449         White space changes only.
101450         * lib/makepath.c (make_path): Port to hosts where leading "//" is
101451         special.
101452         * lib/yesno.c: Include getline.h, not ctype.h.
101453         (yesno): Don't remove leading white space; POSIX doesn't allow it.
101454         Use getline to remove arbitrary restriction on response length.
101456 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
101458         * config/srclist-update: Spell out "Street" in FSF postal
101459         mail address; this is the style the FSF seems to prefer.
101461         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
101462         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
101463         this updates FSF postal mail address.
101465         Sync from coreutils.
101466         * modules/unlinkdir: New file.
101467         * modules/yesno (Depends-on): Add getline.
101468         * MODULES.html.sh (File system functions): Add unlinkdir.
101470 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
101472         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
101473         lib/strsep.h:
101474         Change the initial comment to refer to GPL, not LGPL.
101475         gnulib-tool will change it to LGPL as needed.
101477         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
101478         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
101479         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
101480         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
101481         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
101482         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
101483         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
101484         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
101485         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
101486         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
101487         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
101488         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
101489         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
101490         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
101491         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
101492         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
101493         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
101494         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
101495         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
101496         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
101497         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
101498         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
101499         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
101500         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
101501         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
101502         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
101503         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
101504         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
101505         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
101506         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
101507         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
101508         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
101509         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
101510         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
101511         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
101512         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
101513         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
101514         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
101515         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
101516         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
101517         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
101518         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
101519         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
101520         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
101521         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
101522         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
101523         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
101524         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
101525         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
101526         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
101527         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
101528         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
101529         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
101530         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
101531         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
101532         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
101533         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
101534         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
101535         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
101536         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
101537         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
101538         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
101539         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
101540         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
101541         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
101542         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
101543         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
101544         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
101545         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
101546         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
101547         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
101548         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
101549         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
101550         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
101551         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
101552         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
101553         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
101554         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
101555         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
101556         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
101557         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
101558         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
101559         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
101560         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
101561         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
101562         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
101563         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
101564         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
101565         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
101566         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
101567         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
101568         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
101569         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
101570         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
101571         lib/yesno.c, lib/yesno.h:
101572         Update FSF postal mail address.
101574 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
101576         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
101577         tests/test-memmem.c, tests/test-stpncpy.c:
101578         Update FSF postal mail address.
101580 2005-05-13  Bruno Haible  <bruno@clisp.org>
101582         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
101583         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
101584         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
101585         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
101586         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
101587         Add support for 64-bit integers in the MSVC compiler.
101589 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
101591         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
101593 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
101595         * gnulib-tool (func_import): Sort and uniquify recommended includes.
101597 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
101599         * doc/getdate.texi (General date syntax): Don't say that date
101600         date --iso-8601=ns generates acceptable dates; it doesn't yet.
101601         Problem reported by Nic Ferrier.
101603 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
101605         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
101606         specified in ai_socktype. Fix invalid ai_protocol
101607         check. ai_protocol is usually set to 0 or depending on
101608         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
101609         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
101610         ai_socktype / ai_protocol in the returned addrinfo structure.
101612 2005-05-10  Simon Josefsson  <jas@extundo.com>
101614         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
101615         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
101617 2005-05-10  Karl Berry  <karl@gnu.org>
101619         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
101620         (from http://www.gnu.org/licenses).
101621         * doc/COPYING.LIB: also rename to COPYING.LESSER.
101622         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
101623         fdl.texi suffices.
101625 2005-05-10  Karl Berry  <karl@gnu.org>
101627         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
101628         (COPYING.DOC): remove.
101630         * config/srclist-update: new FSF address.
101632 2005-05-10  Derek Price  <derek@ximbiot.com>
101634         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
101635         possible.
101637 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
101638             Bruno Haible  <bruno@clisp.org>
101640         * modules/inet_ntop: New file.
101641         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
101642         inet_ntop.
101644 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
101645             Bruno Haible  <bruno@clisp.org>
101647         * m4/inet_ntop.m4: New file.
101649 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
101650             Bruno Haible  <bruno@clisp.org>
101652         * lib/inet_ntop.h: New file.
101653         * lib/inet_ntop.c: New file, from glibc with modifications.
101655 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
101657         * modules/time_r (License): Change to LGPL.
101658         * modules/extensions (License): Change to LGPL.  Actually,
101659         the license is more permissive than that, but currently gnulib-tool
101660         doesn't know how to handle more-permissive licenses.
101662         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
101663         Problem reported by Dave Love.
101665 2005-05-08  Jim Meyering  <jim@meyering.net>
101667         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
101668         blank.
101670 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
101672         * modules/argmatch (Depends-on): Add stdbool.
101673         * modules/backupfile (Depends-on): Likewise.
101674         * modules/chdir-long (Depends-on): Likewise.
101675         * modules/closeout (Depends-on): Likewise.
101676         * modules/cycle-check (Depends-on): Likewise.
101677         * modules/dirname (Depends-on): Likewise.
101678         * modules/fnmatch (Depends-on): Likewise.
101679         * modules/fsusage (Depends-on): Likewise.
101680         * modules/fwriteerror (Depends-on): Likewise.
101681         * modules/getcwd (Depends-on): Likewise.
101682         * modules/getloadavg (Depends-on): Likewise.
101683         * modules/hard-locale (Depends-on): Likewise.
101684         * modules/makepath (Depends-on): Likewise.
101685         * modules/mountlist (Depends-on): Likewise.
101686         * modules/nanosleep (Depends-on): Likewise.
101687         * modules/posixtm (Depends-on): Likewise.
101688         * modules/quotearg (Depends-on): Likewise.
101689         * modules/readtokens (Depends-on): Likewise.
101690         * modules/readtokens0 (Depends-on): Likewise.
101691         * modules/readutmp (Depends-on): Likewise.
101692         * modules/save-cwd (Depends-on): Likewise.
101693         * modules/strftime (Depends-on): Likewise.
101694         * modules/userspec (Depends-on): Likewise.
101695         * modules/utimecmp (Depends-on): Likewise.
101696         * modules/xgetcwd (Depends-on): Likewise.
101697         * modules/xnanosleep (Depends-on): Likewise.
101698         * modules/xstrtod (Depends-on): Likewise.
101699         * modules/yesno (Depends-on): Likewise.
101701 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
101703         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
101704         needless checks.
101706 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
101708         Merge from coreutils.  Among other things,
101709         add bulletproofing for cases where stdin, stdout, or stderr are closed.
101710         * lib/fd-safer.c: New file.
101711         * lib/fcntl-safer.h, open-safer.c: Remove.
101712         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
101713         * lib/dup-safer.c: Include unistd-safer.h first.
101714         Don't include errno.h.
101715         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
101716         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
101717         * lib/file-type.c: Rely on file-type.h change.
101718         * lib/getloadavg.c: Include unistd-safer.h.
101719         (getloadavg): Use safer open.
101720         * lib/getusershell.c: Include "stdio-safer.h".
101721         (getusershell): Use safer fopen.
101722         * lib/long-options.c (long_options): Use NULL rather than 0.
101723         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
101724         'free'.
101725         * lib/modechange.c: Likewise.
101726         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
101727         (MODE_DONE): New constant.
101728         (struct mode_change): Remove 'next' member.
101729         (make_node_op_equals): New function; like the old one of the
101730         same name, except it allocates an array.
101731         (mode_compile, mode_create_from_ref): Use it.
101732         (mode_compile): Allocate result as an array, not a linked list.
101733         Parse octal string ourself, so that we catch mistakes like "+0".
101734         (mode_adjust): Arg is an array, not a linked list.
101735         * lib/modechange.c: Include stat-macros.h, xalloc.h.
101736         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
101737         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
101738         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
101739         Remove.  This is now stat-macros.h's job.
101740         (talloc): Remove.  All callers replaced by xalloc, so that
101741         our invokers don't have to worry about reporting memory failures.
101742         (make_node_op_equals): Remove.
101743         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
101744         New constants.
101745         (struct mode_change): Moved here from modechange.h.
101746         (mode_append_entry): Remove.
101747         (mode_compile): Remove MASKED_OPS arg, since it encouraged
101748         apps to have incorrect behavior.  Use simpler algorithm for head
101749         and tail.  Don't futz with umask; that's now the job of mode_adjust.
101750         Detect more invalid usages rather than having somewhat-random behavior.
101751         Don't insert an "a=" action, as that leads to incorrect behavior.
101752         (mode_compile, mode_create_from_ref): Return NULL on error instead
101753         of an enum, since now there's only one way to have an error.  All
101754         callers changed.
101755         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
101756         at the correct time.  Simplify calculation of "+u" and its ilk.
101757         Don't mishandle "+X".
101758         (mode_free): Remove "register" and localize decls.
101759         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
101760         (struct mode_change): Move to modechange.c; callers don't
101761         need to see this stuff.
101762         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
101763         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
101764         (mode_change, mode_adjust): Reflect the new signatures noted above.
101765         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
101766         that might redefine system include files.
101767         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
101768         (my_usleep): Use NULL rather than (void *) 0.
101769         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
101770         Use siginterrupt to specify that system calls should be interrupted.
101771         (rpl_nanosleep): Move initialization of suspended closer to call of
101772         my_usleep.
101773         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
101774         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
101775         (desirable_utmp_entry): New function.
101776         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
101777         using x2nrealloc, to simplify logic.
101778         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
101779         size calculation.  Do not assume utmp file is a regular file.
101780         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
101781         (READ_UTMP_CHECK_PIDS): New constant.
101782         * lib/save-cwd.c: Include unistd-safer.h.
101783         (save_cwd): Use fd_safer.
101784         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
101785         [!_LIBC] Include "stat-macros.h" instead.
101786         * lib/unistd-safer.h (fd_safer): New decl.
101788 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
101790         * modules/getloadavg (Depends-on): Add unistd-safer.
101791         * modules/getusershell (Depends-on): Add stdio-safer.
101792         * modules/lstat (Depends-on): Remove xalloc.
101793         * modules/mkstemp (Depends-on): Add stat-macros.
101794         * modules/modechange (Depends-on): Remove xstrtol.
101795         Add stat-macros, xalloc.
101796         * modules/save-cwd (Depends-on): Add unistd-safer.
101797         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
101798         * modules/unistd-safer (Files): Add lib/fd-safer.c
101799         (Makefile.am): Remove lib_SOURCES.
101801         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
101802         Remove fcntl-safer; unistd-safer supersedes it.
101804 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
101806         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
101807         AC_HEADER_STAT.
101808         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
101809         (gl_PREREQ_CHOWN): Remove.
101810         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
101811         it.  Don't require AC_HEADER_STAT.
101812         (gl_PREREQ_LSTAT): Remove.
101813         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
101814         Don't require AC_HEADER_STAT.
101815         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
101816         (gl_PREREQ_RMDIR): Remove.
101817         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
101818         mention stat-macros.h or AC_HEADER_STAT, since we'll make
101819         the stat-macros module a prerequisite.
101820         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
101821         * m4/filemode.m4 (gl_FILEMODE): Likewise.
101822         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
101823         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
101824         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
101825         variable names.
101826         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
101827         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
101828         variable prefixes.
101829         * m4/fcntl-safer.m4: Remove.
101830         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
101831         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
101832         Invoke gl_PREREQ_FD_SAFER.
101833         (gl_PREREQ_FD_SAFER): New macro.
101834         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
101835         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
101836         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
101837         Remove duplicate call to AC_LIBOBJ(readutmp).
101838         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
101840         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
101841         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
101843 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
101845         * MODULES.html.sh (Misc): Add byteswap.
101847 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
101849         * modules/getcwd (Depends-on): Add extensions.
101850         * modules/openat (Depends-on): Likewise.
101852 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
101854         * modules/byteswap: New file.
101856 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
101858         * m4/byteswap.m4: New file.
101860 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
101862         * lib/byteswap_.h: New file.
101864 2005-04-25  Karl Berry  <karl@gnu.org>
101866         * m4/gettext.m4: Update from GNU gettext 0.14.4.
101868 2005-04-25  Albert Chin  <china@thewrittenword.com>
101870         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
101871         Toolkit C bug.
101873 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
101875         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
101876         (func_ln_if_changed): Remove forcibly for no error message
101877         in case file does not exist.
101879 2005-04-19  Simon Josefsson  <jas@extundo.com>
101881         * gnulib-tool (Options): Make --symlink mean --symbolic.
101883 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
101885         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
101887 2005-04-16  Simon Josefsson  <jas@extundo.com>
101889         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
101891 2005-04-15  Simon Josefsson  <jas@extundo.com>
101893         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
101895 2005-04-15  Simon Josefsson  <jas@extundo.com>
101897         * gnulib-tool: Rename --symlink to --symbolic.
101899 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
101901         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
101902         symbolic links to files instead of copying/moving.  Add --aux-dir,
101903         specifying directory relative --dir where auxiliary build tools
101904         are placed.
101906 2005-04-14  Bruno Haible  <bruno@clisp.org>
101908         * modules/allocsa (License): Change to LGPL.
101909         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
101911 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
101913         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
101914         that "UTC +1 second" continues to work.  Problem reported
101915         by Dmitry V. Levin.
101916         (relunit_snumber): New rule.
101917         (relunit): Use it.
101919 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
101921         * lib/getdate.y (universal_time_zone_table): New constant.
101922         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
101923         universal_time_zone_table.
101924         (lookup_zone): Prefer universal_time_zone_table to
101925         local_time_zone_table, so that "GMT" time stamps are allowed in
101926         London during the summer.  Problem reported by Ian Abbott.
101928 2005-04-12  Jim Meyering  <jim@meyering.net>
101930         * lib/human.c (humblock): Set *options even when returning due to
101931         xstrtoumax conversion failure.  Thanks to a used-uninitialized
101932         warning from gcc-4.
101934 2005-04-09  Jim Meyering  <jim@meyering.net>
101936         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
101937         -Wuninitialized: initialize tm0.tm_year.
101939 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
101941         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
101942         count, since there's no maximum.  All uses changed.
101943         Add member dsts_seen.
101944         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
101945         not being INT_MAX.
101946         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
101947         Use pc_rels_seen to decide whether a date is absolute.
101949         * lib/getdate.y (number): Don't overwrite year.
101950         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
101951         check.
101953 2005-04-02  Simon Josefsson  <jas@extundo.com>
101955         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
101956         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
101958 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
101960         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
101961         where no absolute path name can be longer than PATH_MAX.
101963 2005-03-27  Jim Meyering  <jim@meyering.net>
101965         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
101967 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
101969         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
101970         "one's complement" -> "ones' complement" in comment, as per Knuth.
101971         "value of type" -> "type or expression" in comment.
101972         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
101974 2005-03-26  Jim Meyering  <jim@meyering.net>
101976         Comment nits.
101977         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
101978         Correct typos: s/or/of/.
101980 2005-03-26  Jim Meyering  <jim@meyering.net>
101982         * modules/check-include-files: Move to ../ and rename to...
101983         * check-module: ...this.
101985 2005-03-25  Jim Meyering  <jim@meyering.net>
101987         * modules/xvasprintf (Files): Add xalloc.h.
101989 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
101991         * modules/gettext (Files): config/config.rpath ->
101992         build-aux/config.rpath
101993         * modules/iconv (Files): Likewise.
101994         Problem reported by Oskar Liljeblad.
101996 2005-03-23  Jim Meyering  <jim@meyering.net>
101998         * modules/check-include-files: New script to check for
101999         missing dependencies, multiple includes, etc.
102001         * modules/c-strtold (Depends-on): Add xalloc.
102002         * modules/c-strtod (Depends-on): Add xalloc.
102003         * modules/hash (Depends-on): Add xalloc.
102004         (Files): Remove lib/xalloc.h.
102006         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
102007         * modules/userspec (Files): Add lib/inttostr.h.
102009 2005-03-23  Jim Meyering  <jim@meyering.net>
102011         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
102013 2005-03-22  Jim Meyering  <jim@meyering.net>
102015         * modules/stat-macros: New module.
102016         * modules/canonicalize, modules/euidaccess, modules/file-type,
102017         * modules/filemode, modules/lchown, modules/makepath,
102018         * modules/rmdir, modules/stat: Depend on new stat-macros module
102019         rather than listing lib/stat-macros.h manually.
102020         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
102022 2005-03-22  Jim Meyering  <jim@meyering.net>
102024         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
102026 2005-03-22  Bruno Haible  <bruno@clisp.org>
102028         * config/srclist.txt: Replace target directory 'config' with
102029         'build-aux'.
102030         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
102031         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
102032         ../build-aux/.
102034 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
102036         * modules/chdir-long (Depends-on): Add mempcpy.
102038         * modules/acl, modules/backupfile, modules/c-strtod,
102039         modules/c-strtold, modules/canon-host, modules/canonicalize,
102040         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
102041         modules/exclude, modules/exitfail, modules/file-type,
102042         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
102043         modules/getdate, modules/getline, modules/getpagesize,
102044         modules/getpass, modules/getugroups, modules/group-member,
102045         modules/hard-locale, modules/hash, modules/human, modules/idcache,
102046         modules/inttostr, modules/long-options, modules/makepath,
102047         modules/md5, modules/memcasecmp, modules/memcoll,
102048         modules/modechange, modules/mountlist, modules/path-concat,
102049         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
102050         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
102051         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
102052         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
102053         modules/strftime, modules/strndup, modules/strverscmp,
102054         modules/timespec, modules/unlocked-io, modules/userspec,
102055         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
102056         modules/yesno:
102057         Remove lib_SOURCES line from Makefile.am section, as this is now
102058         done automatically by the corresponding Autoconf macro.
102060 2005-03-21  Jim Meyering  <jim@meyering.net>
102062         Changes imported from coreutils.
102064         * lib/cycle-check.c: Don't include xalloc.h.
102066         * lib/path-concat.c: Don't include assert.h.
102067         (path_concat): Remove assertion that would have triggered
102068         for ABASE starting with more than one slash.
102069         Reported by Andreas Schwab.
102071         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
102072         properly when ABASE is an absolute file name.
102073         Correct the description of this function.
102074         Include <assert.h>.
102075         Add an assertion and a test driver.
102076         This fixes a bug introduced on 2004-07-02.
102077         Andreas Schwab reported the resulting failure of cp --parents:
102078         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
102080 2005-03-21  Jim Meyering  <jim@meyering.net>
102082         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
102083         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
102085 2005-03-21  Jim Meyering  <jim@meyering.net>
102086         and  Paul Eggert  <eggert@cs.ucla.edu>
102088         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
102089         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
102090         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
102091         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
102092         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
102093         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
102094         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
102095         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
102096         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
102097         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
102098         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
102099         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
102100         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
102101         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
102102         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
102103         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
102104         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
102105         for these modules.
102107 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
102109         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
102110         (which shouldn't happen), generate nothing instead of returning 0
102111         immediately, so that nstrftime (NULL, ...) doesn't return 0.
102113 2005-03-16  Bruno Haible  <bruno@clisp.org>
102115         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
102116         HAVE_LONGLONG_64BIT.
102118 2005-03-16  Bruno Haible  <bruno@clisp.org>
102120         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
102121         HAVE_LONGLONG_64BIT.
102123 2005-03-16  Bruno Haible  <bruno@clisp.org>
102125         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
102126         HAVE_LONGLONG_64BIT.
102128 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
102130         * lib/strftime.c (my_strftime): Prepend space to format so that we can
102131         reliably distinguish strftime failure from empty output on POSIX
102132         hosts.
102134 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
102136         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
102137         (iconv_string): Don't guess a size-zero buffer, as that might cause
102138         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
102139         result would be 'too large', where 'too large' is (heuristically)
102140         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
102141         overflow concerns.  This will prevent some unwanted malloc failures
102142         when the inputs are very large.
102144 2005-03-15  Karl Berry  <karl@gnu.org>
102146         * config/srclist.txt (config.rpath): from gettext.
102147         * config/config.rpath: update.
102149 2005-03-15  Bruno Haible  <bruno@clisp.org>
102151         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
102152         to 'negate'.
102154         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
102155         variable.
102157         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
102158         results.
102160 2005-03-14  Simon Josefsson  <jas@extundo.com>
102162         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
102163         <fx@gnu.org>.
102165 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
102167         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
102168         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
102169         intprops.h.
102170         * lib/strtol.c: Likewise.
102172 2005-03-14  Jim Meyering  <jim@meyering.net>
102174         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
102175         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
102176         to be nonzero so that we (and caller) can detect the difference
102177         between a valid zero-length expansion and an error return, even
102178         when the underlying strftime fails before writing anything into
102179         that location.
102181 2005-03-14  Bruno Haible  <bruno@clisp.org>
102183         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
102184         Update from GNU gettext 0.14.3.
102186 2005-03-10  Jim Meyering  <jim@meyering.net>
102188         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
102190 2005-03-10  Jim Meyering  <jim@meyering.net>
102192         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
102193         so that this module works on systems without fchdir.
102195 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
102197         Factor int-properties macros into a single file, except for
102198         glibc-related files.
102199         * lib/intprops.h: New file.
102200         * lib/getloadavg.c: Include it instead of limits.h.
102201         (INT_STRLEN_BOUND): Remove.
102202         * lib/human.c: Include intprops.h.
102203         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
102204         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
102205         302/1000.
102206         * lib/inttostr.h: Include intprops.h instead of limits.h.
102207         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
102208         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
102209         for consistency with intprops.h.
102210         (time_t_is_integer, twos_complement_arithmetic): Use them.
102211         * lib/sig2str.h: Include <signal.h>, intprops.h.
102212         (INT_STRLEN_BOUND): Remove.
102213         * lib/strftime.c (TYPE_SIGNED): Remove.
102214         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
102215         * lib/strtol.c: Adjust comments to match intprops.h.
102216         * lib/userspec.c: Include intprops.h.
102217         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
102218         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
102219         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
102220         instead of rolling our own expressions.
102221         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
102223         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
102224         instead of int.
102225         (my_strftime): Do not mishandle years close to INT_MAX, by doing
102226         the right thing even if adding 1900 would overflow.  Similarly
102227         for tm_mon + 1 and tm_yday + 1.
102228         Make %Y always equivalent to %C%y, and similarly for %G and %g.
102229         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
102230         (DO_SIGNED_NUMBER): New macro.
102231         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
102233 2005-03-07  Bruno Haible  <bruno@clisp.org>
102235         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
102237 2005-03-07  Bruno Haible  <bruno@clisp.org>
102239         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
102241 2005-03-04  Derek R. Price  <derek@ximbiot.com>
102243         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
102244         (func_import): Only replace files via --import when they have actually
102245         changed.
102247 2005-03-03  Derek R. Price  <derek@ximbiot.com>
102249         * m4/mmap-anon.m4: New file.
102250         * m4/pagealign_alloc.m4: New file.
102252 2005-03-03  Derek R. Price  <derek@ximbiot.com>
102253             Bruno Haible  <bruno@clisp.org>
102255         * modules/pagealign_alloc: New file.
102256         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
102258 2005-03-03  Derek R. Price  <derek@ximbiot.com>
102259             Bruno Haible  <bruno@clisp.org>
102261         * lib/pagealign_alloc.h: New file.
102262         * lib/pagealign_alloc.c: New file.
102264 2005-03-03  Bruno Haible  <bruno@clisp.org>
102266         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
102267         Use an all-permissive copyright notice, recommended by RMS.
102269 2005-03-02  Bruno Haible  <bruno@clisp.org>
102271         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
102272         of AIX, the replacement has to be done only after <string.h> is
102273         included, therefore not in config.h. stpncpy.h does the replacement,
102274         and stpncpy.c uses it.
102276 2005-03-02  Bruno Haible  <bruno@clisp.org>
102278         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
102279         stpncpy.c uses it.
102281 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
102283         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
102284         The workaround isn't strictly needed for POSIX conformance, and
102285         it's too much of a pain to configure and maintain.  We'll ask
102286         people to fix their kernels instead.
102287         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
102288         (NANOSLEEP_BUG_WORKAROUND): Remove.
102289         (xnanosleep): Remove the workaround.
102291 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
102293         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
102294         Reported by Derek Price.
102295         (Include): Add "timespec.h".
102297         * modules/xnanosleep (Depends-on): Remove gethrxtime.
102299 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
102301         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
102302         to detect nanosleep bug.
102304 2005-03-01  Bruno Haible  <bruno@clisp.org>
102306         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
102308 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
102310         * modules/gethrxtime: New file.
102311         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
102312         (Depends-on): Add gethrxtime.
102313         (configure.ac): Add gl_XNANOSLEEP.
102314         (Makefile.am): Remove lib_SOURCES line.
102316 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
102318         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
102319         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
102321 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
102323         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
102324         * lib/timespec.h (gettime): Return void, since it always
102325         succeeds now.  All uses changed.
102326         * lib/gettime.c (gettime): Likewise.
102327         [HAVE_NANOTIME]: Prefer nanotime.
102328         Assume gettimeofday succeeds, as POSIX requires.
102329         Assime time () succeeds, since other code already does.
102330         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
102331         (timespec_subtract): Remove.
102332         (NANOSLEEP_BUG_WORKAROUND): New constant.
102333         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
102334         things considerably.  Use it only on GNU/Linux hosts, since the
102335         workaround shouldn't be needed elsewhere.
102337 2005-02-24  Bruno Haible  <bruno@clisp.org>
102339         * modules/gettext (Files): Add m4/glibc2.m4.
102341 2005-02-24  Bruno Haible  <bruno@clisp.org>
102343         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
102344         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
102345         * m4/progtest.m4:
102346         Update from GNU gettext 0.14.2.
102347         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
102349 2005-02-24  Bruno Haible  <bruno@clisp.org>
102351         * lib/localcharset.c: Update from GNU gettext 0.14.2.
102352         * lib/config.charset: Update from GNU gettext 0.14.2.
102354 2005-02-24  Bruno Haible  <bruno@clisp.org>
102356         * lib/gettext.h: Update from GNU gettext 0.14.2.
102358 2005-02-23  Simon Josefsson  <jas@extundo.com>
102360         * m4/iconvme.m4: New file.
102362 2005-02-23  Jim Meyering  <jim@meyering.net>
102364         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
102365         change.
102366         Thanks to Bruno Haible for catching it.
102368 2005-02-22  Simon Josefsson  <jas@extundo.com>
102370         * modules/iconvme: New file.
102372         * MODULES.html.sh: Add iconvme.
102374 2005-02-22  Simon Josefsson  <jas@extundo.com>
102376         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
102378 2005-02-22  Simon Josefsson  <jas@extundo.com>
102380         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
102382 2005-02-22  Jim Meyering  <jim@meyering.net>
102384         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
102385         s/ifndef/ifdef/.
102387 2005-02-20  Neil Conway  <neilc@samurai.com>
102389         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
102390         returned by OSX/Darwin if the specified buffer is not large
102391         enough for the hostname.
102393 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
102395         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
102396         pass it to _help, otherwise the latter coredumps trying to
102397         dereference state.root_argp.
102399 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
102401         * modules/chdir-long (Depends-on): Add memrchr.
102402         * modules/memrchr (Files): Add lib/memrchr.h.
102403         (Include): "memrchr.h".
102405 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
102407         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
102409 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
102411         * lib/memrchr.h: New file.
102412         * lib/chdir-long.c: Include it.
102413         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
102414         Don't bother including stddef.h.
102416 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
102418         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
102419         inclusion.
102420         Include <sys/types.h>, for dev_t.
102421         (ME_DUMMY, ME_REMOTE): Move from here....
102422         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
102423         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
102424         Dmitry V. Levin.
102425         Include mountlist.h first, to test the interface.
102427 2005-01-29  Bruno Haible  <bruno@clisp.org>
102429         * lib/progname.c (program_name): Initialize.
102430         Needed when linking statically on MacOS X.
102432 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
102434         Sync from coreutils.
102435         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
102436         (Depends-on): Add c-strtod.
102437         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
102439 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
102441         Sync from coreutils.
102442         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
102444         Remove files that are specific to coreutils.
102445         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
102447 2005-01-28  Bruno Haible  <bruno@clisp.org>
102449         * modules/javacomp: New file.
102450         * MODULES.html.sh (Java): Add javacomp.
102452 2005-01-28  Bruno Haible  <bruno@clisp.org>
102454         * m4/javacomp.m4: New file, from GNU gettext.
102456 2005-01-28  Bruno Haible  <bruno@clisp.org>
102458         * lib/javacomp.sh.in: New file, from GNU gettext.
102459         * lib/javacomp.h: New file, from GNU gettext.
102460         * lib/javacomp.c: New file, from GNU gettext.
102462 2005-01-26  Simon Josefsson  <jas@extundo.com>
102464         * lib/gai_strerror.c: Use GPL in header.
102466 2005-01-26  Bruno Haible  <bruno@clisp.org>
102468         * modules/javaexec: New file.
102469         * MODULES.html.sh (Java): Add javaexec.
102471 2005-01-26  Bruno Haible  <bruno@clisp.org>
102473         * m4/javaexec.m4: New file, from GNU gettext.
102475 2005-01-26  Bruno Haible  <bruno@clisp.org>
102477         * lib/javaexec.sh.in: New file, from GNU gettext.
102478         * lib/javaexec.h: New file, from GNU gettext.
102479         * lib/javaexec.c: New file, from GNU gettext.
102481 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
102483         * modules/lchown (Depends-on): Remove lchown.h
102485 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
102487         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
102488         must be defined if the header file was not found, in order
102489         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
102491 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
102493         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
102494         initializers for struct pentry_state.
102495         (__argp_error): Check return value of __asprintf
102496         (__argp_failure): Translate error message
102498         * lib/argp-parse.c: Removed braces around the expansion of N_()
102500 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
102502         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
102503         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
102504         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
102505         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
102506         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
102507         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
102508         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
102509         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
102510         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
102511         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
102512         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
102513         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
102514         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
102515         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
102516         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
102517         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
102518         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
102519         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
102520         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
102521         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
102522         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
102523         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
102524         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
102525         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
102526         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
102527         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
102528         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
102529         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
102530         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
102531         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
102532         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
102533         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
102534         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
102535         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
102536         xstrtol.m4, xstrtoumax.m4, yesno.m4:
102537         Use an all-permissive copyright notice, recommended by RMS.
102539 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
102541         * modules/chdir-long (Depends-on): Remove mempcpy.
102543 2005-01-21  Jim Meyering  <jim@meyering.net>
102545         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
102546         same value as for Solaris 9.
102548         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
102549         component length.  This included changing the parameter to be
102550         of type `char *' rather than `char const *'.
102551         * lib/chdir-long.h (chdir_long): Update prototype.
102553         * lib/openat.c (fdopendir, fstatat): New functions.
102554         * lib/openat.h: Include headers required for use of DIR and struct
102555         stat.
102556         [AT_SYMLINK_NOFOLLOW]: Define.
102557         (fdopendir, fstatat): Add prototypes.
102559 2005-01-21  Bruno Haible  <bruno@clisp.org>
102561         * modules/classpath: New file.
102562         * MODULES.html.sh (Java): Add classpath.
102564 2005-01-21  Bruno Haible  <bruno@clisp.org>
102566         * lib/classpath.h: New file, from GNU gettext.
102567         * lib/classpath.c: New file, from GNU gettext.
102569 2005-01-20  Simon Josefsson  <jas@extundo.com>
102571         * modules/version-etc-fsf: New file.
102573 2005-01-20  Simon Josefsson  <jas@extundo.com>
102575         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
102576         * lib/version-etc.c: Remove version_etc_copyright.
102577         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
102578         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
102580 2005-01-20  Simon Josefsson  <jas@extundo.com>
102582         * lib/base64.h (isbase64): Add.
102584         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
102585         using a unsigned prototype, don't inline.
102586         (base64_decode): Use it.
102588 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
102590         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
102591         it.
102593 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
102595         * lib/save-cwd.c (save_cwd): Remove code to support the case
102596         where fchdir is missing or flaky.
102598 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
102600         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
102602 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
102604         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
102605         AC_LIBSOURCES now does this.
102606         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
102607         with new ullong_max module.
102609 2005-01-19  Bruno Haible  <bruno@clisp.org>
102611         * modules/sh-quote: New file.
102612         * MODULES.html.sh (Executing programs): Add sh-quote.
102614 2005-01-19  Bruno Haible  <bruno@clisp.org>
102616         * lib/sh-quote.h: New file, from GNU gettext.
102617         * lib/sh-quote.c: New file, from GNU gettext.
102619 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
102621         Merge from coreutils.
102622         * m4/ullong_max.m4: New file.
102623         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
102624         (gl_MACROS): Assume localeconv exists.
102626 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
102628         Merge changes from coreutils, as described below in several
102629         changelogs dated today.
102631         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
102632         (O_DIRECTORY): Remove; not needed here, since "." must be
102633         a directory.  All uses removed.
102634         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
102635         universal on Suns, and we also need to test for IRIX.
102636         Revamp code to use 'if' rather than '#if'.
102637         Avoid unnecessary comparison of cwd->desc to 0.
102639         * lib/utimens.c (futimens): Robustify the previous patch, by checking
102640         for known valid error numbers rather than observed invalid ones.
102642 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
102644         * modules/ullong_max: New file.
102646         * modules/chdir-long, modules/openat: New files.
102647         * modules/save-cwd (Depends-on): Depend on chdir-long.
102648         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
102650 2005-01-18  Jim Meyering  <jim@meyering.net>
102652         Merge from coreutils.
102653         * m4/chdir-long.m4, m4/openat.m4: New files.
102654         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
102655         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
102656         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
102657         is sane and DOES follow symlinks.  Besides, testing 20 different
102658         systems found no broken chown implementations.
102659         Prompted by a change in rsync's copy of this macro.
102660         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
102662         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
102664         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
102665         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
102666         NULL-means-set-to-current-time semantics.
102667         Remove temporary file immediately, rather than waiting
102668         for configure's at-exit trap code to do it.
102670 2005-01-18  Jim Meyering  <jim@meyering.net>
102672         * lib/version-etc.c (version_etc_copyright): Update copyright date.
102674         * lib/utimens.c (futimens): Account for the fact that futimes
102675         can also fail with errno == ENOSYS or errno == ENOENT.
102676         Patch from Dmitry V. Levin.
102678         Change the name of the robust chdir function from chdir to chdir_long.
102679         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
102680         (restore_cwd): Use chdir_long, not chdir.
102681         * lib/chdir-long.c: Renamed from chdir.c.
102682         * lib/chdir-long.h: Renamed from chdir.h.
102683         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
102684         Hurd.
102686 2005-01-18  Bruno Haible  <bruno@clisp.org>
102688         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
102689         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
102690         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
102691         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
102692         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
102693         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
102694         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
102695         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
102696         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
102697         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
102698         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
102699         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
102700         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
102701         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
102702         Use an all-permissive copyright notice, recommended by RMS.
102704 2005-01-18  Bob Proulx  <bob@proulx.com>
102706         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
102707         simplify offsetof() macro construct to avoid compile failure with
102708         native HP-UX 11.0 ANSI C compiler.
102710 2005-01-17  Bruno Haible  <bruno@clisp.org>
102712         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
102713         redundant because stpncpy.m4 takes care of it.
102715 2005-01-17  Bruno Haible  <bruno@clisp.org>
102717         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
102719 2005-01-17  Bruno Haible  <bruno@clisp.org>
102721         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
102722         used.
102724 2005-01-17  Bruno Haible  <bruno@clisp.org>
102726         * lib/fwriteerror.h (fwriteerror): Change specification to include
102727         fclose.
102728         * lib/fwriteerror.c: Include <stdbool.h>.
102729         (fwriteerror): At the end, close the file stream. Record whether
102730         stdout was already closed.
102732 2005-01-17  Bruno Haible  <bruno@clisp.org>
102734         * lib/execute.c (environ): Declare if needed.
102735         * lib/pipe.c (environ): Likewise.
102736         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
102738 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
102740         * modules/argp: Depend on vsnprintf
102742 2005-01-10  Jim Meyering  <jim@meyering.net>
102744         * modules/closeout (Depends-on): Add atexit.
102746 2005-01-06  Bruno Haible  <bruno@clisp.org>
102748         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
102750 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
102752         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
102753         definitions to be after all include files, to avoid collisions.
102754         Problem reported by Bob Proulx.
102756 2005-01-04  Jim Meyering  <jim@meyering.net>
102758         Changes imported from coreutils.
102759         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
102760         as the mkstemp template, use a temporary directory and an
102761         8.3-friendly template to avoid trouble on systems like DJGPP.
102762         Reported by Juan M. Guerrero via Stepan Kasal.
102763         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
102764         close. Remove the temporary directory right away, rather than waiting
102765         for configure's at-exit trap code to do it.
102766         Suggestion from Stepan Kasal.
102768 2005-01-01  Simon Josefsson  <jas@extundo.com>
102770         * gnulib-tool: Print #include directives when --import'ing.
102772 2004-12-28  Simon Josefsson  <jas@extundo.com>
102774         * tests/test-base64.c: Include required header files.  Remove
102775         unused variables.
102777 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
102779         * modules/error (Depends-on): Remove gettext.
102781 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
102783         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
102784         not needed.  This removes a dependency on the gettext module.
102785         [defined _LIBC]: Do not include <libintl.h>; not needed.
102787 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
102789         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
102790         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
102792 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
102794         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
102795         HAVE_DECL_STRTOLD.
102797 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
102799         * modules/getdate (Depends-on): Remove alloca-opt.
102801 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
102803         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
102805 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
102807         * lib/argp-parse.c: Include <stddef.h>.
102808         (alignof, alignto): New macros.
102809         (parser_init): Don't assume that void * is aligned sufficiently
102810         for struct option.
102812         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
102813         need to extend the stack.
102814         (YYINITDEPTH): New macro, so that the initial stack isn't overly
102815         large.
102817 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
102819         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
102821 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
102823         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
102824         (2004-10-24) change.  Apparently this was a false alarm.
102826         * modules/getdate: Depend on alloca-opt, not alloca.
102828 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
102830         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
102831         Remove now-obsolete comment about AIX.
102832         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
102833         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
102834         (YYMAXDEPTH): New macro.
102836 2004-12-18  Simon Josefsson  <jas@extundo.com>
102838         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
102840 2004-12-18  Bruno Haible  <bruno@clisp.org>
102842         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
102844 2004-12-18  Bruno Haible  <bruno@clisp.org>
102846         * lib/fatal-signal.c (fatal_signals): Make non-const.
102847         (init_fatal_signals): New function.
102848         (uninstall_handlers, install_handlers): Ignore signals that were set to
102849         SIG_IGN.
102850         (at_fatal_signal): Call init_fatal_signals.
102851         (init_fatal_signal_set): Likewise. Ignore signals that were set to
102852         SIG_IGN.
102853         Reported by Paul Eggert.
102855 2004-12-18  Bruno Haible  <bruno@clisp.org>
102857         * doc/alloca.texi: New file.
102858         * doc/alloca-opt.texi: New file.
102860 2004-12-17  Jim Meyering  <jim@meyering.net>
102862         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
102863         Otherwise, install-sh could exit with improper exit status when
102864         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
102866 2004-12-16  Simon Josefsson  <jas@extundo.com>
102868         * tests/test-base64.c: Add license.
102870 2004-12-15  Stepan Kasal  <address@hidden>
102872         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
102874 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
102876         * modules/getcwd (Files): Add m4/d-ino.m4.
102877         Suggested by Mark D. Baushke.
102879 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
102881         * lib/getdate.y (textint): New member "negative".
102882         (time_zone_hhmm): New function.
102883         Expect 14 shift-reduce conflicts, not 13.
102884         (o_colon_minutes): New rule.
102885         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
102886         (yylex): Set the "negative" member of signed numbers.
102888 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
102890         * doc/getdate.texi (Time of day items, Time zone items):
102891         Describe new formats +00:00, UTC+00:00.
102893 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
102895         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
102896         spurious "-l"s.  Problem reported by Stepan Kasal.
102898 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
102900         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
102901         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
102903 2004-12-04  Simon Josefsson  <jas@extundo.com>
102905         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
102906         Vandoorselaere <yoann@prelude-ids.org>.
102908 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
102910         Changes imported from coreutils.
102911         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
102912         exist.
102913         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
102915 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
102917         Changes imported from coreutils.
102918         * lib/hard-locale.c: Assume <locale.h> exists.
102919         Include "strdup.h".
102920         (GLIBC_VERSION): New macro.
102921         (hard_locale): Assume setlocale exists.
102922         Rewrite to avoid #ifdef.
102923         Use strdup rather than malloc + strcpy.
102924         * lib/human.c: Assume <locale.h> exists.
102925         (human_readable): Assume localeconv exists.
102927 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
102929         * modules/hard-locale (Depends-on): Add strdup.
102931 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
102933         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
102934         convert T2, not T.  (Imported from libc.)
102936 2004-11-30  Simon Josefsson  <jas@extundo.com>
102938         * modules/restrict (License): Change to LGPL.
102940 2004-11-30  Simon Josefsson  <jas@extundo.com>
102942         * m4/restrict.m4: Add copyright and copying conditions.
102944 2004-11-30  Simon Josefsson  <jas@extundo.com>
102946         * m4/base64.m4: New file.
102948 2004-11-30  Simon Josefsson  <jas@extundo.com>
102950         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
102951         base64.
102953         * tests/test-base64.c: New file.
102955         * modules/base64: New file.
102957 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
102959         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
102960         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
102962         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
102964 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
102966         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
102967         (__getcwd.c): Don't restore errno; glibc doesn't.
102968         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
102969         first, falling back to our code only if its results look suspicious.
102970         Ensure that the resulting buffer is only as large as necessary.
102972         * lib/readutmp.c: Include readutmp.h first.
102973         Include <errno.h>, since readutmp.h no longer does that.
102974         * lib/readutmp.h: Don't include <errno.h>,
102975         <sys/param.h>, <time.h>; not needed to establish interface.
102976         (errno): Remove decl.
102977         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
102978         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
102979         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
102981 2004-11-28  Simon Josefsson  <jas@extundo.com>
102983         * lib/base64.h, base64.c: New file.
102985 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
102987         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
102989 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
102991         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
102992         (Depends-on): Remove pathmax, same.  Add mempcpy.
102993         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
102994         (Makefile.am): Append getcwd.h to lib_SOURCES.
102995         (Include): Add getcwd.h.
102996         (Maintainer): Change from Jim Meyering to "all, glibc",
102997         since getdate now uses intended-for-glibc code.
102998         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
102999         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
103001 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
103003         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
103004         HP's ANSI C compiler.
103005         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
103006         Declaring int functions causes warnings on some modern systems and
103007         shouldn't be needed to compile on ancient ones.
103008         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
103009         defined.
103011         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
103012         with the following changes.
103013         (__set_errno): Parenthesize properly.
103014         Include <stdbool.h>.
103015         (MIN, MAX, MATCHING_INO): New macros.
103016         (__getcwd): Define with prototype, not K&R form.
103017         Use heuristics to allocate default buffer on stack if possible.
103018         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
103019         behavior, and to avoid the PATH_MAX limit when computing
103020         ../../../../...
103021         Use MATCHING_INO to compare inode number to file.
103022         Check for arithmetic overflow in size calculations.
103023         Fix bug in reallocation of dot array that caused getcwd to fail
103024         on directories nested deeper than 75.
103025         Be more careful about saving errno on error.
103026         Do not use realloc; use only free+malloc, as this is a bit
103027         more flexible and avoids a needless copy operation.
103028         Do not inspect st_dev and st_ino for symbolic links; POSIX
103029         doesn't specify the latter.
103030         Check for closedir errors.
103031         Avoid needless casts.
103032         Use "#ifdef weak_alias" around weak_alias, to be like other
103033         glibc code.
103034         The following changes to getcwd.c have effect only when used in
103035         gnulib; they have no effect inside glibc proper.
103036         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
103037         as alloca isn't used.
103038         (alloca, __alloca): Likewise.
103039         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
103040         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
103041         unconditionally, as gnulib assumes C89 or better.
103042         Do not include <sys/param.h>.
103043         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
103044         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
103045         better.
103046         (NULL) [!defined NULL]: Remove; we assume C89 or better.
103047         Include <dirent.h> in a way that is compatible with modern Autoconf.
103048         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
103049         New macros, if not already defined.
103050         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
103051         Use "_LIBC", not "defined _LIBC", for consistency.
103052         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
103053         a mempcpy module.
103054         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
103055         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
103056         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
103057         credit only to Jim Meyering and adjust the copyright dates.
103058         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
103059         <stdlib.h>, <unistd.h>, "pathmax.h".
103060         Instead, include "xgetcwd.h" (first) and "getcwd.h".
103061         (INITIAL_BUFFER_SIZE): Remove.
103062         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
103064 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
103066         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
103067         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
103068         Use the _ONCE methods, for efficiency.
103069         Check for fcntl.h.  In test program, include <errno.h>
103070         and <fcntl.h> if available.  Remove old K&R cruft from
103071         test program.  Check for common errors in GNU/Linux,
103072         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
103073         don't do AC_LIBOBJ, as that's getcwd.m4's job.
103074         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
103075         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
103076         name accordingly.
103077         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
103078         accommodate new getcwd.c.
103079         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
103080         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
103081         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
103082         that's all we need now.
103084 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103086         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
103087         argp-parse.c depends on getopt internals, that means we should
103088         always use our getopt, to be on the safe side.
103089         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
103090         order not to spoil the result of an eventual previous invocation
103091         of gl_GETOPT_SUBSTITUTE.
103093 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103095         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
103096         redefinition warnings. To avoid them, include the defines
103097         in `#if !defined __need_getopt ... #endif'. The only place
103098         where __getopt_argv_const is used is in definitions
103099         of getopt_long and getopt_long_only below, which are as well
103100         protected by `#ifndef __need_getopt'.
103101         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
103102         __need_getopt after including <stdio.h> and <unistd.h> These
103103         headers might have defined it.
103105 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
103107         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
103109 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
103111         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
103112         (futimens): New function, which uses futimes if available.
103113         (futimens, utimens): Support timespec==NULL, with same semantics
103114         as utime and utimens.
103115         * lib/utimens.h (futimens): New decl.
103117 2004-11-23  Jim Meyering  <jim@meyering.net>
103119         * lib/getopt_.h: Remove trailing blanks.
103121 2004-11-23  Jim Meyering  <jim@meyering.net>
103123         * lib/__fpending.c: Add comment.
103125 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
103127         * modules/canonicalize (Depends-on): Add xreadlink.
103128         Problem reported by James Youngman.
103130 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
103132         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
103133         New macros.
103134         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
103135         optopt): Use them instead of invoking ## directly; otherwise, the
103136         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
103138 2004-11-19  Bruno Haible  <bruno@clisp.org>
103140         * lib/strtok_r.c: Move comments from here...
103141         * lib/strtok_r.h: ... to here.
103143 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
103145         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
103146         implementations that mishandle size_t overflow.
103148 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
103150         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
103151         might fail.  Problem reported by Yoann Vandoorselaere.
103152         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
103153         implementations that mishandle size_t overflow.
103155 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
103157         * modules/canon-host (Depends-on): Add strdup.
103159 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
103161         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
103163 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
103165         * lib/canon-host.c: Include "strdup.h".
103166         (canon_host): Use getaddrinfo if available, so that IPv6 works.
103167         Use strdup instead of malloc/strcpy to duplicate strings.
103169         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
103170         (human_space_before_unit): New constant.
103171         * lib/human.c (human_readable): Support it.
103173         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
103174         (xgetcwd): Set errno correctly when failing.
103175         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
103176         the failure is actually due to a PATH_MAX problem.
103178         Further getopt changes to make it more likely that glibc will
103179         buy the changes back.
103180         * lib/getopt.c (POSIXLY_CORRECT): New constant.
103181         (getopt): Use it, so to preserve glibc semantic
103182         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
103183         when compiling for libc.
103184         * lib/getopt_.h (__getopt_argv_const): Bring it back.
103185         (getopt_long, getopt_long_only): Use it.
103187         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
103188         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
103189         (getopt): Argv is now char * const *, as per standard.
103190         (_getopt_internal_r, _getopt_internal): Argv is now char **,
103191         not char *__getopt_argv_const *.
103192         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
103193         _getopt_long_only_r): Likewise.
103194         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
103195         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
103196         _getopt_long_r, _getopt_long_only_r): Likewise.
103197         * lib/getopt_.h (__getopt_argv_const): Remove.
103198         (getopt): Argv is now char * const *, as per standard.
103200         * lib/getdate.y (tORDINAL): New token.
103201         (day, relunit): Allow it for relative times.
103202         (relative_time_table): Use tORDINAL for ordinals.
103204 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
103206         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
103207         Document that "second" isn't allowed as an ordinal number.
103209 2004-11-16  Jim Meyering  <jim@meyering.net>
103211         * modules/closeout (Depends-on): Add fpending.
103213 2004-11-15  Jim Meyering  <jim@meyering.net>
103215         * lib/closeout.c: Include "__fpending.h" once again.
103216         Include <stdbool.h>.
103217         (close_stdout): Don't fail just because stdout was closed initially,
103218         since some programs don't write to stdout in the normal course of
103219         operation (other than --version and --help), and we don't want this
103220         function to make e.g. `touch file >&-' fail.
103221         But do fail if it was closed and someone has tried to write to it.
103222         E.g., `printf foo >&-' must fail.
103224 2004-11-13  Jim Meyering  <jim@meyering.net>
103226         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
103228 2004-11-12  Simon Josefsson  <jas@extundo.com>
103230         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
103231         small doc fix is still pending.
103233 2004-11-11  Simon Josefsson  <jas@extundo.com>
103235         * modules/strtok_r: New file.
103237         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
103238         strtok_r.
103240 2004-11-11  Simon Josefsson  <jas@extundo.com>
103242         * m4/strtok_r.m4: New file.
103244         * m4/getopt.m4: Replace opterr.
103246 2004-11-11  Simon Josefsson  <jas@extundo.com>
103248         * lib/strtok_r.h, strtok_r.c: New file.
103250 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
103252         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
103253         of replacing opterr, getopt, etc.  This should handle the
103254         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
103256 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
103258         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
103259         we can stop lying to compilers about the constness of argv when we
103260         are compiled outside glibc.
103261         (getopt, getopt_long, getopt_long_only): Use it.
103262         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
103263         _getopt_internal, getopt): Likewise.
103264         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
103265         _getopt_long_only_r): Likewise.
103266         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
103267         _getopt_long_r, _getopt_long_only_r): Likewise.
103269         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
103270         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
103271         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
103272         the other external symbols.
103273         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
103274         declaration, since the above renaming now works around collisions.
103276 2004-11-11  Jim Meyering  <jim@meyering.net>
103278         * lib/linebreak.c: Remove trailing blanks.
103279         * lib/alloca_.h: Likewise.
103280         * lib/acosl.c: Likewise.
103281         * lib/euidaccess.c: Likewise.
103282         * lib/allocsa.h: Likewise.
103284 2004-11-10  Simon Josefsson  <jas@extundo.com>
103286         * m4/getaddrinfo.m4: New file.
103288 2004-11-10  Simon Josefsson  <jas@extundo.com>
103290         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
103292 2004-11-10  Simon Josefsson  <jas@extundo.com>
103294         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
103295         getaddrinfo.
103297         * modules/getaddrinfo: New file.
103299 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
103301         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
103303 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
103305         * lib/mktime.c (SHR): New macro, which is a portable
103306         substitute for >> that should work even on Crays.
103307         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
103308         Problem reported by Mark D. Baushke in
103309         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
103310         * lib/getdate.y (SHR): Likewise.
103311         (tm_diff): Use it.
103312         * lib/strftime.c (SHR): Likewise.
103313         (tm_diff): Use it.
103314         * lib/quotearg.c (struct quoting_options): Use unsigned int for
103315         quote_these_too, so that right shifts are well defined.  All uses
103316         changed.
103318 2004-11-10  Jim Meyering  <jim@meyering.net>
103320         Ensure that no close failure goes unreported.
103321         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
103322         return early when it seems there's nothing to flush.
103323         Don't include __fpending.h.
103325 2004-11-10  Jim Meyering  <jim@meyering.net>
103327         * modules/closeout (Depends-on): Remove fpending.
103329 2004-11-10  Jim Meyering  <jim@meyering.net>
103331         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
103333 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
103335         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
103336         gl_FUNC_STRFTIME.
103337         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
103338         and AC_REQUIRE when possible, to avoid duplicate checks.
103339         Check for <wchar.h>.
103341 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
103343         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
103345 2004-11-09  Bruno Haible  <bruno@clisp.org>
103347         * m4/sockpfaf.m4: New file.
103349 2004-11-05  Bruno Haible  <bruno@clisp.org>
103351         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
103352         Reported by Mark D. Baushke <mdb@cvshome.org>.
103354 2004-11-04  Bruno Haible  <bruno@clisp.org>
103356         2004-09-11  Bruno Haible  <bruno@clisp.org>
103357                 * allocsa.valgrind: New file.
103358         2004-02-06  Bruno Haible  <bruno@clisp.org>
103359                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
103360                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
103361                 Reported by Christopher Seip <chris.seip@hp.com>.
103363 2004-11-04  Bruno Haible  <bruno@clisp.org>
103365         * modules/allocsa (Files): Add lib/allocsa.valgrind.
103366         (Makefile.am): Distribute it.
103368 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
103370         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
103371         with errno == ERANGE if the buffer is too small.
103372         Problem reported by Mark D. Baushke.
103374 2004-11-03  Albert Chin  <china@thewrittenword.com>
103375             Paul Eggert  <eggert@cs.ucla.edu>
103377         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
103378         equivalent, substitute $ac_type for equivalent type rather than
103379         blindly using uint32_t *always* which won't work if uint32_t is not
103380         available.  Define _UINT32_T to work around typedef of uint32_t if
103381         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
103382         2.5.1.
103384 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
103386         * m4/jm-macros.m4: Sync from coreutils.
103387         (gl_MACROS): Check for mbrlen, for pathchk.
103388         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
103390 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
103392         * lib/xreadlink.c (MAXSIZE): New macro.
103393         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
103394         size does not exceed MAXSIZE.  Avoid cast.
103395         As suggested by Mark D. Baushke in
103396         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
103397         if readlink fails with buffer size just under MAXSIZE, try again
103398         with MAXSIZE.
103400 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
103402         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
103404 2004-11-02  Derek R. Price  <derek@ximbiot.com>
103405         and  Paul Eggert  <eggert@cs.ucla.edu>
103407         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
103408         (get_date): Overparenthesize to avoid GCC warning.
103410 2004-11-02  Bruno Haible  <bruno@clisp.org>
103412         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
103413         returns void.
103415 2004-11-02  Bruno Haible  <bruno@clisp.org>
103417         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
103418         function returns void.
103420 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
103422         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
103423         fflush_unlocked, flockfile, funlockfile, funlockfile,
103424         fputs_unlocked, putc_unlocked.
103426 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
103428         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
103429         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
103430         already declared.
103432 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
103434         * modules/getdate (Files): Add doc/getdate.texi.
103435         (Depends-on): Add setenv, xalloc.
103437 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
103439         * lib/getdate.y: Add support for TZ="foo" within a date string.
103440         Fix some bugs near time_t boundaries.  Reject dates with
103441         out-of-range components, e.g., "Sept 31".
103442         Include <stdlib.h>, "setenv.h", "xalloc.h".
103443         (ISDIGIT_LOCALE): Remove; unused.
103444         Note that the TZ and time functions used here are not reentrant.
103445         (mktime_ok, get_tz): New functions.
103446         (TZBUFSIZE): New constant.
103447         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
103448         This requires that we sometimes generate our own TZ="XXX..." setting.
103450 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
103452         * doc/getdate.texi: New file, from coreutils with modifications for
103453         the new TZ parsing.
103455 2004-10-27  Derek R. Price  <derek@ximbiot.com>
103457         * lib/mktime.c (not_equal_tm): Remove redundant check.
103459 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
103461         * modules/regex (lib_SOURCES): Add regex.c.
103462         Reported by James Youngman in
103463         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
103465 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
103467         * lib/getdate.y: Use Bison 1.875 features, and some minor
103468         code cleanups.  This change does not affect semantics.
103469         Don't include <stdlib.h>; no longer needed.
103470         Don't include unlocked-io.h; only the "#if TEST" code uses
103471         stdio, and performance isn't crucial there.
103472         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
103473         Bison 1.875 features as described below.
103474         All uses of "PC." replaced by "pc->".
103475         (YYSTYPE): Add a forward declaration.
103476         (yylex, yyerror): Use full prototypes in forward decls.
103477         Use "%pure-parser" rather than obsolescent "%pure_parser".
103478         Use %parse-param and %lex-param instead of obsolescent
103479         YYPARSE_PARAM and YYLEX_PARAM.
103480         (meridian_table, month_and_day_table, time_units_table,
103481         relative_time_table, time_zone_table, military_table,
103482         lookup_zone, lookup_word, get_date):
103483         Use NULL instead of 0 where appropriate.
103484         (to_hour): Avoid abort (), to avoid a dependency on
103485         stdlib.h.
103486         (yyerror, yylex): Now accepts parser_control * arg.
103487         (main) [TEST]: Use '\0' rather than 0 for char.
103489 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
103491         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
103493 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
103495         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
103496         It's now the caller's responsibility to handle the case where
103497         !HAVE_GETPAGESIZE && !defined getpagesize.
103499         * lib/mktime.c (leapyear): Arg is long int, not int.
103501 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
103503         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
103505 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
103507         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
103508         missing.  Problem reported by James Youngman.
103510 2004-10-16  Simon Josefsson  <jas@extundo.com>
103512         * gnulib-tool: Fix comments.  Fix parse problem.
103513         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
103515 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
103517         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
103518         implementation of getopt_long.  Problem reported by Alexander Taler in:
103519         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
103521 2004-10-15  Bruno Haible  <bruno@clisp.org>
103523         * gnulib-tool: Untabify. Initialize supplied_libname.
103524         (func_usage): More homogenous output.
103525         (func_modules_transitive_closure, func_modules_to_filelist,
103526         func_emit_lib_Makefile_am): New functions.
103527         (func_import): New function, extracted from big case statement. Use
103528         func_get_license, func_modules_transitive_closure,
103529         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
103530         opt_lgpl. Don't use test -a, as it's not portable.
103531         (func_create_testdir): Use func_modules_transitive_closure,
103532         func_modules_to_filelist, func_emit_lib_Makefile_am.
103534 2004-10-15  Bruno Haible  <bruno@clisp.org>
103536         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
103538 2004-10-15  Bruno Haible  <bruno@clisp.org>
103540         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
103541         the portions belonging to each module.
103542         Suggested by Derek Robert Price <derek@ximbiot.com>.
103544 2004-10-12  Simon Josefsson  <jas@extundo.com>
103546         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
103547         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
103548         to real functions.
103550 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
103552         * modules/vsnprintf: New file.
103554 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
103556         * m4/vsnprintf.m4: New file.
103558 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
103560         * lib/vsnprintf.h: New file.
103561         * lib/vsnprintf.c: New file.
103563 2004-10-11  Bruno Haible  <bruno@clisp.org>
103565         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
103566         vsnprintf.
103568 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
103570         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
103572 2004-10-07  Bruno Haible  <bruno@clisp.org>
103574         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
103575         fits into the provided buffer.
103577 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
103579         * lib/diacrit.c, diacrit.h: Add GPL notice.
103581         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
103582         notice.
103583         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
103584         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
103585         This avoids a potential constant-folding bug.
103587 2004-10-05  Bruno Haible  <bruno@clisp.org>
103589         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
103590         for the declaration of strsep.
103592 2004-10-05  Bruno Haible  <bruno@clisp.org>
103594         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
103596 2004-10-04  Simon Josefsson  <jas@extundo.com>
103598         * modules/memmem: New file.
103599         * tests/test-memmem.c: New file.
103600         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
103602 2004-10-04  Simon Josefsson  <jas@extundo.com>
103604         * m4/memmem.m4: New file.
103606 2004-10-04  Simon Josefsson  <jas@extundo.com>
103608         * lib/memmem.h: New file.
103609         * lib/memmem.c: New file, taken from glibc.
103611 2004-10-04  Simon Josefsson  <jas@extundo.com>
103613         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
103614         '#ifdef USE_UNLOCKED_IO'.
103616 2004-10-04  Simon Josefsson  <jas@extundo.com>
103618         * config/srclist.txt: Add memmem from glibc.
103620 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
103622         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
103624         * modules/argmatch, modules/argp, modules/closeout, modules/error,
103625         modules/exclude, modules/getdate, modules/getline,
103626         modules/getndelim2, modules/getpass, modules/getpass-gnu,
103627         modules/getusershell, modules/linebuffer, modules/md5,
103628         modules/mountlist, modules/posixtm, modules/readtokens,
103629         modules/readutmp, modules/regex, modules/sha1,
103630         modules/version-etc, modules/yesno:
103631         Remove dependency on unlocked-io.
103633 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
103635         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
103637         * m4/unlocked-io.m4: Add copyright notice.
103638         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
103640 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
103642         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
103643         * lib/xmalloc.c (xmemdup): Likewise.
103644         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
103645         XFREE): Remove these long-obsolescent macros.
103646         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
103647         * lib/xstrdup.c: Remove.
103649         * lib/regex.c (re_comp): Cast gettext return value to char *,
103650         Problem reported by Martin Neitzel via Mark D. Baushke.
103652 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
103654         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
103655         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
103656         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
103657         regex.c, sha1.c, version-etc.c, yesno.c:
103658         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
103659         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
103660         the includer's responsibility.
103662         Sync from coreutils.
103664         * lib/modechange.c (mode_compile): Don't decrement a pointer that
103665         points to the start of a string, as the C Standard says the
103666         resulting behavior is undefined.
103668         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
103669         simple -> simple_backups, numbered_existing ->
103670         numbered_existing_backups, numbered -> numbered_backups
103671         to avoid shadowing problems.  All uses changed.
103672         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
103673         * lib/backupfile.c (check_extension, numbered_backup):
103674         Rename locals to avoid shadowing 'basename'.
103675         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
103676         once.
103678         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
103679         * lib/.cvsignore: Add getopt.h.
103681 2004-10-04  Bruno Haible  <bruno@clisp.org>
103683         * modules/README: New file.
103684         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
103685         not a module.
103687 2004-10-02  Jim Meyering  <jim@meyering.net>
103689         * lib/dirfd.h, getpagesize.h: Add copyright notice.
103691 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
103693         * modules/strsep: New file.
103695 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
103697         * m4/strsep.m4: New file.
103699 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
103701         * lib/strsep.h: New file.
103702         * lib/strsep.c: New file.
103704 2004-10-01  Simon Josefsson  <jas@extundo.com>
103706         * lib/snprintf.c (snprintf): Handle size==0.
103708 2004-10-01  Simon Josefsson  <jas@extundo.com>
103709             Bruno Haible  <bruno@clisp.org>
103711         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
103712         (snprintf): Declare 'args'.
103714 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
103716         * lib/snprintf.c: Remove comments as to why each header is needed.
103718 2004-10-01  Bruno Haible  <bruno@clisp.org>
103720         * MODULES.html.sh: Add strsep.
103722 2004-09-30  Simon Josefsson  <jas@extundo.com>
103724         * modules/snprintf: New file.
103726 2004-09-30  Simon Josefsson  <jas@extundo.com>
103728         * m4/snprintf.m4: New file.
103730 2004-09-30  Simon Josefsson  <jas@extundo.com>
103732         * lib/snprintf.h, lib/snprintf.c: New files.
103734 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
103736         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
103737         (hol_entry_help): Never translate an empty string.
103738         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
103739         * lib/argp.h (OPTION_NO_TRANS): New option.
103741 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
103743         * modules/argp (Maintainer): Replace Simon Josefsson
103744         by Sergey Poznyakoff.
103746 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
103748         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
103749         changes merged back into glibc.
103751 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
103753         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
103755 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
103757         * lib/xvasprintf.c: Include xalloc.h.
103758         (xvasprintf): Use xalloc_die, not xmalloc_die.
103760 2004-09-29  Bruno Haible  <bruno@clisp.org>
103762         * modules/alloca-opt: New file, derived from modules/alloca.
103763         * modules/allocsa: Depend on alloca-opt instead of alloca.
103764         * modules/setenv: Likewise.
103765         * modules/vasnprintf: Likewise.
103766         * MODULES.html.sh: Add alloca-opt.
103768 2004-09-28  Simon Josefsson  <jas@extundo.com>
103770         * gnulib-tool: New parameter --lgpl, to asseert that modules are
103771         LGPL, and to replace license template from GPL to LGPL.
103773 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
103775         * modules/dummy: Change license to LGPL.
103777 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
103779         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
103781 2004-09-24  Simon Josefsson  <jas@extundo.com>
103783         * modules/minmax (License): Change from GPL to LGPL.
103785 2004-09-23  Simon Josefsson  <jas@extundo.com>
103787         * gnulib-tool (--import): Typo.
103789 2004-09-23  Simon Josefsson  <jas@extundo.com>
103791         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
103793 2004-09-22  Bruno Haible  <bruno@clisp.org>
103795         * modules/*: Add 'License' field.
103796         * gnulib-tool: Accept --extract-license option.
103797         (func_get_license): New function.
103799 2004-09-21  Bruno Haible  <bruno@clisp.org>
103801         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
103802         Reported by Simon Josefsson.
103804 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
103806         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
103807         gl_AC_TYPE_LONG_LONG.
103809 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
103811         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
103813 2004-09-18  Simon Josefsson  <jas@extundo.com>
103814         and  Paul Eggert  <eggert@cs.ucla.edu>
103816         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
103817         calls with autoreconf.  Define GL_LIB.
103819 2004-09-14  Karl Berry  <karl@gnu.org>
103821         * config/srclist.txt: unsync setenv.c, sigh.
103823 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
103825         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
103826         Problem reported by Bruno Haible in:
103827         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
103829 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
103831         * config/srclist.txt: Comment out argp-pvh.c.
103833 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
103835         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
103836         in case some system header has #define'd it.  Problem reported by
103837         Soeren D. Schulze in
103838         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
103840 2004-09-09  Karl Berry  <karl@gnu.org>
103842         * regex.[ch]: delete from the root.  These were supposed to be
103843                 synced with emacs cvs, but this has not happened for about
103844                 a year, and anyway nothing else uses emacs regex.[ch].
103845                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
103846                 lib/regex[.ch] is untouched.
103848 2004-09-09  Bruno Haible  <bruno@clisp.org>
103850         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
103852 2004-09-09  Bruno Haible  <bruno@clisp.org>
103854         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
103855         modifications.
103856         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
103858 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
103860         * modules/xvasprintf: New file.
103861         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
103863 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
103865         * lib/xvasprintf.h: New file.
103866         * lib/xvasprintf.c: New file.
103867         * lib/xasprintf.c: New file.
103869 2004-09-08  Bruno Haible  <bruno@clisp.org>
103871         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
103873 2004-09-08  Bruno Haible  <bruno@clisp.org>
103875         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
103876         length is > INT_MAX.
103877         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
103878         more.
103880 2004-09-08  Bruno Haible  <bruno@clisp.org>
103882         * lib/stdint_.h: New file, taken from GNU clisp.
103884 2004-09-08  Bruno Haible  <bruno@clisp.org>
103885             Oskar Liljeblad  <oskar@osk.mine.nu>
103887         * modules/stdint: New file.
103888         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
103890 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
103892         Import from coreutils.
103893         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
103894         strings on unbounded length.  alloca's performance benefits aren't
103895         that important here.
103896         (V_STRDUP): Remove.
103897         (parse_with_separator): New function, with most of the internals
103898         of the old parse_user_spec.  Allow user to omit both user and group,
103899         for compatibility with FreeBSD.
103900         Clone only the user name, not the entire spec.
103901         Do not set *uid, *gid unless entirely successful.
103902         Avoid memory leak in some failing cases.
103903         Fix regression for USER.GROUP reported by Dmitry V. Levin in
103904         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
103905         (parse_user_spec): Rewrite to use parse_with_separator.
103907 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
103909         * modules/userspec: Don't depend on alloca.
103911 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
103913         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
103915 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
103917         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
103918         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
103919         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
103921 2004-08-16  Simon Josefsson  <jas@extundo.com>
103923         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
103924         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
103925         Add --dry-run for --import.
103926         Let user provided command line parameters override configure.ac
103927         settings.
103929 2004-08-12  Simon Josefsson  <jas@extundo.com>
103931         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
103932         as discussed with Paul Eggert in threads rooted at
103933         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
103934         and
103935         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
103936         Before, the test was empty, and relied on ELIDE_CODE in source
103937         code.)
103938         (gl_PREREQ_GETOPT): New macro.
103939         (gl_GETOPT): Use them.
103941 2004-08-12  Simon Josefsson  <jas@extundo.com>
103943         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
103944         * lib/getopt_.h: Renamed from getopt.h.
103946 2004-08-12  Simon Josefsson  <jas@extundo.com>
103948         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
103949         Change default library name from libfoo to libgnu.
103950         Now, if you have a configure.ac that says:
103951                 gl_SOURCE_BASE(gl)
103952                 gl_M4_BASE(gl/m4)
103953                 gl_MODULES(error getopt etcetera)
103954                 gl_INIT
103955         you can import all you need by running:
103956                 ../gnulib/gnulib-tool --import
103958         * modules/getopt (Files): Rename getopt.h to getopt_.h.
103959         (Makefile.am): Rewrite, use logic from argz.
103960         (Include): Use <getopt.h> instead of "getopt.h".
103962 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
103964         * modules/argp (Files): Add m4/unlocked-io.m4.
103965         (Depends-on): Add extensions.
103967 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
103969         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
103970         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
103971         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
103972         Check for program_invocation_name, program_invocation_short_name,
103973         flockfile, funlockfile, features.h, _getopt_long_only_r.
103975 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
103977         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
103978         its complicated substitute.
103979         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
103980         and program_invocation_name.
103981         (__argp_basename) [!_LIBC]: Remove; the only use was
103982         replaced by its body.
103983         (__argp_short_program_name): Change condition from
103984         !defined __argp_short_program_name to
103985         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
103986         to match argp-namefrob.h.
103987         (__argp_failure): Don't assume strerror_r returns char *.
103988         * lib/argp-parse.c (N_): Define unconditionally.
103989         (argp_default_options): Fill out initializers with 0 to avoid
103990         gcc warnings.
103992 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
103994         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
103995         getopt1.c.
103997 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
103999         Merge from coreutils.
104001         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
104003         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
104004         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
104006 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
104008         Merge from coreutils.
104010         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
104011         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
104012         for Reliant Unix 5.43.
104014         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
104015         (union fooround): Use uintmax_t, not long int.
104016         The rest is a merge from libc:
104017         [defined _LIBC]: Include <shlib-compat.h>.
104018         (_obstack) [defined _LIBC]: Remove after 2.3.4.
104020         * lib/settime.c (settime): Recode to avoid warning with
104021         Sun Forte C 6U2.
104023         * lib/strverscmp.c: Convert to UTF-8.
104025 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
104027         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
104028         m4/uintmax_t.m4.
104030 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
104032         * modules/xalloc-die: New file.
104033         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
104035         * modules/md5 (Files): Add m4/uint32_t.m4.
104036         * modules/sha1: Renamed from modules/sha.
104037         (Files):
104038         Rename lib/sha.h to lib/sha1.h.
104039         Rename lib/sha.c to lib/sha1.c.
104040         Rename m4/sha.m4 to m4/sha1.m4.
104041         (lib_SOURCES): Likewise.
104042         (configure.ac): Rename gl_SHA to gl_SHA1.
104043         (Include): sha.h -> sha1.h.
104045 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
104047         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
104048         * m4/sha1.m4: Renamed from sha.m4.
104049         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
104051 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
104053         * lib/obstack.h (obstack_empty_p):
104054         Don't assume that chunk->contents is suitably aligned.
104055         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
104056         Likewise. Problem reported by Benno in
104057         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
104059         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
104060         readable.  This could be improved further but it'd take some work.
104062 2004-08-08  Simon Josefsson  <jas@extundo.com>
104064         * modules/xgethostname (Depends-on): Remove exit and error (not
104065         used).
104067         * modules/getpass-gnu: Add getpass.h.
104068         (Depends-on): Add stdbool.
104069         * modules/getpass: Add getpass.h.
104071 2004-08-08  Simon Josefsson  <jas@extundo.com>
104073         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
104074         Check getpass declaration.
104076 2004-08-08  Simon Josefsson  <jas@extundo.com>
104078         * lib/xgethostname.c: Don't include error.h (not used).
104080         * lib/getpass.h: Add.
104081         * lib/getpass.c: Include getpass.h first.
104083 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
104085         * lib/xalloc-die.c: New file.
104086         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
104087         All uses removed.
104088         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
104089         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
104090         xalloc-die.c.
104091         (_, N_, xalloc_die): Move to xalloc-die.c.
104092         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
104093         so that we needn't mess with xalloc_msg_memory_exhausted.
104095         * lib/sha1.h: Renamed from sha.h.
104096         (SHA1_H): Renamed from _SHA_H.
104097         (sha1_ctx): Renamed from sha_ctx.
104098         (sha1_init_ctx): Renamed from sha_init_ctx.
104099         (sha1_process_block): Renamed from sha_process_block.
104100         (sha1_process_bytes): Renamed from sha_process_bytes.
104101         (sha1_finish_ctx): Renamed from sha_finish_ctx.
104102         (sha1_read_ctx): Renamed from sha_read_ctx.
104103         (sha1_stream): Renamed from sha_stream.
104104         (sha1_buffer): Renamed from sha_buffer.
104105         * lib/sha1.c: Likewise; renamed from sha.c.
104106         Do not include <sys/types.h>.
104107         Include <stddef.h> rather than <stdlib.h>.
104109 2004-08-08  Bruno Haible  <bruno@clisp.org>
104111         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
104112         FILESYSTEM_PREFIX_LEN.
104113         * lib/progreloc.c: Likewise.
104114         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
104116 2004-08-06  Simon Josefsson  <jas@extundo.com>
104118         * modules/progname (Depends-on): Don't depend on stdbool.
104120 2004-08-06  Simon Josefsson  <jas@extundo.com>
104122         * modules/getsubopt: New file.
104123         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
104124         getsubopt.
104126 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
104128         More merge from coreutils.
104130         * m4/utimens.m4, m4/utimecmp.m4: New files.
104131         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
104132         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
104133         prereq.m4, sha.m4: Import changes from coreutils.
104135 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
104137         More merge from coreutils.
104138         * modules/raise, modules/readtokens0, modules/utimens:
104139         * modules/utimecmp, module/xnanosleep: New files.
104140         * modules/strftime: Add lib/strftime.h.
104141         Change include from <time.h> to "strftime.h".
104142         * modules/yesno: Add lib/yesno.h.
104143         * modules/backupfile: Remove lib/addext.c.
104144         * modules/euidaccess: Add stat-macros.h.
104145         * modules/canonicalize, modules/euidaccess,
104146         modules/filemode, modules/lchown, modules/makepath,
104147         modules/rmdir, modules/stat: Likewise.
104149 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
104151         Merge from tar.
104152         * lib/argp-help.c (make_hol, hol_append): Don't assume that
104153         SIZE_MAX is a valid preprocessor constant.
104154         (__argp_basename): Change from "#ifndef _LIBC"
104155         to "#ifndef __argp_short_program_name", so that
104156         we don't compile these functions for tar.
104158         More merges from coreutils.
104159         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
104160         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
104161         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
104162         * lib/addext.c: Remove; no longer needed.
104163         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
104164         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
104165         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
104166         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
104167         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
104168         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
104169         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
104170         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
104171         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
104172         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
104173         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
104174         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
104175         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
104176         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
104177         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
104178         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
104179         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
104180         Import changes from coreutils.
104182 2004-08-05  Simon Josefsson  <jas@extundo.com>
104184         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
104186 2004-08-05  Simon Josefsson  <jas@extundo.com>
104188         * m4/getsubopt.m4: New file.
104190 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
104192         Merge from coreutils.
104194         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
104195         * m4/getcwd-path-max.m4: New files.
104197         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
104198         FILESYSTEM_PREFIX_LEN ->
104199         FILE_SYSTEM_PREFIX_LEN.
104200         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
104201         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
104202         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
104203         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
104205         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
104206         prerequisite modules now handle the DOS stuff.
104207         Don't check for unistd.h.
104209 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
104211         Merge from coreutils.
104213         * lib/.gdb-history: Remove; this doesn't belong here.
104215         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
104216         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
104217         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
104218         * lib/getcwd.c: New files.
104220         * lib/dirname.h: Include <stdbool.h>.
104221         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
104222         for consistency with POSIX terminology.  All uses changed.
104223         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
104224         (strip_trailing_slashes): Use bool for booleans.
104225         * lib/stripslash.c (strip_trailing_slashes): Likewise.
104227         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
104228         sometimes returns a positive errno value even when it succeeds.
104229         (print_errno_message) [!LIBC]: Fall back on strerror if
104230         __strerror_r fails.
104232         * lib/path-concat.c (mempcpy): Don't define if a system header defines
104233         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
104234         (longest_relative_suffix): New function.
104235         (path_concat): Use it.  Assume first argument is not NULL.
104236         Port to DOS.  Omit redundant separators.
104237         Report an error instead of returning NULL.
104238         Use mempcpy instead of memcpy.
104239         (xpath_concat): Remove: not declared or used.
104241         * lib/same.h: Include <stdbool.h>
104242         (same_name): Return bool, not int.
104243         * lib/same.c (same_name): Likewise.
104244         (errno): Don't declare; we assume C89 or better now.
104246         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
104247         if not already defined.
104249         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
104250         * lib/dup-safer.c (errno): Likewise.
104252 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
104254         Merge from coreutils.
104255         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
104256         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
104257         * modules/path-concat: Don't depend on strdup.
104259 2004-08-03  Simon Josefsson  <jas@extundo.com>
104261         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
104262         * lib/progname.h: Don't include stdbool.h.
104264 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
104266         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
104267         * MODULES.html.sh (func_all_modules): Remove fatal.
104269 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
104271         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
104273 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
104275         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
104276         working.
104278 2004-08-02  Simon Josefsson  <jas@extundo.com>
104280         * lib/getsubopt.h: New file, with comments from Bruno Haible.
104281         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
104282         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
104284 2004-08-01  Simon Josefsson  <jas@extundo.com>
104286         * lib/xgetdomainname.c: Include stdlib.h, for free().
104288 2004-07-19  Bruno Haible  <bruno@clisp.org>
104290         * MODULES.html.sh (func_all_modules): Add dummy.
104292 2004-07-16  Simon Josefsson  <jas@extundo.com>
104294         * modules/dummy: New file.
104296 2004-07-16  Simon Josefsson  <jas@extundo.com>
104298         * lib/dummy.c: New file.
104300 2004-07-16  Bruno Haible  <bruno@clisp.org>
104302         * lib/backupfile.h: Add extern "C" for C++.
104303         * lib/closeout.h: Likewise.
104304         * lib/copy-file.h: Likewise.
104305         * lib/findprog.h: Likewise.
104306         * lib/full-write.h: Likewise.
104307         * lib/pathname.h: Likewise.
104308         * lib/progname.h: Likewise.
104309         * lib/stpcpy.h: Likewise.
104310         * lib/stpncpy.h: Likewise.
104311         * lib/strcase.h: Likewise.
104312         * lib/strstr.h: Likewise.
104313         * lib/xalloc.h: Likewise.
104315         * lib/mbswidth.h: Add extern "C" for C++.
104316         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
104318 2004-07-13  Robert Millan  <robertmh@gnu.org>
104320         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
104322 2004-07-09  Simon Josefsson  <jas@extundo.com>
104324         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
104325         failed without this.)
104327 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
104329         * modules/chown (Files): Add lib/fchown-stub.c, since
104330         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
104332 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
104334         * lib/fchown-stub.c: New file.
104336 2004-06-24  Jim Meyering  <jim@meyering.net>
104338         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
104340 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
104342         * modules/argz: Omit "#include".
104344         * MODULES.html.sh (func_all_modules): Add calloc, to match
104345         2004-06-01 addition of calloc module.
104347 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
104349         * m4/argz.m4: New file, which is autoupdated from libtool.
104351 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
104353         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
104354         libtool.
104356 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
104358         * config/srclist-update: Don't insist on "USA." before the
104359         close-comment, as libtool omits the period and puts the */ on a
104360         separate line.
104361         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
104362         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
104364 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
104366         * modules/argz: New file.
104367         * MODULES.html.sh (func_all_modules): Add argz.
104369 2004-06-12  Jim Meyering  <jim@meyering.net>
104370         and  Paul Eggert  <eggert@cs.ucla.edu>
104372         * modules/hash (Files): Add lib/xalloc.h.
104373         * modules/pipe (Depends-on): Add wait-process.
104374         * modules/stat (Depends-on): Add xalloc.
104375         * modules/userspec (Files): Add lib/userspec.h.
104376         * modules/xstrto
104378         Upgrade from gettext-0.13.
104379         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
104380         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
104381         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
104383 2004-06-10  Jim Meyering  <jim@meyering.net>
104385         * lib/calloc.c: New file.
104387 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
104389         * lib/getdate.y (yylex): Allow space between sign and number.
104390         Problem reported by Dan Jacobson.
104392 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
104394         Merge from coreutils CVS.
104396         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
104397         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
104398         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
104399         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
104400         xstrtol.m4: Fix copyright date and/or serial number.
104402         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
104403         See if we need an fchown replacement.
104404         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
104405         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
104406         and use the replacement function if we detect either defect.
104408         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
104409         gl_UTIMECMP.
104411 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
104412         and  Jim Meyering  <jim@meyering.net>
104414         Merge from coreutils CVS.
104416         * lib/stat-macros.h: New file, with contents from file-type.h
104417         and coreutils' system.h.
104418         * lib/file-type.c: Include "stat-macros.h".
104419         * lib/file-type.h (file_type): Move all macro definitions to new file,
104420         stat-macros.h.
104422         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
104423         Wrap old code with this conditional.
104424         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
104425         function that does not dereference symlinks.
104426         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
104428         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
104429         dependency problems.
104430         (xreadlink): Accept new arg SIZE, for efficiency.
104431         All decls and uses changed.
104432         * lib/xreadlink.h: Include <stddef.h>, for size_t.
104434         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
104435         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
104437         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
104438         sysexits.h.
104440 2004-06-01  Jim Meyering  <jim@meyering.net>
104442         * m4/calloc.m4: New file.
104444 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
104446         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
104447         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
104448         Also, fix a typo in a diagnostic.
104450 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
104452         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
104453         or AC_FUNC_REALLOC.
104455 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
104457         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
104458         macros to be defined.
104459         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
104460         the allocator returns NULL because the requested size is zero.
104462 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
104464         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
104465         var.  Add comment explaining why libc still defines it.  This
104466         merges the following patch from glibc:
104467         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
104469 2004-05-20  Andreas Schwab  <schwab@suse.de>
104471         * m4/free.m4: Replace free if it not known to work, not the other
104472         way round.
104474 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
104476         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
104477         present in glibc since revision 1.1 of this file.
104478         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
104479         obstack_alignment_mask, obstack_alloc, obstack_base,
104480         obstack_blank, obstack_blank_fast, obstack_chunk_size,
104481         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
104482         obstack_grow0, obstack_init, obstack_int_grow,
104483         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
104484         obstack_next_free, obstack_object_size, obstack_ptr_grow,
104485         obstack_ptr_grow_fast, obstack_room): Remove declarations of
104486         nonexistent functions.
104488 2004-05-18  Karl Berry  <karl@gnu.org>
104490         * config/srclist.txt: break link for vasnprintf.c.
104492 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
104494         Port obstack to the AS/400, where pointers are 16 bytes wide and
104495         you cannot cast an integer to a valid pointer.  This patch is
104496         currently waiting to be integrated into glibc; see
104497         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
104499         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
104500         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
104501         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
104502         (struct obstack): temp member is now a union of a pointer and
104503         an integer, instead of an integer.  All integer uses changed.
104504         This does not affect the physical layout of struct obstack,
104505         except on hosts (like the AS/400) where the size or alignment of
104506         void * is greater than that of ptrdiff_t.
104507         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
104508         __STDC__)]: Store temporary in pointer member of union, not
104509         integer member.
104510         * lib/obstack.c: Include <stddef.h>, for offsetof.
104511         (struct fooalign): Remove; it doesn't need a name.
104512         (union fooround): Change double to long double, and add void *.
104513         (DEFAULT_ALIGNMENT): Use offsetof to compute.
104514         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
104515         not a macro.  Hence the values are always int; so remove all
104516         casts-to-int in uses.
104518 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
104520         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
104521         we can get this patch merged into glibc.
104523 2004-05-17  Derek R. Price  <derek@ximbiot.com>
104524             Paul Eggert  <eggert@cs.ucla.edu>
104526         * m4/argp: Depend on alloca.
104528 2004-05-17  Derek R. Price  <derek@ximbiot.com>
104529             Paul Eggert  <eggert@cs.ucla.edu>
104531         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
104532         freecoding.
104534 2004-05-17  Bruno Haible  <bruno@clisp.org>
104536         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
104537         precision that consists of a '.' followed by an empty digit string.
104538         Patch by Tor Lillqvist <tml@iki.fi>.
104540 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
104542         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
104543         for backward compatibility with older code.  We need our own
104544         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
104545         it under some other name, and our alloca.h will define it.
104547 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
104548             Derek Price  <derek@ximbiot.com>
104550         * lib/alloca.c: Include <alloca.h>, to get our interface.
104551         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
104552         include <alloca.h> first.  Use C89 prototype for alloca; this
104553         requires including <stddef.h> for size_t.  Use extern "C" if C++.
104554         Use #elif for simplicity, since we can assume C89 now.
104555         Don't try to source the system alloca.h since it will not be found
104556         and to prevent recursively including its replacement.
104557         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
104558         * lib/regex.c: Likewise.
104560 2004-05-16  Derek Price  <derek@ximbiot.com>
104561             Paul Eggert  <eggert@cs.ucla.edu>
104563         getline cleanup.  This changes the getndelim2 API: both order of
104564         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
104565         no delimiter).
104567         * lib/getline.c: Don't include stddef.h or stdio.h, since our
104568         interface does that.
104569         (getline): Always use getdelim, so that we don't have two
104570         copies of this code.
104571         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
104572         if available.
104573         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
104574         (GETNDELIM2_MAXIMUM): New macro.
104575         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
104576         instead of the old practice of delim2==0.  All callers changed.
104577         Return -1 on overflow, instead of returning junk.
104578         Do not set *linesize unless allocation succeeds.
104579         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
104580         that we include sys/types.h.
104581         * lib/getnline.h: Likewise.
104582         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
104583         (getndelim2): Reorder arguments.
104584         * lib/getnline.c (getnline, getndelim):
104585         Don't discard the NMAX argument.
104586         (getnline): Invoke getndelim, to avoid code duplication.
104587         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
104588         of (size_t) -1 by callers of the getnline family.
104590 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
104592         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
104593         Check for gettimeofday.
104594         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
104595         Check for settimeofday, stime.
104597 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
104599         * lib/nanosleep.c (suspended): Change its type from int to
104600         sig_atomic_t volatile.
104601         (first_call): Make it private to rpl_nanosleep, and have it
104602         be zero initially as that's a bit faster.
104603         (my_usleep): Round up fractional times instead of truncating them,
104604         as this is the usual meaning for 'sleep'.
104606         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
104607         doesn't work.
104608         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
104609         (ENOSYS): Define if not defined.
104610         (settime): Fall back on stime if it exists and settimeofday fails.
104611         But don't bother with fallbacks if a method fails with errno == EPERM.
104613 2004-05-11  Jim Meyering  <jim@meyering.net>
104615         Prior to this change, the save_cwd caller required read access to the
104616         current directory on most systems (ones with the fchdir function).
104618         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
104619         fails, try write-only, and finally, resort to using xgetcwd.
104621 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
104623         * lib/obstack.c, obstack.h: Import changes from libc.
104625 2004-04-28  Bruno Haible  <bruno@clisp.org>
104627         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
104628         also implicitly appends .exe to executables.
104629         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
104630         accepts Windows pathnames.
104631         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
104632         Treat Cygwin like Windows, since it now accepts Windows pathnames.
104633         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
104634         Treat Cygwin like Windows, since it now accepts Windows pathnames.
104635         Reported by Derek Robert Price <derek@ximbiot.com>.
104637 2004-04-21  Karl Berry  <karl@gnu.org>
104639         * config/srclist.txt (localcharset.c): break sync.
104641 2004-04-20  Paul Eggert  <eggert@twinsun.com>
104643         * m4/host-os.m4: Add a copyright notice.
104645 2004-04-20  Jim Meyering  <jim@meyering.net>
104647         Change UTILS_ to gl_ in AC_DEFINE'd names.
104648         Change utils_- and jm_-prefixed variables, too.
104649         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
104650         UTILS_FUNC_MKDIR_TRAILING_SLASH.
104651         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
104653         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
104654         Don't emit trailing blanks.
104655         Also rename jm_-prefixed variables to have gl_ prefix.
104657         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
104658         Also rename jm_-prefixed variables to have gl_ prefix.
104660         * m4/jm-macros.m4: Reflect the renamings.
104661         * m4/prereq.m4: Likewise.
104663 2004-04-20  Jim Meyering  <jim@meyering.net>
104665         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
104666         memory.
104668 2004-04-20  Jim Meyering  <jim@meyering.net>
104669             Bruno Haible  <bruno@clisp.org>
104671         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
104672         memory when realloc fails.
104674 2004-04-19  Jim Meyering  <jim@meyering.net>
104676         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
104677         now that readutmp.c may call `free (0)'.
104679 2004-04-19  Bruno Haible  <bruno@clisp.org>
104681         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
104682         * m4/inttypes_h.m4: Likewise.
104683         * m4/stdint_h.m4: Likewise.
104684         * m4/intmax_t.m4: Likewise.
104685         * m4/uintmax_t.m4: Likewise.
104687 2004-04-18  Jim Meyering  <jim@meyering.net>
104689         * m4/prereq.m4: Don't forbid jm_ prefix.
104691         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
104692         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
104693         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
104694         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
104695         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
104696         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
104697         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
104698         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
104699         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
104700         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
104701         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
104702         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
104703         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
104704         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
104705         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
104706         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
104707         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
104708         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
104709         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
104711 2004-04-18  Jim Meyering  <jim@meyering.net>
104713         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
104714         failure, don't leak memory and do call END_UTMP_ENT.
104716 2004-04-16  Jim Meyering  <jim@meyering.net>
104718         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
104719         coreutils' stat program.
104720         (gl_PREREQ): Don't require jm_PREREQ_STAT.
104722 2004-04-11  Paul Eggert  <eggert@twinsun.com>
104724         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
104725         C89.
104726         (CHAR_BIT): Remove, since we assume C89.
104727         Include <stdint.h> if available, as per current Autoconf CVS advice.
104729 2004-03-31  Jim Meyering  <jim@meyering.net>
104731         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
104732         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
104733         * m4/xalloc.m4: Likewise.
104735 2004-03-30  Paul Eggert  <eggert@twinsun.com>
104737         Merge from coreutils.
104739         * m4/inttostr.m4: New file.
104740         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
104741         Require AM_STDBOOL_H and gl_TIMESPEC instead.
104742         Require gl_CLOCK_TIME.
104743         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
104745 2004-03-30  Paul Eggert  <eggert@twinsun.com>
104747         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
104748         not bool, to be more consistent with Unix conventions.
104749         Suggested by Bruno Haible.
104751         Merge from coreutils.
104753         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
104754         * lib/umaxtostr.c: New files.
104756         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
104757         the usual <time.h> dance.
104758         (get_date): Change signature to support fractional time stamps.
104759         All callers changed.
104760         * lib/getdate.y: Include "getdate.h" first, as we can now
104761         assume C89 and don't need to worry about 'const'.
104762         Similarly, include "unlocked-io.h" near start, not in middle.
104763         Include <limits.h>.
104764         (textint.value): Use long int rather than int.
104765         (textint.digits): Use size_t rather than int.
104766         (BILLION, LOG10_BILLION): New constants.
104767         (parser_control): New member rel_ns.  Members day_ordinal,
104768         time_zone, month, day, hour, minutes, rel_year, rel_month,
104769         rel_day, rel_hour, rel_minutes, rel_seconds
104770         are now long int, not int.  Member seconds is now struct timespec,
104771         not int.  New member timespec_seen.  Members dates_seen, days_seen,
104772         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
104773         not int.
104774         (%union.intval): Now long int, not int.
104775         New member timespec.
104776         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
104777         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
104778         (spec): Now is a timespec or an item list.
104779         (timespec, items): New nonterminals.
104780         (time, rel, relunit, number, get_date):
104781         Add support for fractional seconds.
104782         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
104783         (gmtime, localtime, mktime): Remove decls; not needed with C89.
104784         (to_hour): First arg is now long int, not int.
104785         (to_year): Returns long int, not int.
104786         Don't treat year -70 like 70.
104787         (tm_diff): Returns long int, not int.
104788         (lookup_word): Use bool instead of int when appropriate.
104789         (yylex): Use size_t for count, not int.
104790         Detect overflow when parsing large integer constants.
104791         Add support for fractions.
104792         (get_date): Make pointers 'const' if possible.
104793         Use more-portable code to detect integer overflow.
104794         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
104795         Don't use ctime; it's not reliable if the year has >4 digits.
104797         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
104798         This is for compatibility with BSD.
104800         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
104801         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
104802         From coreutils' system.h.
104804         * lib/userspec.c: Don't include "posixver.h".
104805         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
104806         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
104807         compatible extension.  Simplify code by removing a boolean int
104808         that was always nonzero if a string was nonnull.
104810 2004-03-30  Jim Meyering  <jim@meyering.net>
104812         Merge from coreutils.
104814         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
104815         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
104816         on some systems one must include <grp.h> before it.
104817         Reported by Christian Krackowizer.
104819 2004-03-30  Jim Meyering  <jim@meyering.net>
104821         Merge from coreutils.
104823         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
104825         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
104826         an empty input stream.
104828         * lib/readtokens.c: Include <stdbool.h>.
104829         (readtoken): Use `size_t' rather than int/long.
104830         All callers adjusted.
104831         Use `bool' rather than `int' where appropriate.
104832         Use memset rather than an explicit loop.
104833         Use x2nrealloc rather than xrealloc.
104834         Allow the use of `\0' as a delimiter.
104835         (readtokens): Likewise.
104836         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
104838 2004-03-30  Jim Meyering  <jim@meyering.net>
104840         * m4/realloc.m4: Remove file, since now it does no more than
104841         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
104842         the `configure.ac' section of module/realloc.
104843         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
104845 2004-03-30  Bruno Haible  <bruno@clisp.org>
104847         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
104848         nonnull.
104850 2004-03-29  Paul Eggert  <eggert@twinsun.com>
104852         Merge changes to getloadavg.c from coreutils and Emacs.
104854         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
104855         Define to an expression, not to the empty string.
104856         Include cloexec.h and xalloc.h.
104857         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
104858         Use set_cloexec_flag rather than rolling our own.
104859         * lib/cloexec.c, lib/cloexec.h: New files.
104861 2004-03-29  Paul Eggert  <eggert@twinsun.com>
104863         * m4/cloexec.m4: New file.
104865 2004-03-18  Paul Eggert  <eggert@twinsun.com>
104867         * lib/getopt.h: Sync with libc CVS.
104869 2004-03-18  Paul Eggert  <eggert@twinsun.com>
104870             Bruno Haible  <bruno@clisp.org>
104872         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
104873         mbswidth.
104875 2004-03-18  Paul Eggert  <eggert@twinsun.com>
104876             Bruno Haible  <bruno@clisp.org>
104878         * lib/mbswidth.h: Include <wchar.h> only if
104879         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
104880         <wchar.h>.
104881         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
104883 2004-03-09  Paul Eggert  <eggert@twinsun.com>
104885         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
104886         Sync with libc CVS.
104887         * lib/getopt_int.h: New file, also synced from libc.
104889 2004-03-09  Paul Eggert  <eggert@twinsun.com>
104891         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
104892         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
104893         Bring back getopt.c, getopt.h, getopt1.c.
104895 2004-03-07  Paul Eggert  <eggert@twinsun.com>
104897         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
104898         All uses changed.  Check for sa_sigaction member; this fixes
104899         a bug first reported by Jason Andrade in
104900         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
104902 2004-03-07  Paul Eggert  <eggert@twinsun.com>
104904         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
104905         '#if' expressions.  Unlike the code it replaces, it does not
104906         depend on (defined _SC_PAGESIZE).  However, it does depend on
104907         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
104908         first reported by Jason Andrade in
104909         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
104911 2004-02-25  Simon Josefsson  <jas@extundo.com>
104913         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
104915 2004-02-25  Simon Josefsson  <jas@extundo.com>
104917         * lib/strdup.h: New file.
104918         * lib/strdup.c: Include it.
104919         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
104920         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
104922 2004-02-23  Karl Berry  <karl@gnu.org>
104924         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
104925         (from fencepost.gnu.org:/gd/gnuorg).
104927 2004-02-23  Karl Berry  <karl@gnu.org>
104929         * config/srclistvars.sh (GNUORG) [karl]: redefine.
104930         * config/srclist.txt: add maintain/standards documents.
104932 2004-02-18  Bruno Haible  <bruno@clisp.org>
104934         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
104935         Reported by Derek Robert Price <derek@ximbiot.com>.
104937 2004-02-16  Karl Berry  <karl@gnu.org>
104939         * config/mkinstalldirs, install-sh: update from automake.
104941 2004-02-06  Karl Berry  <karl@gnu.org>
104943         * m4/po.m4: update from gettext 0.14.1.
104945 2004-02-06  Karl Berry  <karl@gnu.org>
104947         * lib/config.charset: update from gettext 0.14.1.
104949 2004-02-05  Paul Eggert  <eggert@twinsun.com>
104951         Add comments and code, prompted by suggestions from Bruno Haible
104952         for sh-quote.
104953         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
104954         describing the enum quoting_style values.
104955         * lib/quotearg.c (quotearg_alloc): New function.
104956         (quotearg_buffer_restyled): Treat lone { and } as special.
104957         Treat = as special.  Work around bug with older shells
104958         that "see" a '\' that is really the 2nd byte of a multibyte char.
104959         Quote empty string with shell_quoting_style.
104961 2004-02-03  Bruno Haible  <bruno@clisp.org>
104963         * m4/pipe.m4: New file, from GNU gettext.
104965 2004-02-03  Bruno Haible  <bruno@clisp.org>
104967         * lib/pipe.h: New file, from GNU gettext.
104968         * lib/pipe.c: New file, from GNU gettext.
104970 2004-01-27  Bruno Haible  <bruno@clisp.org>
104972         * m4/execute.m4: New file, from GNU gettext.
104974 2004-01-27  Bruno Haible  <bruno@clisp.org>
104976         * lib/execute.h: New file, from GNU gettext.
104977         * lib/execute.c: New file, from GNU gettext.
104978         * lib/w32spawn.h: New file, from GNU gettext.
104980 2004-01-24  Paul Eggert  <eggert@twinsun.com>
104982         Merge from diffutils.
104984         * lib/file-type.c (file_type): Add typed memory objects.
104985         * lib/file-type.h (S_TYPEISTMO): New macro.
104987         * lib/c-stack.h (c_stack_action): Remove argv argument.
104988         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
104989         (die): Don't calculate message unless segv_action returns.
104990         (get_stack_location, min_address_from_argv, max_address_from_argv,
104991         volatile stack_base, volatile_stack_size): Remove.
104992         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
104993         that every segmentation violation is a stack overflow.  (Ouch!)
104994         See Debian bug 136249 (still outstanding) for more info about why
104995         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
104997 2004-01-24  Paul Eggert  <eggert@twinsun.com>
104999         Exit-status fix from coreutils.
105001         Use exit_failure consistently in place of EXIT_FAILURE,
105002         so that program exit statuses are consistent on failure.
105004         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
105005         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
105006         * lib/argmatch.h: Comment fix to match the above.
105007         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
105008         Now a macro referring to exit_failure, instead of a separate
105009         variable.  Include "exitfail.h" to get it.
105010         * lib/xstrtol.h: Include "exitfail.h".
105011         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
105013         * lib/long-options.c (parse_long_options): Use prototype
105014         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
105015         for clarity.
105017 2004-01-21  Jim Meyering  <jim@meyering.net>
105019         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
105020         so as not to conflict with a different-sized __mktime_internal
105021         function in GNU libc.
105022         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
105023         Problem building statically-linked `ls' reported by Michael Brunnbauer.
105025 2004-01-20  Karl Berry  <karl@gnu.org>
105027         * config/config.guess: update from config.
105029         * config/srclistvars.sh: GNUWWWLICENSES for karl.
105031 2004-01-20  Bruno Haible  <bruno@clisp.org>
105033         Safer stack allocation.
105034         * lib/setenv.c: Include allocsa.h.
105035         (alloca): Remove fallback definition.
105036         (freea): Remove macro.
105037         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
105038         instead of freea.
105040 2004-01-20  Bruno Haible  <bruno@clisp.org>
105042         * m4/eealloc.m4: New file, from GNU gettext.
105044 2004-01-20  Bruno Haible  <bruno@clisp.org>
105046         * m4/allocsa.m4: New file, from GNU gettext.
105048 2004-01-20  Bruno Haible  <bruno@clisp.org>
105050         * lib/xallocsa.h: New file, from GNU gettext.
105051         * lib/xallocsa.c: New file, from GNU gettext.
105053 2004-01-20  Bruno Haible  <bruno@clisp.org>
105055         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
105057 2004-01-20  Bruno Haible  <bruno@clisp.org>
105059         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
105060         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
105061         specially.
105063 2004-01-20  Bruno Haible  <bruno@clisp.org>
105065         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
105066         patch.
105068 2004-01-20  Bruno Haible  <bruno@clisp.org>
105070         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
105072 2004-01-20  Bruno Haible  <bruno@clisp.org>
105074         * lib/eealloc.h: New file.
105076 2004-01-20  Bruno Haible  <bruno@clisp.org>
105078         * lib/binary-io.h: Avoid warnings on Cygwin.
105080 2004-01-20  Bruno Haible  <bruno@clisp.org>
105082         * lib/allocsa.h: New file, from GNU gettext.
105083         * lib/allocsa.c: New file, from GNU gettext.
105085 2004-01-18  Karl Berry  <karl@gnu.org>
105087         * doc/gpl.texi, doc/lgpl.texi: new files.
105089 2004-01-18  Karl Berry  <karl@gnu.org>
105091         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
105092         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
105094 2004-01-15  Paul Eggert  <eggert@twinsun.com>
105096         Merge from coreutils.
105098         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
105099         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
105100         (gl_DEFAULT_POSIX2_VERSION): Move
105101         the documentation from 'configure' into 'config.hin',
105102         so that 'configure --help' isn't burdened by it and
105103         we don't have to worry about its formatting there.
105104         Reword the documentation so that it's more succinct
105105         and can be run together into a single paragraph.
105106         * m4/same.m4 (gl_SAME): Check for pathconf.
105108 2004-01-15  Paul Eggert  <eggert@twinsun.com>
105110         Merge from coreutils.
105112         * lib/posixver.c: Include posixver.h.
105114         * lib/same.c: Include <stdbool.h>, <limits.h>.
105115         (_POSIX_NAME_MAX): Define if not defined.
105116         (MIN): New macro.
105117         (same_name): If file names are silently truncated, report
105118         that the file names are the same if they are the same after
105119         the silent truncation.
105121         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
105122         conversion function.
105123         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
105124         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
105125         longer needed.
105127 2004-01-15  Jim Meyering  <jim@meyering.net>
105129         Merge from coreutils.
105131         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
105132         if no library is required.
105133         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
105134         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
105135         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
105136         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
105137         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
105138         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
105139         value, $ac_cv_search_crypt, if it's "none required".
105140         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
105141         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
105142         not gl_FUNC_GETLOADAVG.
105143         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
105144         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
105146 2004-01-15  Jim Meyering  <jim@meyering.net>
105148         Merge from coreutils.
105150         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
105151         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
105152         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
105154         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
105155         optional configure-time default.
105157         * lib/version-etc.c (version_etc_copyright): Update copyright date.
105159         * lib/xreadlink.c (xreadlink): Correct outdated comment.
105161 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
105163         Merge from coreutils.
105165         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
105166         value, $ac_cv_search_nanosleep, if it's "none required".
105168 2004-01-14  Paul Eggert  <eggert@twinsun.com>
105170         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
105171         with like-named macro in fnmatch.c.
105172         (EXT): Use an internal constant instead.
105174         Merge fnmatch patches from glibc.
105175         * lib/fnmatch.c (mbsinit): Remove define.
105176         Add libc_hidden_ver (__fnmatch, fnmatch).
105177         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
105178         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
105180 2004-01-14  Karl Berry  <karl@gnu.org>
105182         * config/install-sh: update from automake.
105184 2004-01-13  Karl Berry  <karl@gnu.org>
105186         * config/install-sh: update from automake.
105188 2004-01-09  Karl Berry  <karl@gnu.org>
105190         * config/install-sh: update from automake.
105192 2004-01-05  Karl Berry  <karl@gnu.org>
105194         * config/config.{sub,guess}: update from config.
105196 2003-12-31  Karl Berry  <karl@gnu.org>
105198         * config/depcomp: update from automake.
105200 2003-12-14  Karl Berry  <karl@gnu.org>
105202         * lib/config.charset: update from gettext-runtime.
105204 2003-12-03  Paul Eggert  <eggert@twinsun.com>
105206         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
105207         Bug reported by Alfred M. Szmidt.
105209 2003-12-03  Bruno Haible  <bruno@clisp.org>
105211         * m4/gettext.m4: Upgrade from gettext-0.13.
105212         * m4/po.m4: Upgrade from gettext-0.13.
105213         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
105214         * m4/intmax.m4: New file, from gettext-0.13.
105215         * m4/printf-posix.m4: New file, from gettext-0.13.
105217 2003-11-29  Karl Berry  <karl@gnu.org>
105219         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
105221 2003-11-25  Paul Eggert  <eggert@twinsun.com>
105222             Bruno Haible  <bruno@clisp.org>
105224         * lib/printf-parse.h: Don't include sys/types.h.
105225         (ARG_NONE): New macro.
105226         (char_directive): Change type of *arg_index fields to size_t.
105227         * lib/printf-parse.c: Don't include sys/types.h.
105228         (SSIZE_MAX): Remove macro.
105229         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
105230         Remove unnecessary overflow check.
105231         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
105232         fields.
105234 2003-11-25  Bruno Haible  <bruno@clisp.org>
105236         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
105238 2003-11-25  Bruno Haible  <bruno@clisp.org>
105240         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
105241         gt_TYPE_SSIZE_T.
105243 2003-11-24  Paul Eggert  <eggert@twinsun.com>
105245         * modules/alloca: Remove dependency on xalloc.
105247 2003-11-24  Paul Eggert  <eggert@twinsun.com>
105249         * lib/alloca.c: Remove dependency on xalloc module.
105250         (xalloc_die): Remove.
105251         (memory_full) [!defined emacs]: New macro.
105252         [!defined emacs]: Don't include xalloc.h.
105253         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
105254         address arithmetic overflows.  Change datatypes a bit to avoid
105255         unnecessary casts.
105257 2003-11-22  Jim Meyering  <jim@meyering.net>
105259         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
105260         s/size/size_t/.
105262 2003-11-21  Karl Berry  <karl@gnu.org>
105264         * config/config.{sub,guess}: update from config.
105266 2003-11-18  Karl Berry  <karl@gnu.org>
105268         * config/config.{sub,guess}: update from config.
105270         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
105272 2003-11-17  Paul Eggert  <eggert@twinsun.com>
105274         * README: Mention that S+T cannot overflow if S is the size of
105275         an existing object and T is sufficiently small.
105277 2003-11-17  Jim Meyering  <jim@meyering.net>
105279         On systems without utime and without a utimes function capable of
105280         dealing with a NULL struct utimbuf* argument, this utime replacement
105281         could -- in unusual circumstances -- leak a file descriptor.
105282         * lib/utime.c: Include <unistd.h> and <errno.h>.
105283         (utime_null): Be sure to close `fd' and to preserve errno.
105284         Reported by Geoff Collyer via Arnold Robbins.
105286 2003-11-17  Bruno Haible  <bruno@clisp.org>
105288         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
105289         (Depends-on): Add xsize.
105291 2003-11-17  Bruno Haible  <bruno@clisp.org>
105293         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
105295 2003-11-17  Bruno Haible  <bruno@clisp.org>
105297         * lib/vasnprintf.c (alloca): Remove fallback definition.
105298         (freea): Remove definition.
105299         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
105300         Reported by Paul Eggert.
105302 2003-11-16  Paul Eggert  <eggert@twinsun.com>
105303             Bruno Haible  <bruno@clisp.org>
105305         Protect against address arithmetic overflow.
105306         * lib/printf-args.h: Include stddef.h.
105307         (arguments): Change type of field 'count' to size_t.
105308         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
105309         'unsigned int' where appropriate.
105310         * lib/printf-parse.h: Include sys/types.h.
105311         (char_directive): Change type of *arg_index fields to ssize_t.
105312         (char_directives): Change type of fields 'count', max_*_length to
105313         size_t.
105314         * lib/printf-parse.c: Include sys/types.h and xsize.h.
105315         (SSIZE_MAX): Define fallback value.
105316         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
105317         instead of 'int' where appropriate. Check a_allocated, d_allocated
105318         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
105319         * lib/vasnprintf.c: Include xsize.h.
105320         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
105321         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
105322         overflow. Avoid wraparound when converting a width or precision from
105323         decimal to binary.
105325 2003-11-16  Bruno Haible  <bruno@clisp.org>
105327         Update from GNU gettext.
105328         * lib/printf-parse.c: Generalize to it can be compiled for wide
105329         strings.
105330         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
105331         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
105332         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
105333         SNPRINTF): New macros.
105334         Don't include <alloca.h> if the file is used inside libintl.
105335         (local_wcslen): New function, for Solaris 2.5.1.
105336         (VASNPRINTF): Use it instead of wcslen.
105338 2003-11-16  Bruno Haible  <bruno@clisp.org>
105340         * lib/xsize.h (xmax): New function.
105341         (xsum, xsum3, xsum4): Declare as "pure" functions.
105343 2003-11-12  Paul Eggert  <eggert@twinsun.com>
105345         * modules/xalloc (Files): Undo latest change, since xalloc.h
105346         no longer needs SIZE_MAX or PTRDIFF_MAX.
105348 2003-11-12  Paul Eggert  <eggert@twinsun.com>
105350         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
105351         gl_PTRDIFF_MAX.
105353 2003-11-12  Paul Eggert  <eggert@twinsun.com>
105355         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
105356         "return", to pacify some unknown compiler.  Problem reported
105357         by Joerg Schilling.
105359 2003-11-12  Paul Eggert  <eggert@twinsun.com>
105361         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
105362         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
105363         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
105364         heuristic is just as accurate as far as we know, and it removes a
105365         dependency on size_max.m4 and ptrdiff_max.m4.
105367 2003-11-11  Bruno Haible  <bruno@clisp.org>
105369         * modules/xsize (Files): Add m4/size_max.m4.
105370         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
105372 2003-11-11  Bruno Haible  <bruno@clisp.org>
105374         * m4/size_max.m4: New file.
105375         * m4/ptrdiff_max.m4: New file.
105376         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
105377         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
105378         (gl_XALLOC): Invoke it.
105380 2003-11-11  Bruno Haible  <bruno@clisp.org>
105382         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
105383         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
105384         defined.
105386 2003-11-10  Paul Eggert  <eggert@twinsun.com>
105388         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
105389         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
105390         rejected some allocations of exactly SIZE_MAX - 2 bytes.
105391         From Bruno Haible.
105392         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
105393         not (size_t) -1, since it's defined here.
105395 2003-11-09  Karl Berry  <karl@gnu.org>
105397         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
105399 2003-11-06  Paul Eggert  <eggert@twinsun.com>
105401         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
105402         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
105403         Reject sizes of exactly SIZE_MAX bytes.
105404         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
105405         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
105407 2003-11-05  Bruno Haible  <bruno@clisp.org>
105409         * lib/xsize.h: Include limits.h, to avoid a possible collision with
105410         SIZE_MAX defined in <limits.h> on Solaris.
105412 2003-11-04  Jim Meyering  <jim@meyering.net>
105414         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
105415         variable names, rather than @VAR@.
105416         * modules/poll: Likewise.
105418 2003-11-04  Bruno Haible  <bruno@clisp.org>
105420         * modules/xsize: New file.
105421         * modules/linebreak: Depend on xsize.
105422         * MODULES.html.sh (func_all_modules): Add xsize.
105424 2003-11-04  Bruno Haible  <bruno@clisp.org>
105426         * m4/xsize.m4: New file.
105428 2003-11-04  Bruno Haible  <bruno@clisp.org>
105430         * lib/xsize.h: New file.
105431         * lib/linebreak.c: Include xsize.h.
105432         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
105433         argument for overflow.
105434         Suggested by Paul Eggert.
105436 2003-11-03  Karl Berry  <karl@gnu.org>
105438         * config/config.{guess,sub}: update from config.
105440 2003-11-03  Jim Meyering  <jim@meyering.net>
105442         * modules/userspec (lib_SOURCES): Add userspec.h.
105443         (Include): Add "userspec.h".
105444         Improve description.
105446 2003-11-03  Jim Meyering  <jim@meyering.net>
105448         * lib/userspec.c: Include "userspec.h".
105449         * lib/userspec.h: New file.
105451 2003-11-03  Bruno Haible  <bruno@clisp.org>
105453         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
105455 2003-11-03  Bruno Haible  <bruno@clisp.org>
105457         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
105458         available, to avoid (extremely rare) race condition.
105459         Suggested by Paul Eggert.
105461 2003-11-02  Karl Berry  <karl@gnu.org>
105463         * config/srclist.txt (vasprintf.c): sync broken, sigh.
105465 2003-10-31  Paul Eggert  <eggert@twinsun.com>
105467         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
105468         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
105469         (read_filesystem_list): Set and use me_type_malloced.
105470         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
105471         whatever the type happens to be), for brevity and consistency.
105472         Check for size calculation overflow on Alphas running OSF/1.
105474 2003-10-31  Jim Meyering  <jim@meyering.net>
105476         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
105478         * lib/linebuffer.c: Include <string.h> for declaration of memset.
105480 2003-10-30  Paul Eggert  <eggert@twinsun.com>
105481             Bruno Haible  <bruno@clisp.org>
105483         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
105484         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
105486 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
105488         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
105489         netbsd*-gnu*.  Suggested by Robert Millan.
105491 2003-10-29  Paul Eggert  <eggert@twinsun.com>
105493         * modules/group-member: Depend on stdbool.
105495 2003-10-29  Paul Eggert  <eggert@twinsun.com>
105497         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
105499 2003-10-29  Paul Eggert  <eggert@twinsun.com>
105501         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
105502         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
105503         after the 'gnu' in these cases.  This fixes some bugs in the
105504         previous change, and is based on suggestions by Robert Millan.
105506 2003-10-29  Paul Eggert  <eggert@twinsun.com>
105508         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
105509         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
105510         no longer needed.
105511         * lib/quotearg.c (quotearg_n_options): Use it.
105512         * lib/group-member.c: Include <stdbool.h>.
105513         (free_group_info): Arg is now const *; don't free arg.
105514         (get_group_info): Now returns bool and accepts struct group_info *,
105515         rather than returning a malloc'ed struct group_info *.
105516         All uses changed.  Check for overflow in internal size calculation.
105518         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
105519         rather than xmalloc/xrealloc.
105520         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
105521         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
105522         conformance bug: the old code used a pointer after freeing the
105523         storage that it addressed.
105524         * lib/hash.c (hash_initialize): Simplify the code by using
105525         xalloc_oversized rather than doing it by hand.
105526         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
105527         the buffer preserved.  Use free and xmalloc instead.
105528         * lib/quotearg.c (quotearg_n_options): Likewise.
105529         Use a simpler test for size overflow.  Don't use xalloc_oversized
105530         because unsigned int might be wider than size_t (!); this suggests
105531         that we should switch from unsigned int to size_t for slot numbers.
105533 2003-10-28  Paul Eggert  <eggert@twinsun.com>
105535         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
105536         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
105537         NetBSD kernels.  Requested by Richard Stallman.
105539 2003-10-27  Paul Eggert  <eggert@twinsun.com>
105541         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
105542         to allocate the returned structure.  Do not allocate a subarray,
105543         as x2nrealloc will do that.
105544         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
105545         instead of xnrealloc.
105546         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
105548 2003-10-27  Bruno Haible  <bruno@clisp.org>
105550         * lib/stdbool_.h: Better support for BeOS.
105552 2003-10-26  Paul Eggert  <eggert@twinsun.com>
105554         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
105555         now uses inline.
105557 2003-10-26  Paul Eggert  <eggert@twinsun.com>
105559         * lib/xalloc.h (xalloc_oversized): New static inline function, for
105560         callers that want to do their own size-overflow checking.  Include
105561         <stdbool.h>, since xalloc_oversized returns bool.
105562         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
105563         to use xalloc_oversized.
105565         Add two functions x2realloc, x2nrealloc, for programs that grow
105566         arrays dynamically by doubling their sizes.
105567         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
105568         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
105569         New functions.
105571         Port to C99 semantics for 'inline' of external functions.
105572         Bug reported by Bruno Haible.
105573         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
105574         with the old contents of xnmalloc.
105575         (xnmalloc, xmalloc): Use it.
105576         (xnrealloc_inline): New static inline function,
105577         with the old contents of xnrealloc.
105578         (xnrealloc, xrealloc): Use it.
105580         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
105581         that.
105583 2003-10-26  Karl Berry  <karl@gnu.org>
105585         * config/srclist.txt (COPYING.DOC): no longer available from
105586         /gd/gnuorg; don't know where the ultimate source is.
105588 2003-10-25  Paul Eggert  <eggert@twinsun.com>
105590         Fix several address-calculation bugs in the hash modules,
105591         plus some minor code cleanup.
105593         * lib/hash.h: Include <stdbool.h>, for bool.
105594         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
105595         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
105596         hash_get_n_entries, hash_get_max_bucket_length,
105597         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
105598         hash_rehash): Use size_t rather than unsigned.
105599         * lib/hash.c (struct hash_table, hash_get_n_buckets,
105600         hash_get_n_buckets_used, hash_get_n_entries,
105601         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
105602         hash_get_entries, hash_do_for_each, hash_string, is_prime,
105603         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
105604         Likewise.
105605         (SIZE_MAX): Define if not defined.
105606         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
105607         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
105608         hash_print):
105609         Use const * when possible.
105610         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
105611         (check_tuning): Fix bug: if tuning parameters were very close to
105612         0 or 1, rounding errors could have caused subscript violations.
105613         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
105614         (hash_initialize): Add 'fail:' label
105615         to free table and return NULL, and use it to simplify code.
105616         Use calloc rather than clearing the storage ourself.
105617         (hash_initialize, hash_rehash): Check for arithmetic overflow in
105618         buffer size calculations.
105619         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
105620         Include <stddef.h>, for size_t.
105621         * lib/hash-pjw.c (hash_pjw): Likewise.
105622         Switch to method described by Bruno Haible.
105623         Include <limits.h>, for CHAR_BIT.
105624         (SIZE_BITS): New macro.
105626 2003-10-23  Paul Eggert  <eggert@twinsun.com>
105628         * m4/getline.m4 (AM_FUNC_GETLINE):
105629         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
105630         hosts.  Problem reported by Derek Robert Price in
105631         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
105632         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
105633         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
105635 2003-10-21  Paul Eggert  <eggert@twinsun.com>
105637         * lib/getndelim2.c (getndelim2): When size calculation overflows,
105638         ceiling the allocation at NMAX bytes rather than silently
105639         discarding input bytes before NMAX is reached.  This makes
105640         a difference only if NMAX exceeds SIZE_MAX / 2.
105642         * lib/obstack.c: Merge from glibc.
105643         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
105644         Add libc_hidden_def (_obstack_newchunk).
105645         (_obstack_free) [! defined _LIBC]: Remove.
105646         [defined _LIBC]: Make a strong alias from obstack_free, rather than
105647         a clone of the function body.
105648         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
105649         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
105651         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
105652         glibc.
105653         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
105654         arg to memcpy.
105656         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
105657         (obstack_ptr_grow_fast, obstack_int_grow_fast):
105658         Don't use lvalue casts, as GCC plans to remove support for them
105659         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
105660         was also present in the non-GCC version, indicating that this
105661         code had always been buggy and had never been widely used.
105662         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
105663         Use the fast variant of each macro, rather than copying the
105664         definiens of the fast variant; that way, we'll be more likely to
105665         catch future bugs in the fast variants.
105667 2003-10-20  Bruno Haible  <bruno@clisp.org>
105669         * modules/wait-process: New file.
105670         * MODULES.html.sh (func_all_modules): Add wait-process.
105672 2003-10-20  Bruno Haible  <bruno@clisp.org>
105674         * m4/wait-process.m4: New file.
105676 2003-10-20  Bruno Haible  <bruno@clisp.org>
105678         * lib/wait-process.h: New file, from GNU gettext.
105679         * lib/wait-process.c: New file, from GNU gettext.
105681 2003-10-19  Jim Meyering  <jim@meyering.net>
105683         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
105684         HPUX 10.20.
105686 2003-10-18  Karl Berry  <karl@gnu.org>
105688         * config/config.guess: update from config.
105690 2003-10-16  Paul Eggert  <eggert@twinsun.com>
105692         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
105693         (getgroups): First arg is int, not size_t.
105694         Don't let 'free' mangle errno.
105696 2003-10-16  Paul Eggert  <eggert@twinsun.com>
105698         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
105700 2003-10-16  Karl Berry  <karl@gnu.org>
105702         * config/config.{guess,sub}: update from config.
105704 2003-10-16  Jim Meyering  <jim@meyering.net>
105706         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
105707         memcpy.
105709 2003-10-15  Paul Eggert  <eggert@twinsun.com>
105711         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
105712         (SIZE_MAX): Remove.
105713         (new_exclude, add_exclude_file): Initial size no longer needs to
105714         be a power of 2.
105715         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
105716         our own address arithmetic overflow checking.
105718         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
105719         (fnmatch): Do not alloca more than 2000 wide characters;
105720         instead, use malloc for large buffers.
105721         Check for address arithmetic overflow, and return -1
105722         with errno set to ENOMEM in that case.
105723         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
105724         (NEW_PATTERN): Do not alloca more than 8000 bytes;
105725         instead, return -1.  Check for address arithmetic overflow.
105727 2003-10-14  Paul Eggert  <eggert@twinsun.com>
105729         Handle invalid suffixes and overflow independently, so that
105730         callers can treat them independently as needed.  Fix some bugs in
105731         suffix handling, e.g., "100k@" was not diagnosed as an invalid
105732         suffix for a human-readable blocksize.  The major caller-visible
105733         change is the addition of a new
105734         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
105735         that both overflow and suffix chars were found.
105737         * lib/human.c (humblock): Don't check separately for invalid suffix
105738         char; that is xstrtoumax's job (now that its bug is fixed).
105739         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
105740         INTMAX_MAX]: New macros.
105741         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
105742         TYPE_MAXIMUM): New macros.
105743         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
105744         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
105745         if overflow occurs, as it's what __strtol does and it's more useful
105746         in practice.
105747         (__xstrtol): If __strtol reports some error other than ERANGE,
105748         reflect it to the caller as LONGINT_INVALID.  If it reports
105749         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
105750         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
105751         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
105752         value.
105753         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
105754         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
105755         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
105756         [defined UINTMAX_MAX]: New macros.
105758 2003-10-14  Bruno Haible  <bruno@clisp.org>
105760         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
105762 2003-10-14  Bruno Haible  <bruno@clisp.org>
105764         * m4/sig_atomic_t: New file, from GNU gettext.
105765         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
105767 2003-10-14  Bruno Haible  <bruno@clisp.org>
105769         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
105770         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
105771         Also use volatile where needed.
105773 2003-10-12  Paul Eggert  <eggert@twinsun.com>
105775         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
105776         Change maintainer from Bruno Haible to 'all'.
105778 2003-10-12  Paul Eggert  <eggert@twinsun.com>
105780         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
105782 2003-10-12  Paul Eggert  <eggert@twinsun.com>
105784         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
105785         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
105786         and define in terms of the other primitives.
105787         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
105788         (SIZE_MAX): Define if not already defined.
105789         (array_size_overflow): New function.
105790         (xalloc_die): Abort instead of exiting if 'error' returns.
105791         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
105792         (xmalloc, xrealloc): Use them.
105793         (xcalloc): Check for address arithmetic overflow.
105794         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
105795         a bit faster than strcpy.
105797 2003-10-10  Simon Josefsson  <jas@extundo.com>
105799         * modules/argp (Depends-on): Add restrict and strcase.
105801 2003-10-10  Simon Josefsson  <jas@extundo.com>
105803         * m4/argp.m4: Add AC_C_INLINE.
105805 2003-10-08  Paul Eggert  <eggert@twinsun.com>
105807         Merge getpass from libc, plus a few fixes.
105809         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
105810         Include <stdbool.h>.
105811         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
105812         __fsetlocking to empty.
105813         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
105814         do include <bits/libc-lock.h>.
105815         Do not include <fcntl.h>; not needed.
105816         [_LIBC]: Include <wchar.h>.
105817         (NOTCANCEL_MODE): New macro.
105818         (flockfile, funlockfile) [_LIBC]: New macros.
105819         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
105820         [!_LIBC]: New macros.
105821         (call_fclose): New function.
105822         (getpass): Use it.  Save tty stream separately; this simplifies the
105823         code and makes it more reliable if stdin happens to equal stdout.
105824         Invoke __fsetlocking on tty.
105825         Handle thread cancellation if needed.
105826         Namespace cleanup (use __tcgetattr, __getline).
105827         Use bool for Booleans.
105828         [USE_IN_LIBIO]: Handle wide streams.
105829         [!_LIBC]: Unconditionally do the fseek, since we don't know what
105830         stream might go where.
105832         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
105833         doesn't have to include <stdio.h> before us.
105834         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
105835         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
105836         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
105837         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
105838         if not declared, so that we can use getpass.c code from libc without
105839         rewriting it.
105840         (flockfile, ftrylockfile, funlockfile): New macros.
105842 2003-10-08  Paul Eggert  <eggert@twinsun.com>
105844         * modules/getpass: Depend on stdbool.
105846 2003-10-08  Paul Eggert  <eggert@twinsun.com>
105848         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
105850 2003-10-07  Karl Berry  <karl@gnu.org>
105852         * config/config.{guess,sub}: update from config.
105854 2003-10-06  Jim Meyering  <jim@meyering.net>
105855             Bruno Haible  <bruno@clisp.org>
105857         This lets translators provide better translations for the
105858         "Written by ..." part of --version output.
105859         * lib/version-etc.h: Include stdarg.h.
105860         (version_etc_copyright): Declare as readonly.
105861         (version_etc): Make this function variadic with a NULL-terminated list
105862         of author name strings.
105863         (version_etc_va): New declaration.
105864         * lib/version-etc.c: Include stdarg.h, stdlib.h.
105865         (version_etc_copyright): Declare as readonly.
105866         (version_etc_va): New function. Provide a different translatable string
105867         for each possible number of authors < 10. Abbreviate when there are 10
105868         authors or more.
105869         (version_etc): Make this function variadic. Call version_etc_va.
105870         Suggestion from Gary V. Vaughan.
105872         * lib/long-options.h (parse_long_options): Change prototype: the
105873         authors string is moved to the end and becomes variadic.
105874         * lib/long-options.c: Include stdarg.h.
105875         (parse_long_options): Make this function variadic, too.
105876         Call version_etc_va, not version_etc.
105878 2003-10-06  Bruno Haible  <bruno@clisp.org>
105880         * modules/version-etc-2: Remove file.
105881         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
105883 2003-10-06  Bruno Haible  <bruno@clisp.org>
105885         * modules/fatal-signal: New file.
105886         * MODULES.html.sh (func_all_modules): Add fatal-signal.
105888 2003-10-06  Bruno Haible  <bruno@clisp.org>
105890         * m4/fatal-signal.m4: New file.
105891         * m4/signalblocking.m4: New file, from GNU gettext.
105893 2003-10-06  Bruno Haible  <bruno@clisp.org>
105895         * lib/version-etc-2.h: Remove file.
105896         * lib/version-etc-2.c: Remove file.
105898 2003-10-06  Bruno Haible  <bruno@clisp.org>
105900         * lib/fatal-signal.h: New file, from GNU gettext.
105901         * lib/fatal-signal.c: New file, from GNU gettext.
105903 2003-10-05  Paul Eggert  <eggert@twinsun.com>
105905         * README: Rework advice for preventing empty .o files.
105906         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
105907         not <sys/types.h>.
105909 2003-10-04  Karl Berry  <karl@gnu.org>
105911         * lib/argp*: update from libc.
105913 2003-10-04  Karl Berry  <karl@gnu.org>
105915         * config/config.{guess,sub}: update from config.
105917 2003-10-02  Bruno Haible  <bruno@clisp.org>
105919         * modules/lchown (Include): Add lchown.h.
105920         * modules/time_r (Include): Use "..." syntax.
105921         * modules/xgetdomainname (Include): Add xgetdomainname.h.
105923 2003-10-01  Simon Josefsson  <jas@extundo.com>
105925         * MODULES.html.sh (func_all_modules): Move gethostname from section
105926         'based on' to section 'lacking' POSIX:2001.
105928 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
105930         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
105931         to output mode on the same stream.
105933 2003-09-29  Paul Eggert  <eggert@twinsun.com>
105935         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
105936         Fix arg typo in previous patch.
105938 2003-09-28  Jim Meyering  <jim@meyering.net>
105940         * lib/error.c: Correct cpp indentation.
105942 2003-09-27  Paul Eggert  <eggert@twinsun.com>
105944         * modules/free: New file.
105946 2003-09-27  Paul Eggert  <eggert@twinsun.com>
105948         * m4/free.m4: New file.
105950 2003-09-27  Paul Eggert  <eggert@twinsun.com>
105952         * lib/minmax.h (MIN, MAX)
105953         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
105954         Omit the special code that used __typeof__, since we worry that
105955         it could be more trouble than it's worth.  See:
105956         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
105957         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
105959         * lib/free.c: New file.
105961 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
105963         Trivial fixes to Makefile.am parts of module listings.
105964         * modules/strstr: Append strstr.h to lib_SOURCES.
105965         * modules/strcase: Likewise, for strcase.h.
105967 2003-09-27  Karl Berry  <karl@gnu.org>
105969         * config/mkinstalldirs: update from automake.
105971 2003-09-26  Paul Eggert  <eggert@twinsun.com>
105973         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
105974         (error_tail): Do not loop, reallocating temporary buffer, since
105975         the output cannot contain more wide characters than the input
105976         contains bytes, the size must be big enough already.  This avoids
105977         one potential size overflow calculation.  Check for size overflow
105978         when calculating temporary buffer size.  Free temporary buffer
105979         when done, if it was allocated with malloc; this plugs a memory
105980         leak.  Remove casts from void * to pointers, that are no longer
105981         needed now that we're assuming C89 or better.
105983         Merge error changes from glibc.
105985         * lib/error.c, error.h: Update copyright notice header to match glibc.
105986         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
105987         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
105988         Disable cancellation while printing error.
105989         * lib/error.h: Prepend __ to parameter names.
105991 2003-09-26  Jim Meyering  <jim@meyering.net>
105993         * lib/error.c (error_tail): Move some declarations
105994         into inner scope where the local variables are used.
105996 2003-09-26  Bruno Haible  <bruno@clisp.org>
105998         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
105999         stpncpy().
106000         Don't define stpncpy through config.h; it's now done through stpncpy.h.
106002 2003-09-26  Bruno Haible  <bruno@clisp.org>
106004         * lib/stpncpy.h (gnu_stpncpy): New declaration.
106005         (stpncpy): Define as alias for gnu_stpncpy.
106006         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
106008 2003-09-25  Simon Josefsson  <jas@extundo.com>
106010         * lib/xgetdomainname.h: New file.
106011         * lib/xgetdomainname.c: New file.
106013 2003-09-25  Simon Josefsson  <jas@extundo.com>
106014             Bruno Haible  <bruno@clisp.org>
106016         * modules/getdomainname: New file.
106017         * modules/xgetdomainname: New file.
106018         * MODULES.html.sh (func_all_modules): Add getdomainname,
106019         xgetdomainname.
106021 2003-09-25  Simon Josefsson  <jas@extundo.com>
106022             Bruno Haible  <bruno@clisp.org>
106024         * m4/getdomainname.m4: New file.
106026 2003-09-25  Simon Josefsson  <jas@extundo.com>
106027             Bruno Haible  <bruno@clisp.org>
106029         * lib/getdomainname.h: New file.
106030         * lib/getdomainname.c: New file.
106032 2003-09-25  Karl Berry  <karl@gnu.org>
106034         * lib/argp-fmtstream.c, argp-help.c: update from libc.
106036 2003-09-25  Karl Berry  <karl@gnu.org>
106038         * config/install-sh: update from automake.
106040 2003-09-25  Bruno Haible  <bruno@clisp.org>
106042         * modules/version-etc-2: New file, from modules/version-etc with
106043         modifications.
106044         * MODULES.html.sh (func_all_modules): Add version-etc-2.
106046 2003-09-25  Bruno Haible  <bruno@clisp.org>
106048         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
106049         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
106051 2003-09-24  Simon Josefsson  <jas@extundo.com>
106053         * modules/xgethostname: Add xgethostname.h.
106055 2003-09-24  Paul Eggert  <eggert@twinsun.com>
106057         * lib/linebuffer.c (freebuffer): Don't free the argument, just
106058         the buffer associated with the argument.  Bug reported by
106059         Simon Josefsson.
106061 2003-09-24  Paul Eggert  <eggert@twinsun.com>
106063         * README: Document assumptions that 'int' is at least 32 bits
106064         wide, that integer arithmetic is 2's complement without overflow,
106065         that there are no holes in integer values, that adding sizes of
106066         two nonoverlapping objects can't overflow, and that all-bits-zero
106067         yields scalar zero.  Fix spelling and capitalization typos.
106069 2003-09-19  Karl Berry  <karl@gnu.org>
106071         * lib/argp.h: update from libc.
106073 2003-09-17  Paul Eggert  <eggert@twinsun.com>
106075         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
106076         to avoid spurious warnings like "AC_RUN_IFELSE was called before
106077         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
106079 2003-09-17  Paul Eggert  <eggert@twinsun.com>
106081         * gnulib-tool: Use "test -h", not "test -L", for portability
106082         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
106083         (tags_regexp): Remove, since \| doesn't conform to POSIX.
106084         (sed_extract_prog): Issue s commands one-by-one, rather than
106085         using \| in one s command.
106087 2003-09-16  Paul Eggert  <eggert@twinsun.com>
106089         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
106090         input error, instead of returning NULL the next time we are called
106091         (and therefore losing track of errno).
106093 2003-09-16  Bruno Haible  <bruno@clisp.org>
106095         * gnulib-tool (func_create_testdir): Warn about duplicated
106096         dependencies.
106098 2003-09-15  Paul Eggert  <eggert@twinsun.com>
106100         * modules/argmatch, modules/fatal, modules/obstack,
106101         modules/xalloc, modules/xgethostname: Sort dependencies by
106102         importance, not alphabetically.
106104 2003-09-15  Paul Eggert  <eggert@twinsun.com>
106106         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
106107         fails, so that the caller gets the proper errno.
106109         * lib/readutmp.c (read_utmp): Likewise.
106110         Check for fstat error.  Close stream and free storage
106111         when failing.
106113 2003-09-14  Karl Berry  <karl@gnu.org>
106115         * config/srclist.txt (strdup.c): disable for c89 changes.
106117 2003-09-14  Jim Meyering  <jim@meyering.net>
106119         * lib/getloadavg.c: Correct cpp indentation.
106120         * lib/strdup.c: Likewise.
106121         * lib/vasnprintf.c: Likewise.
106123 2003-09-14  Bruno Haible  <bruno@clisp.org>
106125         * modules/fwriteerror: New file.
106126         * MODULES.html.sh (func_all_modules): Add fwriteerror.
106128 2003-09-14  Bruno Haible  <bruno@clisp.org>
106130         * lib/fwriteerror.h: New file.
106131         * lib/fwriteerror.c: New file.
106133 2003-09-12  Paul Eggert  <eggert@twinsun.com>
106135         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
106136         modules/xgethostname, modules/xalloc: Depend on exit.
106138 2003-09-12  Paul Eggert  <eggert@twinsun.com>
106140         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
106142         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
106143         and AC_MINIX, too, so that their extensions are available.
106145         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
106146         This macro has been superseded by gl_BACKUPFILE.
106148         More patches to assume C89 or better.
106150         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
106152         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
106153         unconditionally.
106154         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
106155         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
106156         Include <string.h>, <stdlib.h> unconditionally.
106157         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
106158         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
106159         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
106160         headers or for string.h.
106161         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
106162         or strtoul.
106164         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
106165         headers.
106166         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
106167         * m4/userspec.m4 (gl_USERSPEC): Likewise.
106168         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
106169         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
106170         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
106171         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
106172         memcpy, memset.
106173         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
106174         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
106175         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
106176         strtol.
106177         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
106178         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
106179         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
106180         strtoul.
106182 2003-09-12  Paul Eggert  <eggert@twinsun.com>
106184         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
106185         * lib/obstack.c [!defined _LIBC]: Likewise.
106186         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
106187         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
106188         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
106190         More changes to assume C89 or better.
106192         * lib/error.c (error_tail): Assume vprintf.
106194         * lib/argmatch.c (getenv): Remove decl.
106195         * lib/progreloc.c (get_full_program_name): Define via prototype.
106196         * lib/setenv.c (clearenv): Likewise.
106197         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
106198         needed.
106199         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
106200         (malloc, memcpy): Remove decls.
106201         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
106202         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
106203         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
106204         (memcpy): Remove macro.
106205         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
106206         (__P): Remove.  All uses removed.
106207         (PTR): Remove.  All uses changed to void *.
106208         (CHAR_BIT, NULL): Remove.
106209         (spaces, zeros, memset_space, memset_zero)
106210         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
106211         Remove.
106212         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
106213         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
106214         Define with prototype.
106215         Remove now-unnecessary prototype decl.
106216         (extra_args_spec): Assume ANSI C.  All uses changed.
106217         (extra_args_spec_iso): Remove.
106218         (my_strftime, emacs_strftimeu): Define via prototype.
106219         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
106220         unconditionally.
106221         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
106222         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
106223         (strtoul, strtol): Remove decls.
106224         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
106225         LONG_MAX): Remove.
106226         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
106227         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
106228         (LOCALE_PARAM_PROTO): New macro.
106229         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
106230         (INTERNAL (strtol), strtol): Define with a prototype.
106231         (PARAMS): Remove.  All uses removed.
106232         * lib/tempname.c: Include <string.h> unconditionally.
106233         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
106234         * lib/xgethostname.c (main): Define with a prototype.
106235         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
106236         Include <stdlib.h> unconditionally.
106237         (calloc, malloc, realloc, free): Remove decls.
106238         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
106239         Include <stdlib.h> unconditionally.  Sort include file names.
106240         (strtod): Remove.
106241         (xstrtod): Define with a prototype.
106242         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
106243         (strtol, strtoul): Remove decls.
106245 2003-09-11  Paul Eggert  <eggert@twinsun.com>
106247         More patches to assume C89 or better.
106248         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
106249         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
106250         string.h, memchr, STDC_HEADERS.
106252 2003-09-11  Paul Eggert  <eggert@twinsun.com>
106254         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
106255         Include <stdlib.h>, <string.h> unconditionally.
106256         Remove now-unnecessary cast to char *.
106257         * lib/strnlen.c: Include <string.h> unconditionally.
106258         * lib/yesno.c (yesno): Define with a prototype.
106260 2003-09-11  Bruno Haible  <bruno@clisp.org>
106262         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
106264 2003-09-10  Jim Meyering  <jim@meyering.net>
106266         * lib/error.c: Correct indentation of cpp directives.
106268 2003-09-10  Bruno Haible  <bruno@clisp.org>
106270         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
106271         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
106272         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
106273         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
106274         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
106275         <stdlib.h> and <string.h> checks.
106276         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
106277         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
106279 2003-09-10  Bruno Haible  <bruno@clisp.org>
106281         * lib/strcspn.c: Include <string.h> unconditionally.
106282         * lib/strpbrk.c: Include <string.h> unconditionally.
106283         * lib/strstr.c: Include <string.h> unconditionally.
106284         * lib/unicodeio.c: Include <string.h> unconditionally.
106285         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
106286         * lib/unsetenv.c: Likewise.
106287         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
106288         * lib/yesno.c: Include <stdlib.h> unconditionally.
106289         (rpmatch): Add prototype.
106291 2003-09-09  Paul Eggert  <eggert@twinsun.com>
106293         More patches to assume C89 or better.
106294         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
106295         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
106296         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
106297         or for string.h.
106298         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
106299         stdlib.h.
106300         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
106301         C headers.
106302         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
106303         string.h.
106304         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
106305         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
106306         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
106307         or for string.h.
106308         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
106309         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
106310         C headers.
106311         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
106312         memcpy.
106313         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
106314         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
106315         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
106316         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
106317         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
106318         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
106319         string.h, free.
106320         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
106321         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
106322         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
106323         C headers, or for string.h.
106324         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
106325         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
106326         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
106327         headers, memory.h, stdlib.h, string.h, strings.h.
106328         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
106329         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
106330         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
106331         strchr.
106332         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
106333         headers, memory.h, string.h.
106334         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
106335         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
106336         free.
106337         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
106338         headers.
106339         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
106340         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
106341         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
106342         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
106343         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
106345 2003-09-09  Paul Eggert  <eggert@twinsun.com>
106347         More K&R removal.
106349         * lib/acosl.c (main): Use a prototype.
106350         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
106351         tanl.c: Likewise.
106353         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
106355         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
106356         (getopt, etopt_long, getopt_long_only, _getopt_internal)
106357         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
106358         with a prototype.
106359         * lib/getopt.c (const): Remove macro.
106360         Include <string.h> unconditionally.
106361         (my_index): Remove; all uses changed to strchr.
106362         (strlen): Remove decl.
106363         (exchange): Remove forward decl; no longer needed.
106364         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
106365         Define with prototype.
106366         * lib/getopt1.c (const): Remove macro.
106367         (getopt_long, getopt_long_only, main): Define with prototype.
106369         * lib/getugroups.c: Include <string.h> unconditionally.
106371         * lib/getusershell.c: Include <stdlib.h> unconditionally.
106372         (getusershell, setusershell, endusershell, readname, main):
106373         Define with prototypes.
106375         * lib/group-member.c: Include group-member.h first.
106376         Include <stdlib.h> unconditionally.
106378         * lib/hard-locale.c: Include hard-locale.h first.
106379         Include <stdlib.h>, <string.h> unconditionally.
106381         * lib/hash.c (free, malloc): Remove decls.
106382         Include <stdlib.h> unconditionally.
106384         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
106385         (getenv): Do not declare.
106387         * lib/idcache.c: Include <string.h> unconditionally.
106389         * lib/long-options.c: Include long-options.h first, to test interface.
106390         Include <stdlib.h> unconditionally.
106392         * lib/makepath.c: Include makepath.h first, to test interface.
106393         Include <stdlib.h> and <string.h> unconditionally.
106395         * lib/linebuffer.c: Include <stdlib.h>.
106396         (free): Remove decl.
106398         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
106399         stddef.h. rpl_malloc returns void *, not char *.
106400         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
106401         prototype.
106403         * lib/md5.h: Include <limits.h> unconditionally.
106404         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
106405         (__P): Remove; all uses removed.
106406         * lib/md5.c: Include "md5.h" first.
106407         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
106408         md5_buffer, md5_process_bytes, md5_process_block):
106409         Define with prototypes.
106410         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
106411         * lib/sha.c: Include "sha.h" first.
106412         Include <stdlib.h>, <string.h> unconditionally.
106414         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
106415         * lib/memcmp.c (__ptr_t): Likewise.
106416         * lib/memrchr.c (__ptr_t): Likewise.
106417         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
106418         Include <string.h> unconditionally.
106419         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
106420         * lib/memchr.c: Include <stdlib.h> unconditionally.
106421         * lib/memchr.c (LONG_MAX): Remove.
106422         * lib/memrchr.c (LONG_MAX): Likewise.
106423         * lib/memchr.c (__memchr): Define via a prototype.
106424         * lib/memrchr.c (__memrchr): Likewise.
106425         * lib/memcmp.c (__P): Remove, and remove all uses.
106426         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
106427         Remove forward decls; no longer needed.
106428         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
106429         Use types required by C89 in prototype.
106431         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
106432         * lib/savedir.c: Likewise.
106433         * lib/mkdir.c (free): Remove decl.
106434         * lib/rmdir.c (rmdir): Define with a prototype.
106435         * lib/savedir.c: Include savedir.h first, to test interface.
106437         * lib/mktime.c (STDC_HEADERS): Remove.
106438         Include <stdlib.h>, <string.h> unconditionally.
106440         * lib/modechange.c: Include <stdlib.h> unconditionally.
106441         (malloc): Remove decl.
106443         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
106444         (free): Remove decl.
106446         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
106447         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
106448         (This type really should be intptr_t, but that's a C99ism.)
106449         (_obstack_memcpy): Remove: all uses changed to memcpy.
106450         Include <string.h> unconditionally.
106451         (struct obstack): Assume __STDC__ for types of members
106452         chunkfun, freefun, extra_arg.
106453         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
106454         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
106455         obstack_begin, obstack_specify_allocation,
106456         obstack_specify_allocation_with_arg, obstack_chunkfun,
106457         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
106458         Remove unprototyped decls and the macros that use them.
106459         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
106460         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
106461         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
106462         (defined __STDC__ && __STDC__)]:
106463         Remove nonprototyped code.
106464         Include <stdlib.h> unconditionally.
106465         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
106466         _obstack_allocated_p, _obstack_free, obstack_free,
106467         _obstack_memory_used, print_and_abort):
106468         Define using prototypes.
106469         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
106470         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
106471         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
106472         obstack_next_free, obstack_object_size, obstack_room) [0]:
106473         Remove unused, unprototyped code.
106475         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
106477         * lib/physmem.c (physmem_total, physmem_available, main): Define
106478         with prototypes.
106480         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
106481         (main): Define with a prototype.
106483         * lib/posixver.c (getenv): Remove decl.
106485         * lib/putenv.c (malloc): Returns void *, not char *.
106486         Include <string.h> unconditionally.
106487         (strchr, memcpy, NULL): Do not define.
106489         * lib/readtokens.c: Include readtokens.h first, to test interface.
106490         Include <stdlib.h>, <string.h> unconditionally.
106491         (init_tokenbuffer): Define with a prototype.
106493         * lib/regex.c (PARAMS): Remove.  All uses removed.
106494         All uses of _RE_ARGS removed, too.
106495         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
106496         unconditionally.
106497         (bzero): Assume memset exists.
106498         (memcmp, memcpy, NULL): Remove.
106499         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
106500         char, or assignments to local vars of type signed char.
106501         (init_syntax_once, PREFIX(extract_number_and_incr),
106502         PREFIX(print_partial_compiled_pattern),
106503         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
106504         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
106505         PREFIX(regex_grow_registers), PREFIX(regex_compile),
106506         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
106507         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
106508         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
106509         wcs_compile_range, byte_compile_range, truncate_wchar,
106510         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
106511         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
106512         count_mbs_length, wcs_re_match_2_internal,
106513         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
106514         PREFIX(alt_match_null_string_p),
106515         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
106516         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
106517         regfree, PREFIX(extract_number)): Define with prototype.  Remove
106518         now-unnecessary declaration, if any.
106519         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
106520         regcomp, regexec):
106521         Remove now-unnecessary casts among pointer types.
106522         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
106524         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
106525         (free): Remove decl.
106527         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
106529         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
106530         (free): Remove decl.
106532         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
106533         * lib/xgetcwd.c: Likewise.
106535         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
106536         (free): Remove decl.
106538         * lib/strchrnul.c (strchrnul): Define with a prototype.
106539         Fix bug: c_in was not converted to char before searching.
106541         The following changes are not K&R related:
106543         * lib/group-member.h: Include <sys/types.h>, so that this file is
106544         self-contained.
106545         * lib/makepath.h: Likewise.
106547         * lib/getusershell.c (readname, default_index, line_size, readname):
106548         Use size_t, not int, for sizes.
106549         (readname): If the size overflows, report an error instead of
106550         looping forever.
106552 2003-09-09  Paul Eggert  <eggert@twinsun.com>
106554         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
106555         libc.
106557 2003-09-09  Paul Eggert  <eggert@twinsun.com>
106559         * README: New section: portability guidelines.
106561 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
106563         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
106564         C89 spec.
106566 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
106568         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
106570 2003-09-08  Paul Eggert  <eggert@twinsun.com>
106572         Assume C89 or better; remove K&R cruft.
106573         A few of these changes were first proposed by Derek Robert Price
106574         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
106576         * lib/addext.c: Include <string.h> unconditionally.
106577         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
106578         Don't declare getenv or malloc.
106580         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
106581         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
106582         (NULL): Remove.
106583         (find_stack_direction, alloca): Use prototypes.
106585         * lib/atexit.c (atexit): Define using a prototype.
106587         * lib/basename.c, dirname.c, stripslash.c:
106588         Include <string.h> unconditionally.
106590         * lib/bcopy.c: Include <stddef.h>.
106591         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
106593         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
106595         * lib/error.h (error, error_at_line, error_print_progname)
106596         [! (defined (__STDC__) && __STDC__)]: Remove decls.
106597         * lib/error.c: Include error.h first, to check interface.
106598         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
106599         (VA_START): Remove; all uses changeed to va_start.
106600         (exit, strerror): Remove decls.
106601         (error_print_progname): Prototype uncondionally.
106602         Don't include <errno.h>; no longer needed.
106603         (private_strerror): Remove.
106604         (error_tail): Always define.
106605         (error, error_at_line): Assume C89 or better; always use prototypes.
106606         * lib/fatal.c: Include "fatal.h" first, to test interface.
106607         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
106608         (VA_START): Remove; all uses changed to va_start.
106609         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
106610         this case.
106611         (exit): Remove decl.
106612         (fatal): Prototype unconditionally.  Assume va_start works.
106613         Abort at end, to pacify gcc.
106615         * lib/euidaccess.c (main): Define with a prototype.
106617         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
106619         * lib/exitfail.c: Include <stdlib.h> unconditionally.
106621         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
106622         prototypes.
106623         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
106624         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
106625         (getenv): Remove decl.
106626         (fnmatch): Define using a prototype.
106627         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
106628         (FCT): Define using a prototype.
106630         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
106632         * lib/gethostname.c: Include <stddef.h>.
106633         (gethostname): Define with prototype.  Length is size_t, not int.
106635 2003-09-08  Paul Eggert  <eggert@twinsun.com>
106637         Assume C89 or better; remove K&R cruft.
106638         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
106639         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
106640         string.h, getenv, malloc.
106641         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
106642         headers.
106643         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
106644         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
106645         do not check for strerror.
106646         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
106647         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
106648         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
106649         do not check for doprnt or vprintf.
106650         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
106651         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
106653 2003-09-08  Paul Eggert  <eggert@twinsun.com>
106655         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
106656         getversion.c should have been removed then, but was accidentally
106657         preserved.
106659         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
106660         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
106662 2003-09-08  Karl Berry  <karl@gnu.org>
106664         * config/config.sub, config.guess, srclistvars.sh: update from savannah
106665                 config, forget about prep.
106667         * config/depcomp, missing: update from automake.
106669 2003-09-07  Paul Eggert  <eggert@twinsun.com>
106671         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
106672         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
106674 2003-09-07  Paul Eggert  <eggert@twinsun.com>
106676         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
106677         copy_tm_result.  Bug reported by Simon Josefsson in
106678         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
106680 2003-09-06  Paul Eggert  <eggert@twinsun.com>
106682         * m4/time_r.m4: New file.
106683         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
106684         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
106685         is. Check for timegm declaration.
106686         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
106687         Do not check for gmtime_r.
106688         Replace mktime if __mktime_internal does not exist and if mktime
106689         hasn't been replaced already.
106691 2003-09-06  Paul Eggert  <eggert@twinsun.com>
106693         * lib/time_r.c, lib/time_r.h: New files.
106695         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
106696         __localtime_r.
106697         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
106698         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
106700         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
106701         __gmtime_r.
106702         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
106703         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
106704         Include <time_r.h>.
106706         * lib/timegm.c: Switch to glibc implementation, with the following
106707         changes:
106708         [defined HAVE_CONFIG_H]: Include <config.h>.
106709         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
106710         (__mktime_internal) [!defined _LIBC]: New decl.
106711         (__gmtime_r) [!defined _LIBC]: New macro and function.
106712         (timegm): Use a prototype, since gnulib assumes C89.
106713         Do not bother declaring tmp to be const, as it's not really usefu.
106714         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
106715         (timegm): Declare only if HAVE_DECL_TIMEGM.
106717 2003-09-06  Paul Eggert  <eggert@twinsun.com>
106719         * MODULES.html.sh (func_all_modules): Add time_r.
106720         * modules/time_r: New file.
106721         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
106722         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
106724 2003-09-03  Paul Eggert  <eggert@twinsun.com>
106726         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
106727         Bug reported by Lute Kamstra in
106728         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
106730         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
106731         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
106732         course with correspondingly smaller numbers for tomorrow and
106733         yesterday.  From Tadayoshi Funaba.  Originally installed into
106734         sh-utils on 1999-08-07, but the patch got lost (I guess during the
106735         coreutils merge?).
106737 2003-08-31  Simon Josefsson  <jas@extundo.com>
106739         * modules/timegm: New file.
106740         * MODULES.html.sh (func_all_modules): Add timegm.
106742 2003-08-31  Simon Josefsson  <jas@extundo.com>
106744         * m4/timegm.m4: New file.
106746 2003-08-31  Simon Josefsson  <jas@extundo.com>
106748         * lib/timegm.h: New file.
106749         * lib/timegm.c: New file.  Based on
106750         wget-1.8.2/src/http.c:mktime_from_utc.
106752 2003-08-31  Karl Berry  <karl@gnu.org>
106754         * lib/argp.h: update from libc.
106756 2003-08-28  Bruno Haible  <bruno@clisp.org>
106758         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
106759         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
106760         followed by '#define fnmatch fnmatch_posix' gives an error.
106762 2003-08-28  Bruno Haible  <bruno@clisp.org>
106764         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
106765         warning on QNX, which defines O_BINARY to 000000.
106767 2003-08-27  Jim Meyering  <jim@meyering.net>
106769         * m4/mkstemp.m4: Require that the system mkstemp be able to create
106770         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
106771         would fail after 32.  Reported by Danny Levinson.  Details here:
106772         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
106774 2003-08-24  Bruno Haible  <bruno@clisp.org>
106776         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
106777         MSVC7 <stdio.h> is included later.
106779 2003-08-22  Simon Josefsson  <jas@extundo.com>
106781         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
106783 2003-08-20  Karl Berry  <karl@gnu.org>
106785         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
106787 2003-08-20  Bruno Haible  <bruno@clisp.org>
106789         * modules/progname: New file.
106790         * MODULES.html.sh (func_all_modules): Add progname.
106792 2003-08-20  Bruno Haible  <bruno@clisp.org>
106794         * lib/progname.h: New file, from GNU gettext.
106795         * lib/progname.c: New file, from GNU gettext.
106796         * lib/progreloc.c: New file, from GNU gettext.
106798 2003-08-19  Jim Meyering  <jim@meyering.net>
106800         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
106801         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
106803 2003-08-19  Bruno Haible  <bruno@clisp.org>
106805         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
106806         more.
106808 2003-08-19  Bruno Haible  <bruno@clisp.org>
106810         * lib/xstrdup.c: Assume <string.h> exists.
106812 2003-08-18  Paul Eggert  <eggert@twinsun.com>
106814         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
106815         in makefile rules.
106817 2003-08-18  Jim Meyering  <jim@meyering.net>
106819         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
106820         * m4/lib-ld.m4: Likewise.
106822 2003-08-18  Jim Meyering  <jim@meyering.net>
106824         * lib/setenv.h: Indent nested cpp directive.
106825         * lib/vasnprintf.c: Remove trailing blanks.
106827 2003-08-17  Simon Josefsson  <jas@extundo.com>
106829         * modules/xstrndup: New file.
106830         * MODULES.html.sh (func_all_modules): Add xstrndup.
106832 2003-08-17  Simon Josefsson  <jas@extundo.com>
106834         * modules/argp: Fix autoconf macro name. Add more dependencies.
106836 2003-08-17  Simon Josefsson  <jas@extundo.com>
106838         * m4/xstrndup.m4: New file.
106840 2003-08-17  Simon Josefsson  <jas@extundo.com>
106842         * m4/argp.m4: New file.
106844 2003-08-17  Simon Josefsson  <jas@extundo.com>
106845             Bruno Haible  <bruno@clisp.org>
106847         * lib/xstrndup.h: New file.
106848         * lib/xstrndup.c: New file.
106850 2003-08-17  Bruno Haible  <bruno@clisp.org>
106852         * modules/strndup (Files, Include): Add lib/strndup.h.
106854 2003-08-17  Bruno Haible  <bruno@clisp.org>
106856         * modules/euidaccess (Files): Add lib/euidaccess.h.
106858 2003-08-17  Bruno Haible  <bruno@clisp.org>
106860         * lib/strndup.h: New file.
106862 2003-08-17  Bruno Haible  <bruno@clisp.org>
106864         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
106865         like AC_GNU_SOURCE.
106866         * modules/extensions (configure.ac): Comment out the invocation of
106867         gl_USE_SYSTEM_EXTENSIONS.
106869 2003-08-16  Paul Eggert  <eggert@twinsun.com>
106871         Merges from coreutils, etc.
106872         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
106873         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
106874         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
106875         fixing a typo.
106876         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
106877         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
106879 2003-08-16  Paul Eggert  <eggert@twinsun.com>
106881         Document merge from coreutils.
106882         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
106883         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
106884         * modules/utime: Add m4/utimes-null.m4.
106886 2003-08-16  Paul Eggert  <eggert@twinsun.com>
106888         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
106889         space, undoing this 2003-08-12 change:
106890         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
106892 2003-08-16  Paul Eggert  <eggert@twinsun.com>
106894         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
106895         strtoul.c from libc, undoing this 2003-08-12 change:
106896         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
106898 2003-08-16  Jim Meyering  <jim@meyering.net>
106900         Merges from coreutils.
106901         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
106902         prefix.  Adjust cache variables similarly.  Create 500 rather than
106903         just 300 files, to exercise bug on Darwin6.5, too.
106904         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
106905         $missing_dir.
106906         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
106907         AM_SYS_POSIX_TERMIOS.
106908         Reported by mkc@mathdogs.com.
106909         Also change use of $am_cv_sys_posix_termios
106910         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
106911         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
106912         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
106913         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
106914         in /proc/mounts until it finds one with matching device number.  This
106915         is unnecessary when the FILE argument *is* a mount point.  No stat call
106916         is necessary in that case.  So, disable the statvfs-testing code on
106917         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
106918         as RedHat bug# 84846.
106919         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
106920         to 1MB, so as not to render systems with no stack size limit (e.g.,
106921         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
106922         Include <unistd.h>.  On some systems,
106923         it is required for the definition of _SC_PAGESIZE.
106925 2003-08-16  Jim Meyering  <jim@meyering.net>
106927         Merge from coreutils.
106928         * lib/xstrtoimax.c: #else #if -> #elif.
106929         * lib/xstrtoumax.c: Likewise.
106931 2003-08-16  Jim Meyering  <jim@meyering.net>
106933         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
106934         * m4/utimes.m4: Removed.
106935         * m4/utimes-null.m4: Renamed from utimes.m4.
106937         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
106938         to 1MB, so as not to render systems with no stack size limit (e.g.,
106939         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
106940         Include <unistd.h>.  On some systems,
106941         it is required for the definition of _SC_PAGESIZE.
106943 2003-08-16  Jim Meyering  <jim@meyering.net>
106944         and Paul Eggert  <eggert@cs.ucla.edu>
106946         Merges from coreutils, etc.
106948         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
106949         using the latest version from cvs.  This avoids problems with #line
106950         directives using a vendor (Sun) compiler.
106951         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
106952         Don't set GETGROUPS_LIB here; now it's
106953         done via getgroups.m4's wrapper function.
106954         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
106955         rather than just in sh-util/configure.in, so that the
106956         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
106957         same.
106958         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
106959         AC_FUNC_GETLOADAVG where to find getloadavg.c.
106960         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
106961         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
106962         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
106963         Remove code that is now done by the newly-required macros.
106964         Append $(EXEEXT) to DF_PROG.
106965         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
106966         Do not invoke or require the following here,
106967         since prereq.m4 or some gnulib .m4 now does this for us:
106968         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
106969         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
106970         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
106971         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
106972         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
106973         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
106974         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
106975         AC_FUNC_OBSTACK.
106976         Do not replace the following functions, as this is now the job
106977         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
106978         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
106979         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
106980         atexit getpass, strdup, getpagesize.
106981         Replace 'raise'.
106982         Do not check for the following functions, as this is now the job
106983         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
106984         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
106985         setregid.
106986         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
106987         Check for sys/sysctl.h.
106988         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
106989         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
106990         of checking for ssize_t ourselves.
106992         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
106993         Require every macro that gnulib/modules/* suggests for us.
106994         (jm_PREREQ_ADDEXT): New macro.
106995         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
106996         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
106998         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
106999         (gl_PHYSMEM): Use it.
107000         Also check for `table' function.
107001         Check for new headers and functions.
107002         Add check for sys/sysmp.h.
107003         With suggestions from Kaveh Ghazi.
107004         Ignore headers that are present but cannot be compiled.  This
107005         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
107006         C 5.4.
107008 2003-08-15  Paul Eggert  <eggert@twinsun.com>
107010         Document merge from coreutils.
107011         * modules/userspec: Depend on posixver.
107012         * modules/strftime: Depend on tzset.
107014 2003-08-15  Paul Eggert  <eggert@twinsun.com>
107016         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
107017         rather than tab, after '#' in shell-script copyright notices.
107018         Suggested by Bruno Haible.
107020 2003-08-15  Paul Eggert  <eggert@twinsun.com>
107022         * config/srclist-update: Use three spaces, rather than tab, after '#'
107023         in shell-script copyright notices.  Suggested by Bruno Haible.
107024         Remove unnecessary parenthesization in regular expression.
107026 2003-08-15  Jim Meyering  <jim@meyering.net>
107028         Merge from coreutils.
107029         * lib/xgethostname.c: Include <stdlib.h>.
107030         (xghostname): Don't exit for anything other than memory-related
107031         failure; just return NULL.
107032         * lib/userspec.c: Include "posixver.h".
107033         (parse_user_spec): Accept `.' as a separator only
107034         in pre-POSIX-200112 mode.
107035         * lib/strtoimax.c: Use #elif rather than #else #if.
107036         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
107037         Remove function, now that we can rely on a working tzset function.
107038         [!_LIBC]: Ensure that the required autoconf test has been run.
107039         [!defined _NL_CURRENT && HAVE_STRFTIME]:
107040         Use underlying_strftime for %r.
107041         * lib/sha.c: Merge in some clean-up and optimization changes from
107042         glibc.
107043         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
107044         Ensure that it is a multiple of 64.
107045         Rearrange loop exit tests so as to avoid performing an
107046         additional fread after encountering an error or EOF.
107047         * lib/realloc.c: Update copyright date.
107049 2003-08-15  Jim Meyering  <jim@meyering.net>
107050         and Paul Eggert  <eggert@twinsun.com>
107052         Merge from coreutils.
107053         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
107054         member but strut utmpx does not.  Needed for AIX 4.3.3.
107055         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
107057 2003-08-15  Jim Meyering  <jim@meyering.net>
107058         and Paul Eggert  <eggert@cs.ucla.edu>
107060         Merges from coreutils, etc.
107061         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
107062         Require gl_FUNC_TZSET_CLOBBER.
107063         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
107064         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
107065         members.
107067 2003-08-14  Paul Eggert  <eggert@twinsun.com>
107069         Help the merge from coreutils.
107070         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
107071         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
107072         * m4/tzset.m4: Use it too.
107074 2003-08-14  Paul Eggert  <eggert@twinsun.com>
107076         * modules/tzset: New file.
107078 2003-08-14  Jim Meyering  <jim@meyering.net>
107080         Merges from coreutils.
107081         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
107082         variable names, rather than @FNMATCH_H@.
107083         * modules/alloca: Likewise for $(ALLOCA_H).
107085         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
107086         the three copies of the literal target, `fnmatch.h'.
107087         * modules/alloca (alloca.h): Likewise.
107089 2003-08-14  Jim Meyering  <jim@meyering.net>
107091         Merge from coreutils.
107092         * m4/tzset.m4: New file.
107093         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
107094         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
107095         otherwise, AIX 5.1 systems would end up using the latter.
107096         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
107097         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
107098         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
107099         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
107101 2003-08-14  Jim Meyering  <jim@meyering.net>
107103         Merge from coreutils.
107104         * lib/obstack.h: Whitespace changes.
107105         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
107106         and xcalloc return values.
107107         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
107108         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
107109         hang on OSF/1 5.1 for DIR on both local and remote file systems.
107110         Reported by (and fix confirmed by) Nelson H. F. Beebe.
107111         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
107112         error from mntctl.
107113         Use mntctl's return value to drive the entry-processing loop, since
107114         we can't rely on the value of the vmt_length member in the last
107115         entry.  On some systems doing so could result in exhausting
107116         virtual memory.  Based in part on a patch from Mike Jetzer.
107118 2003-08-14  Jim Meyering  <jim@meyering.net>
107119         and Paul Eggert  <eggert@twinsun.com>
107121         Merges from coreutils, plus other fixes.
107122         * lib/physmem.c: Merge in portability changes from gcc/libiberty
107123         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
107124         for credits and details.  Thanks to Kaveh Ghazi for helping
107125         to keep these files in sync.
107126         (ARRAY_SIZE): Define it.
107127         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
107128         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
107129         (memcasecmp): Don't assume size_t fits in unsigned int.
107130         Remove casts and duplicate code.
107131         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
107132         (memcpy): Remove definition.
107133         Merge in some clean-up and optimization changes from glibc.
107134         [BLOCKSIZE]: Move definition to top of file.
107135         Ensure that it is a multiple of 64.
107136         Rearrange loop exit tests so as to avoid performing an
107137         additional fread after encountering an error or EOF.
107138         * lib/md5.h (md5_uintptr): Define.
107139         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
107140         return to the initial working directory.  Preserve errno
107141         for caller.
107142         * lib/idcache.c: Include "xalloc.h".
107143         (xmalloc, xrealloc): Remove decls.
107144         (getuser): Remove casts no longer required in C89.
107145         * lib/human.c: Include stdio.h, for sprintf.
107146         * lib/group-member.c: Include "xalloc.h".
107147         (xmalloc, xrealloc): Remove decls.
107148         (get_group_info): Remove casts no longer required in C89.
107149         * lib/getusershell.c (readname): Remove casts no longer required in
107150         C89.
107151         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
107152         * lib/getline.c: Whitespace fix, from coreutils.
107154 2003-08-13  Paul Eggert  <eggert@twinsun.com>
107156         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
107157         Check for isascii.
107159         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
107160         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
107161         Undo previous (whitespace-only) change.
107163 2003-08-13  Paul Eggert  <eggert@twinsun.com>
107165         * lib/exclude.c: Include <ctype.h>
107166         (IN_CTYPE_DOMAIN): New macro.
107167         (is_space): New fn.
107168         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
107169         and empty lines.
107171         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
107172         Undo previous (whitespace-only) change.
107174 2003-08-13  Paul Eggert  <eggert@twinsun.com>
107176         * config/srclist-update: Change update back to the old behavior,
107177         leaving whitespace alone.  Use one 'sed' command rather than a
107178         pipeline.
107179         (fixlicense): Now a variable, not a function.
107180         (remove_trailing_blanks): Remove.
107181         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
107182         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
107183         Undo previous (whitespace-only) change.
107185 2003-08-12  Paul Eggert  <eggert@twinsun.com>
107187         Merge from coreutils.
107188         * modules/euidaccess: Add lib_SOURCES, include for new
107189         file euidaccess.h
107191 2003-08-12  Paul Eggert  <eggert@twinsun.com>
107193         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
107194         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
107195         Normalize leading white space and remove trailing white space.
107197         Merge from coreutils
107198         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
107200         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
107201         0.12.1.  These files are now being upgraded automatically by
107202         ../config/srclist-update.
107204 2003-08-12  Paul Eggert  <eggert@twinsun.com>
107206         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
107207         Normalize leading white space and remove trailing white space.
107208         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
107209         notice, as per ../config/srclist-update.
107211         Merge from coreutils.
107212         * lib/euidaccess.h: New file.
107213         * lib/euidaccess.c: Include it.
107214         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
107215         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
107216         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
107218 2003-08-12  Paul Eggert  <eggert@twinsun.com>
107220         * config/srclist-update: Add copyright notice.
107221         (remove_id_lines, remove_trailing_blanks): New constants.
107222         (fixfile): Use them to normalize spacing a bit in copied files.
107223         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
107224         Normalize leading white space and remove trailing white space.
107226         * config/texinfo.tex: Sync with texinfo.
107228         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
107229         strtoul.c from libc, to merge coreutils whitespace changes.
107231         * config/srclist.txt: Get the following m4 files from gettext:
107232         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
107233         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
107234         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
107235         wint_t.m4.
107237 2003-08-12  Karl Berry  <karl@gnu.org>
107239         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
107240         been made.
107242 2003-08-11  Paul Eggert  <eggert@twinsun.com>
107244         * modules/gnu-source, m4/gnu-source.m4:
107245         Remove; we're assuming Autoconf 2.54 or later now.
107246         Suggested by Bruno Haible.
107247         * MODULES.html.sh (func_all_modules): Remove gnu-source.
107249 2003-08-11  Bruno Haible  <bruno@clisp.org>
107251         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
107253 2003-08-11  Bruno Haible  <bruno@clisp.org>
107255         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
107256         (vasnprintf): Use it instead of wcslen.
107258 2003-08-11  Bruno Haible  <bruno@clisp.org>
107260         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
107261         value to ensure that _Bool promotes to int. Use #define for _Bool when
107262         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
107264 2003-08-10  Karl Berry  <karl@gnu.org>
107266         * lib/regex.h: update from libc (whitespace fix).
107268 2003-08-09  Paul Eggert  <eggert@twinsun.com>
107270         Merge some files from coreutils.  These changes were
107271         originally made by Jim Meyering.
107272         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
107273         many older Unixes require this.
107274         * lib/alloca.c (alloca): Remove cast to argument of free;
107275         no longer needed in C89.
107276         * lib/alloca_.h, regex.h: Fix white space to match
107277         what GNU indent does.
107279 2003-08-09  Paul Eggert  <eggert@twinsun.com>
107281         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
107282         apparently Emacs's Unicode mode got confused before my 2003-08-05
107283         checkin.
107285 2003-08-08  Paul Eggert  <eggert@twinsun.com>
107287         * m4/extensions.m4: New file.
107288         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
107289         Require gl_USE_SYSTEM_EXTENSIONS.
107290         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
107291         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
107293 2003-08-08  Paul Eggert  <eggert@twinsun.com>
107295         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
107296         * modules/extensions, modules/gnu-source: New files.
107297         * modules/timespec, modules/unlocked-io: Depend on extensions.
107299 2003-08-07  Paul Eggert  <eggert@twinsun.com>
107301         * modules/restrict: New file.
107302         * MODULES.html.sh (func_all_modules): Add restrict.
107303         * modules/regex: Depend on restrict.
107305 2003-08-07  Paul Eggert  <eggert@twinsun.com>
107307         * m4/restrict.m4: New file.
107308         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
107310 2003-08-07  Bruno Haible  <bruno@clisp.org>
107312         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
107313         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
107315 2003-08-07  Bruno Haible  <bruno@clisp.org>
107317         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
107318         makes the module 'getndelim2' compatible with the module 'getline'.
107320 2003-08-05  Paul Eggert  <eggert@twinsun.com>
107322         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
107323         byte with "\201" to avoid glitches when editing that source file
107324         with multi-gnome-terminal.
107326 2003-08-05  Paul Eggert  <eggert@twinsun.com>
107328         * lib/bumpalloc.h: Remove.
107330 2003-08-05  Paul Eggert  <eggert@twinsun.com>
107332         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
107333         * modules/bumpalloc: Remove.
107335 2003-08-04  Paul Eggert  <eggert@twinsun.com>
107337         * lib/getloadavg.c: Change copyright notice and spacing to conform to
107338         GNU coding style.
107340         Merge from coreutils.
107341         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
107342         1. From glibc.
107343         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
107344         from Karl Berry, implemented by Jim Meyering.
107345         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
107346         from Dmitry V. Levin.
107347         Remove anachronistic cast of xrealloc.
107348         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
107349         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
107350         type. Otherwise, it wouldn't compile with at least /bin/cc on
107351         ymp-cray-unicos9.0.2.X.
107352         Combine two mostly-identical uses of alloca into one.
107353         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
107355 2003-08-04  Dave Love  <d.love@dl.ac.uk>
107357         [From Emacs.]
107359         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
107360         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
107361         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
107362         obsolete NLIST_NAME_UNION.
107363         [__GNU__]: Undef BSD and FSCALE.
107364         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
107366 2003-08-03  Paul Eggert  <eggert@twinsun.com>
107368         * lib/stdbool_.h (_Bool): Make it signed char, instead of
107369         an enum type, so that it's guaranteed to promote to int.  See:
107370         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
107372 2003-08-03  Karl Berry  <karl@gnu.org>
107374         * config/depcomp: update from automake.
107376 2003-07-31  Paul Eggert  <eggert@twinsun.com>
107378         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
107379         (strerror): Don't assume that a printable int fits in 14 bytes.
107381 2003-07-31  Bruno Haible  <bruno@clisp.org>
107383         * modules/getpass-gnu: New file.
107384         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
107386 2003-07-31  Bruno Haible  <bruno@clisp.org>
107388         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
107390 2003-07-24  Karl Berry  <karl@gnu.org>
107392         * config/missing: update from automake.
107394 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
107395             Bruno Haible  <bruno@clisp.org>
107397         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
107398         * lib/getline.c (getline, getdelim): Likewise.
107399         Remove _GNU_SOURCE define; now it's defined in config.h through
107400         m4/getline.m4.
107402 2003-07-23  Karl Berry  <karl@gnu.org>
107404         * config/config.sub: update from prep.
107406 2003-07-22  Paul Eggert  <eggert@twinsun.com>
107408         * modules/xalloc (Depends-on): Add exitfail.
107409         * modules/xmemcoll: Likewise.
107411 2003-07-22  Paul Eggert  <eggert@twinsun.com>
107413         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
107414         over-parenthesization in macros.
107416         Sync with coreutils.
107418         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
107419         required by C99.
107421         Use `exit_failure' for xalloc and xmemcoll instead of their own
107422         private exit-failure variables.
107423         * lib/xalloc.h (xalloc_exit_failure): Remove.
107424         * lib/xmalloc.c: Likewise.  Include exitfail.h.
107425         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
107426         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
107427         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
107428         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
107430 2003-07-20  Jim Meyering  <jim@meyering.net>
107432         * modules/closeout (Depends-on): Add exitfail.
107433         Suggestion from Bruno Haible.
107435 2003-07-19  Karl Berry  <karl@gnu.org>
107437         * config/config.sub: update from prep.
107439 2003-07-18  Paul Eggert  <eggert@twinsun.com>
107441         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
107442         Remove.
107443         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
107444         to test that it can stand by itself.  Include "exitfail.h".
107445         Clients should set exit_failure instead.
107446         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
107448 2003-07-18  Bruno Haible  <bruno@clisp.org>
107450         * modules/getndelim2: New file.
107451         * modules/getline: Share files with module getndelim2.
107452         * modules/getnline: Depend on getndelim2 instead of sharing files with
107453         it. Add getnline.c to lib_SOURCES.
107454         * MODULES.html.sh (func_all_modules): Add getndelim2.
107456 2003-07-18  Bruno Haible  <bruno@clisp.org>
107458         * m4/getndelim2.m4: New file.
107459         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
107460         invoke gl_PREREQ_GETNDELIM2.
107461         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
107462         gl_PREREQ_GETNDELIM2.
107463         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
107464         gl_GETNDELIM2.
107466 2003-07-18  Bruno Haible  <bruno@clisp.org>
107468         * lib/getndelim2.h: New file.
107469         * lib/getndelim2.c: Make into a module of its own. Include config.h,
107470         getndelim2.h.
107471         (getndelim2): Make non-static. Change return type to ssize_t.
107472         * lib/getline.h: Change argument names.
107473         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
107474         * lib/getnline.c: Include getndelim2.h.
107476 2003-07-18  Andreas Schwab  <schwab@suse.de>
107478         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
107480 2003-07-17  Karl Berry  <karl@gnu.org>
107482         * config/config.sub: update from prep.
107484 2003-07-17  Bruno Haible  <bruno@clisp.org>
107486         * modules/getnline: New file.
107487         * modules/getline: Add lib/getndelim2.c to source file list.
107488         * MODULES.html.sh (func_all_modules): Add getnline.
107490 2003-07-17  Bruno Haible  <bruno@clisp.org>
107492         * m4/getnline.m4: New file.
107494 2003-07-17  Bruno Haible  <bruno@clisp.org>
107496         * m4/Makefile.am.in: Remove file.
107497         * m4/Makefile.am: Remove file.
107498         * m4/Makefile.in: Remove file.
107500 2003-07-17  Bruno Haible  <bruno@clisp.org>
107502         * lib/getnline.h: New file.
107503         * lib/getnline.c: New file.
107504         * lib/getndelim2.c: New file, extracted from getline.c.
107505         (getndelim2): Renamed from getdelim2, with added nmax argument.
107506         * lib/getline.c: Include getndelim2.c.
107507         (getdelim2): Moved out to getndelim2.c.
107508         (getline, getdelim): Update.
107510 2003-07-17  Bruno Haible  <bruno@clisp.org>
107512         * lib/Makefile.am: Remove file.
107513         * lib/Makefile.in: Remove file.
107515 2003-07-17  Bruno Haible  <bruno@clisp.org>
107517         * configure.in: Remove file.
107518         * Makefile.in: Remove file.
107520 2003-07-17  Bruno Haible  <bruno@clisp.org>
107522         * MODULES.html.sh: Put the </BODY> right before </HTML>.
107524 2003-07-16  Karl Berry  <karl@gnu.org>
107526         * config/srclist-update: was running fixlicense twice, which caused
107527                 texinfo.tex to be nullified for some reason.  Simplify,
107528                 $gplsrc is no longer needed as far as I can see?
107530 2003-07-16  Jim Meyering  <jim@meyering.net>
107532         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
107534 2003-07-15  Paul Eggert  <eggert@twinsun.com>
107536         * config/srclist.txt: Get the following files from gettext-runtime/intl
107537         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
107538         ref-del.sin.  From Bruno Haible.
107539         * config/srclist-update (fixfile): Change grep pattern again, since the
107540         previous fix didn't work (there was another trailing $).  Use
107541         '[$]' to escape the $s.
107543 2003-07-15  Karl Berry  <karl@gnu.org>
107545         * lib/vasnprintf.c: update from gettext.
107547 2003-07-15  Karl Berry  <karl@gnu.org>
107549         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
107550         gets expanded when surrounded by '$'.
107552 2003-07-15  Jim Meyering  <jim@meyering.net>
107554         * modules/save-cwd: Don't depend on error.  From Derek Price.
107556 2003-07-15  Jim Meyering  <jim@meyering.net>
107558         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
107560 2003-07-14  Simon Josefsson  <jas@extundo.com>
107562         * modules/mempcpy: New file.
107563         * MODULES.html.sh (func_all_modules): Add mempcpy.
107565 2003-07-14  Simon Josefsson  <jas@extundo.com>
107567         * m4/mempcpy.m4: New file.
107569 2003-07-14  Simon Josefsson  <jas@extundo.com>
107571         * lib/mempcpy.h: New file.
107572         * lib/mempcpy.c: New file.
107574 2003-07-14  Paul Eggert  <eggert@twinsun.com>
107576         * modules/getdate, modules/posixtm: Depend on mktime.
107578 2003-07-14  Paul Eggert  <eggert@twinsun.com>
107580         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
107581         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
107582         unicodeio.c, unicodeio.h, unlocked-io.h:
107583         Switch from LGPL to GPL.
107585 2003-07-14  Paul Eggert  <eggert@twinsun.com>
107587         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
107588         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
107589         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
107590         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
107591         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
107592         updated automatically by ../config/srclist-update.  This changes
107593         their license from LPGL to GPL.
107595 2003-07-14  Paul Eggert  <eggert@twinsun.com>
107597         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
107598         assumed to refer to the root of the most recent stable gettext version.
107599         * config/srclistvars.sh: Add defaults for eggert.
107600         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
107601         Match "This program" as well as "The program".  This is needed
107602         for gettext.
107604 2003-07-14  Jim Meyering  <jim@meyering.net>
107606         Don't emit diagnostics.  Let callers do that.
107607         * lib/save-cwd.c: Don't include "error.h".
107608         (save_cwd): Don't call error.  Ensure that errno is valid
107609         when returning nonzero.
107611         * lib/save-cwd.h (restore_cwd): Update prototype.
107612         * lib/save-cwd.c (restore_cwd): Remove two parameters.
107613         Simplify.  Don't call error upon failure.  Let callers do that.
107614         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
107615         when auditing is enabled.  But don't bother updating the #if.
107617 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
107619         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
107620         it breaks C++ compilation.
107621         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
107623 2003-07-10  Simon Josefsson  <jas@extundo.com>
107625         * modules/strchrnul (Makefile.am): Add strchrnul.h.
107627 2003-07-10  Jim Meyering  <jim@meyering.net>
107629         * m4/clock_time.m4: Remove trailing blank.
107630         * m4/intmax_t.m4: Likewise.
107632 2003-07-10  Jim Meyering  <jim@meyering.net>
107634         * lib/vasnprintf.c: Remove trailing blanks.
107635         Make cpp indentation consistent.
107637 2003-07-09  Paul Eggert  <eggert@twinsun.com>
107639         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
107640         posixver.c, strftime.c, strnlen.c, strverscmp.c:
107641         Switch from LGPL to GPL.
107643 2003-07-09  Paul Eggert  <eggert@twinsun.com>
107645         * config/srclist.txt: Sort sublists.  Add
107646         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
107647         that differ from gnulib for one reason or another; we'd like this list
107648         to be smaller but for now let's document what we have.
107650 2003-07-08  Paul Eggert  <eggert@twinsun.com>
107652         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
107653         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
107654         and sweeter "eval x=$x".
107655         * config/srclist.txt: Get lib/argp* from glibc.
107657 2003-07-07  Paul Eggert  <eggert@twinsun.com>
107659         * lib/mktime.c: Fix some boundary cases and remove need for floating
107660         point.
107662         Issue a compile-time diagnostic if time_t is floating point, or if
107663         two's complement arithmetic is not in effect, or if arithmetic
107664         right shift does not propagate the sign.  These assumptions were
107665         all in the original code but they weren't checked.
107667         (TIME_T_MIDPOINT, verify): New macros.
107668         (__isleap): Remove; it has integer overflow problems.
107669         (leapyear): New function, without those problems.
107670         (ydhms_tm_diff): Remove; splitting into two parts.
107671         (ydhms_diff): New function, containing the arithmetic part of
107672         the old ydhms_tm_diff function.  Issue a compile-time
107673         diagnostic if we are not using C99 integer division.
107674         Avoid casts when possible.
107675         (guess_time_tm): New function, containing the checking part of
107676         the old ydhms_tm_diff function.  Return the new value, rather than
107677         the difference between it and the old.  Accept a new argument T
107678         so that *T specifies the old value.  Check for overflow in the result.
107680         (__mktime_internal): Use a time_t offset, not a long int offset.
107681         This undoes the 2003-06-04 change, which is no longer needed now
107682         that we have better overflow checking.
107683         (localtime_offset): Likewise.
107685         (__mktime_internal): Avoid harmful overflow on hosts where time_t
107686         and long are 64-bit but int is only 32-bit.
107687         (ydhms_diff): Use long int to store year1 and yday1.
107688         Issue a compile-time diagnostic if long int is not wide enough.
107690         (__mktime_internal): Use long int to store adjusted year and yday.
107691         Use plain C rather than preprocessor commands, if that doesn't
107692         affect efficiency.
107693         Check for overflow (and try to repair) after each probe
107694         rather than checking only at the very end.  This avoids some bugs
107695         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
107696         does not equal GMT offset at maximum time).
107697         Use integer to check for overflow rather than floating point; this
107698         is more portable to non-IEEE hosts, and is a tad faster.
107699         When we detect that we are oscillating between two values,
107700         don't check whether tm_isdst has the requested value, since
107701         we already know the answer.  When tm_isdst has the wrong value,
107702         use a different heuristic to find the right one, based on the
107703         extreme values actually observed in practice in tz2003a,
107704         rather than the (overly optimistic) "previous 3 calendar quarters".
107706         (not_equal_tm, print_tm, check_result): Use "const T" rather than
107707         "T const" to accommodate glibc style.
107708         (check_result): Use less-confusing report format.  "long" -> "long int.
107709         (main): Likewise.
107710         Don't loop if the iteration overflows time_t.
107711         Allow a negative step in the iteration.
107713 2003-07-06  Karl Berry  <karl@gnu.org>
107715         * config/depcomp: update from automake.
107716         * config/config.sub: update from prep.
107718 2003-07-03  Karl Berry  <karl@gnu.org>
107720         * config/config.guess: update from prep.
107722 2003-07-01  Paul Eggert  <eggert@twinsun.com>
107724         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
107725         xreadlink.c now includes it unconditionally.
107727 2003-07-01  Paul Eggert  <eggert@twinsun.com>
107729         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
107730         having it depend on HAVE_SYS_TYPES_H.
107732 2003-07-01  Bruno Haible  <bruno@clisp.org>
107734         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
107735         <sys/types.h> should be sufficient.
107736         Reported by Paul Eggert.
107738 2003-06-26  Karl Berry  <karl@gnu.org>
107740         * config/depcomp: update from automake.
107742 2003-06-26  Bruno Haible  <bruno@clisp.org>
107744         * modules/human: Depend on module stdbool.
107746 2003-06-25  Bruno Haible  <bruno@clisp.org>
107748         * modules/readlink: New file.
107749         * modules/xreadlink: Depend on it.
107750         * MODULES.html.sh (func_all_modules): Add readlink.
107752 2003-06-25  Bruno Haible  <bruno@clisp.org>
107754         * m4/readlink.m4: New file.
107756 2003-06-25  Bruno Haible  <bruno@clisp.org>
107758         * lib/readlink.c: New file.
107760 2003-06-22  Karl Berry  <karl@gnu.org>
107762         * config/srclist.txt: update mkinstalldirs from automake.
107763         * config/mkinstalldirs: update.
107765 2003-06-22  Bruno Haible  <bruno@clisp.org>
107767         Portability to mingw32.
107768         * m4/ssize_t.m4: New file, from GNU gettext.
107769         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
107770         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
107772 2003-06-22  Bruno Haible  <bruno@clisp.org>
107774         * modules/safe-read: Add m4/ssize_t.m4.
107775         * modules/xreadlink: Add m4/ssize_t.m4.
107777 2003-06-20  Bruno Haible  <bruno@clisp.org>
107779         Assume C89, so PARAMS isn't needed.
107780         * lib/unicodeio.h (PARAMS): Remove.
107781         * lib/unicodeio.c: Don't use PARAMS.
107783 2003-06-18  Karl Berry  <karl@gnu.org>
107785         * config/config.{guess,sub}: update from prep.
107787 2003-06-18  Jim Meyering  <jim@meyering.net>
107789         Merge changes from coreutils.
107790         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
107791         Remove explicit declarations of xmalloc and realloc.
107792         Include xalloc.h.
107793         (read_utmp): Remove anachronistic cast of xmalloc.
107795 2003-06-17  Paul Eggert  <eggert@twinsun.com>
107797         Assume C89, so PARAMS isn't needed.
107798         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
107799         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
107800         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
107801         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
107802         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
107803         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
107804         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
107805         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
107806         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
107807         lib/xstrtod.h, lib/xstrtol.h: Likewise.
107808         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
107809         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
107810         no longer needed. Anyway, config.h should always be included before any
107811         other file.
107813 2003-06-11  Simon Josefsson  <jas@extundo.com>
107815         * modules/sysexits: New file.
107816         * MODULES.html.sh (func_all_modules): Add sysexits.
107818 2003-06-11  Simon Josefsson  <jas@extundo.com>
107820         * lib/sysexit_.h: New file.
107822 2003-06-11  Derek Price  <derek@ximbiot.com>
107824         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
107825         necessary.
107827 2003-06-11  Bruno Haible  <bruno@clisp.org>
107829         * m4/sysexits.m4: New file.
107831 2003-06-10  Simon Josefsson  <jas@extundo.com>
107833         * lib/argp.h: New file, from glibc.
107834         * lib/argp-ba.c: New file, from glibc.
107835         * lib/argp-eexst.c: New file, from glibc.
107836         * lib/argp-fmtstream.c: New file, from glibc.
107837         * lib/argp-fmtstream.h: New file, from glibc.
107838         * lib/argp-fs-xinl.c: New file, from glibc.
107839         * lib/argp-help.c: New file, from glibc.
107840         * lib/argp-namefrob.h: New file, from glibc.
107841         * lib/argp-parse.c: New file, from glibc.
107842         * lib/argp-pv.c: New file, from glibc.
107843         * lib/argp-pvh.c: New file, from glibc.
107844         * lib/argp-xinl.c: New file, from glibc.
107846 2003-06-10  Simon Josefsson  <jas@extundo.com>
107848         * modules/strchrnul: New file.
107850 2003-06-10  Simon Josefsson  <jas@extundo.com>
107852         * modules/argp: New file.
107854 2003-06-10  Simon Josefsson  <jas@extundo.com>
107856         * m4/strchrnul.m4: New file.
107858 2003-06-10  Simon Josefsson  <jas@extundo.com>
107860         * lib/strchrnul.h: New file.
107861         * lib/strchrnul.c: New file.
107863 2003-06-10  Bruno Haible  <bruno@clisp.org>
107865         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
107867 2003-06-07  Karl Berry  <karl@gnu.org>
107869         * config/config.{guess,sub}: update from prep.
107871 2003-06-07  Jim Meyering  <jim@meyering.net>
107873         * modules/strtod: Use $(...) notation, not @...@ for
107874         AC_REPLACE'd variables.
107875         * modules/localcharset: Likewise.
107877 2003-06-07  Jim Meyering  <jim@meyering.net>
107879         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
107880         in place of my name in the copyright comment.
107881         Remove definition and uses of __P.
107883         From coreutils.
107884         * lib/stat.c: Don't declare xmalloc explicitly.
107885         Instead, include "xalloc.h".
107886         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
107887         xrealloc, and xcalloc return values.
107888         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
107889         Improve comment.
107890         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
107892 2003-06-07  Bruno Haible  <bruno@clisp.org>
107894         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
107895         avoid AC_CONFIG_LINKS.
107896         * modules/fnmatch (Makefile.am): Use explicit creation rule for
107897         fnmatch.h, to avoid AC_CONFIG_LINKS.
107898         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
107900 2003-06-07  Bruno Haible  <bruno@clisp.org>
107902         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
107903         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
107904         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
107905         directory.
107906         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
107907         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
107908         directory.
107910 2003-06-06  Jim Meyering  <jim@meyering.net>
107912         Merge from coreutils.
107913         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
107914         Consolidate declarations and initializations of *_base* locals.
107916         Merge from coreutils.
107917         This avoids a core dump on systems without GNU putenv,
107918         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
107919         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
107920         (unsetenv): New static function, from GNU libc.
107921         (rpl_putenv): Use it.
107923         * lib/modechange.c: Remove trailing blanks.
107925         Merge from coreutils.
107926         * lib/fsusage.c: Remove declaration of statfs.
107927         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
107929         * lib/posixtm.c: Include <stdbool.h> unconditionally.
107931 2003-06-06  Jim Meyering  <jim@meyering.net>
107933         * lib/stdbool_.h: Renamed from stdbool.h.in.
107935 2003-06-06  Jim Meyering  <jim@meyering.net>
107936             Bruno Haible  <bruno@clisp.org>
107938         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
107939         Adjust Makefile.am snippet not to redirect directly to target.
107940         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
107942 2003-06-05  Paul Eggert  <eggert@twinsun.com>
107944         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
107945         mismatch, look in future quarters as well as past.  This fixes a
107946         bug when processing fall-backwards gaps immediately after a long
107947         period of daylight-saving time.
107949         * lib/mktime.c: Assume freestanding C89 or better.
107950         (HAVE_LIMITS_H): Remove.  Assume it's 1.
107951         (__P): Remove; not used.
107952         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
107953         (mktime, not_equal_tm, print_tm, check_result,
107954         main): Use prototypes.  Use const * where appropriate.
107955         (main): Fix typo in testing code that uncovered by above changes.
107956         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
107958 2003-06-04  Paul Eggert  <eggert@twinsun.com>
107960         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
107961         locale.h, localeconv.  This merges changes from coreutils.
107963         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
107964         It can be removed after the next Autoconf is released.
107965         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
107966         needed.
107968 2003-06-04  Paul Eggert  <eggert@twinsun.com>
107970         * lib/mktime.c: Fix Debian bug 177940
107971         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
107972         (localtime_offset): Now long int, not time_t, because we want it
107973         to be guaranteed to be signed.  All uses changed.
107974         (__mktime_internal): If overflow would occur when adding offset,
107975         don't add it.
107977         Merge 'human' changes from coreutils.  Rewrite to support
107978         locale-specific notations like thousands separators.
107979         * lib/human.c: Simplify authorship notice.
107980         Include human.h immediately after config.h.
107981         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
107982         <limits.h>: Do not include, since human.h does.
107983         (SIZE_MAX, UINTMAX_MAX): New macros.
107984         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
107985         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
107986         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
107987         (power_letter): Renamed from suffixes.
107988         (generate_suffix_backwards): Remove.
107989         (adjust_value): Now takes int style (because of human.h changes)
107990         and long double value (for greater precision on some platforms).
107991         (group_number): New function.
107992         (human_readable): Use it.  Use integer options, not enum.
107993         Put the options before the sizes in the arg list.
107994         Support all the new options.
107995         The old human_readable function has been removed;
107996         use inttostr.h instead.
107997         (human_readable, default_block_size, humblock):
107998         Use uintmax_t, not int, for block sizes.
107999         (human_readable_inexact, block_size_types): Remove.
108000         (block_size_opts): New constant.
108001         (human_options): Renamed from human_block_size, with new signature
108002         that allows block sizes up to UINTMAX_MAX.  All callers changed.
108003         * lib/human.h: Add copyright and authorship notice.
108004         Include <limits.h> and <stdbool.h> unconditionally.
108005         (PARAMS): Remove.  All uses removed.
108006         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
108007         (enum human_inexact_style): Remove tag; now a nameless enum.
108008         (human_floor, human_ceiling, human_round_to_even): Now have
108009         values 2, 0, 1 rather than -1, 1, 0.
108010         (human_group_digits, human_suppress_point_zero, human_autoscale,
108011         human_base_1024, human_SI, human_B): New constants.
108012         (human_readable_inexact, human_block_size): Remove.
108013         (human_readable): Size args are now uintmax_t, not int.
108014         (human_options): New decl.
108016         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
108017         unnecessary now that we assume C89 or better.  This change
108018         imported from coreutils.
108020         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
108021         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
108022         in the 2003-05-30 sync from glibc.
108024         .h files should stand alone, but we shouldn't include <sys/types.h>
108025         if we can get away with just <stddef.h>.
108027         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
108028         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
108029         rather than <sys/types.h>, as we merely need size_t.
108030         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
108031         to get size_t.
108032         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
108033         Include <stdio.h>, to get FILE.
108034         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
108035         memcasecmp.h has included <stddef.h> and all we need is size_t.
108036         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
108037         our interface, instead of including <sys/types.h>
108039 2003-06-04  Paul Eggert  <eggert@twinsun.com>
108041         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
108042         now, as glibc mktime is buggy on non-glibc systems.
108044 2003-06-03  Karl Berry  <karl@gnu.org>
108046         * config/config.sub: update from prep.
108048 2003-06-02  Paul Eggert  <eggert@twinsun.com>
108050         [from coreutils]
108051         Fix some minor time-related bugs with POSIX time arguments.
108052         Some valid time stamps were being rejected (notably -1, and
108053         time stamps before 1900 on 64-bit hosts).  And some invalid
108054         time stamps were being accepted, e.g. September 31.
108056         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
108057         that we can return (time_t) -1 successfully.
108058         * lib/posixtm.c: Likewise.
108059         [HAVE_STDBOOL_H]: Include <stdbool.h>.
108060         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
108061         (t): Remove static var.
108062         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
108063         of static var.  All uses changed.
108064         (year): Do not reject years before 1900; they can occur with
108065         64-bit time_t.
108066         (posix_time_parse): Do not check for out-of-range components;
108067         that is now the caller's responsibility, since our checks were
108068         only approximations.
108069         (posixtime): Use mktime to check for out-of-range components,
108070         since it knows them exactly.
108071         If mktime returns (time_t) -1, check whether an error actually occurred
108072         by invoking localtime on -1.
108073         (main) [TEST_POSIXTIME]: Check for input data errors, and report
108074         posixtime failures better.
108075         Improve the test data (in comments only).
108077 2003-06-02  Karl Berry  <karl@gnu.org>
108079         * config/mkinstalldirs (version): new variable.
108080         (--version): new option.
108081         (usage): improve message.
108083 2003-05-30  Karl Berry  <karl@gnu.org>
108085         * lib/mktime.c: update from libc.
108087 2003-05-30  Bruno Haible  <bruno@clisp.org>
108089         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
108090         * config/config.rpath: Upgrade to gettext-0.12.1.
108092 2003-05-30  Bruno Haible  <bruno@clisp.org>
108094         * m4/gettext.m4: Upgrade to gettext-0.12.1.
108095         * m4/nls.m4: New file, from gettext-0.12.1.
108096         * m4/po.m4: New file, from gettext-0.12.1.
108097         * m4/progtest.m4: Upgrade to gettext-0.12.1.
108099 2003-05-30  Bruno Haible  <bruno@clisp.org>
108101         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
108102         * lib/localcharset.h: Likewise.
108103         * lib/localcharset.c: Likewise.
108105 2003-05-29  Karl Berry  <karl@gnu.org>
108107         * config/config.rpath: update from gettext.
108109 2003-05-28  Paul Eggert  <eggert@twinsun.com>
108111         Assume the headers required for C89 freestanding compilers.
108112         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
108113         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
108114         * m4/human.m4 (gl_HUMAN): Likewise.
108115         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
108116         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
108117         * m4/userspec.m4 (gl_USERSPEC): Likewise.
108118         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
108119         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
108120         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
108122 2003-05-28  Paul Eggert  <eggert@twinsun.com>
108124         Assume the headers required for C89 freestanding compilers.
108125         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
108126         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
108127         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
108128         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
108129         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
108130         define, since <limits.h> is guaranteed to do that.
108131         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
108132         * lib/exclude.c: Include <stdbool.h> unconditionally.
108133         * lib/tempname.c: Include <stddef.h> unconditionally.
108134         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
108135         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
108136         <stddef.h> does that.
108137         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
108138         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
108139         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
108140         needed.
108141         * lib/xstrtol.c: Likewise.
108142         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
108143         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
108145         * lib/addext.c (addext): Use assignment rather than cast, to avoid
108146         warnings on some platforms.
108148         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
108149         arbitrarily.
108151 2003-05-26  Jim Meyering  <jim@meyering.net>
108153         Merge in a change from coreutils:
108154         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
108155         that is guaranteed to be `no'.  Use `no_such_member' to indicate
108156         that condition, rather than `-1' which is slightly misleading.
108157         Change the name of the cache variable to have the gl_ prefix.
108158         Prompted by a patch from Richard Dawe for DJGPP.
108160 2003-05-24  Karl Berry  <karl@gnu.org>
108162         * config/config.guess: update from prep.
108164 2003-05-22  Karl Berry  <karl@gnu.org>
108166         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
108168 2003-05-20  Karl Berry  <karl@gnu.org>
108170         * config/config.guess: update from prep.
108172 2003-05-18  Karl Berry  <karl@gnu.org>
108174         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
108175         might actually be set by the user.
108177         * config/depcomp, install-sh, mdate-sh: update from automake.
108179 2003-05-17  Bruno Haible  <bruno@clisp.org>
108181         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
108182         invalid expansion for AC_EGREP_CPP.
108183         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
108184         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
108185         Suggested by Akim Demaille <akim@epita.fr> in
108186         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
108188 2003-05-12  Jim Meyering  <jim@meyering.net>
108190         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
108191         the space-padded-by-default conversion specifiers, %e, %k, %l.
108193 2003-05-12  Bruno Haible  <bruno@clisp.org>
108195         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
108196         the string is longer than 4 KB.
108198 2003-05-11  Karl Berry  <karl@gnu.org>
108200         * config/config.{guess,sub}: update from prep.
108202 2003-05-09  Bruno Haible  <bruno@clisp.org>
108204         * modules/error: Add m4/strerror_r.m4 to file list.
108206 2003-05-03  Bruno Haible  <bruno@clisp.org>
108208         Upgrade to Unicode-4.0.
108209         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
108210         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
108211         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
108212         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
108213         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
108214         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
108215         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
108216         Change width of U+E0100..U+E01EF from 1 to 0.
108218 2003-04-25  Jim Meyering  <jim@meyering.net>
108220         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
108221         of type size_t, not int.
108223 2003-04-25  Bruno Haible  <bruno@clisp.org>
108225         * lib/copy-file.c: Include <stddef.h>, for size_t.
108227 2003-04-21  Paul Eggert  <eggert@twinsun.com>
108229         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
108230         code which expansion is under static control.  Patch imported from
108231         Akim Demaille's patch to Bison; see
108232         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
108234 2003-04-14  Bruno Haible  <bruno@clisp.org>
108236         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
108238 2003-04-11  Jim Meyering  <jim@meyering.net>
108240         Merge changes from Coreutils.
108242         2003-03-22  Jim Meyering  <jim@meyering.net>
108244         * lib/strftime.c (widen): Cast alloca return value to proper type.
108246         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
108248         From GNU libc.
108249         * lib/strftime.c (my_strftime): Handle very large width
108250         specifications for numeric values correctly.  Improve checks for
108251         overflow.
108253         2003-01-19  Jim Meyering  <jim@meyering.net>
108255         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
108256         definitions.
108257         (nl_get_alt_digit) [! defined my_strftime]: Define.
108258         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
108259         _nl_get_alt_digit and _nl_get_walt_digit.
108261         * lib/strftime.c (my_strftime): Merge in locale-related changes from
108262         libc. These changes have no effect outside of _LIBC.
108264 2003-04-10  Bruno Haible  <bruno@clisp.org>
108266         * modules/findprog: New file.
108267         * MODULES.html.sh (func_all_modules): Add it.
108269 2003-04-10  Bruno Haible  <bruno@clisp.org>
108271         * m4/findprog.m4: New file.
108272         * m4/eaccess.m4: New file.
108274 2003-04-10  Bruno Haible  <bruno@clisp.org>
108276         * lib/findprog.h: New file, from GNU gettext.
108277         * lib/findprog.c: New file, from GNU gettext.
108279 2003-04-05  Jim Meyering  <jim@meyering.net>
108281         Merge changes from Coreutils.
108283         * lib/exclude.h (PARAMS): Remove definition and uses.
108284         * lib/exclude.c: Remove uses of `PARAMS'.
108286         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
108287         Add test-cases for DOS filenames. Declare program_name.
108288         (main): Set up program_name.  Patch by Rich Dawe.
108290         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
108291         error from mntctl.
108292         Use mntctl's return value to drive the entry-processing loop, since
108293         we can't rely on the value of the vmt_length member in the last
108294         entry.  On some systems doing so could result in exhausting
108295         virtual memory.  Based in part on a patch from Mike Jetzer.
108297 2003-04-04  Bruno Haible  <bruno@clisp.org>
108299         * modules/linebreak: New file.
108300         * MODULES.html.sh (func_all_modules): Add it.
108302 2003-04-04  Bruno Haible  <bruno@clisp.org>
108304         * m4/linebreak.m4: New file.
108306 2003-04-04  Bruno Haible  <bruno@clisp.org>
108308         * lib/linebreak.h: New file, from GNU gettext.
108309         * lib/linebreak.c: New file, from GNU gettext with slight
108310         modifications.
108311         * lib/lbrkprop.h: New file, from GNU gettext.
108313 2003-04-03  Bruno Haible  <bruno@clisp.org>
108315         * modules/utf8-ucs4: New file.
108316         * modules/utf16-ucs4: New file.
108317         * modules/ucs4-utf8: New file.
108318         * modules/ucs4-utf16: New file.
108319         * MODULES.html.sh (func_all_modules): Add them.
108321 2003-04-03  Bruno Haible  <bruno@clisp.org>
108323         * m4/utf-ucs4.m4: New file.
108324         * m4/ucs4-utf.m4: New file.
108326 2003-04-03  Bruno Haible  <bruno@clisp.org>
108328         * lib/utf8-ucs4.h: New file, from GNU gettext.
108329         * lib/utf16-ucs4.h: New file, from GNU gettext.
108330         * lib/ucs4-utf8.h: New file, from GNU gettext.
108331         * lib/ucs4-utf16.h: New file, from GNU gettext.
108333 2003-04-02  Bruno Haible  <bruno@clisp.org>
108335         * modules/binary-io: New file.
108336         * MODULES.html.sh (func_all_modules): Add it.
108338 2003-04-02  Bruno Haible  <bruno@clisp.org>
108340         * lib/binary-io.h: New file, from GNU gettext.
108342 2003-04-01  Bruno Haible  <bruno@clisp.org>
108344         * modules/pathname: New file.
108345         * MODULES.html.sh (func_all_modules): Add it.
108347 2003-04-01  Bruno Haible  <bruno@clisp.org>
108349         * lib/pathname.h: New file, from GNU gettext.
108350         * lib/concatpath.c: New file, from GNU gettext.
108352 2003-03-30  Bruno Haible  <bruno@clisp.org>
108354         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
108356 2003-03-30  Bruno Haible  <bruno@clisp.org>
108358         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
108359         function chown() doesn't exist.
108361 2003-03-28  Bruno Haible  <bruno@clisp.org>
108363         * modules/copy-file: New file.
108364         * MODULES.html.sh (func_all_modules): Add it.
108366 2003-03-28  Bruno Haible  <bruno@clisp.org>
108368         * m4/copy-file.m4: New file.
108370 2003-03-28  Bruno Haible  <bruno@clisp.org>
108372         * lib/copy-file.h: New file, from GNU gettext.
108373         * lib/copy-file.c: New file, from GNU gettext.
108375 2003-03-18  Jim Meyering  <jim@meyering.net>
108377         * lib/quote.c (quote_n): Fix typo in comment.
108379 2003-03-18  Bruno Haible  <bruno@clisp.org>
108381         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
108382         checking.
108383         * m4/onceonly_2_57.m4: Likewise.
108385 2003-03-17  Bruno Haible  <bruno@clisp.org>
108387         * m4/onceonly.m4: Require autoconf 2.54 or newer.
108388         (m4_quote): Remove macro.
108389         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
108391 2003-03-14  Jim Meyering  <jim@meyering.net>
108393         Merge changes from Coreutils.
108394         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
108395         to be const, in order to avoid warnings.
108396         (obstack_room): Likewise.
108397         (obstack_empty_p): Likewise.
108399 2003-03-14  Bruno Haible  <bruno@clisp.org>
108401         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
108402         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
108404 2003-03-13  Paul Eggert  <eggert@twinsun.com>
108406         Merge changes from Bison.
108407         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
108408         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
108409         when compiling Bison 1.875's `bitset bset = obstack_alloc
108410         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
108411         * lib/hash.c: Include <stdbool.h> unconditionally.
108413 2003-03-13  Paul Eggert  <eggert@twinsun.com>
108415         * m4/onceonly.m4 (m4_quote): New macro.
108416         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
108417         Quote AC_FOREACH variable-expansions properly.
108419 2003-03-13  Paul Eggert  <eggert@twinsun.com>
108421         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
108423 2003-03-09  Paul Eggert  <eggert@twinsun.com>
108425         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
108426         Reported by Bruce Becker; see:
108427         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
108429 2003-03-03  Paul Eggert  <eggert@twinsun.com>
108430             Bruno Haible  <bruno@clisp.org>
108432         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
108433         Reported by John Hughes, see
108434         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
108436 2003-02-20  Bruno Haible  <bruno@clisp.org>
108438         * MODULES.html.sh (func_all_modules): Add poll.
108440 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
108442         * modules/poll: New file.
108444 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
108446         * lib/poll_.h: New file.
108447         * lib/poll.c: New file.
108449 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
108451         * m4/poll.m4: New file.
108453 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
108455         * modules/mathl: New file.
108457 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
108459         * lib/mathl.h: New file.
108460         * lib/acosl.c: New file.
108461         * lib/asinl.c: New file.
108462         * lib/atanl.c: New file.
108463         * lib/ceill.c: New file.
108464         * lib/cosl.c: New file.
108465         * lib/expl.c: New file.
108466         * lib/floorl.c: New file.
108467         * lib/frexpl.c: New file.
108468         * lib/ldexpl.c: New file.
108469         * lib/logl.c: New file.
108470         * lib/sincosl.c: New file.
108471         * lib/sinl.c: New file.
108472         * lib/sqrtl.c: New file.
108473         * lib/tanl.c: New file.
108474         * lib/trigl.c: New file.
108475         * lib/trigl.h: New file.
108477 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
108479         * m4/mathl.m4: New file.
108481 2003-02-18  Bruno Haible  <bruno@clisp.org>
108483         * MODULES.html.sh (func_all_modules): Add mathl.
108485 2003-02-17  Bruno Haible  <bruno@clisp.org>
108487         * modules/mkdtemp: New module.
108488         * MODULES.html.sh (func_all_modules): Add it.
108490 2003-02-17  Bruno Haible  <bruno@clisp.org>
108492         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
108494 2003-02-17  Bruno Haible  <bruno@clisp.org>
108496         * lib/mkdtemp.h: New file, from GNU gettext.
108497         * lib/mkdtemp.c: New file, from GNU gettext.
108499 2003-02-02  Jim Meyering  <jim@meyering.net>
108501         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
108502         e.g. glibc-2.2.93.
108504 2003-01-31  Bruno Haible  <bruno@clisp.org>
108506         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
108507         'rpl_rename'.
108508         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
108509         'rpl_strnlen'.
108510         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
108511         'rpl_strtod'.
108512         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
108513         'rpl_utime'.
108515 2003-01-31  Bruno Haible  <bruno@clisp.org>
108517         * lib/rename.c: #undef rename before defining rpl_rename.
108518         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
108520 2003-01-30  Bruno Haible  <bruno@clisp.org>
108522         * modules/vasnprintf, modules/vasprintf: New modules.
108523         * MODULES.html.sh (func_all_modules): Add them.
108525 2003-01-30  Bruno Haible  <bruno@clisp.org>
108527         * m4/signed.m4: New file, from GNU gettext.
108528         * m4/longdouble.m4: New file, from GNU gettext.
108529         * m4/wchar_t.m4: New file, from GNU gettext.
108530         * m4/wint_t.m4: New file, from GNU gettext.
108531         * m4/vasnprintf.m4: New file.
108532         * m4/vasprintf.m4: New file.
108534 2003-01-30  Bruno Haible  <bruno@clisp.org>
108536         * lib/printf-args.h: New file, from GNU gettext.
108537         * lib/printf-args.c: New file, from GNU gettext.
108538         * lib/printf-parse.h: New file, from GNU gettext.
108539         * lib/printf-parse.c: New file, from GNU gettext.
108540         * lib/vasnprintf.h: New file, from GNU gettext.
108541         * lib/vasnprintf.c: New file, from GNU gettext.
108542         * lib/asnprintf.c: New file, from GNU gettext.
108543         * lib/vasprintf.h: New file, from GNU gettext with modifications.
108544         * lib/vasprintf.c: New file, from GNU gettext.
108545         * lib/asprintf.c: New file, from GNU gettext.
108547 2003-01-29  Bruno Haible  <bruno@clisp.org>
108549         * modules/stpncpy: New module.
108550         * MODULES.html.sh (func_all_modules): Add it.
108552 2003-01-29  Bruno Haible  <bruno@clisp.org>
108554         * m4/stpncpy.m4: New file.
108556 2003-01-29  Bruno Haible  <bruno@clisp.org>
108558         * lib/stpncpy.h: New file, from GNU gettext with modifications.
108559         * lib/stpncpy.c: New file, from GNU gettext with modifications.
108561 2003-01-28  Bruno Haible  <bruno@clisp.org>
108563         * modules/c-ctype: New module.
108564         * MODULES.html.sh (func_all_modules): Add it.
108566 2003-01-28  Bruno Haible  <bruno@clisp.org>
108568         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
108569         Paul Eggert.
108570         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
108571         Paul Eggert.
108573 2003-01-27  Bruno Haible  <bruno@clisp.org>
108575         * modules/xsetenv: New module.
108576         * MODULES.html.sh (func_all_modules): Add it.
108578 2003-01-27  Bruno Haible  <bruno@clisp.org>
108580         * lib/xsetenv.h: New file, from GNU gettext.
108581         * lib/xsetenv.c: New file, from GNU gettext.
108583 2003-01-23  Jim Meyering  <jim@meyering.net>
108585         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
108586         from working on systems without dirfd (at least Irix and OSF1/Tru64).
108588 2003-01-23  Bruno Haible  <bruno@clisp.org>
108590         * modules/minmax: New module.
108591         * MODULES.html.sh (func_all_modules): Add it.
108593 2003-01-23  Bruno Haible  <bruno@clisp.org>
108595         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
108596         Eggert.
108598 2003-01-22  Bruno Haible  <bruno@clisp.org>
108600         * modules/exit: New module.
108601         * MODULES.html.sh (func_all_modules): Add it.
108603 2003-01-22  Bruno Haible  <bruno@clisp.org>
108605         * lib/exit.h: New file, from GNU gettext.
108607 2003-01-19  Bruno Haible  <bruno@clisp.org>
108609         * gnulib-tool: Recognize option --extract-maintainer.
108610         (func_get_maintainer): New function.
108611         * modules/*: Add Maintainer entry.
108613 2003-01-16  Jim Meyering  <jim@meyering.net>
108615         * m4/regex.m4: The `regex' struct is both input and output.
108616         Initialize it before each use.  Patch by Tim Waugh.
108618 2003-01-16  Bruno Haible  <bruno@clisp.org>
108620         * MODULES.html.sh: Add a table of contents. Add the module name as
108621         leftmost column. Add hyperlinks.
108623 2003-01-15  Bruno Haible  <bruno@clisp.org>
108625         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
108627 2003-01-15  Bruno Haible  <bruno@clisp.org>
108629         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
108630         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
108631         suffix.
108633 2003-01-15  Bruno Haible  <bruno@clisp.org>
108635         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
108637 2003-01-15  Bruno Haible  <bruno@clisp.org>
108639         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
108640         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
108642 2003-01-14  Jim Meyering  <jim@meyering.net>
108644         * lib/same.c (same_name): Tweak a comment.
108646 2003-01-14  Bruno Haible  <bruno@clisp.org>
108648         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
108649         when a string comparison is sufficient.
108651 2003-01-14  Bruno Haible  <bruno@clisp.org>
108653         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
108654         'unsigned int'.
108656 2003-01-14  Bruno Haible  <bruno@clisp.org>
108658         * lib/hash-pjw.c: Add comment about low quality of this function.
108660 2003-01-13  Bruno Haible  <bruno@clisp.org>
108662         * modules/stpcpy: Distribute lib/stpcpy.h.
108663         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
108665 2003-01-13  Bruno Haible  <bruno@clisp.org>
108667         * modules/*: Add a description.
108668         * modules/strpbrk: Fix Makefile.am snippet.
108669         * modules/strtoimax: Fix dependencies.
108670         * modules/strtoumax: Likewise.
108672 2003-01-13  Bruno Haible  <bruno@clisp.org>
108674         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
108675         * modules/alloca (Makefile.am): All object files depend on alloca.h.
108676         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
108678 2003-01-13  Bruno Haible  <bruno@clisp.org>
108680         * gnulib-tool (func_create_testdir): Store config/* files in the main
108681         directory.
108682         * config.rpath: Move to ...
108683         * config/config.rpath: ... here.
108684         * modules/gettext: Contains config/config.rpath, not config.rpath.
108685         * modules/iconv: Likewise.
108687 2003-01-12  Paul Eggert  <eggert@twinsun.com>
108689         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
108690         to avoid collisions with libcurses and libreadline.
108692         * m4/getstr.m4: Remove.
108693         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
108695 2003-01-12  Paul Eggert  <eggert@twinsun.com>
108697         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
108698         to avoid collisions with libcurses and libreadline.
108700         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
108701         * lib/getstr.h, getstr.c: Remove.
108702         * lib/getline.c: Include "getline.h", to check interface.
108703         Move body of old getstr.c here: this defines MIN_CHUNK and
108704         declares getdelim2, which is renamed from getstr.
108705         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
108707         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
108708         All uses changed.
108709         * lib/linebuffer.h: Likewise.
108710         (readline): Remove backward-compatibility macro.
108712 2003-01-12  Paul Eggert  <eggert@twinsun.com>
108714         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
108715         to avoid collisions with libcurses and libreadline.
108716         * getstr: Remove.
108717         * MODULES.html.sh: Remove getstr.
108718         * modules/getline: Depend on unlocked-io, not getstr.
108720 2003-01-12  Jim Meyering  <jim@meyering.net>
108722         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
108724 2003-01-10  Bruno Haible  <bruno@clisp.org>
108726         * modules/alloca: Change Makefile.am requirements. Simplify Include
108727         requirements. Add lib/alloca_.h to file list.
108729 2003-01-10  Bruno Haible  <bruno@clisp.org>
108731         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
108733 2003-01-10  Bruno Haible  <bruno@clisp.org>
108735         * lib/alloca_.h: New file.
108736         * lib/getdate.y: Unconditionally include alloca.h.
108737         * lib/makepath.c: Likewise.
108738         * lib/setenv.c: Likewise.
108739         * lib/userspec.c: Likewise.
108741 2003-01-09  Karl Berry  <karl@gnu.org>
108743         * MODULES.html.sh: include `dirname $0` in PATH, to find
108744         gnulib-tool.
108746 2003-01-09  Bruno Haible  <bruno@clisp.org>
108748         * modules/stdbool: Change configure.ac, Makefile.am requirements.
108749         Simplify Include requirements. Add lib/stdbool.h.in to file list.
108751 2003-01-09  Bruno Haible  <bruno@clisp.org>
108753         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
108755 2003-01-09  Bruno Haible  <bruno@clisp.org>
108757         * lib/stdbool.h.in: New file.
108759 2003-01-09  Bruno Haible  <bruno@clisp.org>
108761         * gnulib-tool (func_all_modules): Ignore files ending in ~.
108762         * MODULES.html.sh: Likewise.
108764 2003-01-08  Jim Meyering  <jim@meyering.net>
108766         * lib/full-write.c: Undefine and define-away `const' after inclusion
108767         of errno.h, not before.  Suggestion from Bruno Haible.
108769 2003-01-08  Bruno Haible  <bruno@clisp.org>
108771         * modules/full-read: Depend on full-write.
108773 2003-01-08  Bruno Haible  <bruno@clisp.org>
108775         * lib/safe-read.c: Include specification header first, to ensure its
108776         selfcontainedness.
108777         * lib/full-write.c: Likewise.
108779 2003-01-07  Jim Meyering  <jim@meyering.net>
108781         * lib/full-write.c: Rework so that it may serve to define full_read,
108782         too.
108783         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
108785 2003-01-07  Bruno Haible  <bruno@clisp.org>
108787         * lib/strtoimax.c: Include <stdint.h> as an alternative to
108788         <inttypes.h>.
108789         * lib/xstrtol.h: Likewise.
108790         * lib/xstrtoimax.c: Likewise.
108791         * lib/xstrtoumax.c: Likewise.
108792         * lib/human.h: Likewise.
108794         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
108795         on systems that have <inttypes.h> but not <stdint.h>.
108797 2003-01-07  Bruno Haible  <bruno@clisp.org>
108799         * MODULES.html.sh: Add copyright notice.
108800         (missed_files): Omit CVS directory entries.
108801         (func_module): Make it work with sed-3.02.
108802         * MODULES.txt: Remove file.
108804 2003-01-06  Jim Meyering  <jim@meyering.net>
108806         * lib/version-etc.c: Update year in translatable copyright string.
108808 2003-01-03  Karl Berry  <karl@gnu.org>
108810         * config/config.{guess,sub}: update from prep.
108812 2003-01-02  Karl Berry  <karl@gnu.org>
108814         * doc/COPYING.DOC: belatedly updated to 1.2.
108816 2003-01-01  Karl Berry  <karl@gnu.org>
108818         * gnulib-tool (func_verify_module): report module name $module in
108819         error message, not $1.
108820         * gnulib-tool (create-testdir): don't complain if destdir couldn't
108821         be created, only if it doesn't exist.
108822         * gnulib-tool (last_checkin_date): don't expand the $Date here.
108824 2002-12-31  Paul Eggert  <eggert@twinsun.com>
108826         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
108828 2002-12-31  Paul Eggert  <eggert@twinsun.com>
108830         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
108831         memcmp if strcoll doesn't work.
108833 2002-12-31  Bruno Haible  <bruno@clisp.org>
108835         * lib/utime.c (utime_null): No need to call ftruncate if the file was
108836         nonempty.
108838 2002-12-31  Bruno Haible  <bruno@clisp.org>
108840         * lib/memcoll.c (STRCOLL): New macro.
108841         (memcoll): Use it.
108843 2002-12-31  Bruno Haible  <bruno@clisp.org>
108845         * lib/localcharset.h: New file.
108846         * lib/localcharset.c: Include it.
108847         * lib/unicodeio.c: Likewise.
108849 2002-12-31  Bruno Haible  <bruno@clisp.org>
108851         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
108852         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
108854 2002-12-31  Bruno Haible  <bruno@clisp.org>
108856         * lib/getline.h: Include <stddef.h>, for size_t.
108858         * lib/unicodeio.h: Include <stddef.h>, for size_t.
108859         * lib/unicodeio.c: Don't include <stddef.h>.
108861 2002-12-31  Bruno Haible  <bruno@clisp.org>
108863         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
108864         HAVE_TM_ZONE.
108866 2002-12-24  Karl Berry  <karl@gnu.org>
108868         * config/config.guess: update from prep.
108870 2002-12-24  Bruno Haible  <bruno@clisp.org>
108872         General infrasructure.
108873         * m4/README: Rewritten.
108874         * m4/onceonly.m4: New file.
108875         * m4/onceonly_2_57.m4: New file.
108877         Module atexit.
108878         * m4/atexit.m4: New file.
108880         Module strtod.
108881         * m4/strtod.m4: New file.
108883         Module strtol.
108884         * m4/strtol.m4: New file.
108886         Module strtoul.
108887         * m4/strtoul.m4: New file.
108889         Module memchr.
108890         * m4/memchr.m4: New file.
108892         Module memcmp.
108893         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
108894         (jm_FUNC_MEMCMP): Invoke it.
108896         Module memcpy.
108897         * m4/memcpy.m4: New file.
108899         Module memmove.
108900         * m4/memmove.m4: New file.
108902         Module memset.
108903         * m4/memset.m4: New file.
108905         Module strcspn.
108906         * m4/strcspn.m4: New file.
108908         Module strpbrk.
108909         * m4/strpbrk.m4: New file.
108911         Module strstr.
108912         * m4/strstr.m4: New file.
108914         Module strerror.
108915         * m4/strerror.m4: New file.
108917         Module mktime.
108918         * m4/mktime.m4: Renamed from jm-mktime.m4.
108919         (gl_PREREQ_MKTIME): New macro.
108920         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
108922         Module malloc.
108923         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
108924         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
108925         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
108927         Module realloc.
108928         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
108929         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
108930         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
108932         Module strftime.
108933         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
108934         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
108935         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
108936         gl_TM_GMTOFF.
108937         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
108939         Module xalloc.
108940         * m4/xalloc.m4: New file.
108942         Module alloca.
108943         * m4/alloca.m4: New file.
108945         Module putenv.
108946         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
108947         (jm_FUNC_PUTENV): Invoke it.
108949         Module setenv.
108950         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
108951         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
108952         when invoked twice.
108953         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
108954         gt_FUNC_SETENV.
108956         Module memrchr.
108957         * m4/memrchr.m4: New file.
108959         Module stpcpy.
108960         * m4/stpcpy.m4: New file.
108962         Module strcase.
108963         * m4/strcase.m4: New file.
108965         Module strdup.
108966         * m4/strdup.m4: New file.
108968         Module strnlen.
108969         * m4/strnlen.m4: New file.
108971         Module strndup.
108972         * m4/strndup.m4: New file.
108974         Module xstrtod.
108975         * m4/xstrtod.m4: New file.
108977         Module xstrtol.
108978         * m4/xstrtol.m4: New file.
108980         Module getdate.
108981         * m4/getdate.m4: New file.
108983         Module unlocked-io.
108984         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
108985         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
108986         * m4/jm-glibc-io.m4n: Remove file.
108988         Module long-options.
108989         * m4/long-options.m4: New file.
108991         Module md5.
108992         * m4/md5.m4: New file.
108994         Module sha.
108995         * m4/sha.m4: New file.
108997         Module getstr.
108998         * m4/getstr.m4: New file.
109000         Module getline.
109001         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
109002         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
109003         <sys/types.h>, for size_t. Use the function name gnu_getline, not
109004         simply getline. Infoke gl_PREREQ_GETLINE.
109006         Module obstack.
109007         * m4/obstack.m4: New file.
109009         Module hash.
109010         * m4/hash.m4: New file.
109012         Module readtokens.
109013         * m4/readtokens.m4: New file.
109015         Module strverscmp.
109016         * m4/strverscmp.m4: New file.
109018         Module stdbool.
109019         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
109020         OSF/1.
109022         Module strtoll.
109023         * m4/strtoll.m4: New file.
109025         Module strtoull.
109026         * m4/strtoull.m4: New file.
109028         Module strtoimax.
109029         * m4/strtoimax.m4: New file.
109031         Module strtoumax.
109032         * m4/strtoumax.m4: New file.
109034         Module xstrtoimax.
109035         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
109036         jm_AC_PREREQ_XSTRTOIMAX.
109037         Moved the strtol prerequisites to strtol.m4.
109038         Moved the strtoll prerequisites to strtoll.m4.
109039         Moved the strtoimax prerequisites to strtoimax.m4.
109041         Module xstrtoumax.
109042         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
109043         jm_AC_PREREQ_XSTRTOUMAX.
109044         Moved the strtoul prerequisites to strtoul.m4.
109045         Moved the strtoull prerequisites to strtoull.m4.
109046         Moved the strtoumax prerequisites to strtoumax.m4.
109048         Module chown.
109049         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
109050         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
109052         Module dup2.
109053         * m4/dup2.m4: New file.
109055         Module ftruncate.
109056         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
109057         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
109059         Module getgroups.
109060         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
109061         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
109063         Module gettimeofday.
109064         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
109065         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
109066         gl_PREREQ_GETTIMEOFDAY.
109068         Module mkdir.
109069         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
109070         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
109072         Module mkstemp.
109073         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
109074         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
109075         jm_AC_TYPE_UINTMAX_T.
109076         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
109078         Module stat.
109079         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
109080         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
109082         Module lstat.
109083         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
109084         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
109086         Module timespec.
109087         * m4/timespec.m4 (gl_TIMESPEC): New macro.
109088         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
109089         * m4/st_mtim.m4: Indentation.
109091         Module nanosleep.
109092         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
109093         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
109094         gl_PREREQ_NANOSLEEP.
109096         Module regex.
109097         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
109098         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
109099         (gl_REGEX): New macro.
109101         Module rename.
109102         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
109103         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
109105         Module rmdir.
109106         * m4/rmdir.m4: New file.
109108         Module utime.
109109         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
109110         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
109111         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
109113         Module dirname.
109114         * m4/dirname.m4: New file.
109116         Module getopt.
109117         * m4/getopt.m4: New file.
109119         Module unistd-safer.
109120         * m4/unistd-safer.m4: New file.
109122         Module fnmatch.
109123         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
109124         declaration.
109125         (gl_PREREQ_FNMATCH_EXTRA): New macro.
109126         (gl_FUNC_FNMATCH_POSIX): New macro.
109127         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
109128         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
109129         simply fnmatch.
109131         Module exclude.
109132         * m4/exclude.m4: New file.
109134         Module human.
109135         * m4/human.m4: New file.
109137         Module acl.
109138         * m4/acl.m4: Nop.
109140         Module backupfile.
109141         * m4/backupfile.m4: New file.
109142         * m4/d-ino.m4: Indentation.
109144         Module fsusage.
109145         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
109146         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
109147         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
109149         Module dirfd.
109150         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
109151         requirements.
109153         Module euidaccess.
109154         * m4/euidaccess.m4: New file.
109156         Module file-type.
109157         * m4/file-type.m4: New file.
109159         Module fileblocks.
109160         * m4/fileblocks.m4: New file.
109162         Module filemode.
109163         * m4/filemode.m4: New file.
109165         Module isdir.
109166         * m4/isdir.m4: New file.
109168         Module lchown.
109169         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
109170         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
109172         Module makepath.
109173         * m4/makepath.m4: New file.
109175         Module modechange.
109176         * m4/modechange.m4: New file.
109178         Module mountlist.
109179         * m4/mountlist.m4: New file.
109180         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
109181         Indentation.
109183         Module path-concat.
109184         * m4/path-concat.m4: New file.
109186         Module pathmax.
109187         * m4/pathmax.m4: New file.
109189         Module same.
109190         * m4/same.m4: New file.
109192         Module save-cwd.
109193         * m4/save-cwd.m4: New file.
109195         Module savedir.
109196         * m4/savedir.m4: New file.
109198         Module xgetcwd.
109199         * m4/xgetcwd.m4: New file.
109200         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
109202         Module xreadlink.
109203         * m4/xreadlink.m4: New file.
109205         Module safe-read.
109206         * m4/safe-read.m4: New file.
109208         Module safe-write.
109209         * m4/safe-write.m4: New file.
109211         Module closeout.
109212         * m4/closeout.m4: New file.
109214         Module stdio-safer.
109215         * m4/stdio-safer.m4: New file.
109217         Module getpass.
109218         * m4/getpass.m4: New file.
109220         Module getugroups.
109221         * m4/getugroups.m4: New file.
109223         Module group-member.
109224         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
109225         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
109227         Module idcache.
109228         * m4/idcache.m4: New file.
109230         Module userspec.
109231         * m4/userspec.m4: New file.
109233         Module gettime.
109234         * m4/clock_time.m4: New file.
109235         * m4/gettime.m4: New file.
109237         Module settime.
109238         * m4/settime.m4: New file.
109240         Module posixtm.
109241         * m4/posixtm.m4: New file.
109243         Module gethostname.
109244         * m4/gethostname.m4: New file.
109246         Module canon-host.
109247         * m4/canon-host.m4: New file.
109249         Module gettext.
109250         * m4/codeset.m4: New file, from gettext-0.11.5.
109251         * m4/gettext.m4: New file, from gettext-0.11.5.
109252         * m4/glibc21.m4: New file, from gettext-0.11.5.
109253         * m4/iconv.m4: New file, from gettext-0.11.5.
109254         * m4/intdiv0.m4: New file, from gettext-0.11.5.
109255         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
109256         * m4/inttypes.m4: New file, from gettext-0.11.5.
109257         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
109258         * m4/isc-posix.m4: New file, from gettext-0.11.5.
109259         * m4/lcmessage.m4: New file, from gettext-0.11.5.
109260         * m4/lib-ld.m4: New file, from gettext-0.11.5.
109261         * m4/lib-link.m4: New file, from gettext-0.11.5.
109262         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
109263         * m4/progtest.m4: New file, from gettext-0.11.5.
109264         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
109265         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
109266         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
109268         Module localcharset.
109269         * m4/localcharset.m4: New file.
109271         Module hard-locale.
109272         * m4/hard-locale.m4: New file.
109274         Module mbswidth.
109275         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
109276         onceonly macros.
109277         * m4/mbrtowc.m4: Add comment.
109279         Module memcasecmp.
109280         * m4/memcasecmp.m4: New file.
109282         Module memcoll.
109283         * m4/memcoll.m4: New file.
109285         Module unicodeio.
109286         * m4/unicodeio.m4: New file.
109288         Module rpmatch.
109289         * m4/rpmatch.m4: New file.
109291         Module yesno.
109292         * m4/yesno.m4: New file.
109294         Module exitfail.
109295         * m4/exitfail.m4: New file.
109297         Module c-stack.
109298         * m4/c-stack.m4 (gl_C_STACK): New macro.
109299         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
109301         Module error.
109302         * m4/error.m4 (gl_ERROR): New macro.
109303         (jm_PREREQ_ERROR): Use onceonly macros.
109305         Module fatal.
109306         * m4/fatal.m4: New file.
109308         Module getloadavg.
109309         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
109310         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
109312         Module getpagesize.
109313         * m4/getpagesize.m4: New file.
109315         Module getusershell.
109316         * m4/getusershell.m4: New file.
109318         Module physmem.
109319         * m4/physmem.m4: New file.
109321         Module posixver.
109322         * m4/posixver.m4: New file.
109324         Module quotearg.
109325         * m4/quotearg.m4: New file.
109327         Module quote.
109328         * m4/quote.m4: New file.
109330         Module readutmp.
109331         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
109333         Module sig2str.
109334         * m4/sig2str.m4: New file.
109336         Other.
109337         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
109338         ulonglong.m4.
109339         * m4/intmax_t.m4: New file.
109340         * m4/d-type.m4: Indentation.
109341         * m4/jm-macros.m4: Update.
109342         * m4/prereq.m4 (jm_PREREQ): Update.
109343         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
109344         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
109345         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
109346         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
109347         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
109348         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
109349         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
109350         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
109351         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
109352         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
109353         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
109354         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
109355         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
109356         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
109357         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
109358         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
109359         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
109360         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
109361         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
109363 2002-12-24  Bruno Haible  <bruno@clisp.org>
109365         * MODULES.txt: Update according to m4/ changes.
109367         Module gettext.
109368         * config.rpath: New file, from gettext-0.11.5.
109370         * modules/*: New module descriptions.
109371         * gnulib-tool: New file.
109372         * MODULES.html.sh: New file.
109374 2002-12-21  Karl Berry  <karl@gnu.org>
109376         * doc/fdl.texi: update to version 1.2.
109378 2002-12-19  Karl Berry  <karl@gnu.org>
109380         * config/config.guess: update from prep.
109382 2002-12-18  Bruno Haible  <bruno@clisp.org>
109384         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
109385         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
109387 2002-12-17  Bruno Haible  <bruno@clisp.org>
109389         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
109390         stdlib.h, string.h.
109392 2002-12-17  Bruno Haible  <bruno@clisp.org>
109394         * lib/canon-host.c (strdup): Remove unused declaration.
109396         * lib/fsusage.c: Include full_read.h.
109397         (get_fs_usage): Use full_read instead of safe_read.
109399         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
109401 2002-12-12  Karl Berry  <karl@gnu.org>
109403         * config/config.guess: update from prep.
109405 2002-12-11  Bruno Haible  <bruno@clisp.org>
109407         * m4/setenv.m4: New file, from gettext-0.11.5.
109409 2002-12-11  Bruno Haible  <bruno@clisp.org>
109411         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
109412         not unsetenv().
109413         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
109414         modifications:
109416         2002-12-11  Bruno Haible  <bruno@clisp.org>
109418                 * setenv.c (alloca): Fall back to malloc.
109419                 (freea): New macro.
109420                 (setenv): Use freea() to free memory allocated with alloca().
109422         2002-11-13  Bruno Haible  <bruno@clisp.org>
109424                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
109425                 function declarations.
109426                 * unsetenv.c (unsetenv): Likewise.
109428         2002-03-04  Bruno Haible  <bruno@clisp.org>
109430                 Portability to AIX 4.3.3.
109431                 * unsetenv.c: New file, extracted from setenv.c.
109432                 * setenv.c: Move the unsetenv() function to unsetenv.c.
109434         2001-12-20  Bruno Haible  <bruno@clisp.org>
109436                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
109437                 use malloc instead. For SunOS 4.
109439         2001-12-11  Bruno Haible  <bruno@clisp.org>
109441                 * setenv.c: Declare alloca.
109442                 (compar_fn_t): New typedef.
109443                 (KNOWN_VALUE, STORE_VALUE): Use it.
109445         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
109446         setenv.h.
109448 2002-12-10  Paul Eggert  <eggert@twinsun.com>
109450         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
109451         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
109452         Choose values that are less likely to collide with system fnmatch
109453         options.
109454         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
109455         defined (e.g., a pure POSIX system).
109456         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
109457         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
109459 2002-12-06  Paul Eggert  <eggert@twinsun.com>
109461         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
109462         a pain in practice to deal with generated m4 files.  This change
109463         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
109465         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
109466         and jm-glibc-io.m4, as they are no longer a special case.
109467         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
109468         kludge and the auto-generation stuff.  Check only whether the
109469         functions are declared, not whether they exist, since older hosts
109470         that don't declare the functions can't use the optimization anyway.
109472 2002-12-06  Jim Meyering  <jim@meyering.net>
109474         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
109476         Merge in changes from libc's misc/error.c, in preparation
109477         for the merge of gnulib's changes back into libc.
109479         * lib/error.c (_): Define only if not already defined.
109480         Move definition to follow all #include directives.
109481         Include unlocked-io.h only if !_LIBC.
109482         [_LIBC]: Include <libio/libioP.h>.
109483         [USE_IN_LIBIO]: Include <libio/iolibio.h>
109484         (fflush): Tweak definition to use INTUSE.
109485         (putc): Define.
109487 2002-12-05  Paul Eggert  <eggert@twinsun.com>
109489         * lib/alloca.c [defined emacs]: Include "lisp.h".
109490         (xalloc_die) [defined emacs]: New macro.
109491         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
109492         [! defined emacs]: Include <xalloc.h>.
109493         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
109494         (pointer): Typedef to POINTER_TYPE *.
109495         (malloc): Remove decl; we now always use xmalloc.
109496         (alloca): Use old-style definition, since Emacs needs this.
109497         Check for arithmetic overflow when computing combined size.
109499 2002-12-04  Paul Eggert  <eggert@twinsun.com>
109501         Do not generate unlocked-io.h automatically, since it's easier to
109502         maintain it by hand.
109504         * lib/unlocked-io.h: New file, from GNU diffutils,
109505         but with proper copyright notice and attribution.
109506         * lib/gen-uio: Remove.
109507         * lib/Makefile.am: Add copyright notice.
109508         (libfetish_a_SOURCES): Add unlocked-io.h.
109509         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
109510         (DISTCLEANFILES, io_functions): Remove macros.
109511         (EXTRA_DIST): Remove gen_uio.
109512         (unlocked-io.h): Remove rule.
109514 2002-12-04  Jim Meyering  <jim@meyering.net>
109516         Reflect the fact that stat.c and lstat.c are no longer generated.
109517         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
109518         (DISTCLEANFILES): Likewise.
109519         (EXTRA_DIST): Likewise.
109520         (all_local): Don't depend on stat.c or lstat.c.
109521         (stat.c, lstat.c): Remove rules.
109522         (EXTRA_DIST): Remove xstat.in.
109524         * lib/xstat.in: Remove file.  Contents moved into stat.c.
109525         * lib/stat.c: New file.  Contents mostly from xstat.in.
109526         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
109527         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
109529         * lib/safe-read.c: Rework so that it may serve to define safe_write,
109530         too.
109531         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
109533 2002-12-03  Jim Meyering  <jim@meyering.net>
109535         * lib/safe-read.c, safe-write.c: Change variable names and comments,
109536         but not semantics, to minimize the differences between these two files.
109537         (safe_read): Change comment to mention SAFE_READ_ERROR.
109539         * lib/safe-read.c (IS_EINTR): Define.
109540         (safe_read): Use IS_EINTR in place of in-function cpp directives.
109542 2002-12-02  Jim Meyering  <jim@meyering.net>
109544         * lib/safe-read.c (EINTR): Define.
109545         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
109546         (INT_MAX): Provide fallback.
109547         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
109549         * lib/safe-read.h (SAFE_READ_ERROR): Define.
109551 2002-12-02  Bruno Haible  <bruno@clisp.org>
109553         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
109554         Define, taken from safe-read.c.
109555         (INT_MAX): Provide fallback.
109556         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
109557         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
109559         * lib/safe-read.c (EINTR): Remove definition.
109560         (safe_read): Don't use EINTR if it is absent.
109562 2002-12-01  Jim Meyering  <jim@meyering.net>
109564         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
109565         zero.
109566         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
109568 2002-11-27  Paul Eggert  <eggert@twinsun.com>
109570         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
109571         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
109572         with `if (! (value < limit)) abort ();', for readability.
109574 2002-11-26  Karl Berry  <karl@gnu.org>
109576         * lib/strdup.c: copy from libc again, with jim's ok.
109577         * lib/.cppi-disable: re-add strdup.c
109579 2002-11-25  Karl Berry  <karl@gnu.org>
109581         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
109582         instead of "strtol.c".
109584 2002-11-25  Karl Berry  <karl@gnu.org>
109586         * config/install-sh: update from automake for variable quoting, $0 in
109587         error msgs, etc.
109589         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
109590         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
109591         entry.
109593 2002-11-25  Jim Meyering  <jim@meyering.net>
109595         * lib/mktime.c: Sync from libc, now that it has the latest fix.
109597 2002-11-24  Karl Berry  <karl@gnu.org>
109599         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
109600         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
109602 2002-11-24  Jim Meyering  <jim@meyering.net>
109604         Update from coreutils:
109606         * lib/mktime.c: Merge in changes from libc.
109608         Avoid a link-time failure on some Linux systems.
109609         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
109610         (otherwise).
109611         (__mon_yday): Declare with the STATIC attribute.
109612         (__mktime_internal): Likewise.
109613         Based on a report from Greg Schafer.
109615 2002-11-23  Jim Meyering  <jim@meyering.net>
109617         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
109618         Use `unsigned', not `int', as type of index.
109620         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
109622         * lib/fsusage.c: Remove unneeded parentheses around operands of
109623         `defined'.
109625 2002-11-22  Paul Eggert  <eggert@twinsun.com>
109627         * lib/quotearg.h: Allow multiple inclusion by surrounding with
109628         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
109629         so that we can be included first.
109630         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
109631         * lib/quotearg.c: Include quotearg.h immediately after config.h.
109632         No need to include stddef.h or sys/types.h any more.
109633         Surround local include files with "", not "<>".
109634         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
109635         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
109636         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
109637         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
109638         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
109639         (ISPRINT): Remove; no longer needed now that we assume C89.
109641         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
109642         Preserve errno.
109644         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
109645         quotearg_char): Use SIZE_MAX rather than
109646         (size_t) -1 when we are talking about "infinity".
109648         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
109650 2002-11-22  Paul Eggert  <eggert@twinsun.com>
109652         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
109653         hint that one should use `if (! x) abort ();' rather than `assert
109654         (x);', and anyway it's one less thing to worry about configuring.
109655         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
109656         hash_rehash, hash_insert): Use abort rather than assert.
109658 2002-11-22  Bruno Haible  <bruno@clisp.org>
109660         * lib/safe-read.h: Assume C89. Add comments.
109661         (safe_read): Change return type to size_t.
109662         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
109663         byte counts > SSIZE_MAX correctly.
109664         * lib/safe-write.h: New file.
109665         * lib/safe-write.c: New file.
109666         * lib/full-read.h: New file.
109667         * lib/full-read.c: New file.
109668         * lib/full-write.h: Assume C89. Add comments.
109669         * lib/full-write.c: Include safe-write.h.
109670         (full_write): Rewritten to use safe_write.
109671         Suggested by Jim Meyering and Paul Eggert.
109673 2002-11-21  Jim Meyering  <jim@meyering.net>
109675         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
109677         Merge in changes from the coreutils.
109679         2002-09-25  Paul Eggert  <eggert@twinsun.com>
109680         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
109681         <stdint.h>.
109682         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
109683         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
109684         int.  Work more efficiently if X is the same width as uintmax_t.
109685         Do not compare X to -1, to avoid bogus compiler warning.
109686         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
109687         Don't assume that f_frsize and f_bsize are the same type.
109689         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
109690         warning on FreeBSD.
109692         * lib/makepath.c (make_path): Restore umask *before* creating the final
109693         component.
109694         (make_path): Minor reformatting.
109696         * lib/xmalloc.c: Adjust to work with new autoconf macros,
109697         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
109698         HAVE_MALLOC/HAVE_REALLOC.
109700         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
109701         dummy ones.  At least on GNU/Linux systems, `auto' means something
109702         else.
109703         From Michael Stone.
109705 2002-11-21  Bruno Haible  <bruno@clisp.org>
109707         Remove case insensitive option matching.
109708         * lib/argmatch.h (argcasematch): Remove declaration.
109709         (ARGCASEMATCH): Remove macro.
109710         (__xargmatch_internal): Remove case_sensitive argument.
109711         (XARGMATCH): Update.
109712         (XARGCASEMATCH): Remove macro.
109713         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
109714         case_sensitive argument.
109715         (argcasematch): Remove function.
109716         (__xargmatch_internal): Remove case_sensitive argument.
109717         (main): Use XARGMATCH instead of XARGCASEMATCH.
109719         * lib/xmalloc.c: Change compile-time error message. Add comment about
109720         required autoconf version.
109722 2002-11-20  Paul Eggert  <eggert@twinsun.com>
109724         Merge argmatch cleanups from Bison.  Assume C89.
109726         * lib/argmatch.c: Include config.h here, not in argmatch.h.
109727         Include stdlib.h, for EXIT_FAILURE.
109728         Always include <string.h>, since we assume C89.
109729         (EXIT_FAILURE): Remove pre-C89 bug workaround.
109730         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
109731         Include <stddef.h> instead, since it's all we need for size_t.
109732         (PARAMS): Remove.  All uses removed.
109733         (ARRAY_CARDINALITY): Do not bother to #undef.
109734         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
109735         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
109736         Remove unnecessary parentheses.
109737         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
109738         Insert necessary parentheses.
109739         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
109740         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
109742 2002-11-19  Bruno Haible  <bruno@clisp.org>
109744         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
109745         * lib/mbswidth.h: Include <stddef.h>, for size_t.
109747         * lib/mbswidth.h (PARAMS): Remove macro.
109748         (mbswidth, mbsnwidth): Use ANSI C function declarations.
109749         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
109751         * lib/gcd.h (PARAMS): Remove macro.
109752         (gcd): Use ANSI C function declarations.
109753         * lib/gcd.c (gcd): Likewise.
109755 2002-11-15  Bruno Haible  <bruno@clisp.org>
109757         * lib/strcspn.c: Include <stddef.h>.
109758         (strcspn): Use ANSI C function declaration. Change return type to
109759         size_t. Use NULL.
109760         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
109761         (strpbrk): Use NULL.
109762         * lib/strpbrk.h (PARAMS): Remove macro.
109763         (strpbrk): Use ANSI C function declaration.
109764         * lib/strstr.c: Don't include <sys/types.h>.
109765         * lib/strstr.h (PARAMS): Remove macro.
109766         (strstr): Use ANSI C function declarations.
109768 2002-11-14  Karl Berry  <karl@gnu.org>
109770         * config/mkinstalldirs: `do' on separate line, instead of
109771         `for var; do'.
109773 2002-11-06  Bruno Haible  <bruno@clisp.org>
109775         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
109776         * lib/gcd.c (gcd): Likewise.
109778 2002-11-05  Bruno Haible  <bruno@clisp.org>
109780         * lib/gcd.h: New file, from gettext-0.11.5.
109781         * lib/gcd.c: New file, from gettext-0.11.5.
109783 2002-11-05  Bruno Haible  <bruno@clisp.org>
109785         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
109786         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
109787         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
109788         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
109790         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
109791         <libintl.h>.
109792         * lib/makepath.c: Include gettext.h instead of <locale.h> and
109793         <libintl.h>.
109795         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
109796         * lib/human.c: Include gettext.h instead of <libintl.h>.
109797         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
109798         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
109799         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
109800         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
109801         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
109802         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
109803         (textdomain): Remove definition.
109804         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
109806         * lib/long-options.c: Remove include of <libintl.h> and definition of
109807         _.
109808         * lib/same.c: Remove include of <libintl.h> and definition of _.
109810 2002-11-04  Owen Taylor  <otaylor@redhat.com>
109812         * lib/config.charset: A few additions for Solaris.
109814 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
109816         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
109817         * lib/localcharset.c (locale_charset): Declare as extern "C".
109819 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
109821         * lib/config.charset: msdos in uk_UA uses CP1125.
109823 2002-11-04  Bruno Haible  <bruno@clisp.org>
109825         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
109826         * lib/strcase.h: New file, from GNU gettext-0.11.5.
109827         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
109828         * lib/strstr.h: New file, from GNU gettext-0.11.5.
109829         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
109831 2002-11-04  Bruno Haible  <bruno@clisp.org>
109833         * lib/localcharset.c (locale_charset): Don't return an empty string.
109835 2002-11-04  Bruno Haible  <bruno@clisp.org>
109837         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
109838         aliases.
109840 2002-11-04  Bruno Haible  <bruno@clisp.org>
109842         * lib/config.charset: Update for newest glibc. Add canonical names
109843         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
109845 2002-11-04  Bruno Haible  <bruno@clisp.org>
109847         * lib/config.charset: Add support for NetBSD.
109849 2002-11-04  Bruno Haible  <bruno@clisp.org>
109851         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
109853 2002-11-01  Bruno Haible  <bruno@clisp.org>
109855         * configure.in: Add AC_CONFIG_AUX_DIR call.
109856         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
109857         test/Makefile.
109858         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
109860 2002-09-28  Karl Berry  <karl@gnu.org>
109862         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
109863         installed automake until the next release, since changes have been
109864         made.
109866 2002-09-25  Karl Berry  <karl@gnu.org>
109868         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
109869         * lib/getopt*: copy from libc/posix.
109870         * lib/gettext.h: copy from gettext.
109871         * lib/.cppi-disable: add strdup.c, gettext.h.
109873 2002-09-25  Karl Berry  <karl@gnu.org>
109875         * config/srclist.txt: enable gettext.h check.
109876         * config/config.{guess,sub}: update from prep.
109877         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
109878                 from automake 1.6.3.
109879         See srclist*.
109881 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
109883         * regex.c (PATFETCH): Remove the translating fetch.
109884         (PATFETCH_RAW): Rename to PATFETCH.
109885         (set_image_of_range): New fun.
109886         (SET_RANGE_TABLE_WORK_AREA): Use it.
109887         (regex_compile): Don't translate the pattern chars so eagerly.
109888         Only do it when inserting an `exactn' bytecode or when handling
109889         a char-range.
109890         (mutually_exclusive_p): Avoid empty statement.
109892 2002-07-06  Jim Meyering  <meyering@lucent.com>
109894         * m4/README: Don't mention Makefile.am.in.
109895         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
109897 2002-07-01  Jim Meyering  <meyering@lucent.com>
109899         * lib/c-stack.c: Include sys/time.h.
109900         From Volker Borchert.
109902 2002-06-26  Paul Eggert  <eggert@twinsun.com>
109904         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
109906 2002-06-26  Paul Eggert  <eggert@twinsun.com>
109908         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
109909         New macro.  Use it uniformly instead of
109910         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
109911         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
109912         reported by Vin Shelton.
109914 2002-06-22  Paul Eggert  <eggert@twinsun.com>
109916         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
109917         Do not assume SA_SIGINFO behavior.
109918         Bug reported by Jim Meyering on NetBSD 1.5.2.
109920 2002-06-22  Jim Meyering  <meyering@lucent.com>
109922         * m4/c-stack.m4: New file, from diffutils-2.8.2.
109923         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
109925         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
109926         now that configure.ac uses AC_GNU_SOURCE.
109927         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
109928         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
109930         Update to latest tools.  Suggestions from Paul Eggert.
109931         * m4/stdbool.m4: New file, from diffutils-2.8.2.
109932         * m4/gnu-source.m4: Update from diffutils-2.8.2.
109933         * m4/fnmatch.m4: Likewise.
109934         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
109935         to AC_HEADER_STDBOOL
109937 2002-06-22  Jim Meyering  <meyering@lucent.com>
109939         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
109940         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
109942 2002-06-22  Jim Meyering  <meyering@lucent.com>
109944         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
109946         * lib/exitfail.c, exitfail.h: Likewise.
109947         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
109949         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
109950         of fnmatch.h.
109951         (EXTRA_DIST): Add fnmatch_loop.c.
109952         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
109954         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
109955         * lib/fnmatch.c: Update from diffutils-2.8.2.
109956         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
109957         * lib/fnmatch.h: Remove file.
109959 2002-06-21  Jim Meyering  <meyering@lucent.com>
109961         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
109962         * m4/mbrtowc.m4: Likewise.
109964         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
109965         * m4/mbswidth.m4: Reflect name change:
109966         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
109967         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
109969         * m4/lib-link.m4: Update from gettext-0.11.2.
109970         * m4/gettext.m4: Likewise.
109972         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
109973         From Alfred M. Szmidt.
109975 2002-06-18  Paul Eggert  <eggert@twinsun.com>
109977         * lib/file-type.h: Report an error if neither S_ISREG nor
109978         S_IFREG is defined, instead of using a test specific to glibc
109979         2.2.  This should be safe, since POSIX requires S_ISREG and
109980         Unix Version 7 had S_IFREG.  We don't need to check for
109981         <sys/types.h> since we don't use any symbols that it defines.
109983 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
109985         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
109986         $@-t, so that each temporary file name is unique and valid in the first
109987         8 characters, for operation under DOS.
109989 2002-06-15  Paul Eggert  <eggert@twinsun.com>
109991         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
109993 2002-06-15  Jim Meyering  <meyering@lucent.com>
109995         Work even with DJGPP 2.03, which lacks support for symlinks.
109996         From Richard Dawe.
109997         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
109998         is defined.
109999         * lib/lchown.c (S_ISLNK): Likewise.
110001 2002-06-15  Jim Meyering  <meyering@lucent.com>
110003         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
110004         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
110005         have been included before this file.
110007 2002-06-14  Jim Meyering  <meyering@lucent.com>
110009         * lib/file-type.h: Use the version from diffutils-2.8.2.
110010         * lib/file-type.c: Likewise.
110012 2002-06-07  Jim Meyering  <meyering@lucent.com>
110014         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
110015         They're needed at least for NetBSD 1.5.2.
110016         ($statxfs_includes): Include those same headers.
110017         ($statxfs_includes): Include sys/vfs.h if available.
110018         ($statxfs_includes): Likewise for sys/statvfs.h.
110019         Check for the following members in both structs statfs and statvfs:
110020         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
110022 2002-06-01  Jim Meyering  <meyering@lucent.com>
110024         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
110025         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
110027 2002-05-28  Jim Meyering  <meyering@lucent.com>
110029         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
110030         Reported by Volker Borchert.
110032 2002-05-27  Jim Meyering  <meyering@lucent.com>
110034         Fix a problem seen only on nonconforming systems whereby ls.c's
110035         use of localtime, and then of gettimeofday would cause trouble:
110036         the localtime call used to initialize rpl_gettimeofday's save
110037         mechanism would clobber ls's current local time information so
110038         that in any long listing the first file would always be listed
110039         with date 1970-01-01.  Analysis by Volker Borchert.
110041         * lib/gettimeofday.c (localtime): Undefine.
110042         (rpl_localtime): New function.
110044 2002-05-27  Jim Meyering  <meyering@lucent.com>
110046         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
110047         localtime.
110049         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
110050         use the replacement function; it wouldn't resolve at link time.
110051         Reported by Volker Borchert.
110053 2002-05-22  Jim Meyering  <meyering@lucent.com>
110055         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
110056         file-type.h.
110057         * lib/file-type.h: New file.
110058         * lib/file-type.c (file_type): New file/function.  Extracted from
110059         diffutils.
110061 2002-04-30  Jim Meyering  <meyering@lucent.com>
110063         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
110065 2002-04-29  Paul Eggert  <eggert@twinsun.com>
110067         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
110069 2002-04-29  Paul Eggert  <eggert@twinsun.com>
110071         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
110072         Do not check for alloca.h (no longer used) or stdbool.h (was never
110073         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
110075 2002-04-29  Paul Eggert  <eggert@twinsun.com>
110077         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
110079 2002-04-29  Jim Meyering  <meyering@lucent.com>
110081         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
110082         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
110083         Use AC_FUNC_STRNLEN here instead.
110085         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
110086         With autoconf-2.53a, it's part of AC_PROG_CC.
110088 2002-04-28  Paul Eggert  <eggert@twinsun.com>
110090         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
110091         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
110093 2002-04-28  Paul Eggert  <eggert@twinsun.com>
110095         * lib/sig2str.h, lib/sig2str.c: New files.
110096         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
110098 2002-04-28  Paul Eggert  <eggert@twinsun.com>
110100         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
110101         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
110102         of 127, since 64 is the largest conceivable number for ancient
110103         nonstandard hosts.
110104         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
110106 2002-04-28  Jim Meyering  <meyering@lucent.com>
110108         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
110110 2002-04-24  Jim Meyering  <meyering@lucent.com>
110112         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
110113         (jm_PREREQ): Use it.
110115         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
110116         mach/mach.h fcntl.h.
110117         Check for this function: setlocale.
110119 2002-04-24  Jim Meyering  <meyering@lucent.com>
110121         * lib/gettext.h: New file, from Gettext.
110122         * lib/Makefile.am (INCLUDES): Remove -I../intl.
110123         (libfetish_a_SOURCES): Add gettext.h.
110125 2002-04-16  Jim Meyering  <meyering@lucent.com>
110127         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
110128         ut_pid, ut_id, ut_exit.
110130 2002-04-16  Jim Meyering  <meyering@lucent.com>
110132         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
110133         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
110134         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
110136 2002-04-12  Jim Meyering  <meyering@lucent.com>
110138         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
110139         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
110140         existence of the getmntinfo function.  Needed for Darwin 5.3.
110142         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
110143         This is necessary at least on Darwin 5.3.
110145         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
110146         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
110147         strnlen.o in the library, and that makes some versions of ranlib
110148         object.
110150 2002-04-12  Jim Meyering  <meyering@lucent.com>
110152         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
110154 2002-04-09  Jim Meyering  <meyering@lucent.com>
110156         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
110157         to be more precise.  Rather than saying we're checking whether the
110158         function `works', say what we're testing.
110159         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
110160         Reported by Bruno Haible.
110162 2002-03-10  Jim Meyering  <meyering@lucent.com>
110164         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
110165         Suggestion from Santiago Vila.
110167 2002-03-08  Jim Meyering  <meyering@lucent.com>
110169         * lib/rename.c: Mention that this wrapper is needed also on
110170         mips-dec-ultrix4.4 systems.
110172 2002-03-02  Jim Meyering  <meyering@lucent.com>
110174         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
110175         not HAVE_CLOCK_SETTIME.
110177 2002-02-27  Paul Eggert  <eggert@twinsun.com>
110179         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
110180         Check for clock_settime.
110182 2002-02-27  Paul Eggert  <eggert@twinsun.com>
110184         * lib/nanosleep.h: Rename to....
110185         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
110187         * lib/gettime.c: New file.
110188         * lib/settime.c: New file.
110189         * lib/stime.c: Remove.
110191         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
110192         timespec.h.  Remove nanosleep.h.
110194 2002-02-25  Paul Eggert  <eggert@twinsun.com>
110196         * m4/acl.m4: New file.
110197         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
110198         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
110200 2002-02-25  Paul Eggert  <eggert@twinsun.com>
110202         * lib/acl.c, lib/acl.h: New files.
110203         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
110205 2002-02-24  Jim Meyering  <meyering@lucent.com>
110207         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
110208         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
110209         cause trouble.  Reported by Nelson Beebe.
110211 2002-02-23  Paul Eggert  <eggert@twinsun.com>
110213         * lib/path-concat.c (xpath_concat): Reorder code to pacify
110214         compilers that don't know that xalloc_die never returns.
110216 2002-02-20  Jim Meyering  <meyering@lucent.com>
110218         * lib/getdate.c: Regenerate using bison-1.33.
110220 2002-02-17  Jim Meyering  <meyering@lucent.com>
110222         * config/config.guess (main): Don't use `head -1'; it's no longer
110223         portable. Use `sed 1q' instead.
110225 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
110227         * m4/codeset.m4: Upgrade to gettext-0.11.
110228         * m4/gettext.m4: Upgrade to gettext-0.11.
110229         * m4/glibc21.m4: Upgrade to gettext-0.11.
110230         * m4/iconv.m4: Upgrade to gettext-0.11.
110231         * m4/isc-posix.m4: Upgrade to gettext-0.11.
110232         * m4/lcmessage.m4: Upgrade to gettext-0.11.
110233         * m4/lib-ld.m4: New file, from gettext-0.11.
110234         * m4/lib-link.m4: New file, from gettext-0.11.
110235         * m4/lib-prefix.m4: New file, from gettext-0.11.
110236         * m4/progtest.m4: Upgrade to gettext-0.11.
110238 2002-02-15  Paul Eggert  <eggert@twinsun.com>
110240         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
110241         (jm_PREREQ): Use it.
110243 2002-02-15  Paul Eggert  <eggert@twinsun.com>
110245         * lib/posixver.c, lib/posixver.h: New files.
110246         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
110248 2002-02-02  Paul Eggert  <eggert@twinsun.com>
110249             Bruno Haible  <bruno@clisp.org>
110251         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
110252         (fwrite_success_callback): New declaration.
110253         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
110254         print_unicode_char. Call failure callback instead of error.
110255         (fwrite_success_callback): New function.
110256         (exit_failure_callback): New function.
110257         (fallback_failure_callback): New function.
110258         (print_unicode_char): Call unicode_to_mb.
110260 2002-01-26  Jim Meyering  <meyering@lucent.com>
110262         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
110263         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
110265 2002-01-26  Jim Meyering  <meyering@lucent.com>
110267         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
110269 2002-01-22  Paul Eggert  <eggert@twinsun.com>
110271         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
110273 2002-01-22  Jim Meyering  <meyering@lucent.com>
110275         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
110276         Otherwise, some versions of automake would omit the rule that makes
110277         Makefile from Makefile.in.
110279 2002-01-21  Paul Eggert  <eggert@twinsun.com>
110281         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
110282         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
110283         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
110284         (memcoll): Set errno to zero if there is no error.
110286         * lib/quotearg.c (quotearg_buffer_restyled):
110287         Fix bug with quoting buffers containing NUL when backslashing escapes.
110288         This bug was exposed by the other changes in this patch.
110289         (quotearg_n_options): New arg ARGSIZE.
110290         All callers changed.
110291         (quoting_options_from_style): New function.
110292         (quotearg_n_style): Use it.
110293         (quotearg_n_style_mem): New function.
110295         * lib/quotearg.h (quotearg_n_style_mem): New function.
110297 2002-01-19  Jim Meyering  <meyering@lucent.com>
110299         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
110300         Remove useless quotes: DF_PROG="df".
110301         * m4/strnlen.m4: New file.
110303 2002-01-16  Paul Eggert  <eggert@twinsun.com>
110305         * lib/backupfile.c (ISDIGIT): Comment fix.
110306         * lib/getdate.y (ISDIGIT): Likewise.
110307         * lib/posixtm.c (ISDIGIT, year): Likewise.
110308         * lib/strverscmp.c (ISDIGIT): Likewise.
110309         * lib/userspec.c (ISDIGIT): Likewise.
110311 2002-01-16  Jim Meyering  <meyering@lucent.com>
110313         * lib/getdate.y: Add three semicolons, each just before a closing
110314         brace. Bison (as of version 1.31) no longer papers over that mistake.
110316 2002-01-05  Jim Meyering  <meyering@lucent.com>
110318         * lib/version-etc.c (version_etc_copyright): Update copyright year.
110320 2001-12-19  Paul Eggert  <eggert@twinsun.com>
110322         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
110323         not silently exit merely because the output buffer happens to
110324         have nothing pending.
110326 2001-12-18  Paul Eggert  <eggert@twinsun.com>
110328         See the big note in ../ChangeLog.
110329         * lib/human.c (suffixes): Prefer K to k for 1024.
110330         (generate_suffix_backwards): New function.
110331         (human_readable_inexact): Use it.
110332         * lib/xstrtol.c (__xstrtol): If there is no number but there
110333         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
110334         Accept 'K' as well as 'k'.
110336 2001-12-15  Jim Meyering  <meyering@lucent.com>
110338         * lib/regex.h (__restrict_arr): Update from libc.
110340         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
110341         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
110342         (STREQ): Define.
110344 2001-12-14  Jim Meyering  <meyering@lucent.com>
110346         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
110347         Suggestion from Bruno Haible.
110349 2001-12-10  Jim Meyering  <meyering@lucent.com>
110351         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
110352         xrealloc, Instead, include "xalloc.h".
110353         (initbuffer): Don't cast xmalloc return value to char*.
110354         (readline): Reword comment.
110355         Don't cast xrealloc return value to char*
110356         Return NULL, not 0.
110358 2001-12-09  Jim Meyering  <meyering@lucent.com>
110360         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
110361         about `signed and unsigned type in conditional expression'.
110362         * lib/posixtm.c (posix_time_parse): Likewise.
110364         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
110366         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
110367         to avoid a pedantic warning.
110369         * lib/getstr.c: Don't include assert.h.
110370         (getstr): Remove warning-evoking assertions.
110371         Return -1 if offset parameter is out of bounds.
110372         Change the type of a local from int to size_t.
110374         * lib/strftime.c (my_strftime_localtime_r): Include this function
110375         definition in the `#if ! HAVE_TM_GMTOFF' block.
110377         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
110378         Include xalloc.h instead.
110380 2001-12-02  Jim Meyering  <meyering@lucent.com>
110382         * lib/tempname.c: Don't declare getenv, thus reverting the change of
110383         2001-11-18.  It's no longer necessary, now that stdlib.h is always
110384         included.
110386         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
110387         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
110389 2001-11-30  Akim Demaille  <akim@epita.fr>
110391         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
110392         before being defined.
110394 2001-11-27  Paul Eggert  <eggert@twinsun.com>
110396         * lib/quotearg.h (quotearg_n, quotearg_n_style):
110397         First arg is int, not unsigned.
110398         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
110399         (SIZE_MAX, UINT_MAX): New macros.
110400         (quotearg_n_options): Abort if N is negative.
110401         Avoid overflow check on hosts where size_t is 64 bits and int
110402         is 32 bits, as overflow is impossible there.
110403         Fix off-by-one typo that caused unnecessary reallocation.
110405 2001-11-27  Jim Meyering  <meyering@lucent.com>
110407         * lib/tempname.c: Merge with version from libc.
110408         * lib/regex.c: Likewise.
110410         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
110411         systems for which STDC_HEADERS is 0, it was not included, resulting in
110412         a warning about an integer-to-pointer conversion problem with getenv.
110413         Reported by Volker Borchert.
110415 2001-11-26  Jim Meyering  <meyering@lucent.com>
110417         * lib/gtod.h: Remove file.
110418         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
110419         * lib/gettimeofday.c: Don't include gtod.h.
110420         (GTOD_init): Remove function.
110421         (rpl_gettimeofday): Do its job here instead, rather than aborting.
110422         Suggestion from Volker Borchert.
110424 2001-11-23  Jim Meyering  <meyering@lucent.com>
110426         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
110427         it.
110428         * lib/hash.c (struct hash_table): Define it here instead.
110430 2001-11-22  Jim Meyering  <meyering@lucent.com>
110432         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
110434 2001-11-20  Jim Meyering  <meyering@lucent.com>
110436         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
110437         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
110439 2001-11-19  Jim Meyering  <meyering@lucent.com>
110441         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
110442         directory.  Use "conftestXXXXXX" as the template.
110443         Suggestion from Paul Eggert.
110445         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
110446         immediately, so the test doesn't mistakenly hit the max-open-files
110447         limit.
110449 2001-11-18  Paul Eggert  <eggert@twinsun.com>
110451         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
110452         (TEMPORARIES): New macro.
110453         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
110454         removes an artificial limitation (e.g. HP-UX 10.20, where
110455         TMP_MAX is 17576).
110457 2001-11-18  Jim Meyering  <meyering@lucent.com>
110459         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
110461 2001-11-18  Jim Meyering  <meyering@lucent.com>
110463         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
110464         on SunOS 4.
110466         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
110467         files will be created before anything else.
110469 2001-11-17  Paul Eggert  <eggert@twinsun.com>
110471         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
110472         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
110474 2001-11-17  Jim Meyering  <meyering@lucent.com>
110476         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
110477         Prompted by a report from Bob Proulx.
110479         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
110480         Instead, require UTILS_FUNC_MKSTEMP.
110482 2001-11-17  Jim Meyering  <meyering@lucent.com>
110484         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
110485         Now, that's done as part of AC_FUNC_STRTOD.
110487 2001-11-17  Jim Meyering  <meyering@lucent.com>
110489         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
110490         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
110491         rather than group writable.  Patch by Juan F. Codagnone.
110493         * lib/readtokens.c: Remove explicit declarations of xmalloc and
110494         xrealloc, Instead, include "xalloc.h".
110496         * lib/mountlist.c: Include unlocked-io.h after all system headers.
110497         Remove explicit declarations of xmalloc, xrealloc,
110498         and xstrdup.  Instead, include "xalloc.h".
110500         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
110501         unlocked-io.h.
110502         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
110503         Likewise.
110504         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
110506         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
110507         Reported by Padraig Brady.
110509         * lib/mkstemp.c: #undef mkstemp.
110510         Include config.h.
110511         (rpl_mkstemp): Rename from mkstemp.
110512         Protoize.
110514 2001-11-16  Jim Meyering  <meyering@lucent.com>
110516         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
110517         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
110518         determine the amount of total physical memory, use pstat_getstatic.
110519         HPUX-11 doesn't define _SC_PHYS_PAGES.
110520         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
110521         If sysconf couldn't be used to determine the amount of available
110522         physical memory, use both pstat_getstatic and pstat_getdynamic.
110523         Based on a patch from Bob Proulx.
110525 2001-11-10  Jim Meyering  <meyering@lucent.com>
110527         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
110528         (jm_PREREQ): Use it.
110530 2001-11-09  Jim Meyering  <meyering@lucent.com>
110532         * m4/jm-macros.m4: Require autoconf-2.52f.
110533         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
110534         Use these AC_-prefixed names, not the AM_-prefixed ones.
110536         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
110538 2001-11-05  Jim Meyering  <meyering@lucent.com>
110540         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
110542 2001-11-04  Jim Meyering  <meyering@lucent.com>
110544         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
110545         $DEFS.
110547 2001-11-03  Jim Meyering  <meyering@lucent.com>
110549         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
110550         of AC_DEFUN.
110552         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
110553         know the name of the variable in the macro definition.
110555 2001-11-03  Jim Meyering  <meyering@lucent.com>
110557         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
110558         in argmatch_to_argument call.
110560         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
110561         argument.
110563         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
110564         e.g., a fault due to an attempt to free a NULL pointer.
110566 2001-11-01  Jim Meyering  <meyering@lucent.com>
110568         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
110569         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
110571 2001-11-01  Jim Meyering  <meyering@lucent.com>
110573         * lib/dirfd.c, lib/dirfd.h: New files.
110574         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
110576         * lib/hash.c (hash_print) [TESTING]: Clean up.
110578 2001-10-22  Paul Eggert  <eggert@twinsun.com>
110580         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
110581         to avoid a warning if -Wall.
110583 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
110585         * README: New file
110586         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
110587         (per RMS's instructions, this is now the canonical source)
110588         * lgpl/, gpl/: New directories.
110590 2001-10-21  Paul Eggert  <eggert@twinsun.com>
110592         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
110594 2001-10-21  Jim Meyering  <meyering@lucent.com>
110596         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
110597         this code would end up calling gettext even in packages built
110598         with --disable-nls.
110599         * lib/getopt.c (_): Likewise.
110600         * lib/regex.c (_): Likewise.
110602 2001-10-20  Paul Eggert  <eggert@twinsun.com>
110604         * m4/error.m4 (jm_PREREQ_ERROR):
110605         Do not invoke AC_CHECK_FUNCS with strerror_r, as
110606         AC_FUNC_STRERROR_R does that.
110607         Check for strerror declaration.
110609         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
110610         are supposed to have them these days.
110611         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
110612         Merge changes from latest Autoconf CVS.
110613         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
110614         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
110615         POSIX decided to standardize on the int flavor of strerror_r.
110617 2001-10-20  Paul Eggert  <eggert@twinsun.com>
110619         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
110620         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
110621         Use strerror_r that is only a macro, even if it is not a function.
110622         (strerror): Check for HAVE_DECL_STRERROR before declaring.
110623         (private_strerror): Use prototypes, not old-style function definition.
110624         (print_errno_message): New function.
110625         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
110626         char*-flavored one.
110627         (error_tail, error, error_at_line): Use it.
110629 2001-10-11  Jim Meyering  <meyering@lucent.com>
110631         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
110632         and quote_n (1, ... to avoid clobbering a buffer.
110634 2001-10-05  Jim Meyering  <meyering@lucent.com>
110636         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
110637         hash-pjw.h.
110638         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
110639         * lib/hash-pjw.h: New file.
110641 2001-09-30  Jim Meyering  <meyering@lucent.com>
110643         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
110644         `struct fsstat' has the `f_fstypename' member.
110645         Use that to define FS_TYPE, which is now used to make
110646         the getfsstat link test tighter.
110648 2001-09-30  Jim Meyering  <meyering@lucent.com>
110650         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
110651         Include <sys/ucred.h>, for Apple Darwin.
110652         Include sys/mount.h and sys/fs_types.h only if available.
110653         (FS_TYPE): Define.
110654         (read_filesystem_list): Use FS_TYPE.
110656 2001-09-29  Paul Eggert  <eggert@twinsun.com>
110658         * lib/exclude.c (excluded_filename): 0 -> false, since it's
110659         a boolean context.
110661 2001-09-29  Jim Meyering  <meyering@lucent.com>
110663         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
110664         [one-argument getmntent function]): Include stdio.h before mntent.h.
110665         SunOS 4.1.x needs it for the declaration of `FILE'.
110666         Patch by Volker Borchert.
110668         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
110669         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
110670         sys/fs_types.h, and make the link-test for getfsstat guard #include
110671         directives with appropriate #if HAVE_*_H tests so that we can
110672         detect getfsstat on Apple Darwin1.3.7 systems.
110673         Reported by Nelson Beebe.
110674         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
110676 2001-09-28  Paul Eggert  <eggert@twinsun.com>
110678         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
110679         #defines strtoimax.  Also treat the other strto* functions
110680         like strtoimax.
110682         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
110683         Check for strtoul and strtoumax,
110684         as those declarations are made even in the signed case.
110685         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
110686         Likewise, for strtol and strtoimax.
110688 2001-09-28  Paul Eggert  <eggert@twinsun.com>
110690         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
110691         #defines strtoimax.  Also treat the other strto* functions
110692         like strtoimax.
110694         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
110695         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
110696         (strtoimax, strtoumax): Do not declare if already defined as a macro.
110698 2001-09-26  Jim Meyering  <meyering@lucent.com>
110700         Most macros in unlocked-io.h had the wrong number of arguments.
110701         * lib/gen-uio: New script.
110702         (USE_UNLOCKED_IO): Define to 1 if not already defined.
110703         * lib/unlocked-io.hin: Remove file.
110704         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
110705         rather than trying to embed it here.
110706         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
110707         Reported by Padraig Brady.
110709 2001-09-25  Volker Borchert  <bt@teknon.de>
110711         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
110712         `result'.
110714 2001-09-24  Jim Meyering  <meyering@lucent.com>
110716         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
110718 2001-09-23  Jim Meyering  <meyering@lucent.com>
110720         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
110721         instead of the mere test for existence of mntent.h.  The latter
110722         would get a false-positive on AIX 3.4 systems.
110723         In the outer getmntent if-block, don't die if neither of the getmntent
110724         tests succeeds.  Instead, just fall through and continue with the
110725         remaining tests.
110727 2001-09-23  Jim Meyering  <meyering@lucent.com>
110729         * lib/mountlist.c: Remove useless parentheses in #if directives.
110730         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
110731         the deprecated MOUNTED symbol is no longer defined in mntent.h.
110733 2001-09-22  Jim Meyering  <meyering@lucent.com>
110735         * m4/gettext.m4: New file.  From gettext.
110736         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
110737         * m4/progtest.m4: Likewise
110738         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
110739         * m4/glibc21.m4: Likewise.
110741         * m4/libintl.m4: Remove.  No longer used.
110743 2001-09-22  Jim Meyering  <meyering@lucent.com>
110745         * lib/localcharset.c: Update from latest gettext.
110746         * lib/config.charset: Likewise.
110748 2001-09-20  Jim Meyering  <meyering@lucent.com>
110750         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
110751         strtoimax.
110752         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
110753         strtoumax.
110755 2001-09-20  Jim Meyering  <meyering@lucent.com>
110757         * lib/xstrtol.c (strtoimax): Guard declaration with
110758         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
110759         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
110760         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
110761         (strtoumax): Likewise, for completeness (it wasn't necessary).
110763 2001-09-17  Paul Eggert  <eggert@twinsun.com>
110765         * lib/strtoimax.c (HAVE_LONG_LONG):
110766         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
110767         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
110768         to work around bug in IBM C compiler.
110770 2001-09-17  Jim Meyering  <meyering@lucent.com>
110772         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
110773         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
110774         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
110775         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
110776         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
110777         whenever the right hand side need not be expanded by the shell.
110779 2001-09-16  Paul Eggert  <eggert@twinsun.com>
110781         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
110782         library.  It's not correct, as some older glibcs are buggy.
110783         fnmatch wasn't fixed until glibc 2.2.
110785         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
110786         special shell magic here.
110788 2001-09-16  Jim Meyering  <meyering@lucent.com>
110790         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
110791         * m4/jm-macros.m4: Require it.
110793 2001-09-16  Jim Meyering  <meyering@lucent.com>
110795         * lib/mkdir.c: New file.
110797 2001-09-15  Jim Meyering  <meyering@lucent.com>
110799         * m4/jm-macros.m4: Check for help2man.
110801 2001-09-11  Jim Meyering  <meyering@lucent.com>
110803         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
110804         The body, by Paul Eggert, was moved here from configure.in.
110805         * m4/jm-macros.m4: Require UTILS_HOST_OS.
110807 2001-09-04  Paul Eggert  <eggert@twinsun.com>
110809         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
110810         (jm_PREREQ): Use it.
110812 2001-09-04  Paul Eggert  <eggert@twinsun.com>
110814         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
110815         Use ssize_t, not int, to store result of readlink.
110816         Check for ssize_t overflow as well as size_t overflow,
110817         as POSIX says the result of readlink is implementation-defined
110818         when ssize_t overflows.
110819         Remove unnecessary cast to char*.
110820         Use free+malloc instead of realloc, as the storage doesn't need
110821         to be preserved and it's clearer and can be more efficient that way.
110822         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
110823         * lib/xreadlink.h (xreadlink): Update prototype.
110825 2001-09-04  Paul Eggert  <eggert@twinsun.com>
110827         * lib/xgetcwd.c: Revert some of the previous change; intead,
110828         fix the HAVE_GETCWD_NULL code to behave more like the
110829         !HAVE_GETCWD_NULL code used to.
110831         Include "xalloc.h".
110832         (xgetcwd): Do not return NULL when memory is exhausted; instead,
110833         invoke xalloc_die.
110835 2001-09-03  Paul Eggert  <eggert@twinsun.com>
110837         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
110838         sys/param.h, as pathmax.h includes them.
110840 2001-09-03  Paul Eggert  <eggert@twinsun.com>
110842         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
110843         (jm_PREREQ_XGETCWD): New macro.
110845         * m4/getcwd.m4: New file.
110847 2001-09-03  Paul Eggert  <eggert@twinsun.com>
110849         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
110850         like the HAVE_GETCWD_NULL code.
110851         Include pathmax.h if not HAVE_GETCWD.
110852         Do not include xalloc.h.
110853         (INITIAL_BUFFER_SIZE): New symbol.
110854         Do not use xmalloc / xrealloc, since the caller is responsible for
110855         handling errors.  Preserve errno around `free' during failure.
110856         Do not overrun buffer when using getwd.
110858 2001-09-03  Paul Eggert  <eggert@twinsun.com>
110860         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
110861         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
110862         getcwd (NULL, 0).
110864 2001-09-03  Paul Eggert  <eggert@twinsun.com>
110866         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
110867         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
110868         spotted by Jim Meyering.
110870 2001-09-03  Jim Meyering  <meyering@lucent.com>
110872         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
110873         failure.
110875 2001-09-02  Jim Meyering  <meyering@lucent.com>
110877         * lib/error.c: Update from GNU libc.
110879 2001-09-01  Jim Meyering  <meyering@lucent.com>
110881         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
110882         Used by df.
110884 2001-09-01  Jim Meyering  <meyering@lucent.com>
110886         * lib/xreadlink.c: New file.
110887         * lib/xreadlink.h: New file.
110888         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
110889         xreadlink.h.
110891         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
110892         doesn't conflict with sparc Solaris 7's definition in
110893         /usr/include/sys/int_types.h.
110895         * lib/exclude.c: Use `""', not `<>' to #include non-system header
110896         files.
110897         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
110898         and strncasecmp as r-values.  Unixware didn't have declarations.
110900 2001-08-31  Paul Eggert  <eggert@twinsun.com>
110902         * lib/xstrtol.h: Add copyright notice.
110903         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
110904         LONGINT_INVALID_SUFFIX_CHAR.
110906 2001-08-31  Paul Eggert  <eggert@twinsun.com>
110908         * lib/xstrtol.c (strtoimax): New decl.
110910 2001-08-31  Paul Eggert  <eggert@twinsun.com>
110912         * lib/xgetcwd.c: Don't include pathmax.h.
110913         Include stdlib.h and unistd.h if available.
110914         Include xalloc.h.
110915         (xmalloc, xstrdup, free): Remove decls.
110916         (xgetcwd): Don't assume sizes fit in unsigned.
110917         Check for overflow when computing sizes.
110918         Simplify reallocation code.
110920 2001-08-31  Paul Eggert  <eggert@twinsun.com>
110922         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
110923         a directory's st_size can have an arbitrary value, so the old
110924         usage could waste an arbitrary amount of memory.  All uses
110925         changed.
110926         * lib/savedir.h: Update prototype.
110928 2001-08-31  Paul Eggert  <eggert@twinsun.com>
110930         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
110932         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
110933         old strtoimax.c.
110935         Also, make the following further changes to make this file's
110936         configuration more similar to that of strtol.c:
110937         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
110938         (strtoumax, uintmax_t, strtoull, strtol): Remove.
110939         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
110940         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
110941         changed to signed values.
110943         And make the following changes as well:
110944         Fix copyright notice, as 1999 was missing.
110945         (verify): New macro.
110946         (strtoimax): Check sizes at compile-time, not run-time.
110947         Prefer strtol to strtoll if both work.
110948         (main): Remove; it was not that useful and was a pain to maintain.
110950         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
110952 2001-08-31  Jim Meyering  <meyering@lucent.com>
110954         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
110955         Use an initial, malloc'd, buffer of length 128 rather than
110956         a statically allocated one of length 1024.
110958 2001-08-30  Paul Eggert  <eggert@twinsun.com>
110960         Simplify code, partly by assuming autoconf 2.52 semantics.
110962         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
110964         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
110965         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
110966         All uses removed.
110967         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
110968         Move AC_REQUIRE to next-to-top level, to avoid confusion.
110969         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
110970         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
110971         jm_AC_HEADER_INTTYPES_H.
110972         * m4/jm-macros.m4 (jm_MACROS): Likewise.
110974         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
110976         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
110977         Quote first arg of AC_DEFUN.
110978         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
110979         since they are needed to parse the include file even if we need
110980         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
110981         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
110982         but with opposite signedness.
110984 2001-08-30  Paul Eggert  <eggert@twinsun.com>
110986         Merge 'exclude' changes from tar 1.13.22.
110987         This fixes one or two unlikely storage allocation overflow bugs,
110988         but doesn't change user-visible behavior otherwise.
110990 2001-08-30  Paul Eggert  <eggert@twinsun.com>
110992         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
110993         (jm_PREREQ_EXCLUDE): New macro.
110995 2001-08-30  Paul Eggert  <eggert@twinsun.com>
110997         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
110998         tm to be declared.
111000 2001-08-30  Paul Eggert  <eggert@twinsun.com>
111002         * lib/hash.c: Remove '2001' from copyright notice.
111004 2001-08-30  Paul Eggert  <eggert@twinsun.com>
111006         * lib/full-write.h: New file.
111007         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
111008         * lib/full-write.c: Correct credits, as cccp.c no longer
111009         exists and anyway it was so heavily changed from the old cccp
111010         code as to be unrecognizable.  Include full-write.h.
111011         (full_write): Return size_t, with short writes meaning failure.
111012         All callers changed.  This fixes a bug with large buffers
111013         on 64-bit hosts.
111014         * lib/utime.c: Include full-write.h.
111016 2001-08-30  Paul Eggert  <eggert@twinsun.com>
111018         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
111019         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
111020         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
111021         Include if available.
111022         (<xalloc.h>): Include
111023         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
111024         (verify): New macro.  Use it to verify that EXCLUDE macros do not
111025         collide with FNM macros.
111026         (struct patopts): New struct.
111027         (struct exclude): Use it, as exclude patterns now come with options.
111028         (new_exclude): Support above changes.
111029         (new_exclude, add_exclude_file):
111030         Initial size must now be a power of two to simplify overflow checking.
111031         (free_exclude, fnmatch_no_wildcards): New function.
111032         (excluded_filename): No longer requires options arg, as the options
111033         are determined by add_exclude.  Now returns bool, not int.
111034         (excluded_filename, add_exclude):
111035         Add support for the fancy new exclusion options.
111036         (add_exclude, add_exclude_file): Now takes int options arg.
111037         Check for arithmetic overflow when computing sizes.
111038         (add_exclude_file): xrealloc might modify errno, so don't
111039         realloc until after errno might be used.
111041         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
111042         New macros.
111043         (free_exclude): New decl.
111044         (add_exclude, add_exclude_file): Now takes int options arg.
111045         (excluded_filename): No longer requires options arg, as the options
111046         are determined by add_exclude.  Now returns bool, not int.
111048 2001-08-30  Paul Eggert  <eggert@twinsun.com>
111050         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
111052 2001-08-27  Jim Meyering  <meyering@lucent.com>
111054         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
111056         * lib/version-etc.c (N_): Remove definition.
111057         Revert most of last change.
111058         Instead, simply don't mark the `Copyright...' string for translation.
111059         Based on advice from Paul Eggert.
111061         * lib/strtoxmax.c: Tweak comment.
111063 2001-08-26  Jim Meyering  <meyering@lucent.com>
111065         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
111067         * m4/xstrtoimax.m4: New file.
111068         * m4/xstrtoumax.m4: Add comments explaining why we
111069         AC_REPLACE_FUNCS(strtol).
111071 2001-08-26  Jim Meyering  <meyering@lucent.com>
111073         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
111074         of copyright with `%s' so translators don't get an untranslated
111075         message in 2002.
111076         (COPYRIGHT_YEAR): Define.
111077         (version_etc): Use fprintf rather than fputs.
111078         Suggestion from Ulrich Drepper.
111080         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
111082         * lib/strtoll.c: New file, from GNU libc.
111083         * lib/xstrtoimax.c: New file.
111085         * lib/xstrtol.h: Add xstrtoimax.
111086         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
111087         * lib/strtoimax.c: New file.  Likewise, but first define
111088         STRTOUXMAX_SIGNED.
111090         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
111091         ...
111092         * lib/strtoxmax.c: ... then renamed to this.
111094 2001-08-18  Paul Eggert  <eggert@twinsun.com>
111096         * m4/inttypes.m4: Add AC_PREREQ(2.13).
111097         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
111098         (jm_AC_TYPE_INTMAX_T): New macro.
111099         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
111101         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
111103         * m4/longlong.m4: Renamed from ulonglong.m4.
111104         * m4/inttypes.m4: Renamed from inttypes_h.m4.
111105         * m4/uintmax_t.m4: Removed.
111107 2001-08-13  Paul Eggert  <eggert@twinsun.com>
111109         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
111110         Port to Solaris 8, where 'sed' requires a space after the 'r'
111111         command, and where sh dislikes "$/".  Clean up the spacing a bit.
111112         Redirect output to $tmp just once.
111114 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
111116         * lib/addext.c (<errno.h>): Include.
111117         (errno): Declare if not defined.
111118         (addext): Work correctly when pathconf returns -1 and leaves
111119         errno alone because there is no limit.  Also, work even if
111120         pathconf returns a value greater than SIZE_MAX.
111122 2001-08-12  Jim Meyering  <meyering@lucent.com>
111124         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
111125         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
111126         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
111127         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
111128         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
111129         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
111130         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
111131         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
111132         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
111133         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
111134         utime.m4, utimes.m4, xstrtoumax.m4:
111135         Quote the first argument in each use of AC_DEFUN.
111137 2001-08-12  Jim Meyering  <meyering@lucent.com>
111139         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
111140         Simply `return getcwd (NULL, 0);'.
111141         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
111142         Use 1300 as initial value for length, not PATH_MAX.
111144         * lib/pathmax.h: Clean up cpp syntax.
111146 2001-08-12  Jim Meyering  <meyering@lucent.com>
111148         * lib/gettimeofday.c: New file.
111149         * lib/gtod.h: New file.
111150         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
111152 2001-08-05  Jim Meyering  <meyering@lucent.com>
111154         * m4/jm-macros.m4: Require autoconf-2.52.
111156 2001-08-04  Jim Meyering  <meyering@lucent.com>
111158         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
111159         stmt, to get in sync with glibc.
111161 2001-08-03  Paul Eggert  <eggert@twinsun.com>
111163         The following changes are from gettext 0.10.39 as maintained by
111164         Bruno Haible.
111166         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
111167         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
111168         with inverted sense.  All uses changed.
111170         * lib/mbswidth.c: Don't include <limits.h>.
111171         Include <stdlib.h> and <string.h> unconditionally.
111172         (iswcntrl, mbsinit, ISCNTRL): New macros.
111173         (mbsnwidth): Use K&R style function declarations.
111174         Don't bother checking for MB_LEN_MAX == 1, since the compiler
111175         can optimize it when MB_CUR_MAX == 1.
111176         The width of control characters is zero, not 1.
111178 2001-08-03  Paul Eggert  <eggert@twinsun.com>
111180         The following changes are from gettext 0.10.39 as maintained by
111181         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
111183         * m4/codeset.m4: Upgrade to serial AM1.
111184         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
111185         all uses changed.  Quote first arg of AC_DEFUN.
111186         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
111188         * m4/iconv.m4: Upgrade to serial AM2.
111189         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
111190         Add --with-libconv-prefix.
111191         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
111192         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
111193         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
111194         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
111195         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
111197         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
111198         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
111199         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
111200         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
111201         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
111202         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
111203         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
111204         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
111205         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
111207         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
111208         string.h any more.
111210         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
111211         not the default value.
111213         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
111214         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
111215         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
111216         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
111217         Also check for iswcntrl, used for wcwidth fallback.
111218         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
111219         to Autoconf 2.13.
111221 2001-08-03  Jim Meyering  <meyering@lucent.com>
111223         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
111224         as it was in the original.  Reported by Paul Eggert.
111226 2001-07-16  Jim Meyering  <meyering@lucent.com>
111228         * m4/gettimeofday.m4: New file.
111229         Prompted by a report from Bernhard Baehr.
111231 2001-07-15  Jim Meyering  <meyering@lucent.com>
111233         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
111234         stuff. Now it's in ../Makefile.cfg.
111236 2001-07-15  Jim Meyering  <meyering@lucent.com>
111238         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
111239         (BUILT_SOURCES): Add unlocked-io.h.
111240         (io_functions): Define.
111241         (unlocked-io.h): New rule.
111242         (DISTCLEANFILES): Add unlocked-io.h.
111243         (all-local): Depend on unlocked-io.h, to ensure it is created.
111245         * lib/unlocked-io.hin: New file
111247         * lib/regex.c: Update from glibc.
111249 2001-07-05  Jim Meyering  <meyering@lucent.com>
111251         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
111252         recommendation.
111253         (libfetish_a_SOURCES): Put all .h files here instead.
111254         Remove a thus-exposed (better checks in automake) duplicate and
111255         two unnecessary .h files.
111257 2001-07-04  Jim Meyering  <meyering@lucent.com>
111259         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
111260         that generates jm-glibc-io.m4 so that it doesn't trigger any make
111261         distcheck failure.
111263 2001-07-02  Jim Meyering  <meyering@lucent.com>
111265         The following changes were prompted by suggestions from Bruno Haible.
111267         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
111268         is now generated.
111269         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
111270         definition of EXTRA_DIST.
111271         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
111272         ensure that the generated file is created/updated whenever the list
111273         of $(unlocked_functions) is changed.
111274         (jm-glibc-io.m4): New rule.
111275         (unlocked-io.h): New rule -- currently unused.
111277 2001-06-24  Jim Meyering  <meyering@lucent.com>
111279         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
111280         unmatched right bracket, rather than kludging it with an extra,
111281         falsely-matching quote in a comment.  Patch by Akim Demaille.
111283 2001-06-11  Jim Meyering  <meyering@lucent.com>
111285         * lib/regex.c: Update from GNU libc.
111287 2001-05-27  Jim Meyering  <meyering@lucent.com>
111289         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
111290         Check for ut_type in struct utmp.
111292 2001-05-27  Jim Meyering  <meyering@lucent.com>
111294         * lib/readutmp.h (UT_TYPE): Define.
111296 2001-05-24  Jim Meyering  <meyering@lucent.com>
111298         * lib/argmatch.c: Include "quote.h".
111299         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
111300         quote function.  Reported by Göran Uddeborg.
111302 2001-05-22  Jim Meyering  <meyering@lucent.com>
111304         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
111305         now that we use the package-supplied version unconditionally.
111306         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
111308 2001-05-21  Jim Meyering  <meyering@lucent.com>
111310         * m4/regex.m4: Change a couple backticks to single quotes to avoid
111311         shell syntax errors.
111313 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
111315         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
111317 2001-05-20  Paul Eggert  <eggert@twinsun.com>
111319         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
111320         Don't bother to check library strftime, since
111321         we'll be using our own my_strftime function anyway.
111322         Define my_strftime instead of strftime.
111324 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
111326         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
111327         which is not yet declared.
111329 2001-05-15  Jim Meyering  <meyering@lucent.com>
111331         * m4/regex.m4: Use proper quoting so brackets appear in the test
111332         program.
111333         Reported by, and with help from, Bruno Haible.
111335 2001-05-13  Jim Meyering  <meyering@lucent.com>
111337         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
111338         undefined.
111340 2001-05-11  Paul Eggert  <eggert@twinsun.com>
111342         dirname code cleanup.  base_name now behaves more compatibly
111343         with POSIX basename when given file names that have trailing
111344         slashes, and similarly for dir_name.  Add new primitives
111345         base_len and dir_len.  Put the directory-name-related decls
111346         into dirname.h.
111348         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
111349         * lib/backupfile.c (base_name): Likewise.
111350         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
111351         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
111352         * lib/makepath.c (strip_trailing_slashes): Likewise.
111353         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
111354         ISSLASH): Likewise.
111355         * lib/rename.c (strip_trailing_slashes): Likewise.
111356         * lib/same.c (base_name): Likewise.
111357         * lib/stripslash.c (ISSLASH): Likewise.
111359         * lib/addext.c: Include <dirname.h> after size_t is defined.
111360         * lib/backupfile.c: Likewise.
111362         * lib/addext.c (addext): Use base_len to trim redundant
111363         trailing slashes instead of doing it ourselves.
111364         But do not trim the last slash if it is not redundant.
111366         * lib/backupfile.c (find_backup_file_name,
111367         max_backup_version): Use base_len instead of rolling it ourselves.
111368         Handle the case of "" and (on DOS) "C:" correctly.
111370         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
111371         needed. Include <string.h>, <dirname.h>.
111372         (base_name): Allow file names ending in slashes, other than names
111373         that are all slashes.  In this case, return the basename followed
111374         by the slashes.  This is more general, and can be used in places
111375         where the original base_name purposely had an assertion failure.
111376         (base_len): New function.
111378         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
111379         Do not include <assert.h>; no longer needed.
111380         Include xalloc.h.
111381         (memrchr): Remove decl.
111382         (dir_name_r): Remove.
111383         (dir_len): Renamed from dirlen.  All callers changed.
111384         Rewrite in terms of base_name, for simplicity and consistency.
111385         (dir_name): Never return NULL.  All callers changed.
111386         Do not include <stdlib.h> in test program; no longer needed.
111387         return 0; is fine for test program.
111389         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
111390         New macros.
111391         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
111393         * lib/path-concat.c (path_concat): Use base_len to compute
111394         base length, not strlen; this means we cannot rely on memcpy
111395         to null-terminate.
111397         * lib/same.c (STREQ): Remove.
111398         (same_name): Handle the case where the basename ends in trailing '/'.
111400         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
111401         a slash was stripped.  Do not strip the last slash after a
111402         file system prefix.
111404 2001-05-11  Paul Eggert  <eggert@twinsun.com>
111406         * lib/Makefile.am (libfetish_a_SOURCES):
111407         Add strftime.c, since we now compile it on all hosts.
111409         * lib/strftime.c (my_strftime):
111410         Define to nstrftime if emacs, but only if my_strftime is not defined.
111411         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
111412         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
111413         Add one more extra argument: a nanoseconds value.
111414         All uses changed.
111415         (ns): New macro.
111416         (my_strftime function): Add %N format.
111417         (emacs_strftimeu): Renamed from emacs_strftime,
111418         with extra ut argument.
111420 2001-05-09  Paul Eggert  <eggert@twinsun.com>
111422         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
111424 2001-04-21  Jim Meyering  <meyering@lucent.com>
111426         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
111427         doesn't interfere.
111429 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
111431         * m4/ftruncate.m4: Check for chsize.
111432         Link with ftruncate.o unconditionally if ftruncate is missing.
111433         This was required when cross-compiling to i586-mingw32msvc.
111435 2001-04-08  Jim Meyering  <meyering@lucent.com>
111437         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
111438         recomputed; that's necessary when the offset spans a DST transition.
111439         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
111441 2001-04-02  Jim Meyering  <meyering@lucent.com>
111443         * lib/regex.h, regex.c: Update from GNU libc.
111445 2001-03-24  Jim Meyering  <meyering@lucent.com>
111447         * m4/jm-macros.m4: Require autoconf-2.49d.
111449 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
111451         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
111453 2001-03-19  Paul Eggert  <eggert@twinsun.com>
111455         * lib/version-etc.c (version_etc_copyright): Update to 2001.
111457 2001-03-17  Jim Meyering  <meyering@lucent.com>
111459         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
111460         now that the version in autoconf is equivalent.
111461         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
111463         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
111464         Suggestion from Akim Demaille.
111466         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
111467         (jm_PREREQ_TEMPNAME): New function.
111469 2001-03-16  Paul Eggert  <eggert@twinsun.com>
111471         * lib/tempname.c (uint64_t): Define to uintmax_t if
111472         not defined, and if UINT64_MAX is not defined.
111473         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
111474         Reported by John David Anglin.
111476 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
111478         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
111479         resolve alias if codeset is empty.
111480         * lib/config.charset (BeOS): Use wildcard syntax.
111482 2001-03-13  Jim Meyering  <meyering@lucent.com>
111484         * lib/path-concat.c (path_concat)
111485         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
111486         concatenating e.g., `C:' and `foo'.
111487         From Bruno Haible.
111489 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
111491         * lib/localcharset.c (locale_charset): Don't use
111492         setlocale(LC_CTYPE,NULL). Don't return NULL.
111493         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
111495 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
111497         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
111498         support for DOS/DJGPP.
111500 2001-03-01  Paul Eggert  <eggert@twinsun.com>
111502         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
111503         lacks mkstemp.  Compile our own tempname.c if we compile our own
111504         mkstemp.c, as mkstemp relies on tempname.
111506 2001-03-01  Jim Meyering  <meyering@lucent.com>
111508         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
111509         AH_VERBATIM really does output its argument verbatim.
111511 2001-02-28  Paul Eggert  <eggert@twinsun.com>
111513         * lib/Makefile.am (libfetish_a_SOURCES):
111514         Add dup-safer.c, fopen-safer.c.
111515         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
111517         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
111518         * lib/unistd-safer.h: New files.
111520 2001-02-25  Paul Eggert  <eggert@twinsun.com>
111522         The mkstemp replacement is taken from glibc 2.2.2, with some
111523         portability fixes for use outside glibc, as follows:
111525         * lib/tempname.c (struct_stat64): New macro.
111526         (direxists, __gen_tempname): Use it.
111527         This avoids a portability problem with Solaris 8.
111529         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
111530         (<stddef.h>, <stdint.h>, <string.h>):
111531         Include only if STDC_HEADERS || _LIBC.
111532         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
111533         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
111534         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
111535         (__set_errno): Define this macro if <errno.h> doesn't.
111536         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
111537         Define these macros if <stdio.h> doesn't.
111538         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
111539         Define these macros if <sys/stat.h>
111540         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
111541         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
111542         __xstat64): Define if not _LIBC.
111543         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
111544         (__gen_tempname): Invoke gettimeofday only if
111545         HAVE_GETTIMEOFDAY || _LIBC;
111546         otherwise, fall back on plain "time".
111547         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
111549         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
111551         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
111553 2001-02-18  Paul Eggert  <eggert@twinsun.com>
111555         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
111557 2001-02-17  Paul Eggert  <eggert@twinsun.com>
111559         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
111560         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
111561         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
111562         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
111564 2001-02-17  Paul Eggert  <eggert@twinsun.com>
111566         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
111567         Remove workaround macros for hosts that have mbrtowc but not
111568         mbstate_t, as we now insist on proper declarations for both
111569         before using mbrtowc.
111571 2001-02-17  Jim Meyering  <meyering@lucent.com>
111573         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
111574         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
111575         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
111576         UnixWare 7.1.1.
111578         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
111579         rather than AC_CACHE_VAL.
111581 2001-02-17  Jim Meyering  <meyering@lucent.com>
111583         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
111584         around included file name.
111586         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
111588         * lib/strftime.c: Update from GNU libc (the only changes were to
111589         comments).
111591 2001-02-17  Jim Meyering  <meyering@lucent.com>
111593         * lib/regex.c: Update from libc.
111595 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
111597         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
111598         clash.
111600 2001-02-16  Paul Eggert  <eggert@twinsun.com>
111602         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
111603         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
111604         Reported by Mark Hounschell via Paul Eggert.
111606 2001-02-07  Jim Meyering  <meyering@lucent.com>
111608         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
111610 2001-02-05  Jim Meyering  <meyering@lucent.com>
111612         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
111613         it includes the patch required for `large file' support with at least
111614         HP-UX's 10.20 /bin/cc.
111616 2001-02-03  Jim Meyering  <meyering@lucent.com>
111618         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
111619         AS_IF, now that it works once again (mysteriously).
111620         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
111622 2001-01-30  Jim Meyering  <meyering@lucent.com>
111624         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
111625         * m4/chown.m4: Rename conftestchown to conftest.chown.
111626         * m4/rename.m4: s/conftestdir/conftest.d1/ and
111627         s/conftestdir2/conftest.d2/.
111628         * m4/utimes.m4: s/conftestdata/conftest.data/
111629         Inspired by Pavel Roskin's change in autoconf.
111631 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
111633         * lib/config.charset: Update for FreeBSD 4.2.
111635 2001-01-27  Jim Meyering  <meyering@lucent.com>
111637         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
111638         a use of AS_IF.
111639         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
111641 2001-01-26  Jim Meyering  <meyering@lucent.com>
111643         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
111644         quotearg.c includes it.
111646 2001-01-26  Jim Meyering  <meyering@lucent.com>
111648         * lib/quotearg.c: Include stddef.h.
111649         * lib/quote.c: Include stddef.h.
111650         Reported by Axel Kittenberger.
111652         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
111653         line in double quotes so that it evokes a better diagnostic.
111654         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
111655         Reported by Axel Kittenberger.
111657 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
111659         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
111660         as if it was a `charset'.
111662 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
111664         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
111665         has const.
111667 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
111669         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
111670         to avoid a warning.  Add back 'const' to inptr.
111672 2001-01-20  Jim Meyering  <meyering@lucent.com>
111674         Be sure that headers are checked before used in code compiled
111675         for the type checks.
111676         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
111677         In place of that, invoke jm_CHECK_ALL_TYPES.
111678         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
111679         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
111680         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
111681         The check for ssize_t was mistakenly run before the test for unistd.h.
111683         The configure-time check for stdbool.h was missing.
111684         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
111685         (jm_PREREQ_HASH): New function.
111687 2001-01-17  Jim Meyering  <meyering@lucent.com>
111689         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
111690         for autoconf-2.49c.
111691         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
111693 2001-01-16  Jim Meyering  <meyering@lucent.com>
111695         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
111696         From Bruno Haible.
111698 2001-01-14  Jim Meyering  <meyering@lucent.com>
111700         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
111701         foo and bar.  Create conftestdir/ in the script, not in the C code.
111702         Remove directories in the script, not in the C code.
111703         Remove conftestdir{,2} before trying to create the directory.
111704         Make the entire configure script fail if the mkdir fails.
111706 2001-01-14  Jim Meyering  <meyering@lucent.com>
111708         * lib/rename.c: New file.  From Volker Borchert.
111709         Include stdlib.h, string.h or strings.h, and xalloc.h.
111710         Use strip_trailing_slashes rather than open-coding it.
111712 2001-01-03  Paul Eggert  <eggert@twinsun.com>
111714         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
111716 2001-01-03  Jim Meyering  <meyering@lucent.com>
111718         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
111719         of local `inptr' to avoid warning with some system declarations of
111720         iconv.
111722 2001-01-02  Volker Borchert  <bt@teknon.de>
111724         * m4/rename.m4: New file.
111725         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
111727 2001-01-01  Jim Meyering  <meyering@lucent.com>
111729         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
111730         even on systems with utmpx.h.  It's necessary for the declaration of
111731         utmp's ut_user member.  Reported by Andreas Jaeger.
111733         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
111734         available. They are required for the declarations of getgrgid and
111735         getpwuid resp.
111736         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
111737         Reported by Andreas Jaeger.
111739 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
111741         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
111742         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
111743         so `make install' also works in VPATH builds.
111745 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
111747         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
111748         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
111749         can be used in subdirectories.
111751 2000-12-29  Paul Eggert  <eggert@twinsun.com>
111753         * lib/modechange.c: Do not assume that mode_t uses the
111754         traditional octal encoding.  E.g. "chmod 1 FOO" should set
111755         the other-execute bit of FOO even if S_IXOTH != 1.
111757         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
111758         WOTH, XOTH, ALLM): New macros.
111759         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
111760          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
111761         Use them.
111762         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
111763         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
111764         (mode_compile):
111765         No need to use uintmax_t; unsigned long is long enough.
111766         Don't bother to get suffix since we don't use it.
111768 2000-12-26  Jim Meyering  <meyering@lucent.com>
111770         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
111771         better with autoheader.
111773 2000-12-24  Jim Meyering  <meyering@lucent.com>
111775         * lib/hash.c (is_prime): Return explicit boolean values.
111776         (hash_get_first): Return NULL to appease Irix5.6's 89.
111777         Reported by Nelson Beebe.
111779 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
111781         * lib/localcharset.c (locale_charset): Add support for Win32.
111783 2000-12-18  Paul Eggert  <eggert@twinsun.com>
111785         * lib/physmem.h, lib/physmem.c: New files.
111787         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
111788         (noinst_HEADERS): Add physmem.h.
111790         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
111791         't' for compatibility with Solaris 8 sort.
111793 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
111795         * lib/config.charset: Add support for BeOS.
111797 2000-12-17  Jim Meyering  <meyering@lucent.com>
111799         * m4/dos.m4 (jm_AC_DOS): New file and macro.
111800         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
111802 2000-12-16  Jim Meyering  <meyering@lucent.com>
111804         This bug had a serious impact on chown: `chown N:M FILE' (for integer
111805         N and M) would have treated it like `chown N:N FILE'.
111807         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
111809 2000-12-16  Jim Meyering  <meyering@lucent.com>
111811         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
111812         SHELLS_FILE to a file name that's useful on djgpp systems.
111813         Include stdlib.h.
111814         (ADDITIONAL_DEFAULT_SHELLS): Define.
111815         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
111816         Based mostly on a patch from Prashant TR.
111818 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
111820         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
111821         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
111822         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
111824 2000-12-08  Andreas Schwab  <schwab@suse.de>
111826         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
111827         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
111829 2000-12-07  Jim Meyering  <meyering@lucent.com>
111831         * lib/stripslash.c (ISSLASH): Define.
111832         (strip_trailing_slashes): Use ISSLASH rather than comparing against
111833         `/'.
111834         From Prashant TR.
111836         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
111837         (dir_name_r): Declare this function as static.
111838         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
111839         manifest itself on a name containing a mix of slashes and
111840         backslashes.
111841         Make this function work with names starting with a DOS-style
111842         drive letter and colon prefix.
111843         (dir_name): Append `.' if necessary.
111844         Based mostly on patches from Prashant TR and Eli Zaretskii.
111846         * lib/dirname.h (dir_name_r): Remove prototype.
111848 2000-12-06  Paul Eggert  <eggert@twinsun.com>
111850         * m4/off_t-format.m4: Remove this file.
111851         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
111853 2000-12-06  Jim Meyering  <meyering@lucent.com>
111855         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
111856         replacement strtoull, we may well need the replacement strtoul, too.
111857         Check for declarations of strtoul and strtoull.
111858         Check for strtol.  Mainly as a cue to cause automake to include
111859         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
111860         Check for limits.h -- strtol.c needs it.
111862 2000-12-05  Jim Meyering  <meyering@lucent.com>
111864         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
111866 2000-12-04  Jim Meyering  <meyering@lucent.com>
111868         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
111869         Also include memory.h, stdlib.h, unistd.h if appropriate.
111870         Reported by Andreas Jaeger (conflicting declaration of malloc).
111872 2000-12-02  Jim Meyering  <meyering@lucent.com>
111874         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
111875         * m4/jm-macros.m4 (jm_MACROS): require it.
111877 2000-12-02  Jim Meyering  <meyering@lucent.com>
111879         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
111881 2000-12-01  Paul Eggert  <eggert@twinsun.com>
111883         * lib/memrchr.c: Include <config.h> before any system include file.
111885 2000-11-30  Jim Meyering  <meyering@lucent.com>
111887         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
111889 2000-11-30  Jim Meyering  <meyering@lucent.com>
111891         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
111893 2000-11-29  Paul Eggert  <eggert@twinsun.com>
111895         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
111897 2000-11-26  Jim Meyering  <meyering@lucent.com>
111899         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
111901 2000-11-22  Paul Eggert  <eggert@twinsun.com>
111903         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
111904         size of (size_t) -1; it's not portable.
111906 2000-11-17  Jim Meyering  <meyering@lucent.com>
111908         * lib/strstr.c: Update from GNU libc.
111910 2000-11-17  Akim Demaille  <akim@epita.fr>
111912         * lib/obstack.h: Formatting changes.
111913         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
111914         prevent type checking.
111915         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
111916         cast the value to (void *): assigning a `foo *' to a `void *'
111917         variable is valid.
111918         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
111920 2000-11-16  Jim Meyering  <meyering@lucent.com>
111922         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
111924 2000-11-11  Jim Meyering  <meyering@lucent.com>
111926         * lib/error.c: Add a couple #includes, merging from GNU libc version.
111928 2000-11-10  Jim Meyering  <meyering@lucent.com>
111930         * lib/obstack.h: Update from GNU libc.
111931         * lib/obstack.c: Likewise.
111933 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
111935         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
111937 2000-11-06  Paul Eggert  <eggert@twinsun.com>
111939         * lib/getusershell.c (setusershell): Use rewind rather than
111940         fseek/fseeko, to avoid configuration hassles with fseeko.
111941         Don't bother opening SHELLS_FILE if shellstream is NULL;
111942         it's not necessary.
111944 2000-11-05  Jim Meyering  <meyering@lucent.com>
111946         * lib/makepath.h (make_dir): Declare.
111947         * lib/makepath.c (make_dir): Remove `static' attribute.
111948         Tweak a comment.
111950 2000-11-04  Jim Meyering  <meyering@lucent.com>
111952         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
111954 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
111956         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
111957         last one in a bucket, advance to the next bucket.
111959 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
111961         * lib/fnmatch.c: Do not comment out all the code if we are using
111962         the GNU C library, because in some cases we are replacing buggy
111963         code in the GNU C library itself.
111965 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
111967         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
111968         (regex_compile): Catch bogus \(\1\).
111970 2000-10-30  Paul Eggert  <eggert@twinsun.com>
111972         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
111973         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
111974         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
111976 2000-10-30  Paul Eggert  <eggert@twinsun.com>
111978         * lib/error.h, getline.h, modechange.h:
111979         Remove "2000" from Copyright line, as the file hasn't been
111980         changed this year other than in the copyright notice.
111982         * lib/xalloc.h: Add "2000" to Copyright line, as this file
111983         was changed this year.
111985 2000-10-29  Jim Meyering  <meyering@lucent.com>
111987         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
111988         renaming.
111989         * m4/ls-mntd-fs.m4: Likewise
111991 2000-10-29  Jim Meyering  <meyering@lucent.com>
111993         * lib/xstat.in: Fix grammar in comment.
111995 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
111997         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
111998         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
111999         doesn't define __restrict_arr.
112001 2000-10-28  Jim Meyering  <meyering@lucent.com>
112003         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
112004         (jm_PREREQ_MEMCHR): New function.
112006 2000-10-28  Jim Meyering  <meyering@lucent.com>
112008         * lib/memchr.c: Update from libc.
112009         Adjust for portability:
112010         [HAVE_STDLIB_H]: Include stdlib.h.
112011         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
112012         Undef __memchr, too.
112013         [!weak_alias]: Define __memchr to memchr.
112015         * lib/regex.c: Update from libc.
112016         * lib/regex.h: Likewise.
112017         * lib/getopt1.c: Likewise.
112018         * lib/memcmp.c: Likewise.
112020         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
112021         Avoid using fseek, when possible -- it's broken by design.
112022         Patch by Ulrich Drepper.
112024 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
112026         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
112027         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
112028         Giving in to popular pressure to shut up the compiler with casts.
112030 2000-10-26  Jim Meyering  <meyering@lucent.com>
112032         * lib/strftime.c: Update from libc.
112034 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
112036         * regex.c: More `unsigned char' -> `re_char' changes.
112037         Also change several `int' into `re_wchar_t'.
112038         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
112039         (PUSH_FAILURE_POINTER): Don't cast any more.
112040         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
112041         We want GCC to complain, since this piece of code makes
112042         re_match non-reentrant, which *should* be fixed.
112043         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
112044         (EXTEND_BUFFER): Use RETALLOC.
112045         (SET_LIST_BIT): Don't cast.
112046         (re_wchar_t): New type.
112047         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
112048         that those two functions will always properly return.
112049         (IMMEDIATE_QUIT_CHECK): Cast to void.
112050         (analyse_first): Use recursion rather than an explicit stack.
112051         (re_compile_fastmap): Can't fail anymore.
112052         (re_search_2): Don't check re_compile_fastmap for failure.
112053         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
112054         Now also sets the new value (passed in a new argument).
112055         (re_match_2_internal): Use it.
112056         Also, use a new var `reg' of type size_t when looping through regs
112057         rather than reuse the inappropriate `mcnt'.
112059 2000-10-25  Jim Meyering  <meyering@lucent.com>
112061         * lib/obstack.c: Update from libc.
112063 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
112065         * regex.c (regex_compile): Change the way of handling a range from
112066         a char less than 256 to a char not less than 256.
112068 2000-10-24  Andrew Innes  <andrewi@gnu.org>
112070         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
112071         NT-Emacs only.
112072         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
112073         so that re_search functions only quit when callers expect them to.
112075 2000-10-23  Jim Meyering  <meyering@lucent.com>
112077         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
112078         wrong.  That set_locale call must not have any side effects.
112079         From Paul Eggert.
112081 2000-10-22  Jim Meyering  <meyering@lucent.com>
112083         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
112084         [CYCLIC]: Remove now-unused definition.
112086         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
112087         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
112088         Suggestion from Ulrich Drepper.
112090 2000-10-21  Jim Meyering  <meyering@lucent.com>
112092         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
112093         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
112094         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
112096 2000-10-21  Jim Meyering  <meyering@lucent.com>
112098         * lib/dirname.c (memrchr): Declare if necessary.
112099         (dir_name): Remove the restriction that there be no
112100         trailing slashes.  Now, this code skips past them, effectively
112101         ignoring them.
112102         [TEST_DIRNAME] (main): New unit tests.
112104         * lib/memrchr.c: New file from GNU libc.
112105         Undef __memrchr, too.
112106         [!weak_alias]: Define __memrchr to memrchr.
112107         Guard weak_alias use with `#ifdef weak_alias'.
112109 2000-10-21  Jim Meyering  <meyering@lucent.com>
112111         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
112112         (dir_name): Use dir_name_r.
112113         * lib/dirname.h (dir_name_r): Declare it.
112115 2000-10-17  Jim Meyering  <meyering@lucent.com>
112117         * lib/quote.h (PARAMS): Define and use.
112118         Reported by Akim Demaille.
112120         * lib/getopt.c: Update from libc.
112122 2000-10-16  Jim Meyering  <meyering@lucent.com>
112124         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
112125         setlocale.
112126         From Jan Fedak.
112128 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
112130         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
112132 2000-09-25  Jim Meyering  <meyering@lucent.com>
112134         * lib/md5.h (rol): Define (from GnuPG).
112136         * lib/sha.c: Give credit (GnuPG) where due.
112137         (M): Use rol rather than open-coding it.
112138         Add a FIXME comment.
112140 2000-09-21  Jim Meyering  <meyering@lucent.com>
112142         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
112143         Reported by Michael Stone.
112145 2000-09-20  Jim Meyering  <meyering@lucent.com>
112147         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
112148         (noinst_HEADERS): Add sha.h.
112149         Based on code from Scott G. Miller and from GnuPG.
112151 2000-09-18  Jim Meyering  <meyering@lucent.com>
112153         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
112154         LIBS. Otherwise, everyone ends up linking with -lelf for some
112155         configurations.
112156         Reported by Mike Stone.
112158 2000-09-15  Jim Meyering  <meyering@lucent.com>
112160         * lib/regex.c: Update from libc.
112162 2000-09-10  Jim Meyering  <meyering@lucent.com>
112164         * lib/getopt.c (_getopt_internal): Update from glibc.
112166 2000-09-09  Jim Meyering  <meyering@lucent.com>
112168         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
112169         think it should be used as a general replacement for isascii.
112170         * lib/fnmatch.c: Likewise.
112171         * lib/mbswidth.c: Likewise
112172         * lib/regex.c: Likewise.
112174         Don't use atoi.
112175         * lib/userspec.c: Include sys/param.h and limits.h.
112176         Include xstrtol.h.
112177         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
112178         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
112179         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
112180         UID, GID.  Check range.
112182 2000-09-06  Jim Meyering  <meyering@lucent.com>
112184         * lib/getopt.c (_getopt_internal): Update from glibc.
112186 2000-08-30  Jim Meyering  <meyering@lucent.com>
112188         * lib/strftime.c: Merge in changes from GNU libc.
112190 2000-08-26  Jim Meyering  <meyering@lucent.com>
112192         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
112193         * m4/fpending.m4: New file.
112195 2000-08-26  Jim Meyering  <meyering@lucent.com>
112197         * lib/closeout.c: Include "__fpending.h".
112198         (close_stdout_status): Return right away if there's nothing to flush.
112200         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
112201         * lib/__fpending.c: New file.
112202         * lib/__fpending.h: New file.
112204 2000-08-20  Jim Meyering  <meyering@lucent.com>
112206         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
112207         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
112208         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
112210 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
112212         Improve fileutils installation on systems where running
112213         programs (like install) can't be unlinked.
112214         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
112215         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
112217 2000-08-07  Paul Eggert  <eggert@twinsun.com>
112219         Standardize on "memory exhausted" instead of "Memory exhausted"
112220         or "virtual memory exhausted".
112221         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
112222         "virtual memory exhausted".
112223         * lib/same.c (same_name): Invoke xalloc_die instead of printing
112224         our own message.
112225         * lib/userspec.c (parse_user_spec): Likewise.
112226         * lib/bumpalloc.h: comment fix
112227         * lib/same.c, userspec.c: Include xalloc.h.
112229         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
112230         not char *const and pointing to a constant array.
112231         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
112232         (xrealloc): Comment fix.
112234         * lib/userspec.c (parse_user_spec):
112235         Don't translate a message until just before returning,
112236         to avoid unnecessary translation.
112238 2000-08-07  Jim Meyering  <meyering@lucent.com>
112240         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
112241         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
112242         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
112243         getgroups.c, gethostname.c, getopt.h, group-member.c,
112244         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
112245         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
112246         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
112247         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
112248         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
112249         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
112250         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
112251         yesno.c: Back out Copyright date changes for each file with no change
112252         this year.  This eases coordination with other programs using the same
112253         source code modules.  From Paul Eggert.
112255 2000-08-06  Paul Eggert  <eggert@twinsun.com>
112257         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
112258         not char, for compatibility with glibc 2.1.3 strftime.c.
112260 2000-08-03  Greg McGary  <greg@mcgary.org>
112262         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
112263         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
112264         (EXTEND_BUFFER): Use them.
112266 2000-08-01  Jim Meyering  <meyering@lucent.com>
112268         * lib/dirname.c (ISSLASH): Define.
112269         (BACKSLASH_IS_PATH_SEPARATOR): Define.
112270         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
112271         both `\' and `/' may be use as path separators.
112272         Based on a patch from Prashant TR.
112274 2000-07-31  Paul Eggert  <eggert@twinsun.com>
112276         * lib/quotearg.c (quotearg_n_options): Don't make the initial
112277         slot vector a constant, since it might get modified.
112279 2000-07-31  Jim Meyering  <meyering@lucent.com>
112281         * lib/xmalloc.c: Use `virtual memory exhausted', not
112282         `Memory exhausted'.
112283         * lib/obstack.c (print_and_abort): Likewise.
112285 2000-07-30  Paul Eggert  <eggert@twinsun.com>
112287         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
112288         buffer, so that the caller can always quote one small
112289         component of a "memory exhausted" message in slot 0.
112290         From a suggestion by Jim Meyering.
112292 2000-07-30  Jim Meyering  <meyering@lucent.com>
112294         * lib/makepath.c (make_path): Quote the other instance, too.
112296         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
112297         (STATIC_BUF_SIZE): Define.
112298         (quotearg_n_options): Use only statically allocated storage when
112299         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
112300         than STATIC_BUF_SIZE.
112302 2000-07-29  Jim Meyering  <meyering@lucent.com>
112304         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
112305         * lib/dirname.c (dir_name): Likewise.
112307         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
112308         `/'.
112310         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
112311         (dir_name): Assert that there are no trailing slashes.
112313 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
112315         * lib/mbswidth.h (mbswidth): Add a flags argument.
112316         (mbswidth): New declaration.
112317         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
112318         * lib/mbswidth.c (mbswidth): Add a flags argument.
112319         (mbsnwidth): New function.
112321 2000-07-24  Jim Meyering  <meyering@lucent.com>
112323         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
112325 2000-07-23  Paul Eggert  <eggert@twinsun.com>
112327         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
112329 2000-07-23  Paul Eggert  <eggert@twinsun.com>
112331         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
112332         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
112333         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
112334         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
112335         invoke multibyte primitives.
112337 2000-07-23  Paul Eggert  <eggert@twinsun.com>
112339         * lib/quotearg.c:
112340         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
112341         so that mbstate_t is always defined.
112343         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
112344         be 1 in at least one GCC installation, and this configuration
112345         error is likely to be common.  Ignoring MB_LEN_MAX hurts
112346         performance on hosts that have mbrtowc but have only unibyte
112347         locales, but I assume these hosts are rare.
112349 2000-07-23  Paul Eggert  <eggert@twinsun.com>
112351         * lib/mbswidth.c (_XOPEN_SOURCE):
112352         Don't define; this causes problems on Solaris 7.
112353         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
112355 2000-07-23  Jim Meyering  <meyering@lucent.com>
112357         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
112358         too: getgrgid, getpwuid, getuid.
112360 2000-07-23  Jim Meyering  <meyering@lucent.com>
112362         * lib/basename.c (base_name): Add an assertion.
112364 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
112366         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
112367         shadow its mbsinit function.
112369 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
112371         * lib/mbswidth.h: New file.
112372         * lib/mbswidth.c: New file.
112373         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
112374         (noinst_HEADERS): Add mbswidth.h.
112376 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
112378         * lib/config.charset: Add support for FreeBSD. Improve support for
112379         HP-UX and IRIX 6.
112381 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
112383         * m4/mbswidth.m4: New file.
112384         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
112386 2000-07-15  Jim Meyering  <meyering@lucent.com>
112388         * lib/makepath.c: Include quote.h.
112389         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
112390         corresponding argument in a `quote (...)' call.
112391         Give better diagnostics.
112393         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
112394         (noinst_HEADERS): Add quote.h.
112396         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
112397         from tar's src/misc.c.
112398         * lib/quote.h: New file.  Prototypes for same.
112400 2000-07-14  Paul Eggert  <eggert@twinsun.com>
112402         From a suggestion by Bruno Haible.
112403         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
112404         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
112405         to decide whether to define the BeOS workaround macro;
112406         this adjusts to the change to AC_MBSTATE_T.
112408 2000-07-14  Jim Meyering  <meyering@lucent.com>
112410         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
112411         jm_AC_TYPE_UINTMAX_T.
112413 2000-07-13  Paul Eggert  <eggert@twinsun.com>
112415         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
112417         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
112418         quotearg_buffer_restyled): Add support for
112419         clocale_quoting_style.  Undo previous change to
112420         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
112421         and "{RIGHT QUOTATION MARK}" msgids.
112423 2000-07-10  Paul Eggert  <eggert@twinsun.com>
112425         From a suggestion by Bruno Haible.
112426         * m4/mbstate_t.m4 (AC_MBSTATE_T):
112427         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
112428         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
112429         and mbstate_t, to a single-part test that simply defines mbstate_t.
112430         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
112431         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
112433 2000-07-10  Jim Meyering  <meyering@lucent.com>
112435         * m4/strerror_r.m4: Mirror the correction made in autoconf.
112437         * m4/gnu-source.m4: Output to confdefs.h directly.
112438         Suggestion from Akim Demaille.
112440 2000-07-09  Paul Eggert  <eggert@twinsun.com>
112442         The old behavior of quoting `like this' doesn't look good with
112443         newer, ISO-style fonts.  See:
112444         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
112446         Instead, quote "like this" by default.  Let the translator
112447         tailor the locale-specific quoting behavior by providing
112448         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
112450         * lib/quotearg.c (N_): New macro.
112451         (gettext_default): New function.
112452         (quotearg_buffer_restyled): Use
112453         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
112454         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
112456 2000-07-09  Jim Meyering  <meyering@lucent.com>
112458         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
112459         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
112461         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
112462         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
112464 2000-07-09  Jim Meyering  <meyering@lucent.com>
112466         * lib/Most files: Update copyright dates to include 2000.
112468 2000-07-08  Jim Meyering  <meyering@lucent.com>
112470         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
112471         if not defined.
112472         (xgethostname): Remove now-unnecessary #ifdef.
112473         Move declaration of `err' into loop where it's used.
112475 2000-07-05  Paul Eggert  <eggert@twinsun.com>
112476         and Bruno Haible  <haible@clisp.cons.org>
112478         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
112479         only if the test for an object-type mbstate_t fails.  This
112480         prevents us from mistakenly reporting that mbstate_t is a
112481         system object type after we "#define mbstate_t int" to work
112482         around its lack.
112484 2000-07-05  Paul Eggert  <eggert@twinsun.com>
112485         and Bruno Haible  <haible@clisp.cons.org>
112487         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
112489 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
112491         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
112492         to strerror_r.
112493         Include <ctype.h> for use of isalpha.
112495 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
112497         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
112498         by allocating a larger buffer. Test the gethostname return value for
112499         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
112500         returns an error and ENAMETOOLONG isn't defined.
112502 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
112504         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
112505         dimension.
112507 2000-07-04  Jim Meyering  <meyering@lucent.com>
112509         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
112510         of the deprecated AC_CHECKING.
112512 2000-07-04  Jim Meyering  <meyering@lucent.com>
112514         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
112515         Reported by Bruno Haible.
112517 2000-07-04  Jim Meyering  <meyering@lucent.com>
112519         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
112520         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
112521         lacks mbrtowc.
112523 2000-07-03  Paul Eggert  <eggert@twinsun.com>
112525         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
112526         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
112528 2000-07-03  Paul Eggert  <eggert@twinsun.com>
112529         and Bruno Haible  <haible@clisp.cons.org>
112531         * lib/quotearg.c (mbrtowc):
112532         Assign to *pwc, and return 1 only if result is nonzero.
112533         (iswprint): Use ISPRINT when substituting our own mbrtowc.
112535 2000-07-03  Jim Meyering  <meyering@lucent.com>
112537         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
112539 2000-07-03  Jim Meyering  <meyering@lucent.com>
112541         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
112542         This is necessary to get a definition of e.g., UTMP_FILE on
112543         HP-UX 10.20.
112544         From Bob Proulx.
112546 2000-07-02  Jim Meyering  <meyering@lucent.com>
112548         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
112550         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
112551         AC_LIBOBJ(function_name).
112552         * m4/chown.m4: Likewise.
112553         * m4/fnmatch.m4: Likewise.
112554         * m4/ftruncate.m4: Likewise.
112555         * m4/getgroups.m4: Likewise.
112556         * m4/getline.m4: Likewise.
112557         * m4/group-member.m4: Likewise.
112558         * m4/jm-macros.m4: Likewise.
112559         * m4/lstat.m4: Likewise.
112560         * m4/malloc.m4: Likewise.
112561         * m4/memcmp.m4: Likewise.
112562         * m4/nanosleep.m4: Likewise.
112563         * m4/putenv.m4: Likewise.
112564         * m4/realloc.m4: Likewise.
112565         * m4/regex.m4: Likewise.
112566         * m4/stat.m4: Likewise.
112567         * m4/strftime.m4: Likewise.
112569 2000-07-02  Jim Meyering  <meyering@lucent.com>
112571         * lib/quotearg.c (mbstate_t): Don't define here.
112573 2000-07-02  Jim Meyering  <meyering@lucent.com>
112575         * lib/nanosleep.c (SIGCONT): Define if not already defined.
112577 2000-07-01  Jim Meyering  <meyering@lucent.com>
112579         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
112581 2000-07-01  Jim Meyering  <meyering@lucent.com>
112583         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
112584         problem.
112586 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
112588         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
112589         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
112591 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
112593         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
112594         per change in ../m4/ls-mntd-fs.m4.
112595         (read_filesystem_list): Ignore symbolic links.
112597 2000-06-29  Jim Meyering  <meyering@lucent.com>
112599         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
112600         for declaration of strcmp.
112602         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
112604         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
112605         Avoid warning by casting result to `char *' to remove `const'.
112607 2000-06-28  Jim Meyering  <meyering@lucent.com>
112609         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
112610         included by quotearg.c, for which we perform this test.  From
112611         Bruno Haible.
112613 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
112615         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
112616         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
112617         <utmpx.h> exists, put readutmp.o into LIBOBJS.
112619 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
112621         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
112623 2000-06-26  Paul Eggert  <eggert@twinsun.com>
112625         savedir now sets errno on failure and invokes xmalloc to get memory.
112626         Fix a couple of other minor bugs while we're at it.
112628         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
112629         (NAMLEN): Remove macro.
112630         (malloc, realloc): Remove decls.
112631         (stpcpy): Likewise.
112632         ("xalloc.h"): Include.
112633         (NAME_SIZE_DEFAULT): New macro.
112634         (savedir): Use xmalloc / xrealloc to allocate memory.
112635         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
112636         Skip "" directory entries.
112637         Use strlen to calculate directory entry length, since the old method
112638         is rarely used these days and isn't worth supporting.
112639         Don't use a pointer after freeing it.
112640         Check for integer overflow when calculating allocation size.
112641         Use memcpy to copy entries, instead of stpcpy.
112642         Set errno properly when returning NULL.
112643         Check for readdir error.
112645 2000-06-26  Jim Meyering  <meyering@lucent.com>
112647         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
112649 2000-06-25  Jim Meyering  <meyering@lucent.com>
112651         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
112652         Linux header bug when _XOPEN_SOURCE is defined to 500.
112654 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
112656         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
112657         deficiency.
112659 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
112661         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
112662         Include xalloc.h.
112663         Don't include <stdlib.h>.  Don't declare malloc, realloc.
112665 2000-06-24  Jim Meyering  <meyering@lucent.com>
112667         * m4/strerror_r.m4: Revive this file -- to try out an experimental
112668         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
112669         for which strerror does return char*, but which lacks a conveniently
112670         accessible declaration of the function.  If the compile-test says
112671         strerror_r doesn't work, then resort to a `run'-test that works on
112672         BeOS and segfaults on DEC Unix.
112674 2000-06-24  Jim Meyering  <meyering@lucent.com>
112676         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
112678 2000-06-23  Paul Eggert  <eggert@twinsun.com>
112680         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
112681         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
112683 2000-06-23  Paul Eggert  <eggert@twinsun.com>
112685         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
112686         (mbrtowc, mbstate_t): Define substitutes if
112687         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
112688         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
112689         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
112691 2000-06-23  Jim Meyering  <meyering@lucent.com>
112693         * m4/afs.m4: Add missing AC_MSG_RESULT.
112694         Reported by Bruno Haible.
112696         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
112697         Suggestion from Bruno Haible.
112699 2000-06-23  Jim Meyering  <meyering@lucent.com>
112701         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
112703 2000-06-21  Jim Meyering  <meyering@lucent.com>
112705         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
112707 2000-06-21  Jim Meyering  <meyering@lucent.com>
112709         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
112710         (noinst_HEADERS): Add getstr.h.
112712         * lib/getline.c (getstr): Move into a separate file.
112713         * lib/getstr.c (getstr): New file, extracted from getline.c, with
112714         the following changes: new parameter, delim2; both delim[12]
112715         parameters have type `int', not `char'.  The latter would lose
112716         with 8-bit delimiters.
112717         * lib/getstr.h: New file.
112719 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
112721         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
112722         than 1024, return a memory chunk of least possible size, instead
112723         of size PATH_MAX + 2. In the loop, increment the size proportionally.
112724         Use free/xmalloc instead of xrealloc to avoid copying for very long
112725         paths.
112727 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
112729         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
112730         the empty string.
112732 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
112734         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
112735         address, not strdup.  Include <stdlib.h> and don't declare free().
112737 2000-06-19  Jim Meyering  <meyering@lucent.com>
112739         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
112741 2000-06-18  Jim Meyering  <meyering@lucent.com>
112743         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
112745         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
112746         `checking whether...' message to be consistent with that of the
112747         lstat test.
112749 2000-06-18  Jim Meyering  <meyering@lucent.com>
112751         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
112752         Besides, these days every porting target provides a mkdir function.
112754         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
112755         needed. (this snippet comes from src/system.h).
112757 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
112759         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
112761 2000-06-15  Paul Eggert  <eggert@twinsun.com>
112763         * lib/human.c (adjust_value): New function.
112764         (human_readable_inexact): Apply rounding style even when
112765         printing approximate values.
112767 2000-06-14  Paul Eggert  <eggert@twinsun.com>
112769         * lib/human.c (human_readable_inexact): Allow an input block
112770         size that is not a multiple of the output block size, and vice versa.
112771         Reported by Piergiorgio Sartor.
112773 2000-06-14  Paul Eggert  <eggert@twinsun.com>
112775         * lib/getdate.y (get_date): Apply relative times after time
112776         zone indicator, not before.  Reported by Todd A. Jacobs.
112778 2000-06-13  Jim Meyering  <meyering@lucent.com>
112780         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
112782         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
112784 2000-06-12  Paul Eggert  <eggert@twinsun.com>
112786         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
112788 2000-06-12  Jim Meyering  <meyering@lucent.com>
112790         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
112791         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
112792         optional argument.
112793         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
112794         the optional argument, `lib'.
112796 2000-06-08  Jim Meyering  <meyering@lucent.com>
112798         * m4/largefile.m4: Remove file (now that it's part of autoconf).
112800 2000-06-04  Paul Eggert  <eggert@twinsun.com>
112802         Rewrite largefile configuration so that we don't need to run
112803         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
112804         AC_CANONICAL_HOST in configure.in -- jmm]
112806         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
112807         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
112808         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
112809         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
112810         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
112811         All uses changed.
112812         Instead of inspecting the output of getconf, try to compile the
112813         test program without and with the macro definition.
112814         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
112815         for getconf.  Instead, check for the needed flags by compiling
112816         test programs.
112818 2000-06-04  Paul Eggert  <eggert@twinsun.com>
112820         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
112822 2000-06-04  Jim Meyering  <meyering@lucent.com>
112824         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
112825         SunOS 4.1.4 for which gid_t is an unsigned type.
112827 2000-06-03  Jim Meyering  <meyering@lucent.com>
112829         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
112830         now that autoconf requires that.
112832         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
112833         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
112834         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
112836 2000-06-03  Jim Meyering  <meyering@lucent.com>
112838         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
112840 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
112842         * m4/glibc21.m4: New file.
112843         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
112845 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
112847         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
112848         newer, don't install charset.alias.
112849         * lib/config.charset: Change the Linux/glibc rules so they become empty
112850         on glibc-2.1 or newer.
112852 2000-06-02  Jim Meyering  <meyering@lucent.com>
112854         * lib/mountlist.c: Back out last change.  Instead, do this...
112855         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
112856         me_dummy member using the same `ignore'-testing code.
112857         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
112858         fs_type strings.
112859         From Mark D. Roth.
112861 2000-05-29  Jim Meyering  <meyering@lucent.com>
112863         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
112864         mounts with the `ignore' attribute.  Based on a patch from
112865         Mark D. Roth.
112867 2000-05-28  Jim Meyering  <meyering@lucent.com>
112869         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
112870         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
112871         * m4/stat.m4: Likewise.
112872         * m4/lstat.m4: Likewise.
112873         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
112875         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
112876         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
112878 2000-05-26  Jim Meyering  <meyering@lucent.com>
112880         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
112882 2000-05-24  Jim Meyering  <meyering@lucent.com>
112884         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
112885         autoconf requires that.
112886         * m4/lib-check.m4: Likewise.
112887         * m4/jm-macros.m4: Likewise.
112888         * m4/strftime.m4: Likewise.
112890         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
112891         AC_CHECK_DECLS, now that autoconf requires that.
112893 2000-05-22  Jim Meyering  <meyering@lucent.com>
112895         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
112896         * m4/lstat.m4: Likewise.
112898 2000-05-22  Jim Meyering  <meyering@lucent.com>
112900         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
112902 2000-05-20  Jim Meyering  <meyering@lucent.com>
112904         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
112905         (jm_PREREQ): Use it.
112907 2000-05-18  Jim Meyering  <meyering@lucent.com>
112909         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
112910         back, too, since it may have been modified by allocate_entry.
112911         (hash_delete): Rewrite to use neither the assignment operator
112912         nor the comma operator in an if-expression.
112914 2000-05-15  Paul Eggert  <eggert@twinsun.com>
112916         * lib/closeout.c:
112917         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
112918         Remove; no longer needed.
112919         "quotearg.h": Add include.
112920         (file_name): Do not bother to explicitly initialize to NULL; it's less
112921         efficient on some hosts.
112922         (close_stdout_status): Remove test as to whether stdout was already
112923         closed; it breaks for the case "echo x | sort >&-".
112924         Quote file name colons.
112925         Do not assume that _("write error") lacks format strings.
112927 2000-05-15  Jim Meyering  <meyering@lucent.com>
112929         * lib/version-etc.c (version_etc_copyright): Update the copyright
112930         string used in all --version output.
112932 2000-05-14  Jim Meyering  <meyering@lucent.com>
112934         * lib/closeout.c (close_stdout_set_file_name): New function.
112935         (close_stdout_status): Use new file-scoped global.
112936         Return right away if fstat says the stdout file descriptor is invalid.
112937         * lib/closeout.h (close_stdout_set_file_name): Declare.
112939 2000-05-10  Jim Meyering  <meyering@lucent.com>
112941         * lib/closeout.c [default_exit_status]: New file-scoped variable.
112942         (close_stdout_set_status): New function.
112943         * lib/closeout.h (close_stdout_set_status): Declare.
112945 2000-05-09  Jim Meyering  <meyering@lucent.com>
112947         * m4/gettext.m4: Rename this...
112948         * m4/libintl.m4: ...to this.
112950 2000-05-08  Jim Meyering  <meyering@lucent.com>
112952         * lib/long-options.c: Don't include closeout.h.
112953         (parse_long_options): Don't call close_stdout for --version.
112955 2000-05-06  Paul Eggert  <eggert@twinsun.com>
112957         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
112958         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
112959         2.1.3 bug.  This avoids a clash when files like regex.c define
112960         _GNU_SOURCE.
112962 2000-05-06  Jim Meyering  <meyering@lucent.com>
112964         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
112965         (AC_REPLACE_FUNCS): Add strnlen.
112967         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
112968         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
112970         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
112971         AC_SEARCH_LIBS call for nanosleep.
112972         (LIB_NANOSLEEP): Set and AC_SUBST.
112974 2000-05-06  Jim Meyering  <meyering@lucent.com>
112976         * lib/strnlen.c: Undefine __strnlen and strnlen.
112977         [!weak_alias]: Define __strnlen to strnlen.
112979         * lib/atexit.c: New file, from libiberty.
112981 2000-05-06  Jim Meyering  <meyering@lucent.com>
112983         * lib/closeout.c (close_stdout_status): Also check for errors on the
112984         stderr stream.
112986 2000-05-05  Jim Meyering  <meyering@lucent.com>
112988         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
112989         AC_SEARCH_LIBS call for clock_gettime.
112990         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
112992         * m4/search-libs.m4: Update from autoconf.
112994         su doesn't work on Solaris 2.6.
112995         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
112996         <shadow.h>.  Reported by Dragos Harabor.
112998 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
113000         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
113001         memcpy instead of xmalloc, xrealloc, path_concat.
113002         (locale_charset): Treat empty environment variables as absent.
113003         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
113005 2000-05-04  Jim Meyering  <meyering@lucent.com>
113007         * lib/getopt.c: Update from glibc.
113008         * lib/obstack.c: Likewise.
113009         * lib/obstack.h: Likewise.
113010         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
113011         file
113013         * lib/regex.h: Likewise.
113014         * lib/strndup.c: Likewise.
113015         * lib/strnlen.c: New file, from glibc.
113017 2000-05-03  Jim Meyering  <meyering@lucent.com>
113019         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
113021 2000-05-02  Paul Eggert  <eggert@twinsun.com>
113023         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
113024         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
113025         compile-time test, rather than inspecting host and OS, to
113026         decide whether to define _LARGEFILE_SOURCE.
113028 2000-05-01  Jim Meyering  <meyering@lucent.com>
113030         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
113032         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
113033         Based on a patch from Bruno Haible.
113035 2000-05-01  Jim Meyering  <meyering@lucent.com>
113037         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
113039 2000-04-29  Jim Meyering  <meyering@lucent.com>
113041         * lib/path-concat.c: Declare strdup only if it's not defined.
113042         * lib/canon-host.c: Likewise.
113044 2000-04-28  Jim Meyering  <meyering@lucent.com>
113046         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
113047         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
113048         is included first, then limits.h is included by locale.h by libintl.h.
113049         From John David Anglin.
113051 2000-04-25  Jim Meyering  <meyering@lucent.com>
113053         * lib/makepath.c (S_IRWXUGO): Define.
113054         (make_path): Always perform explicit chmod if MODE specifies any
113055         of the `special' permission bits.  Prompted by a bug report against
113056         install from Mate Wierdl and Joost van Baal.
113058 2000-04-18  Jim Meyering  <meyering@lucent.com>
113060         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
113061         (jm_PREREQ): Use it.
113063 2000-04-18  Jim Meyering  <meyering@lucent.com>
113065         * lib/README: New file.
113067         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
113068         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
113070 2000-04-17  Jim Meyering  <meyering@lucent.com>
113072         Get it right :-)
113073         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
113074         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
113075         Suggestion from Akim Demaille.
113077 2000-04-17  Jim Meyering  <meyering@lucent.com>
113079         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
113080         the definition of it to rpl_strftime also defined-away the system's
113081         declaration.
113083 2000-04-15  Jim Meyering  <meyering@lucent.com>
113085         Use `C' to denote so-called `contiguous' files, the same way
113086         that tar does.
113087         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
113088         (ftypelet): Use S_ISCTG.
113089         From Michael Deutschmann.
113091 2000-04-14  Jim Meyering  <meyering@lucent.com>
113093         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
113094         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
113095         clobbered.
113097 2000-04-14  Jim Meyering  <meyering@lucent.com>
113099         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
113101 2000-04-13  Jim Meyering  <meyering@lucent.com>
113103         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
113104         AH_VERBATIM to insert required #ifndef into config.h.in.
113105         Suggestion from Akim Demaille.
113107 2000-04-12  Jim Meyering  <meyering@lucent.com>
113109         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
113110         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
113111         Christian Krackowizer.
113113         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
113114         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
113115         (AC_SYS_LARGEFILE): Require.
113116         (AM_C_PROTOTYPES): Require.
113118 2000-04-08  Jim Meyering  <meyering@lucent.com>
113120         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
113121         names don't conflict.  Reported by Eli Zaretskii.
113123 2000-04-07  Jim Meyering  <meyering@lucent.com>
113125         * lib/putenv.c: Move inclusion of errno.h so it follows that of
113126         sys/types.h, to work around system header problems on AIX 3.2.5.
113127         From Bruno Haible.
113129 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
113131         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
113132         bug.  Deal with the different error behavior of Irix iconv.
113134 2000-04-05  Paul Eggert  <eggert@twinsun.com>
113136         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
113137         IRIX if the installer said otherwise.
113139 2000-04-05  Jim Meyering  <meyering@lucent.com>
113141         Portability tweaks required for ultrix4.3.
113142         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
113143         (jm_CHECK_DECLS): Add getutent to the list of functions.
113144         (_jm_DECL_HEADERS): Add utmpx.h.
113145         From John David Anglin.
113147         * m4/strftime.m4: Back out the 2000-04-02 change.
113148         Instead of that change, simply undefine putenv in the test program.
113150 2000-04-05  Jim Meyering  <meyering@lucent.com>
113152         Portability tweaks required for ultrix4.3.
113153         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
113154         getutent.
113155         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
113156         * lib/canon-host.c: Declare strdup.
113157         * lib/path-concat.c: Likewise.
113158         From John David Anglin.
113160 2000-04-04  Jim Meyering  <meyering@lucent.com>
113162         Be more DOS 8.3-friendly.
113163         * lib/ref-add.sin: Renamed from ref-add.sed.in.
113164         * lib/ref-del.sin: Renamed from ref-del.sed.in.
113165         * lib/Makefile.am: Reflect renaming.
113166         Reported by Eli Zaretskii.
113168         Use a temporary file name that won't clash with `charset.alias'
113169         in the DOS 8.3 name space.
113170         * lib/Makefile.am (charset_tmp): Define.
113171         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
113172         (uninstall-local): Likewise.
113173         Reported by Eli Zaretskii.
113175 2000-04-03  Jim Meyering  <meyering@lucent.com>
113177         * m4/gettext.m4: Fix typo in comment.
113179         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
113180         textutils/configure.in).  Suggestion from Paul Eggert.
113181         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
113183 2000-04-02  Paul Eggert  <eggert@twinsun.com>
113185         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
113186         variable in the shell rather than using putenv, which isn't
113187         portable.  This avoids the configure-time inter-test dependency
113188         on the potentially-renamed putenv function.
113190 2000-03-30  Paul Eggert  <eggert@twinsun.com>
113192         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
113193         before checking struct stat.st_blksize, so that
113194         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
113196 2000-03-29  Paul Eggert  <eggert@twinsun.com>
113198         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
113199         since strftime.c uses HAVE_STRFTIME to decide whether to use
113200         the underlying strftime.
113202 2000-03-29  Paul Eggert  <eggert@twinsun.com>
113204         * lib/time/strftime.c (my_strftime): Make sure we call the system
113205         strftime, not ourselves, when invoking the underlying strftime.
113207 2000-03-24  Jim Meyering  <meyering@lucent.com>
113209         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
113210         (charset_alias): Define.
113211         (install-exec-local): Factor out common code.
113212         (uninstall-local): Split lines longer than 80.
113213         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
113214         (SUFFIXES): Define.
113215         (.sed.in.sed): New rule.  Don't redirect directly to $@.
113216         (CLEANFILES): Add ref-add.sed and ref-del.sed.
113218 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
113220         * lib/config.charset: Output a line containing "Packages using this
113221         file".
113222         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
113223         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
113224         ref-del.sed): New rules.
113226 2000-03-17  Jim Meyering  <meyering@lucent.com>
113228         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
113229         Otherwise, include <strings.h>
113231 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
113233         * lib/unicodeio.c (utf8_wctomb): New function.
113234         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
113235         format instead of in UCS-4 with platform dependent endianness.
113237 2000-03-10  Jim Meyering  <meyering@lucent.com>
113239         * m4/lib-check.m4: Look for getspnam in -lgen, too.
113240         From Marco Franzen.
113242 2000-03-07  Paul Eggert  <eggert@twinsun.com>
113244         * lib/savedir.c (savedir): Work even if directory size is
113245         negative; this can happen with some screwy NFS configurations.
113247 2000-03-06  Jim Meyering  <meyering@lucent.com>
113249         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
113250         if it's NULL (because we ran out of memory).  From Bruno Haible.
113252 2000-03-05  Jim Meyering  <meyering@lucent.com>
113254         * lib/localcharset.c ("path-concat.h"): Include.
113255         (get_charset_aliases): Use path_concat instead of ANSI string
113256         concatenation.
113258         * lib/unicodeio.h (PARAMS): Define.
113259         Use it to guard prototype.
113261 2000-03-04  Jim Meyering  <meyering@lucent.com>
113263         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
113264         for lib/localcharset.c.
113266 2000-03-04  Jim Meyering  <meyering@lucent.com>
113268         * lib/Makefile.am (install-exec-local): Create $(libdir) before
113269         installing into it.
113270         (uninstall-local): Uncomment this rule so `make distcheck' works
113271         once again.
113273         * lib/unicodeio.c (<errno.h>): Include it.
113274         (errno): Declare if not defined.
113276         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
113278         * lib/config.charset: New version, incorporating remarks from a linux
113279         i18n mailing list.  From Bruno Haible.
113281 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
113283         * m4/codeset.m4: New file.
113284         * m4/iconv.m4: New file.
113285         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
113287 2000-03-03  Jim Meyering  <meyering@lucent.com>
113289         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
113291 2000-03-02  Jim Meyering  <meyering@lucent.com>
113293         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
113294         the messages come out on separate lines.
113296         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
113297         rather than jm_CHECK_DECLARATIONS.
113298         * m4/decl.m4: Remove now-unused file.
113300         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
113301         geteuid.
113303 2000-03-02  Jim Meyering  <meyering@lucent.com>
113305         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
113307 2000-03-01  Jim Meyering  <meyering@lucent.com>
113309         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
113310         * lib/unicodeio.c: Likewise.
113312 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
113314         * lib/config.charset: New file.
113315         * lib/localcharset.c: New file.
113316         * lib/unicodeio.h, lib/unicodeio.c: New files.
113317         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
113318         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
113319         (noinst_HEADERS): Add unicodeio.h.
113320         (all-local, install-exec-local, charset.alias): New targets.
113322 2000-02-28  Paul Eggert  <eggert@twinsun.com>
113324         * lib/quotearg.c (ALERT_CHAR): New macro.
113325         (quotearg_buffer_restyled): Use it.
113327 2000-02-27  Jim Meyering  <meyering@lucent.com>
113329         * m4/check-decl.m4: Add getenv to the list.
113331 2000-02-27  Jim Meyering  <meyering@lucent.com>
113333         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
113334         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
113336         * lib/backupfile.c: Guard inclusion of stdlib.h with
113337         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
113338         Declare malloc if needed.
113340         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
113341         `#ifndef HAVE_DECL..'
113342         now that autoconf always defines the HAVE_DECL_ symbols.
113343         * lib/human.c: Likewise.
113344         * lib/same.c: Likewise.
113345         * lib/strtoumax.c: Likewise.
113347         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
113348         declaration check was not run.
113349         * lib/hash.c: Likewise.
113350         * lib/human.c: Likewise.
113351         * lib/same.c: Likewise.
113352         * lib/strtoumax.c: Likewise.
113354         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
113355         `.', then first look up the entire `.'-containing string as a login
113356         name.
113358 2000-02-23  Jim Meyering  <meyering@lucent.com>
113360         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
113361         in place of my hack.
113363 2000-02-18  Paul Eggert  <eggert@twinsun.com>
113365         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
113366         (textint): New typedef.
113367         (parser_control): Member year changed from int to textint.
113368         All uses changed.
113369         (YYSTYPE): Removed; replaced by %union with int and textint members.
113370         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
113371         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
113372         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
113373         (tSNUMBER, tUNUMBER): Now of type <textintval>.
113374         (date, number, to_year): Use width of number in digits, not its value,
113375         to determine whether it's a 2-digit year, or a 2-digit time.
113376         (yylex): Store number of digits of numeric tokens.
113377         Reported by John Kendall.
113379         (parser_control): Changed from struct parser_control to typedef (for
113380         consistency).  All uses changed.
113382         (tID): Removed; not used.
113383         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
113385 2000-02-14  Paul Eggert  <eggert@twinsun.com>
113387         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
113388         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
113390 2000-02-12  Jim Meyering  <meyering@lucent.com>
113392         * lib/userspec.c (ISDIGIT): Define it.
113393         (isdigit): Remove definition.
113394         (is_number): Use ISDIGIT, not isdigit.
113395         <libintl.h>: Include.
113396         (_ and N_): Define.
113397         (parse_user_spec): Mark translatable strings.
113399 2000-02-10  Jim Meyering  <meyering@lucent.com>
113401         With these changes, nanosleep.[ch] are finally enough like the other
113402         lib/* replacement files to compile on a few more losing systems.
113404         * lib/nanosleep.h: Don't include config.h.
113405         Remove prototype from declaration of nanosleep.
113406         (PARAMS): Remove now-unneeded definition.
113407         * lib/nanosleep.c: #undef nanosleep.
113408         (rpl_nanosleep): Rename from nanosleep.
113410 2000-02-10  Jim Meyering  <meyering@lucent.com>
113412         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
113413         gnu_nanosleep to rpl_nanosleep.
113415 2000-02-09  Jim Meyering  <meyering@lucent.com>
113417         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
113418         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
113420 2000-02-08  Akim Demaille  <akim@epita.fr>
113422         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
113423         `[' and `]' and remove uses of `changequote'.
113424         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
113425         (AC_SYS_LARGEFILE): Likewise.
113426         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
113427         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
113428         of changequote.
113429         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
113430         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
113431         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
113432         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
113434 2000-02-05  Jim Meyering  <meyering@lucent.com>
113436         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
113437         Remove explicit use of AC_HEADER_TIME.  It is required by
113438         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
113439         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
113440         in autoconf whereby the expansion of the latter ended up preceding
113441         the expansion of its prerequisite, AC_HEADER_TIME.
113442         Reported by Volker Borchert.
113444 2000-02-03  Jim Meyering  <meyering@lucent.com>
113446         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
113448 2000-02-03  Jim Meyering  <meyering@lucent.com>
113450         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
113451         rather than with `#if HAVE_UTMPNAME'.
113453 2000-02-02  Jim Meyering  <meyering@lucent.com>
113455         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
113456         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
113457         Reported by Eli Zaretskii.
113459 2000-02-01  Jim Meyering  <meyering@lucent.com>
113461         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
113463 2000-01-31  Jim Meyering  <meyering@lucent.com>
113465         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
113466         functions.  Add the time.h and sys/time.h headers along with the
113467         AC_REQUIRE'ment of AC_HEADER_TIME.
113469 2000-01-31  Jim Meyering  <meyering@lucent.com>
113471         * lib/nanosleep.h (nanosleep): Guard declaration with
113472         `#if ! HAVE_DECL_NANOSLEEP'.
113473         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
113474         the declaration in that vendor's sys/timers.h.
113475         Reported by Christian Krackowizer.
113477         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
113478         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
113479         (ISPRINT): Likewise.
113480         Reported by Tom Tromey.
113482 2000-01-30  Jim Meyering  <meyering@lucent.com>
113484         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
113486         * m4/prereq.m4 (utmp_includes): Define.
113487         Check for ut_user and ut_name members in both struct utmpx
113488         and struct utmp.
113490 2000-01-30  Jim Meyering  <meyering@lucent.com>
113492         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
113493         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
113494         header files where only utmpx.ut_user is declared.
113496         * lib/readutmp.h (UT_USER): Define.
113498 2000-01-29  Jim Meyering  <meyering@lucent.com>
113500         * m4/lib-check.m4: New file containing library-related checks from
113501         fileutils and sh-utils (textutils had none).
113503 2000-01-28  Jim Meyering  <meyering@lucent.com>
113505         * m4/perl.m4: Change format of warning message to look more like that
113506         from the missing script.  Suggestion from François Pinard.
113508 2000-01-25  Jim Meyering  <meyering@lucent.com>
113510         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
113511         well as time.h in the compile check.
113512         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
113513         Fix typo in cross-compiling case: s/yes/no/.
113515 2000-01-23  Jim Meyering  <meyering@lucent.com>
113517         * m4/jm-macros.m4: Move df-related tests here from
113518         fileutils/configure.in
113520         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
113521         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
113523         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
113524         s/space/ac_fsusage_space/.
113525         (jm_FILE_SYSTEM_USAGE): Take two parameters.
113527         * m4/ftruncate.m4: New file (derived from part of
113528         fileutils/configure.in).
113529         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
113530         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
113532         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
113533         AC_SUBST these here, rather than just in sh-util/configure.in, so
113534         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
113535         all the same.
113536         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
113537         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
113538         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
113539         (AC_SUBST(POW_LIBM)): Likewise.
113540         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
113542 2000-01-23  Jim Meyering  <meyering@lucent.com>
113544         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
113545         obstack.c.
113547 2000-01-22  Jim Meyering  <meyering@lucent.com>
113549         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
113551         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
113553         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
113554         configure.in
113555         (AC_CHECK_HEADERS): Likewise for sh-utils.
113556         (AC_CHECK_HEADERS): Likewise for textutils.
113557         Merge the three lists of headers.
113559         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
113560         from fileutils' configure.in.
113562         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
113563         code. Moved tests into their own function (_jm_DECL_HEADERS) in
113564         check-decl.m4.
113566         * m4/check-decl.m4: Use #if rather than #ifdef.
113567         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
113568         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
113569         (_jm_DECL_HEADERS): Define new function.
113570         (jm_CHECK_DECLARATIONS): Require it.
113572 2000-01-22  Jim Meyering  <meyering@lucent.com>
113574         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
113575         [! HAVE_DECL_STRTOULL]: Declare strtoull.
113576         Required for some AIX systems.  Reported by Christian Krackowizer.
113577         [TESTING] (main): New function.
113579         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
113580         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
113581         letters.
113583         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
113584         iswprint.
113586         * lib/strverscmp.c (ISDIGIT): Define.
113587         (strverscmp): Use ISDIGIT, not isdigit.
113589 2000-01-19  Jim Meyering  <meyering@lucent.com>
113591         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
113592         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
113593         defines `struct timespec' in <sys/time.h>
113595         * m4/c-bs-a.m4: Remove uses of changequote altogether.
113596         Thanks to Akim for explaining.
113598 2000-01-17  Paul Eggert  <eggert@twinsun.com>
113600         * lib/nanosleep.c (nanosleep):
113601         Don't use SA_INTERRUPT to decide whether to call sigaction, as
113602         POSIX.1 doesn't require SA_INTERRUPT and some systems
113603         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
113604         it's been part of POSIX.1 since day 1 (in 1988).
113606 2000-01-17  Jim Meyering  <meyering@lucent.com>
113608         * lib/interlock: Remove unused file.  Reported by François Pinard.
113610 2000-01-16  Paul Eggert  <eggert@twinsun.com>
113612         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
113613         alert, backslash, formfeed, and vertical tab unnecessarily in
113614         shell quoting style.
113616 2000-01-16  Jim Meyering  <meyering@lucent.com>
113618         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
113619         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
113620         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
113621         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
113623 2000-01-16  Jim Meyering  <meyering@lucent.com>
113625         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
113626         because the latter didn't work.
113628 2000-01-15  Jim Meyering  <meyering@lucent.com>
113630         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
113631         (AC_REPLACE_FUNCS): Add memcpy and memset.
113632         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
113633         Add strpbrk.
113634         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
113636 2000-01-12  Jim Meyering  <meyering@lucent.com>
113638         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
113639         (jm_PREREQ): Use it.
113640         (jm_PREREQ_READUTMP): New macro.
113641         (jm_PREREQ): Use it.
113643 2000-01-11  Paul Eggert  <eggert@twinsun.com>
113645         Quote multibyte characters correctly.
113646         * m4/c-bs-a.m4: New file.
113647         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
113648         (jm_PREREQ): Use it.
113650 2000-01-11  Paul Eggert  <eggert@twinsun.com>
113652         * m4/uintmax_t.m4: Port to autoconf 2.13.
113654 2000-01-08  Jim Meyering  <meyering@ascend.com>
113656         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
113657         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
113659 2000-01-04  Jim Meyering  <meyering@ascend.com>
113661         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
113662         jm_STRUCT_DIRENT_D_TYPE.
113663         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
113664         jm_STRUCT_DIRENT_D_INO.
113665         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
113666         jm_STRUCT_UTIMBUF.
113667         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
113668         renamings.
113669         * m4/utime.m4: Likewise.
113671         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
113672         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
113674 2000-01-03  Paul Eggert  <eggert@twinsun.com>
113676         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
113677         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
113679 2000-01-02  Jim Meyering  <meyering@ascend.com>
113681         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
113682         remember if this is necessary.
113684 1999-12-26  Jim Meyering  <meyering@ascend.com>
113686         * m4/jm-macros.m4: Use it here.
113687         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
113689 1999-12-23  Jim Meyering  <meyering@ascend.com>
113691         * m4/jm-macros.m4: Check for clock_gettime (moved from
113692         fileutils/configure.in)
113693         Check for gettimeofday.
113695 1999-12-20  Jim Meyering  <meyering@ascend.com>
113697         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
113698         autoconf-2.14a-1999-12-20.
113700 1999-12-19  Jim Meyering  <meyering@ascend.com>
113702         * m4/lstat-slash.m4: New file.
113703         * m4/jm-macros.m4: Use the new macro:
113704         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
113706 1999-12-07  Jim Meyering  <meyering@ascend.com>
113708         * m4/perl.m4: Require that File::Compare be available, too.
113709         Too many systems seem to lack it.
113711         * m4/strftime.m4: Add checks for most of the cpp macros tested in
113712         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
113714 1999-11-18  Paul Eggert  <eggert@twinsun.com>
113716         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
113717         problem with the QNX 4.25 shell, which doesn't propagate exit
113718         status of failed commands inside shell assignments.
113720 1999-11-17  Jim Meyering  <meyering@ascend.com>
113722         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
113724 1999-11-07  Jim Meyering  <meyering@ascend.com>
113726         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
113728 1999-11-06  Jim Meyering  <meyering@ascend.com>
113730         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
113731         * m4/jm-macros.m4 (jm_MACROS): Use it here.
113733 1999-11-05  Jim Meyering  <meyering@ascend.com>
113735         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
113736         configure.in of textutils, fileutils, and sh-utils into this one
113737         (shared between those packages) file.
113738         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
113739         AC_STRUCT_ST_BLKSIZE.
113741 1999-11-03  Jim Meyering  <meyering@ascend.com>
113743         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
113744         of AC_CHECK_TYPE checks includes unistd.h.
113745         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
113746         Suggestion from Akim Demaille.
113748 1999-10-30  Jim Meyering  <meyering@ascend.com>
113750         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
113751         m4-quoted string.
113752         * m4/ls-mntd-fs.m4: Likewise.
113753         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
113754         * m4/jm-winsz1.m4: Likewise.
113756         * m4/const.m4: Remove file, since the fix made it into the experimental
113757         version of autoconf.
113758         * m4/mktime.m4: Likewise.
113760         * m4/check-type.m4: Remove file, now that the latest version of
113761         AC_CHECK_TYPE takes a third arg to specify additional #includes.
113763         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
113764         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
113765         AC_CHECK_TYPE.
113767 1999-10-04  Jim Meyering  <meyering@ascend.com>
113769         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
113771 1999-09-22  Paul Eggert  <eggert@twinsun.com>
113773         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
113774         2.95.1 bug with HP-UX 10.20.
113776 1999-09-17  Jim Meyering  <meyering@ascend.com>
113778         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
113779         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
113780         due to missing strdup (against sh-utils-2.0).
113782 1999-08-29  Jim Meyering  <meyering@ascend.com>
113784         * m4/jm-macros.m4: Require jm_BISON.
113785         * m4/bison.m4: New file.
113787 1999-08-17  Paul Eggert  <eggert@twinsun.com>
113789         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
113790         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
113792 1999-08-05  Jim Meyering  <meyering@ascend.com>
113794         * m4/getline.m4: Rename test file from conftestdata to conftest.data
113795         to avoid conflicts with `conftest' on 8+3 filesystems.
113796         Suggestion from Eli Zaretskii.
113798 1999-08-04  Jim Meyering  <meyering@ascend.com>
113800         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
113801         fileutils and sh-utils (textutils's getline test was inadequate).
113802         (AM_FUNC_GETLINE): Run this test.
113803         (AC_CHECK_FUNCS): Check for getdelim.
113804         Reported by Bob Proulx.
113806 1999-08-02  Jim Meyering  <meyering@ascend.com>
113808         * m4/jm-macros.m4: Add a comment.
113810 1999-08-01  Paul Eggert  <eggert@twinsun.com>
113812         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
113813         <inttypes.h> defines strtoumax as a macro (and not as a
113814         function).
113816 1999-08-01  Paul Eggert  <eggert@twinsun.com>
113818         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
113819         that we can shift, multiply and divide unsigned long long
113820         values; Ultrix cc can't do it.
113822 1999-08-01  Paul Eggert  <eggert@twinsun.com>
113824         * m4/mktime.m4: New file, which is a preview of what should appear
113825         in the next public autoconf release.
113827 1999-08-01  Paul Eggert  <eggert@twinsun.com>
113829         * m4/lfs.m4: Remove this file.
113830         * m4/largefile.m4: New file.  It contains the old contents of
113831         lfs.m4, except that all names with prefix AC_LFS have been
113832         changed to use the prefix AC_SYS_LARGEFILE instead, to be
113833         compatible with future autoconf versions.  Also, some minor m4
113834         quoting problems have been fixed.
113836 1999-08-01  Paul Eggert  <eggert@twinsun.com>
113838         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
113839         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
113840         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
113841         and simplify the shell code.
113843 1999-08-01  Jim Meyering  <meyering@ascend.com>
113845         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
113846         m4.
113848 1999-07-20  Jim Meyering  <meyering@ascend.com>
113850         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
113852 1999-07-15  Jim Meyering  <meyering@ascend.com>
113854         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
113856 1999-05-22  Jim Meyering  <meyering@ascend.com>
113858         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
113860 1999-05-20  Jim Meyering  <meyering@ascend.com>
113862         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
113863         Add a colon after each `then' in case $4 is empty.
113865 1999-05-16  Jim Meyering  <meyering@ascend.com>
113867         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
113869 1999-05-10  Jim Meyering  <meyering@ascend.com>
113871         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
113873         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
113874         AC_FUNC_MKTIME.
113876 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
113878         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
113880 1999-05-04  Paul Eggert  <eggert@twinsun.com>
113882         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
113883         not CPPFLAGS, so that linking works correctly in IRIX.
113885 1999-04-30  Paul Eggert  <eggert@twinsun.com>
113887         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
113889 1999-04-20  Paul Eggert  <eggert@twinsun.com>
113891         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
113892         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
113893         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
113894         jm_AC_TYPE_UNSIGNED_LONG_LONG.
113895         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
113897         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
113899 1999-04-20  Jim Meyering  <meyering@ascend.com>
113901         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
113902         AC_REPLACE xstroull if necessary.  From Paul Eggert.
113903         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
113905 1999-04-18  Jim Meyering  <meyering@ascend.com>
113907         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
113908         * m4/jm-macros.m4: Use it.
113910 1999-04-06  Jim Meyering  <meyering@ascend.com>
113912         * m4/strftime.m4: Remove test for %f.
113914 1999-03-29  Jim Meyering  <meyering@ascend.com>
113916         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
113917         superset of the AC_TYPE_* checks in the textutils, fileutils,
113918         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
113919         AC_TYPE_PID_T.
113921 1999-03-28  Jim Meyering  <meyering@ascend.com>
113923         * m4/jm-macros.m4: Define GNU_PACKAGE here.
113924         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
113925         replaced e.g., in the *.sh files of the sh-utils.
113927 1999-03-20  Jim Meyering  <meyering@ascend.com>
113929         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
113930         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
113931         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
113933 1999-03-19  Jim Meyering  <meyering@ascend.com>
113935         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
113937 1999-03-12  Jim Meyering  <meyering@ascend.com>
113939         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
113941 1999-03-07  Jim Meyering  <meyering@ascend.com>
113943         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
113944         declared.
113946 1999-02-17  Jim Meyering  <meyering@ascend.com>
113948         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
113949         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
113951 1999-02-07  Jim Meyering  <meyering@ascend.com>
113953         * m4/group-member.m4: New file -- extracted from sh-utils'
113954         configure.in.
113956         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
113957         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
113959 1999-02-06  Jim Meyering  <meyering@ascend.com>
113961         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
113962         * m4/fnmatch.m4: Likewise.
113963         * m4/getgroups.m4: Likewise.
113964         * m4/lstat.m4: Likewise.
113965         * m4/malloc.m4: Likewise.
113966         * m4/putenv.m4: Likewise.
113967         * m4/realloc.m4: Likewise.
113968         * m4/regex.m4: Likewise.
113969         * m4/stat.m4: Likewise.
113970         * m4/strftime.m4: Likewise.
113971         Suggestion from Alain Magloire.
113973         * m4/chown.m4: Use `.$ac_objext', not `.o'.
113974         * m4/fnmatch.m4: Likewise.
113975         * m4/getgroups.m4: Likewise.
113976         * m4/getline.m4: Likewise.
113977         * m4/lstat.m4: Likewise.
113978         * m4/malloc.m4: Likewise.
113979         * m4/memcmp.m4: Likewise.
113980         * m4/putenv.m4: Likewise.
113981         * m4/realloc.m4: Likewise.
113982         * m4/regex.m4: Likewise.
113983         * m4/stat.m4: Likewise.
113984         * m4/strftime.m4: Likewise.
113985         Suggestion from Alain Magloire.
113987         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
113988         an argument.
113990         * m4/regex.m4: Add a run-time Test for proper operation of
113991         re_compile_pattern.
113993 1999-01-31  Jim Meyering  <meyering@ascend.com>
113995         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
113997 1999-01-30  Jim Meyering  <meyering@ascend.com>
113999         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
114001         * m4/jm-mktime.m4: Make this a wrapper around the official
114002         AM_FUNC_MKTIME rather than my private copy, now that the official one
114003         is up to date.
114004         * m4/mktime.m4: Remove file.
114006         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
114007         * m4/uptime.m4: Likewise.
114008         * m4/uintmax_t.m4: Likewise.
114010 1999-01-28  Jim Meyering  <meyering@ascend.com>
114012         * m4/jm-macros.m4: Use jm_AFS.
114013         * m4/afs.m4: New file (from fileutils' configure.in).
114015         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
114016         * m4/chown.m4: Likewise.
114017         * m4/d-ino.m4: Likewise.
114018         * m4/d-type.m4: Likewise.
114019         * m4/fnmatch.m4: Likewise.
114020         * m4/getgroups.m4: Likewise.
114021         * m4/gettext.m4: Likewise.
114022         * m4/jm-mktime.m4: Likewise.
114023         * m4/jm-winsz2.m4: Likewise.
114024         * m4/lcmessage.m4: Likewise.
114025         * m4/ls-mntd-fs.m4: Likewise.
114026         * m4/malloc.m4: Likewise.
114027         * m4/memcmp.m4: Likewise.
114028         * m4/putenv.m4: Likewise.
114029         * m4/realloc.m4: Likewise.
114030         * m4/st_mtim.m4: Likewise.
114031         * m4/strftime.m4: Likewise.
114033 1999-01-16  Jim Meyering  <meyering@ascend.com>
114035         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
114036         (ARGMATCH_DIE_DECL): Define.
114038 1999-01-12  Jim Meyering  <meyering@ascend.com>
114040         * m4/Makefile.am.in: Rewrite to avoid using fmt.
114041         Reported by Lars Hecking.
114043 1999-01-10  Jim Meyering  <meyering@ascend.com>
114045         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
114046         gross kludge.
114047         * m4/inttypes_h.m4: Likewise.
114048         * m4/lstat.m4: Likewise.
114049         * m4/malloc.m4: Likewise.
114050         * m4/readdir.m4: Likewise.
114051         * m4/realloc.m4: Likewise.
114052         * m4/st_dm_mode.m4: Likewise.
114053         * m4/stat.m4: Likewise.
114054         * m4/utimbuf.m4: Likewise.
114055         * m4/utimes.m4: Likewise.
114057         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
114058         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
114059         comments in config.h.in are meaningful.
114061         * m4/jm-macros.m4: Require autoconf-2.13 here.
114063         * m4/regex.m4: By default, don't use the included regex.c on systems
114064         with glibc 2.  Suggestion from Uli Drepper.
114066 1999-01-02  Jim Meyering  <meyering@ascend.com>
114068         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
114070 1998-12-18  Jim Meyering  <meyering@ascend.com>
114072         * m4/Makefile.am.in (Makefile.am): Simplify rule.
114073         Based on a suggestion from Lars Hecking.
114075 1998-11-16  Paul Eggert  <eggert@twinsun.com>
114077         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
114079 1998-11-16  Jim Meyering  <meyering@ascend.com>
114081         * m4/lfs.m4: Double-quote the `uname...` expression.
114083 1998-11-14  Jim Meyering  <meyering@ascend.com>
114085         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
114086         * m4/stat.m4: Likewise.
114088 1998-11-03  Jim Meyering  <meyering@ascend.com>
114090         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
114091         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
114093 1998-10-18  Jim Meyering  <meyering@ascend.com>
114095         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
114097 1998-10-17  Jim Meyering  <meyering@ascend.com>
114099         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
114100         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
114101         calls for those previously hard-coded headers.  Instead, take a new
114102         parameter.
114103         (jm_CHECK_DECLARATIONS): Reflect interface change.
114104         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
114105         (jm_CHECK_DECL_LOCALTIME_R): New macro.
114107         * m4/mktime.m4: Test for spring-forward gap before long-running test.
114109 1998-10-14  Jim Meyering  <meyering@ascend.com>
114111         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
114112         instead of "TZ=America/Vancouver".  From Paul Eggert.
114114 1998-10-11  Jim Meyering  <meyering@ascend.com>
114116         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
114117         This adds a test for a recently added compatibility fix for mktime.c.
114118         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
114120 1998-09-27  Jim Meyering  <meyering@ascend.com>
114122         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
114124         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
114125         ../configure.in, including a change from Gordon Matzigkeit to allow
114126         cross-compiling for the Hurd.
114128         * m4/glibc.m4: New file/macro to test for the GNU C Library
114129         versions 1 and 2.  From Gordon Matzigkeit.
114130         Indent.
114132 1998-09-21  Jim Meyering  <meyering@ascend.com>
114134         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
114136 1998-08-18  Paul Eggert  <eggert@twinsun.com>
114138         Port nanosecond-resolution times to UnixWare 2.1.2 and
114139         pedantic Solaris 2.6.
114141         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
114142         AC_STRUCT_ST_MTIM.
114143         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
114144         Generate name of ns member, instead of just 1 or undef.
114145         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
114147 1998-08-15  Jim Meyering  <meyering@ascend.com>
114149         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
114150         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
114151         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
114152         instead of jm_TYPE_SSIZE_T.
114154 1998-08-12  Jim Meyering  <meyering@ascend.com>
114156         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
114158 1998-08-02  Jim Meyering  <meyering@ascend.com>
114160         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
114161         in acconfig.h manually.
114163 1998-07-31  Paul Eggert  <eggert@twinsun.com>
114165         * m4/st_mtim.m4: New file.
114167 1998-07-28  Jim Meyering  <meyering@ascend.com>
114169         * m4/utimes.m4: Undef stat.
114171 1998-07-25  Jim Meyering  <meyering@ascend.com>
114173         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
114174         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
114176 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
114178         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
114179         uid and gid actually remain unchanged.
114181 1998-07-07  Jim Meyering  <meyering@ascend.com>
114183         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
114185 1998-07-04  Jim Meyering  <meyering@ascend.com>
114187         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
114188         to prove that this macro can be used in packages without regex.c.
114190 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
114192         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
114193         is to be used.
114195 1998-07-03  Jim Meyering  <meyering@ascend.com>
114197         * m4/gettext.m4: Add -lintl if it's found to be necessary.
114199         * m4/gettext.m4: New file -- from gettext-0.10.35.
114200         * m4/lcmessage.m4: Likewise.
114201         * m4/progtest.m4: Likewise.
114203         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
114204         * m4/jm-macros.m4: Require the new macro.
114206 1998-06-29  Jim Meyering  <meyering@ascend.com>
114208         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
114209         for the definition of NGROUPS (used in a system header included
114210         by sys/mount.h).
114212 1998-06-28  Jim Meyering  <meyering@ascend.com>
114214         * m4/ls-mntd-fs.m4: New file.
114215         * m4/fstypename.m4: New file.
114217         * m4/jm-macros.m4: Require the new macro.
114218         * m4/jm-glibc-io.m4: New file.
114220 1998-05-19  Jim Meyering  <meyering@ascend.com>
114222         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
114223         * m4/lchown.m4: New file.
114225         * m4/Makefile.am.in: New file.
114226         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
114228 1998-05-14  Jim Meyering  <meyering@ascend.com>
114230         * m4/Makefile.am (EXTRA_DIST): Add them.
114231         * m4/jm-macros.m4: New file.
114232         * m4/utimbuf.m4: New file.
114234 1998-05-12  Jim Meyering  <meyering@ascend.com>
114236         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
114238 1998-05-11  Jim Meyering  <meyering@ascend.com>
114240         * m4/isc-posix.m4: New file.
114242 1998-05-10  Jim Meyering  <meyering@ascend.com>
114244         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
114246 1998-05-09  Jim Meyering  <meyering@ascend.com>
114248         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
114249         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
114250         with automake.
114252         * m4/ssize_t.m4: New file.
114253         * m4/mktime.m4: Remove file -- the new automake has this now.
114255 1998-04-26  Jim Meyering  <meyering@ascend.com>
114257         * m4/assert.m4: New file.
114258         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
114260 1998-04-05  Jim Meyering  <meyering@ascend.com>
114262         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
114263         (jm_PREREQ): Use it here.
114265 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
114267         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
114268         in acconfig.h.
114270 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
114272         * m4/prereq.m4: New file.
114273         * m4/error.m4: New file.
114274         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
114276 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
114278         * m4/getline.m4: Don't set am_cv_func_working_getline before the
114279         cache-check for the same variable -- that defeated the purpose of
114280         the test; the test program was never run.  This was a problem only
114281         on systems with losing getline functions -- HP-UX 10.20 is one.
114282         Reported by Bjorn Helgaas.
114284 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
114286         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
114288 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
114290         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
114292         * m4/const.m4: New file.  Use an initializer in this declaration
114293         typedef int charset[2]; const charset x;
114294         Reported by Bob Glickstein.
114296 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
114298         * m4/chown.m4: Fix reversed types on -1 args to chown.
114299         From Kaveh Ghazi.
114301 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
114303         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
114304         Add lseek and memchr.
114306         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
114307         T.E.Dickey <dickey@clark.net> said that some older preprocessors
114308         have a 20-character limit on names.
114310 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
114312         * m4/inttypes_h.m4: New file.
114313         * m4/uintmax_t.m4: New file.
114314         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
114317         -----
114319         Local Variables:
114320         coding: utf-8
114321         End:
114323         Copyright (C) 1997-2017 Free Software Foundation, Inc.
114325         Copying and distribution of this file, with or without
114326         modification, are permitted provided the copyright notice
114327         and this notice are preserved.